/* CLUEVAULT ($CLUE) site styles
   World: black ground, warm brown surfaces, white ink, gold brand accent.
   Display: Playfair Display 400. Body: Nunito Sans. Mono: DM Mono for hashes and addresses only. */

:root {
  --bg: #000000;
  --surface: #3a1f0e;
  --surface-2: #4c2a18;
  --surface-3: #24130a;
  --ink: #ffffff;
  --ink-2: #e9dccb;
  --ink-3: #b9a68f;
  --gold: #F5C518;
  --gold-soft: rgba(245, 197, 24, 0.16);
  --gold-ink: #1a1200;
  --blue: #3B82F6;
  --green: #22C55E;
  --line: rgba(255, 255, 255, 0.12);
  --line-warm: rgba(245, 197, 24, 0.22);
  --display: "Playfair Display", "Times New Roman", Georgia, serif;
  --body: "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1280px;
  --pad: 32px;
  --r-card: 32px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 700; color: var(--ink); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(50px, 8.6vw, 116px); line-height: 0.98; }
h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; margin-bottom: 20px; }
h3 { font-size: 26px; line-height: 1.2; }
h4 { font-size: 20px; line-height: 1.3; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.muted { color: var(--ink-3); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 62ch; }
.note { color: var(--ink-3); font-size: 15px; }

/* placeholders: live values look like real values. The driver replaces the text. */
.ph { font-variant-numeric: tabular-nums; }
a[aria-disabled="true"] { cursor: default; opacity: 0.92; }

/* gate states, set by the driver */
.gate-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); color: var(--ink-2);
}
.gate-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.gate[data-state="queued"] .gate-pill::after { content: "queued: live with the contract"; }
.gate[data-state="queued"] .gate-pill::before { background: var(--gold); }
.gate[data-state="gated"] .gate-pill::after { content: "gated"; }
.gate[data-state="gated"] .gate-pill::before { background: #f97316; }
.gate[data-state="open"] .gate-pill::after { content: "live"; }
.gate[data-state="open"] .gate-pill::before { background: var(--green); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 16px; line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.22); color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.08); }
.btn.primary { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.0); }
.btn.primary:hover { box-shadow: 0 12px 40px -10px rgba(245, 197, 24, 0.6); background: #ffd23a; }
.btn.small { padding: 11px 20px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

/* header */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: 22px 0; }
.top .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--display); font-size: 24px; letter-spacing: 0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.top nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.top nav a { color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 9px 14px; border-radius: var(--r-pill); transition: background .2s, color .2s; }
.top nav a:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); text-decoration: none; }
.top .cta { margin-left: 8px; }
.menu-btn {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.5); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }

/* hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding: 140px 0 90px;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(76, 42, 24, 0.75), rgba(0, 0, 0, 0) 60%),
    radial-gradient(40% 40% at 15% 90%, rgba(58, 31, 14, 0.6), rgba(0, 0, 0, 0) 70%),
    var(--bg);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-copy h1 { margin-bottom: 26px; }
.hero-copy h1 em { font-style: italic; color: var(--gold); }
.hero-copy .lede { margin-bottom: 30px; }
.status-line {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 16px 9px 12px; border-radius: var(--r-pill);
  background: rgba(58, 31, 14, 0.75); border: 1px solid var(--line-warm);
  font-size: 14px; color: var(--ink-2); margin-bottom: 26px;
}
.status-line b { color: var(--gold); font-weight: 700; }
.status-line .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(245, 197, 24, .6); animation: ping 2.2s infinite; }

.root-card {
  background: linear-gradient(180deg, rgba(76, 42, 24, 0.55), rgba(36, 19, 10, 0.75));
  border: 1px solid var(--line-warm); border-radius: 28px; padding: 22px 26px; margin-bottom: 26px;
  backdrop-filter: blur(6px);
}
.root-card .k { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 10px; }
.root-card .k span:last-child { color: var(--gold); letter-spacing: 0.04em; text-transform: none; font-weight: 600; }
.root-card .v { font-family: var(--mono); font-size: clamp(14px, 1.35vw, 18px); line-height: 1.5; color: var(--ink); word-break: break-all; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.stat-pill {
  display: flex; flex-direction: column; gap: 2px; min-width: 150px;
  padding: 14px 22px; border-radius: 28px;
  background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line);
}
.stat-pill .k { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.stat-pill .v { font-family: var(--display); font-size: 30px; line-height: 1.1; color: var(--ink); }
.stat-pill .v small { font-family: var(--body); font-size: 14px; color: var(--ink-3); margin-left: 4px; }
.stat-pill.gold .v { color: var(--gold); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* vault scene */
.vault { position: relative; aspect-ratio: 1 / 1; max-width: 640px; margin: 0 auto; width: 100%; }
.vault .glow {
  position: absolute; inset: -12%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(245, 197, 24, 0) 0deg, rgba(245, 197, 24, 0.16) 40deg, rgba(245, 197, 24, 0) 90deg, rgba(59, 130, 246, 0.10) 200deg, rgba(34, 197, 94, 0.10) 260deg, rgba(245, 197, 24, 0) 360deg);
  filter: blur(30px); animation: spin 28s linear infinite;
}
.vault svg { position: relative; width: 100%; height: 100%; display: block; overflow: visible; }
.ring-outer { animation: spin 140s linear infinite; transform-origin: 300px 300px; }
.ring-mid { animation: spin-rev 90s linear infinite; transform-origin: 300px 300px; }
.ring-inner { animation: spin 60s linear infinite; transform-origin: 300px 300px; }
.key { transform-box: fill-box; transform-origin: 26px 26px; }
.key.k1 { animation: turn 7s var(--ease) infinite; }
.key.k2 { animation: turn 7s var(--ease) infinite 1.75s; }
.key.k3 { animation: turn 7s var(--ease) infinite 3.5s; }
.key.k4 { animation: turn 7s var(--ease) infinite 5.25s; }
.core-hole { animation: pulse 3.2s ease-in-out infinite; transform-origin: 300px 300px; }
.frag {
  position: absolute; display: inline-flex; flex-direction: column; gap: 2px;
  padding: 10px 16px; border-radius: 18px;
  background: rgba(233, 220, 203, 0.96); color: #1a1200;
  font-size: 13px; font-weight: 700; line-height: 1.2;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.9);
  animation: float 6s ease-in-out infinite;
}
.frag small { font-weight: 600; color: #6b5030; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.frag.f1 { left: 2%; top: 14%; animation-delay: 0s; }
.frag.f2 { right: 0%; top: 24%; animation-delay: 1.5s; }
.frag.f3 { left: 6%; bottom: 20%; animation-delay: 3s; }
.frag.f4 { right: 4%; bottom: 12%; animation-delay: 4.5s; }

.hash-stream {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  overflow: hidden; white-space: nowrap; padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--mono); font-size: 12px; color: rgba(233, 220, 203, 0.28); letter-spacing: 0.08em;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.hash-stream span { display: inline-block; padding-right: 60px; animation: stream 70s linear infinite; }

/* sections */
.block { padding: 120px 0; position: relative; }
.block.tight { padding: 90px 0; }
.block + .block { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 0; max-width: 18ch; }
.section-head .lede { margin: 0; max-width: 46ch; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.prose p { color: var(--ink-2); }
.prose p strong { color: var(--ink); }
.card {
  background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-card); padding: 32px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-warm); box-shadow: 0 30px 60px -40px rgba(245, 197, 24, 0.35); }
.card.deep { background: var(--surface-3); }
.card.gold { background: linear-gradient(160deg, #5a3218, #3a1f0e); border-color: var(--line-warm); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .12s; }
[data-reveal][data-delay="2"] { transition-delay: .24s; }
[data-reveal][data-delay="3"] { transition-delay: .36s; }

/* flow diagram (what it is) */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; align-items: stretch; position: relative; }
.flow .node { position: relative; padding: 26px 22px 26px 0; }
.flow .node + .node { padding-left: 22px; }
.flow .node::before { content: ""; position: absolute; left: 0; top: 46px; bottom: 0; width: 1px; background: var(--line); }
.flow .node:first-child::before { display: none; }
.flow .n { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid var(--line-warm); color: var(--gold); font-family: var(--display); font-size: 20px; margin-bottom: 16px; background: rgba(0, 0, 0, .4); }
.flow h3 { font-size: 24px; margin-bottom: 8px; }
.flow p { color: var(--ink-3); font-size: 15px; margin: 0; }
.flow .t { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: .06em; margin-bottom: 8px; }
.flow-line { height: 2px; background: linear-gradient(90deg, var(--gold), rgba(245, 197, 24, .1)); background-size: 200% 100%; margin: 6px 0 26px; border-radius: 2px; animation: sweep 4s linear infinite; }

/* timeline (how a day works) */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px; border-radius: var(--r-card); background: var(--surface); border: 1px solid rgba(255, 255, 255, .06); transition: transform .3s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-3px); border-color: var(--line-warm); }
.step .clock { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--gold); letter-spacing: .06em; margin-bottom: 18px; }
.step .clock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.step .ico { width: 44px; height: 44px; margin-bottom: 18px; color: var(--ink-2); }
.step .ico svg { width: 100%; height: 100%; }
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 15.5px; margin: 0; overflow-wrap: anywhere; }
.step .num { position: absolute; top: 24px; right: 28px; font-family: var(--display); font-size: 40px; color: rgba(255, 255, 255, .12); line-height: 1; }
.split-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); color: var(--ink-2); }
.chip b { color: var(--gold); }

