/* ============================================================
   HOODRADAR — landing + docs
   Dark-ops radar console. Phosphor green, gold as the rare
   accent, near-black ground. Chakra Petch (HUD) + IBM Plex Mono.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* ground */
  --ground: #060a08;
  --ground-2: #0a100d;
  --surface: #0d1512;
  --raised: #121c17;
  --line: #1c2a24;
  --line-bright: #2a3d34;

  /* phosphor — the accent */
  --ph: #2fbf82;
  --ph-bright: #5ff1b0;
  --ph-deep: #0b8f5c;
  --ph-glow: rgba(47, 191, 130, 0.35);

  /* rare accent */
  --gold: #c9a227;
  --gold-bright: #e8c860;

  /* semantic */
  --danger: #e6614f;
  --warn: #e0a24a;

  /* ink */
  --ink: #dce8e2;
  --soft: #8ba39a;
  --faint: #566b62;
  --ghost: #33453d;

  /* type */
  --display: 'Chakra Petch', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* rhythm */
  --shell: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ── Atmosphere: grain + phosphor glow + scanlines ─────────── */
body::before {
  /* fine grain */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  /* scanlines */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,0.25) 2px 3px);
  mix-blend-mode: multiply;
}

/* ambient glows */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(47,191,130,0.10), transparent 60%),
    radial-gradient(700px 500px at 8% 30%, rgba(11,143,92,0.06), transparent 55%),
    radial-gradient(600px 600px at 100% 100%, rgba(201,162,39,0.045), transparent 60%);
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--ph); color: var(--ground); }
:focus-visible { outline: 2px solid var(--ph); outline-offset: 3px; border-radius: 3px; }

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 2; }

/* ── Utility type ──────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ph);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--ph);
  opacity: 0.6;
}

h1, h2, h3, .display { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.02; }

.tnum { font-variant-numeric: tabular-nums; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.22em; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--ph); }
.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--ph-deep);
  color: var(--ph-bright);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(47,191,130,0.12), rgba(47,191,130,0.03));
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { border-color: var(--ph); box-shadow: 0 0 0 1px var(--ph-deep), 0 8px 30px -10px var(--ph-glow); color: var(--ground); background: var(--ph); }
.nav-burger { display: none; background: none; border: 1px solid var(--line-bright); color: var(--ink); width: 40px; height: 38px; border-radius: 6px; cursor: pointer; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links.open {
    display: flex; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ground-2); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1rem;
  }
  .nav-links.open a { padding: 0.85rem 0; width: 100%; border-bottom: 1px solid var(--line); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-scope { order: -1; margin-inline: auto; }
}

.hero-h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  text-wrap: balance;
  margin: 1.4rem 0 0;
}
.hero-h1 .hl { color: var(--ph-bright); text-shadow: 0 0 30px var(--ph-glow); }
.hero-sub {
  margin-top: 1.4rem;
  max-width: 46ch;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.7;
}
.hero-sub b { color: var(--ink); font-weight: 500; }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  transition: all 0.22s cubic-bezier(0.2,0.8,0.2,1);
  cursor: pointer;
}
.btn-primary {
  background: var(--ph);
  color: var(--ground);
  border: 1px solid var(--ph);
  box-shadow: 0 10px 40px -12px var(--ph-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -14px var(--ph-glow); background: var(--ph-bright); }
.btn-primary .arrow { transition: transform 0.22s; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost { border: 1px solid var(--line-bright); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ph-deep); color: var(--ph-bright); }

.hero-meta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero-meta .stat { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-meta .stat .n { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.hero-meta .stat .n.gold { color: var(--gold-bright); }
.hero-meta .stat .l { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

/* radar scope canvas frame */
.hero-scope { position: relative; width: min(440px, 92vw); aspect-ratio: 1; }
.hero-scope canvas { width: 100%; height: 100%; display: block; }
.scope-frame {
  position: absolute; inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.scope-readout {
  position: absolute;
  bottom: 8%; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--ph); text-transform: uppercase; white-space: nowrap;
  opacity: 0.75;
}
.scope-corner { position: absolute; width: 16px; height: 16px; border: 1px solid var(--ph-deep); opacity: 0.5; }
.scope-corner.tl { top: -4px; left: -4px; border-right: 0; border-bottom: 0; }
.scope-corner.tr { top: -4px; right: -4px; border-left: 0; border-bottom: 0; }
.scope-corner.bl { bottom: -4px; left: -4px; border-right: 0; border-top: 0; }
.scope-corner.br { bottom: -4px; right: -4px; border-left: 0; border-top: 0; }

