/* ─── Variables ────────────────────────────────────── */
:root {
  --accent:       #1a56db;
  --accent-hover: #1447c0;
  --accent-light: rgba(26, 86, 219, 0.07);
  --accent-glow:  rgba(26, 86, 219, 0.22);
  --bg:           #f0f4fa;
  --surface:      #ffffff;
  --border:       #dde5f0;
  --text:         #0f172a;
  --text-muted:   #475569;
  --text-faint:   #94a3b8;
  --text-faintest:#b8c5d6;
}

/* ─── Base ──────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography helpers ────────────────────────────── */
.font-display { font-family: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif; }
.font-mono    { font-family: 'JetBrains Mono', monospace; }

.text-muted    { color: var(--text-muted); }
.text-faint    { color: var(--text-faint); }
.text-faintest { color: var(--text-faintest); }

.accent    { color: var(--accent); }
.bg-accent { background: var(--accent); }

/* ─── Buttons ───────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ─── Nav ───────────────────────────────────────────── */
nav {
  background: rgba(240, 244, 250, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }

/* ─── Hero ──────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(160deg, #e8f0fd 0%, #f0f4fa 55%, #edf3ff 100%);
}

.hero-glow {
  position: absolute;
  width: 700px; height: 450px;
  background: radial-gradient(ellipse, rgba(26, 86, 219, 0.1) 0%, transparent 70%);
  pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* ─── URL Input ─────────────────────────────────────── */
.url-input {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.url-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.url-input.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.04);
}
.url-input::placeholder { color: var(--text-faintest); }

/* ─── Result box ────────────────────────────────────── */
.result-box {
  background: var(--accent-light);
  border: 1px solid rgba(26, 86, 219, 0.18);
  animation: slideDown 0.25s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Feature cards ─────────────────────────────────── */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.feature-card:hover {
  border-color: rgba(26, 86, 219, 0.28);
  box-shadow: 0 8px 32px rgba(26, 86, 219, 0.09);
  transform: translateY(-3px);
}

/* ─── Step numbers ──────────────────────────────────── */
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  opacity: 0.5;
}

/* ─── Stats ─────────────────────────────────────────── */
.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--accent);
}

/* ─── Divider ───────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

/* ─── Scroll animations ─────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Copy button ───────────────────────────────────── */
.copy-btn {
  background: var(--accent-light);
  border: 1px solid rgba(26, 86, 219, 0.2);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover,
.copy-btn.copied {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ─── Logo ──────────────────────────────────────────── */
.logo { font-family: 'JetBrains Mono', monospace; font-weight: 700; }

/* ─── Badge ─────────────────────────────────────────── */
.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  border: 1px solid rgba(26, 86, 219, 0.2);
  background: var(--accent-light);
  letter-spacing: 0.04em;
}

/* ─── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── Code block ────────────────────────────────────── */
.code-block {
  background: #1e293b;
  border: 1px solid #334155;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.7;
}
.code-keyword { color: #60a5fa; }
.code-string  { color: #34d399; }
.code-comment { color: #4b5e78; }

/* ─── Beta modal ────────────────────────────────────── */
.beta-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
  animation: fadeInModal 0.15s ease;
}
.beta-modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  animation: scaleUpModal 0.2s ease;
}
.beta-modal-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}
.beta-modal-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.6rem;
  font-family: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
}
.beta-modal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.beta-modal-btn {
  width: 100%;
  padding: 0.625rem 1.5rem;
  border-radius: 0.625rem;
  font-size: 0.9rem;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleUpModal {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