/* dashboard (the machine, running) */
.dash-status { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.dash-status .line { font-size: 17px; color: var(--ink-2); }
.dash-status .line b { color: var(--gold); }
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.counter { padding: 22px 24px; border-radius: 28px; background: var(--surface-3); border: 1px solid rgba(255, 255, 255, .06); min-width: 0; }
.counter .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 6px; }
.counter .v { font-family: var(--display); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; color: var(--ink); word-break: break-word; }
.counter .v.mono { font-family: var(--mono); font-size: 16px; line-height: 1.4; color: var(--ink-2); word-break: break-all; }
.counter .v.mono a { word-break: normal; overflow-wrap: anywhere; }
.counter .v small { font-family: var(--body); font-size: 14px; color: var(--ink-3); margin-left: 4px; }
.ledger { border-radius: var(--r-card); background: var(--surface-3); border: 1px solid rgba(255, 255, 255, .06); overflow: hidden; }
.ledger .head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ledger .head h3 { font-size: 22px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: top; white-space: nowrap; }
th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
td { color: var(--ink-2); }
td.mono, .addr { font-family: var(--mono); font-size: 13.5px; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(245, 197, 24, .05); }
.tag { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.tag.solved { background: rgba(34, 197, 94, .16); color: #7ee2a3; }
.tag.rolled { background: rgba(245, 197, 24, .14); color: var(--gold); }
.ledger .foot { padding: 18px 28px; color: var(--ink-3); font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .06); }

/* supply and flow */
.supply-big { font-family: var(--display); font-size: clamp(44px, 6.4vw, 84px); line-height: 1; color: var(--ink); margin: 10px 0 6px; letter-spacing: -0.01em; }
.supply-big small { display: block; font-family: var(--body); font-size: 15px; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-top: 10px; }
.splitbar { display: flex; height: 64px; border-radius: 22px; overflow: hidden; margin: 26px 0 16px; border: 1px solid rgba(255, 255, 255, .08); }
.splitbar span { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #1a1200; letter-spacing: .02em; transition: flex .6s var(--ease); }
.splitbar .burn { background: #f97316; color: #1a0a00; }
.splitbar .pot { background: var(--gold); }
.splitbar .trs { background: var(--ink-2); }
.splitbar .ref { background: var(--green); }
.legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.legend div { padding: 16px 18px; border-radius: 22px; background: var(--surface-3); border: 1px solid rgba(255, 255, 255, .06); font-size: 14.5px; color: var(--ink-2); }
.legend b { display: block; font-family: var(--display); font-size: 28px; color: var(--ink); margin-bottom: 4px; }
.legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.kv .counter .v { font-size: 26px; }

/* roadmap */
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.phase { position: relative; padding: 30px 26px; border-radius: var(--r-card); background: var(--surface); border: 1px solid rgba(255, 255, 255, .06); transition: transform .3s var(--ease), border-color .3s; }
.phase:hover { transform: translateY(-3px); border-color: var(--line-warm); }
.phase .when { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--gold); letter-spacing: .06em; margin-bottom: 16px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .4); border: 1px solid var(--line-warm); }
.phase.launch .when { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.phase h3 { font-size: 24px; margin-bottom: 12px; }
.phase ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.phase li { margin-bottom: 6px; }
.phase li::marker { color: var(--gold); }

/* founders */
.founders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.founder { padding: 28px 24px; border-radius: var(--r-card); background: var(--surface-3); border: 1px solid rgba(255, 255, 255, .06); display: flex; flex-direction: column; gap: 12px; transition: transform .3s var(--ease), border-color .3s; }
.founder:hover { transform: translateY(-3px); border-color: var(--line-warm); }
.founder .keyicon { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); border: 1px solid var(--line); }
.founder .keyicon svg { width: 30px; height: 30px; }
.founder .role { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.founder h3 { font-size: 22px; }
.founder .name { color: var(--ink); }
.founder .state { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--gold); padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-warm); width: fit-content; }
.founder .state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.founder .wallet { font-family: var(--mono); font-size: 13px; color: var(--ink-2); word-break: break-all; }
.founder .links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* audit and token block */
.plain { max-width: 820px; }
.plain p { color: var(--ink-2); font-size: 17.5px; }
.status-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px 24px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 28px 0; }
.status-row .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding-top: 4px; }
.status-row .v { color: var(--ink); font-size: 18px; }
.token-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.token-grid .row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); align-items: start; }
.token-grid .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding-top: 3px; }
.token-grid .v { color: var(--ink); min-width: 0; word-break: break-all; }
.ca-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 22px; border-radius: 24px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line-warm); margin-bottom: 26px; }
.ca-box .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.ca-box .addr { flex: 1 1 320px; min-width: 0; font-size: 15px; color: var(--ink); word-break: break-all; }
.copy { cursor: pointer; padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; color: var(--ink); font: 700 13px var(--body); transition: background .2s; }
.copy:hover { background: rgba(255, 255, 255, .08); }
.links-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* how to buy */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: buy; }
.steps li { counter-increment: buy; padding: 26px 22px; border-radius: 28px; background: var(--surface); border: 1px solid rgba(255, 255, 255, .06); }
.steps li::before { content: counter(buy, decimal-leading-zero); display: block; font-family: var(--display); font-size: 34px; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* faq */
.faq { max-width: 900px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--display); font-size: 22px; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--body); font-size: 26px; color: var(--gold); flex: 0 0 auto; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); padding-bottom: 22px; margin: 0; max-width: 72ch; }
details a { text-decoration: underline; text-underline-offset: 3px; }