/* ── ticker strip ──────────────────────────────────────────── */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--ground-2);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: flex;
  gap: 3rem;
  padding: 0.7rem 0;
  white-space: nowrap;
  width: max-content;
  animation: ticker 40s linear infinite;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--soft);
}
.ticker-track .t { display: inline-flex; align-items: center; gap: 0.5rem; }
.ticker-track .t .g { color: var(--ph); }
.ticker-track .t .d { color: var(--danger); }
.ticker-track .t .y { color: var(--gold); }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ============================================================
   SECTION scaffolding
   ============================================================ */
section { position: relative; z-index: 2; }
.band { padding: clamp(4rem, 9vw, 7rem) 0; }
.band-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.band-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-top: 1rem; text-wrap: balance; }
.band-head p { margin-top: 1.1rem; color: var(--soft); max-width: 56ch; }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-bright), transparent); }

/* ── problem: big stats ────────────────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr; } }
.stat-cell { background: var(--surface); padding: 2rem 1.75rem; }
.stat-cell .big { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 600; color: var(--ph-bright); line-height: 1; text-shadow: 0 0 24px var(--ph-glow); }
.stat-cell .cap { margin-top: 0.75rem; font-size: 12px; color: var(--soft); letter-spacing: 0.03em; }
.problem-punch { margin-top: 2.4rem; font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 500; color: var(--ink); text-wrap: balance; max-width: 40ch; }
.problem-punch .hl { color: var(--gold-bright); }

/* ── pipeline ──────────────────────────────────────────────── */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 820px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .pipeline { grid-template-columns: 1fr; } }
.stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.35rem 1.6rem;
  overflow: hidden;
}
.stage::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--ph-deep), transparent); }
.stage .idx { font-family: var(--mono); font-size: 11px; color: var(--ph); letter-spacing: 0.2em; }
.stage h3 { font-size: 1.15rem; margin: 0.9rem 0 0.5rem; }
.stage .sub { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.7rem; }
.stage p { font-size: 12.5px; color: var(--soft); line-height: 1.6; }
.stage.soon { opacity: 0.62; }
.stage.soon .sub { color: var(--faint); }

/* ── score anatomy ─────────────────────────────────────────── */
.score-anatomy { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 880px) { .score-anatomy { grid-template-columns: 1fr; } }

.gate-card {
  background: linear-gradient(180deg, rgba(230,97,79,0.06), transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line));
  border-radius: 14px;
  padding: 1.75rem;
}
.gate-card h3 { color: var(--danger); font-size: 1.05rem; letter-spacing: 0.02em; }
.gate-list { margin-top: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.gate-list li { list-style: none; display: flex; align-items: baseline; gap: 0.7rem; font-size: 13px; color: var(--soft); }
.gate-list li b { color: var(--ink); font-weight: 500; }
.gate-list .x { color: var(--danger); font-family: var(--mono); }
.gate-note { margin-top: 1.2rem; font-size: 12px; color: var(--faint); line-height: 1.6; }

.dims { display: flex; flex-direction: column; gap: 1rem; }
.dim {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
}
.dim-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.dim-top h4 { font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
.dim-top .w { font-family: var(--display); font-size: 1.5rem; color: var(--ph-bright); }
.dim-bar { height: 4px; border-radius: 4px; background: var(--raised); margin: 0.9rem 0 0.85rem; overflow: hidden; }
.dim-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--ph-deep), var(--ph)); }
.dim ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.dim li { font-size: 11.5px; color: var(--soft); }
.dim li span { color: var(--faint); }

