/* ============== TOKENS ============== */
:root {
  --bg: #0a1628;
  --bg-2: #0f1d33;
  --surface: #142544;
  --surface-2: #1a2e54;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);

  --ink: #f5f1e8;
  --ink-dim: #c9c2b3;
  --ink-mute: #8a8472;

  --primary: #0d4a3e;        /* deep emerald */
  --primary-2: #1a6b54;
  --primary-soft: #d4e8df;
  --accent: #e8b04a;         /* amber gold */
  --accent-2: #f4c668;
  --accent-deep: #b8841f;
  --danger: #c45757;

  --paper: #f5f1e8;          /* warm off-white */
  --paper-2: #ebe4d2;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  --font-display: 'Fraunces', 'Plantin', Georgia, serif;
  --font-sans: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* ============== TYPE ============== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.muted { color: var(--ink-mute); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 88px); }
h2 { font-size: clamp(32px, 4.5vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.015em; }
h4 { font-size: 18px; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.005em; }

p { text-wrap: pretty; }

.italic-serif { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,22,40,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600; font-size: 20px;
  font-style: italic;
}
.brand-text { font-weight: 600; letter-spacing: -0.01em; font-size: 15px; }
.brand-text small { display: block; color: var(--ink-mute); font-weight: 400; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 1px; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--ink-dim); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 0.12s ease, background 0.15s, color 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #1a1208;
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 8px 24px -8px rgba(232,176,74,0.5);
}
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 12px 32px -8px rgba(232,176,74,0.7); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink-dim); background: rgba(255,255,255,0.03); }
.btn-arrow { transition: transform 0.15s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============== SECTIONS ============== */
section { padding: 120px 0; }
@media (max-width: 720px) { section { padding: 80px 0; } }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 64px; max-width: 720px; }
.section-head .lede { color: var(--ink-dim); font-size: 18px; line-height: 1.55; }

/* tags badges */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.badge .dot.live { box-shadow: 0 0 0 0 rgba(232,176,74,0.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(232,176,74,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(232,176,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,176,74,0); }
}

/* ============== UTIL ============== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