/* risk */
.risk { padding: 80px 0; }
.risk .card { max-width: 980px; }
.risk h2 { font-size: 30px; margin-bottom: 16px; }
.risk p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 12px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--ink-3); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: center; justify-content: space-between; }
footer .brand { font-size: 20px; }
footer .links { display: flex; gap: 8px; flex-wrap: wrap; }
footer .links a { color: var(--ink-2); padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); font-weight: 600; }
footer .links a:hover { text-decoration: none; background: rgba(255, 255, 255, .06); }
footer .ca { font-family: var(--mono); font-size: 12.5px; word-break: break-all; flex-basis: 100%; }

/* docs page */
.docs-hero { padding: 150px 0 50px; border-bottom: 1px solid var(--line); background: radial-gradient(50% 60% at 85% 20%, rgba(76, 42, 24, .6), rgba(0, 0, 0, 0) 70%), var(--bg); }
.docs-hero h1 { font-size: clamp(42px, 5.6vw, 72px); margin-bottom: 14px; }
.docs { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 60px; padding: 50px var(--pad) 100px; }
aside.side { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; padding-right: 8px; }
aside.side .title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0 0 10px; }
aside.side a { display: block; color: var(--ink-3); font-size: 14.5px; padding: 6px 12px; border-left: 1px solid var(--line); border-radius: 0 12px 12px 0; transition: color .2s, background .2s; }
aside.side a:hover, aside.side a[aria-current="true"] { color: var(--ink); background: rgba(255, 255, 255, .05); text-decoration: none; border-left-color: var(--gold); }
aside.side .group + .group { margin-top: 22px; }
article.doc { max-width: 840px; min-width: 0; }
article.doc h2 { font-size: clamp(32px, 3.6vw, 44px); margin: 90px 0 18px; scroll-margin-top: 30px; }
article.doc h2:first-of-type { margin-top: 0; }
article.doc h3 { font-size: 24px; margin: 40px 0 12px; scroll-margin-top: 30px; }
article.doc p, article.doc li { color: var(--ink-2); }
article.doc ul, article.doc ol { padding-left: 22px; }
article.doc li { margin-bottom: 8px; }
article.doc li::marker { color: var(--gold); }
article.doc .callout { padding: 22px 26px; border-radius: 24px; background: var(--surface-3); border: 1px solid var(--line-warm); color: var(--ink-2); margin: 24px 0; }
article.doc .callout b { color: var(--gold); }
article.doc pre { font-family: var(--mono); font-size: 13.5px; line-height: 1.6; padding: 20px 24px; border-radius: 22px; background: #0a0705; border: 1px solid var(--line); color: var(--ink-2); overflow-x: auto; margin: 18px 0; white-space: pre-wrap; word-break: break-all; }
article.doc pre b { color: var(--gold); font-weight: 500; }
article.doc .chapter { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--gold); display: block; margin-bottom: 8px; }
.doc-table { border-radius: 22px; overflow-x: auto; border: 1px solid var(--line); margin: 20px 0; max-width: 100%; }
.doc-table td, .doc-table th { white-space: normal; }
.doc-table td.mono { word-break: break-all; min-width: 200px; }
article.doc span.mono, article.doc .mono { word-break: break-all; overflow-wrap: anywhere; }
.doc-table td.num { font-family: var(--display); font-size: 22px; color: var(--ink); white-space: nowrap; }
.live-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rules li { padding: 14px 18px; border-radius: 18px; background: var(--surface-3); border: 1px solid rgba(255, 255, 255, .06); font-size: 15.5px; }
.rules li b { color: var(--gold); }

/* animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes turn { 0%, 18% { transform: rotate(0deg); } 32%, 60% { transform: rotate(84deg); } 78%, 100% { transform: rotate(0deg); } }
@keyframes pulse { 0%, 100% { filter: drop-shadow(0 0 6px rgba(245, 197, 24, .5)); transform: scale(1); } 50% { filter: drop-shadow(0 0 22px rgba(245, 197, 24, .95)); transform: scale(1.06); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(245, 197, 24, .6); } 70% { box-shadow: 0 0 0 10px rgba(245, 197, 24, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0); } }
@keyframes stream { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sweep { from { background-position: 0% 0; } to { background-position: 200% 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* responsive */
@media (max-width: 1100px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .vault { max-width: 520px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow .node { padding: 22px 18px 22px 0; }
  .flow .node:nth-child(3)::before { display: none; }
  .flow .node:nth-child(odd) { padding-left: 0; }
  .timeline, .counters, .phases, .founders, .legend, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two { grid-template-columns: 1fr; gap: 36px; }
  .docs { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 760px) {
  :root { --pad: 20px; --r-card: 26px; }
  body { font-size: 16px; }
  .block { padding: 72px 0; }
  .block.tight { padding: 56px 0; }
  .top { padding: 14px 0; }
  .top nav {
    display: none; position: absolute; top: 76px; left: var(--pad); right: var(--pad);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px;
    background: #120a05; border: 1px solid var(--line-warm); border-radius: 26px; z-index: 30;
  }
  .top nav.open { display: flex; }
  .top nav a { padding: 12px 16px; }
  .top .cta { display: none; }
  .menu-btn { display: flex; }
  .hero { padding: 110px 0 70px; min-height: 0; }
  .hero-stats .stat-pill { flex: 1 1 140px; min-width: 0; }
  .stat-pill .v { font-size: 26px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .vault { max-width: 360px; }
  .frag { font-size: 11px; padding: 8px 12px; }
  .frag.f1 { left: -4%; top: 8%; }
  .frag.f2 { right: -4%; top: 20%; }
  .frag.f3 { left: -2%; bottom: 16%; }
  .frag.f4 { right: -2%; bottom: 6%; }
  .section-head { margin-bottom: 30px; }
  .flow { grid-template-columns: 1fr; }
  .flow .node { padding: 18px 0 !important; }
  .flow .node::before { display: none; }
  .timeline, .counters, .phases, .founders, .legend, .grid-2, .grid-3, .grid-4, .kv, .token-grid, .live-strip { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .status-row, .token-grid .row { grid-template-columns: 1fr; gap: 6px; }
  .splitbar { height: 54px; }
  .splitbar span { font-size: 12px; }
  summary { font-size: 19px; gap: 12px; overflow-wrap: anywhere; }
  .docs { grid-template-columns: minmax(0, 1fr); padding: 30px var(--pad) 70px; }
  aside.side { position: relative; top: 0; max-height: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  aside.side .group + .group { margin-top: 0; }
  article.doc h2 { margin-top: 60px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