/* ── verdict bands ─────────────────────────────────────────── */
.verdicts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 820px) { .verdicts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .verdicts { grid-template-columns: 1fr; } }
.verdict {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.35rem;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.verdict .glyph { font-size: 1.7rem; }
.verdict .rng { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--faint); margin-top: 0.7rem; }
.verdict h4 { font-family: var(--display); font-size: 1.2rem; margin: 0.3rem 0 0.5rem; letter-spacing: 0.04em; }
.verdict p { font-size: 12px; color: var(--soft); line-height: 1.55; }
.verdict.lockon { border-color: color-mix(in srgb, var(--ph) 45%, var(--line)); }
.verdict.lockon h4 { color: var(--ph-bright); }
.verdict.tracking h4 { color: var(--gold); }
.verdict.drifting h4 { color: var(--soft); }
.verdict.ghost { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.verdict.ghost h4 { color: var(--danger); }

/* ── split feature (outlaw / latency) ──────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip .split-media { order: -1; } }
.split-media {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* outlaw wallet rows */
.wallet-row { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.wallet-row:last-child { border-bottom: 0; }
.wallet-row .rk { font-family: var(--display); color: var(--ph); width: 1.5rem; }
.wallet-row .addr { font-family: var(--mono); color: var(--soft); }
.wallet-row .wr { margin-left: auto; color: var(--ph-bright); font-variant-numeric: tabular-nums; }
.wallet-row .pnl { color: var(--gold); width: 5rem; text-align: right; font-variant-numeric: tabular-nums; }
.converge {
  margin-top: 1.1rem; padding: 0.85rem 1rem;
  border: 1px dashed color-mix(in srgb, var(--ph) 40%, var(--line));
  border-radius: 10px; background: rgba(47,191,130,0.05);
  font-size: 12px; color: var(--ph-bright); display: flex; align-items: center; gap: 0.6rem;
}

/* latency compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.compare > div { background: var(--surface); padding: 1.4rem 1.35rem; }
.compare .lab { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.9rem; }
.compare .free .lab { color: var(--faint); }
.compare .hold .lab { color: var(--ph); }
.compare ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; font-size: 12.5px; color: var(--soft); }
.compare .hold { background: linear-gradient(180deg, rgba(47,191,130,0.06), transparent); }
.compare .big { font-family: var(--display); font-size: 1.35rem; color: var(--ink); margin-bottom: 0.2rem; }
.compare .hold .big { color: var(--ph-bright); }

/* ── token / tiers ─────────────────────────────────────────── */
.token-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 880px) { .token-grid { grid-template-columns: 1fr; } }
.token-facts { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.token-facts .row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.95rem 1.4rem; border-bottom: 1px solid var(--line); font-size: 13px; }
.token-facts .row:last-child { border-bottom: 0; }
.token-facts .row .k { color: var(--soft); }
.token-facts .row .v { color: var(--ink); font-weight: 500; }
.token-facts .row .v.gold { color: var(--gold-bright); }
.token-facts .row .v.zero { color: var(--ph-bright); }

.tiers { display: flex; flex-direction: column; gap: 0.75rem; }
.tier {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.4rem;
  transition: border-color 0.2s, transform 0.2s;
}
.tier:hover { border-color: var(--ph-deep); transform: translateX(4px); }
.tier .glyph { font-size: 1.3rem; }
.tier .name { font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
.tier .name small { display: block; font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.08em; font-weight: 400; margin-top: 0.15rem; }
.tier .perk { font-size: 12px; color: var(--soft); }
.tier .hold { font-family: var(--display); font-size: 0.95rem; color: var(--gold); white-space: nowrap; }
@media (max-width: 560px) { .tier { grid-template-columns: auto 1fr; } .tier .hold { grid-column: 2; text-align: right; } }

.burns { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.burn-chip { font-size: 11.5px; padding: 0.5rem 0.85rem; border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); border-radius: 20px; color: var(--gold-bright); background: rgba(201,162,39,0.05); }
.burn-chip b { color: var(--ink); }

/* ── roadmap ───────────────────────────────────────────────── */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 860px) { .roadmap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .roadmap { grid-template-columns: 1fr; } }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem 1.35rem; position: relative; }
.phase .ph { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--faint); }
.phase h4 { font-family: var(--display); font-size: 1.15rem; margin: 0.6rem 0; }
.phase.active { border-color: var(--ph-deep); box-shadow: 0 0 0 1px var(--ph-deep); }
.phase.active .ph { color: var(--ph); }
.phase .dot { position: absolute; top: 1.5rem; right: 1.35rem; width: 8px; height: 8px; border-radius: 50%; background: var(--ghost); }
.phase.active .dot { background: var(--ph); box-shadow: 0 0 12px var(--ph); animation: pulse 2s ease-in-out infinite; }
.phase ul { list-style: none; margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.4rem; }
.phase li { font-size: 12px; color: var(--soft); padding-left: 0.9rem; position: relative; }
.phase li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 4px; height: 4px; border-radius: 50%; background: var(--ph-deep); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── scam warning ──────────────────────────────────────────── */
.warn-box {
  border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line));
  background: linear-gradient(180deg, rgba(224,162,74,0.06), transparent);
  border-radius: 14px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.warn-box h3 { color: var(--warn); font-size: 1.15rem; display: flex; align-items: center; gap: 0.6rem; }
.warn-box ul { list-style: none; margin-top: 1.1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.6rem; }
@media (max-width: 640px) { .warn-box ul { grid-template-columns: 1fr; } }
.warn-box li { font-size: 13px; color: var(--soft); padding-left: 1.3rem; position: relative; }
.warn-box li::before { content: "✕"; position: absolute; left: 0; color: var(--warn); font-size: 11px; }
.warn-box li b { color: var(--ink); font-weight: 500; }
.warn-official { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.warn-official a { color: var(--ph); }

/* ── CTA closer ────────────────────────────────────────────── */
.closer { text-align: center; padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.closer h2 { font-size: clamp(2.2rem, 6vw, 4rem); text-wrap: balance; }
.closer h2 .hl { color: var(--ph-bright); text-shadow: 0 0 40px var(--ph-glow); }
.closer p { margin: 1.2rem auto 2.2rem; max-width: 48ch; color: var(--soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer .brand b { font-size: 14px; }
.footer-tag { margin-top: 0.8rem; font-size: 12px; color: var(--faint); max-width: 32ch; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h5 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.9rem; }
.footer-col a { display: block; font-size: 13px; color: var(--soft); padding: 0.28rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--ph); }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 11px; color: var(--faint); line-height: 1.7; max-width: 90ch; }

/* ============================================================
   REVEAL animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.2,0.8,0.2,1), transform 0.7s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   DOCS
   ============================================================ */
.docs-shell { display: grid; grid-template-columns: 230px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-block: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 900px) { .docs-shell { grid-template-columns: 1fr; } .docs-nav { position: static !important; } .docs-nav ol { display: flex; flex-wrap: wrap; gap: 0.5rem; } .docs-nav li { border: 1px solid var(--line); border-radius: 6px; } }
.docs-nav { position: sticky; top: 90px; }
.docs-nav h6 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.docs-nav ol { list-style: none; counter-reset: d; }
.docs-nav li { counter-increment: d; }
.docs-nav a { display: block; font-size: 13px; color: var(--soft); padding: 0.5rem 0.7rem; border-left: 2px solid transparent; transition: all 0.2s; }
.docs-nav a::before { content: counter(d, decimal-leading-zero) "  "; color: var(--faint); font-size: 11px; }
.docs-nav a:hover, .docs-nav a.active { color: var(--ph-bright); border-left-color: var(--ph); background: rgba(47,191,130,0.04); }

.docs-body { max-width: 72ch; }
.docs-body h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.5rem; }
.docs-lede { color: var(--soft); font-size: 15px; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.docs-section { margin-bottom: 3.5rem; scroll-margin-top: 90px; }
.docs-section > h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin-bottom: 1rem; display: flex; align-items: baseline; gap: 0.75rem; }
.docs-section > h2 .num { font-family: var(--mono); font-size: 13px; color: var(--ph); }
.docs-section h3 { font-family: var(--display); font-size: 1.2rem; margin: 2rem 0 0.8rem; color: var(--ink); }
.docs-section p { color: var(--soft); margin-bottom: 1rem; }
.docs-section p b, .docs-section li b { color: var(--ink); font-weight: 500; }
.docs-section ul { margin: 0 0 1rem 1.2rem; color: var(--soft); }
.docs-section li { margin-bottom: 0.5rem; }
.docs-section code { font-family: var(--mono); font-size: 0.88em; background: var(--raised); padding: 0.12em 0.42em; border-radius: 4px; color: var(--ph-bright); }
.docs-section a { color: var(--ph); border-bottom: 1px solid color-mix(in srgb, var(--ph) 40%, transparent); }

.callout { border: 1px solid var(--line-bright); border-left: 3px solid var(--ph); background: var(--surface); border-radius: 8px; padding: 1.1rem 1.35rem; margin: 1.5rem 0; font-size: 13.5px; color: var(--soft); }
.callout b { color: var(--ph-bright); }
.callout.warn { border-left-color: var(--warn); }
.callout.warn b { color: var(--warn); }

pre.code { background: var(--ground-2); border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.35rem; overflow-x: auto; margin: 1.3rem 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--soft); }
pre.code .c { color: var(--faint); }
pre.code .k { color: var(--ph-bright); }
pre.code .s { color: var(--gold); }

table.api { width: 100%; border-collapse: collapse; margin: 1.3rem 0; font-size: 12.5px; }
table.api th, table.api td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
table.api th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
table.api td { color: var(--soft); }
table.api td code { font-size: 12px; }
table.api .method { color: var(--ph); font-family: var(--mono); }
.wrap-scroll { overflow-x: auto; }
