:root {
  --bg: #060506;
  --bg2: #0C0809;
  --card: rgba(255, 255, 255, .035);
  --card2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --fg: #ECF0F6;
  --muted: #8E98AA;
  --gold: #FF3B4A;
  --gold2: #FF9A8F;
  --gold3: #8E0E1C;
  --cyan: #F3F5F9;
  --green: #3DDC97;
  --red: #FF5D62;
  --r: 18px;
  --r-sm: 12px;
  --font: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.05; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 1; }
.muted { color: var(--muted); }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(780px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 59, 74, .45); color: #fff; }

.grain { position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-gold { background: linear-gradient(135deg, #FF6B6B, #E11D2E 50%, #9E0F1F); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 59, 74, .6), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255, 59, 74, .75), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line2); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(255, 59, 74, .55); background: rgba(255, 59, 74, .08); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(6, 5, 6, .72); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.brand b { color: var(--gold); font-weight: 700; }
.links { display: flex; gap: 4px; }
.links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 14.5px; transition: color .2s, background .2s; }
.links a:hover, .links a.on { color: var(--fg); background: rgba(255, 255, 255, .05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.x-link { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); color: var(--muted); }
.x-link:hover { color: var(--fg); border-color: var(--gold); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mnav { display: grid; padding: 8px 20px 20px; background: rgba(6, 5, 6, .96); border-bottom: 1px solid var(--line); }
.mnav[hidden] { display: none; }
.mnav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 260vh; }
.hero-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 90px 0 70px; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fade { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(60% 50% at 18% 45%, rgba(6, 5, 6, .92), transparent 70%),
  linear-gradient(180deg, rgba(6, 5, 6, .2), transparent 30%, transparent 70%, var(--bg)); }
.hero-in { position: relative; z-index: 2; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); font-size: 13px; color: var(--muted); backdrop-filter: blur(8px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } }
.hero h1 { font-size: clamp(46px, 8vw, 108px); font-weight: 700; margin: 26px 0 26px; letter-spacing: -.045em; line-height: .95; }
.hero h1 .ln { display: block; }
.grad { background: linear-gradient(100deg, var(--gold2) 0%, var(--gold) 40%, #fff 60%, var(--gold) 80%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; }
@keyframes shine { to { background-position: -220% 0; } }
.lead { max-width: 600px; font-size: clamp(17px, 1.6vw, 19.5px); color: #C3CBD8; line-height: 1.6; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-ctas.center { justify-content: center; }
.hero-meta { display: flex; gap: 0; margin-top: 54px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(6, 5, 6, .55); backdrop-filter: blur(12px); width: fit-content; max-width: 100%; }
.hero-meta > div { padding: 14px 24px; display: grid; gap: 2px; }
.hero-meta > div + div { border-left: 1px solid var(--line); }
.k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.v { font-size: 16px; color: var(--fg); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 1.5px solid var(--line2); border-radius: 14px; transform: translateX(-50%); z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- strip ---------- */
.strip { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg2); }
.strip-track { display: flex; width: max-content; gap: 34px; padding: 18px 0; animation: marquee 38s linear infinite; font-family: var(--mono); font-size: 13.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.strip-track i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 11vw, 140px) 0; position: relative; isolation: isolate; overflow-x: clip; }
.sec-alt { background: linear-gradient(180deg, var(--bg2), var(--bg) 85%); border-top: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.center .eyebrow { justify-content: center; }
.sec h2, .cta h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -.035em; }
.sub { margin-top: 20px; color: #AAB3C2; font-size: 17.5px; max-width: 640px; }
.center .sub { margin-inline: auto; }
.footnote { margin-top: 22px; font-size: 13.5px; color: var(--muted); max-width: 760px; }
.badge-live { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(61, 220, 151, .12); color: var(--green); border: 1px solid rgba(61, 220, 151, .3); letter-spacing: .06em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

/* tags & states */
.tag { font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; letter-spacing: .04em; }
.tag-red { background: rgba(255, 93, 98, .14); color: var(--red); }
.tag-green { background: rgba(61, 220, 151, .14); color: var(--green); }
.tag-gold { background: rgba(255, 59, 74, .14); color: var(--gold); }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-family: var(--mono); padding: 5px 11px; border-radius: 999px; margin-top: 18px; }
.state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state-live { color: var(--green); background: rgba(61, 220, 151, .1); }
.state-soon { color: var(--gold); background: rgba(255, 59, 74, .1); }

/* ---------- drift ---------- */
.drift { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.drift-card { border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: 24px; }
.drift-top { display: flex; align-items: center; gap: 12px; font-size: 14px; margin-bottom: 18px; }
.drift-rows { display: grid; gap: 10px; }
.drow { display: grid; grid-template-columns: 92px 1fr; gap: 6px 14px; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.drow .lbl { font-size: 13px; color: var(--muted); }
.drow .val { font-family: var(--mono); font-size: 15px; overflow-wrap: anywhere; }
.drow .bits { grid-column: 1 / -1; font-family: var(--mono); font-size: 11.5px; color: #5C6577; letter-spacing: .02em; overflow-wrap: anywhere; line-height: 1.5; }
.bits b { color: var(--red); background: rgba(255, 93, 98, .16); border-radius: 2px; font-weight: 500; }
.drift-verdict { margin-top: 16px; font-weight: 600; font-size: 15px; }
.drift-verdict.bad { color: var(--red); }
.drift-verdict.good { color: var(--green); }

/* ---------- lab ---------- */
.lab { display: grid; grid-template-columns: 340px 1fr; gap: 20px; }
.lab-ctrl, .lab-stage, .calc { border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: 26px; }
.lab-ctrl { display: grid; gap: 22px; align-content: start; }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(0, 0, 0, .35); border-radius: 14px; padding: 5px; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg-k { font-size: 14px; color: var(--muted); margin-bottom: -12px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 42px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s; }
.seg input:checked + span { background: rgba(255, 59, 74, .16); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 59, 74, .4); }
.seg input:focus-visible + span { outline: 2px solid var(--cyan); }
.field { display: grid; gap: 10px; }
.field label { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); gap: 10px; }
.field label b { color: var(--fg); font-weight: 500; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--gold) var(--p, 50%), rgba(255, 255, 255, .1) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--gold); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); box-shadow: 0 0 0 6px rgba(255, 59, 74, .15); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); }
input[type="text"], input[type="number"] { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .35); color: var(--fg); font-size: 15px; }
input[type="text"]:focus, input[type="number"]:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(255, 59, 74, .18); }
.seed-row { display: flex; gap: 8px; }
.hint { font-size: 13px; color: var(--muted); padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line2); }
.lab-stage { display: grid; grid-template-rows: 1fr auto; gap: 18px; }
.ring-wrap { position: relative; width: min(100%, 470px); aspect-ratio: 1; margin: 0 auto; }
#ring { width: 100%; height: 100%; overflow: visible; }
.ring-core { position: absolute; inset: 31%; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 4px; background: radial-gradient(circle, rgba(255, 59, 74, .1), rgba(6, 5, 6, .9) 70%); border: 1px solid var(--line2); transition: box-shadow .4s, border-color .4s; }
.ring-core.ok { border-color: rgba(61, 220, 151, .6); box-shadow: 0 0 60px -10px rgba(61, 220, 151, .5); }
.ring-core.fail { border-color: rgba(255, 93, 98, .6); box-shadow: 0 0 60px -10px rgba(255, 93, 98, .5); }
.ring-core.busy { border-color: rgba(255, 59, 74, .6); box-shadow: 0 0 60px -10px rgba(255, 59, 74, .45); }
.core-k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.core-v { font-size: clamp(18px, 2.6vw, 26px); font-weight: 700; }
.core-s { font-size: 11.5px; color: var(--muted); }
.node { cursor: pointer; }
.node circle.halo { fill: transparent; transition: fill .3s; }
.node circle.body { fill: #10141B; stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; transition: fill .35s, stroke .35s; }
.node text { font-family: var(--mono); font-size: 11px; fill: var(--muted); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.node:hover circle.body, .node:focus-visible circle.body { stroke: var(--gold); }
.node:focus { outline: none; }
.node.evil circle.body { stroke: var(--red); stroke-dasharray: 3 3; }
.node.busy circle.body { stroke: var(--gold); animation: pulse 1s ease-in-out infinite; }
.node.agree circle.body { fill: rgba(61, 220, 151, .2); stroke: var(--green); }
.node.agree text { fill: var(--green); }
.node.dissent circle.body { fill: rgba(255, 93, 98, .2); stroke: var(--red); }
.node.dissent text { fill: var(--red); }
@keyframes pulse { 50% { stroke-opacity: .3; } }
.spoke { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.spoke.hot { stroke: var(--gold); stroke-dasharray: 4 8; animation: flow .6s linear infinite; }
.spoke.ok { stroke: rgba(61, 220, 151, .5); }
.spoke.bad { stroke: rgba(255, 93, 98, .5); }
@keyframes flow { to { stroke-dashoffset: -12; } }
.orbit { fill: none; stroke: rgba(255, 255, 255, .06); stroke-dasharray: 2 6; }
.lab-stats, .calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.calc-grid { grid-template-columns: repeat(2, 1fr); }
.lab-stats > div, .calc-grid > div { background: var(--bg2); padding: 14px 16px; display: grid; gap: 4px; }
.lab-log { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.log-head, .log-row { display: grid; grid-template-columns: 70px 1.1fr 70px 2.4fr 90px; gap: 14px; padding: 12px 20px; align-items: center; }
.log-head { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.log-body { max-height: 360px; overflow: auto; }
.log-row { font-family: var(--mono); font-size: 13px; border-bottom: 1px solid var(--line); animation: rowin .4s var(--ease) both; }
.log-row:last-child { border-bottom: 0; }
.log-row .h { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #C3CBD8; }
.log-row .ok { color: var(--green); } .log-row .bad { color: var(--red); }
.log-empty { padding: 22px 20px; }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; position: relative; }
.step { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: 26px 24px 24px; transition: transform .35s var(--ease), border-color .35s, background .35s; overflow: hidden; }
.step:hover { transform: translateY(-4px); border-color: rgba(255, 59, 74, .35); }
.step-n { font-size: 13px; color: var(--muted); }
.step-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin: 20px 0 22px; background: rgba(255, 59, 74, .08); border: 1px solid rgba(255, 59, 74, .25); }
.step-ico svg, .tier svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: #AAB3C2; font-size: 15px; }

/* ---------- quorum / calc ---------- */
.penalties { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.penalties li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 18px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); font-size: 15px; }
.penalties b { color: var(--red); font-weight: 500; white-space: nowrap; }
.calc { display: grid; gap: 22px; }
.calc-out { display: grid; gap: 16px; }
.meter { position: relative; height: 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); overflow: visible; }
.meter-fill { height: 100%; border-radius: 12px; background: linear-gradient(90deg, var(--gold3), var(--gold), var(--green)); width: 0; transition: width .45s var(--ease), background .3s; }
.meter-fill.bad { background: linear-gradient(90deg, #8A2C30, var(--red)); }
.meter-mark { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #fff; border-radius: 2px; transition: left .45s var(--ease); }
.meter-mark::after { content: 'needed'; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font: 10px var(--mono); color: var(--muted); }
.calc-verdict { font-size: 18px; font-weight: 600; padding: 14px 18px; border-radius: var(--r-sm); text-align: center; transition: background .3s, color .3s; }
.calc-verdict.ok { background: rgba(61, 220, 151, .1); color: var(--green); }
.calc-verdict.bad { background: rgba(255, 93, 98, .1); color: var(--red); }

/* ---------- economics ---------- */
.split-bar { display: flex; height: 16px; border-radius: 16px; overflow: hidden; gap: 3px; }
.split-bar span { display: block; }
.split-bar .s1 { flex: 80; } .split-bar .s2, .split-bar .s3 { flex: 10; }
.wd-empty { font-size: 14px; }
.page404 { min-height: 100vh; display: grid; place-items: center; border: 0; }
.s1 { background: linear-gradient(90deg, var(--gold3), var(--gold)); }
.s2 { background: var(--red); }
.s3 { background: var(--cyan); }
.split-legend { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.split-legend li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 12px; align-items: center; font-size: 15px; }
.split-legend i { width: 12px; height: 12px; border-radius: 4px; }
.split-legend b { color: var(--muted); font-weight: 500; font-size: 13px; }
.split-legend span { min-width: 92px; text-align: right; }
.token-card { margin-top: 32px; padding: 22px; border-radius: var(--r); border: 1px solid rgba(255, 59, 74, .28); background: linear-gradient(135deg, rgba(255, 59, 74, .08), rgba(255, 59, 74, .01)); }
.tc-top { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.tc-ca { margin-top: 14px; font-size: 14px; color: #C3CBD8; overflow-wrap: anywhere; }
.tc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: 28px; transition: transform .35s var(--ease), border-color .35s; }
.tier:hover { transform: translateY(-4px); border-color: var(--line2); }
.tier-hot { border-color: rgba(255, 59, 74, .35); background: linear-gradient(180deg, rgba(255, 59, 74, .08), var(--card)); }
.tier-k { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; }
.tier h3 { font-size: 24px; margin: 14px 0 6px; }
.tier-hw { font-family: var(--mono); font-size: 13px; color: var(--cyan); margin-bottom: 14px; }
.tier p:not(.tier-k):not(.tier-hw) { color: #AAB3C2; font-size: 15px; }

/* ---------- roadmap ---------- */
.road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.road-i { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--card); }
.road-i h3 { font-size: 19px; margin-bottom: 8px; }
.road-i p { color: #AAB3C2; font-size: 14.5px; }
.road-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; border: 2px solid var(--gold); }
.road-i.done .road-dot { background: var(--green); border-color: var(--green); box-shadow: 0 0 16px rgba(61, 220, 151, .6); }
.road-i.done { border-color: rgba(61, 220, 151, .25); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(255, 59, 74, .3); background: var(--card2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 17px; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 24px var(--mono); color: var(--gold); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: #AAB3C2; }

/* ---------- cta / footer ---------- */
.cta { padding: clamp(90px, 12vw, 150px) 0; position: relative; overflow: hidden; text-align: center; border-top: 1px solid var(--line); }
.cta::before { content: ''; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 59, 74, .14), transparent 60%); pointer-events: none; }
.cta-in { position: relative; }
.cta-logo { margin: 0 auto 28px; filter: drop-shadow(0 0 30px rgba(255, 59, 74, .45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.foot { border-top: 1px solid var(--line); padding: 34px 0; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }
.foot-in p:nth-child(2) { max-width: 520px; }

/* ---------- wallet dialog ---------- */
.wallet-dlg { border: 1px solid var(--line2); border-radius: 22px; background: #0D1117; color: var(--fg); padding: 0; width: min(440px, calc(100% - 32px)); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8); }
.wallet-dlg::backdrop { background: rgba(3, 4, 6, .7); backdrop-filter: blur(6px); }
.wd-in { padding: 24px; display: grid; gap: 16px; }
.wd-head { display: flex; justify-content: space-between; align-items: center; }
.wd-head h3 { font-size: 20px; }
.wd-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; font-size: 22px; cursor: pointer; }
.wd-list { display: grid; gap: 8px; }
.wd-opt { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); cursor: pointer; font-weight: 600; text-align: left; width: 100%; transition: border-color .2s, background .2s; }
.wd-opt:hover { border-color: var(--gold); background: rgba(255, 59, 74, .06); }
.wd-opt img { width: 28px; height: 28px; border-radius: 8px; }
.wd-opt small { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 12px; }
.wd-status { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .links { display: none; }
  .burger { display: block; }
  .steps, .road { grid-template-columns: repeat(2, 1fr); }
  .lab { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-fade { background: linear-gradient(180deg, rgba(6, 5, 6, .35), rgba(6, 5, 6, .55) 50%, var(--bg)); }
  .two, .drift, .tiers { grid-template-columns: 1fr; }
  #economics .two > :first-child { order: 2; }
  .lab-stats { grid-template-columns: repeat(2, 1fr); }
  .log-head { display: none; }
  .log-row { grid-template-columns: 56px 1fr auto; gap: 4px 12px; }
  .log-row .ord { grid-column: 2; color: var(--muted); }
  .log-row .t { grid-column: 3; grid-row: 1; text-align: right; }
  .log-row .h { grid-column: 1 / -1; }
  .log-row .vt { grid-column: 3; grid-row: 2; text-align: right; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .steps, .road { grid-template-columns: 1fr; }
  .hero { padding-top: 104px; }
  .hero-meta { flex-direction: column; width: 100%; }
  .hero-meta > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero-ctas .btn { flex: 1 1 100%; }
  #walletBtn { padding: 0 12px; font-size: 13px; }
  .lab-ctrl, .lab-stage, .calc, .drift-card { padding: 20px; }
  .drow { grid-template-columns: 1fr; }
  .split-legend li { grid-template-columns: 12px 1fr auto; }
  .split-legend b { display: none; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}


/* =================== CRIMSON FX LAYER =================== */
body { background:
  radial-gradient(1200px 600px at 80% -10%, rgba(255, 59, 74, .07), transparent 60%), var(--bg); }
.grad { background: linear-gradient(100deg, #FF9A8F 0%, #FF3B4A 35%, #fff 55%, #FF3B4A 75%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* scanlines */
.scan { position: fixed; inset: 0; pointer-events: none; z-index: 59; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px); }
.scan::after { content: ''; position: absolute; left: 0; right: 0; height: 22vh; top: -22vh; background: linear-gradient(180deg, transparent, rgba(255, 59, 74, .045), transparent); animation: sweep 7s linear infinite; }
@keyframes sweep { to { transform: translateY(144vh); } }

/* progress + rail */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 80; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #8E0E1C, var(--gold), #fff); box-shadow: 0 0 12px rgba(255, 59, 74, .8); }
.rail.off { opacity: 0; }
.rail { position: fixed; left: 22px; bottom: 26px; z-index: 40; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; transition: opacity .4s; }
.rail i { width: 38px; height: 1px; background: var(--gold); }
.rail #railN { color: var(--gold); }
@media (max-width: 1200px) { .rail { display: none; } }

/* loader */
.loader { position: fixed; inset: 0; z-index: 200; background: #050304; display: grid; place-items: center; clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(.76, 0, .24, 1); animation: ldFailsafe .01s 5s forwards; }
.loader.done { clip-path: inset(0 0 100% 0); }
@keyframes ldFailsafe { to { visibility: hidden; } }
.ld-in { width: min(420px, 84vw); display: grid; gap: 18px; }
.ld-logo { filter: drop-shadow(0 0 22px rgba(255, 59, 74, .8)); animation: ldPulse 1.2s ease-in-out infinite; }
@keyframes ldPulse { 50% { filter: drop-shadow(0 0 6px rgba(255, 59, 74, .4)); opacity: .75; } }
.ld-lines { min-height: 96px; font-size: 12.5px; color: #A79A9C; display: grid; align-content: end; gap: 4px; }
.ld-lines span::before { content: '> '; color: var(--gold); }
.ld-lines span.ok::after { content: '  ok'; color: var(--green); }
.ld-bar { height: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 0; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.ld-foot { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.ld-foot #ldPct { color: var(--fg); }

/* hero scroll story */
.hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 59, 74, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 59, 74, .07) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(70% 60% at 70% 50%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 70% 50%, #000, transparent 75%); opacity: .55; }
.hero-in { will-change: opacity, transform; }
.hero-act2 { position: absolute; left: 0; right: 0; bottom: 11vh; text-align: center; z-index: 3; opacity: 0; pointer-events: none; padding: 0 20px; will-change: opacity, transform; }
.hero-act2 .eyebrow { justify-content: center; }
.act2-h { font-size: clamp(36px, 6vw, 84px); font-weight: 700; letter-spacing: -.045em; line-height: .98; }
.act2-h span { display: block; }
.act2-s { margin-top: 18px; color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.hero-hud { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3; display: flex; justify-content: space-between; padding: 0 max(22px, calc((100% - 1180px) / 2)); font-size: 11px; letter-spacing: .16em; color: var(--muted); pointer-events: none; }
.hero-hud #hudB { color: var(--gold); }
.hero .scroll-cue { display: none; }
@media (max-width: 600px), (max-height: 820px) { .hero-meta { display: none; } }
@media (max-height: 820px) and (min-width: 861px) { .hero h1 { font-size: clamp(44px, 6.6vw, 88px); margin: 18px 0; } .hero-ctas { margin-top: 24px; } }
@media (max-width: 860px) { .hero { height: 230vh; } .hero-hud #hudA, .hero-hud #hudC { display: none; } .hero-hud { justify-content: center; } }

/* redaction bars */
.redact { position: relative; white-space: nowrap; color: #fff; }
.redact::after { content: ''; position: absolute; inset: 2px -4px 0; border-radius: 2px; background: repeating-linear-gradient(-45deg, #FF3B4A 0 5px, #B3121F 5px 10px); transform-origin: 100% 50%; transition: transform .8s cubic-bezier(.76, 0, .24, 1); transition-delay: var(--rd, 1.1s); }
.redact:nth-of-type(2)::after { --rd: 1.35s; } .redact:nth-of-type(3)::after { --rd: 1.6s; }
.reveal.in .redact::after { transform: scaleX(0); }
.redact.open::after { transform: scaleX(0); }

/* custom cursor */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255, 59, 74, .7); box-shadow: 0 0 24px rgba(255, 59, 74, .25); }
.cursor-ring.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 59, 74, .08); border-color: var(--gold); }
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }

/* spotlight + tilt cards */
.spot { position: relative; isolation: isolate; transform-style: preserve-3d; }
.spot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 59, 74, .16), transparent 45%); }
.spot::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px; opacity: 0; transition: opacity .4s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 59, 74, .9), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* big outlined section numbers */
.sec-head { position: relative; }
.sec-head[data-num]::before { content: attr(data-num); position: absolute; right: -10px; top: -70px; font: 700 clamp(120px, 18vw, 240px)/1 var(--font); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(255, 59, 74, .16); pointer-events: none; z-index: -1; }
.sec-head.center[data-num]::before { right: 50%; transform: translateX(50%); }
.two .reveal { position: relative; }

/* steps progress line */
.steps-track { height: 2px; background: rgba(255, 255, 255, .07); margin: -20px 0 28px; border-radius: 2px; overflow: hidden; }
.steps-track i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #8E0E1C, var(--gold)); box-shadow: 0 0 10px var(--gold); }

/* scramble glyph colour */
.scr { color: var(--gold); opacity: .85; }
.grad .scr { -webkit-text-fill-color: var(--gold); }

/* glitch on logo hover */
.brand:hover img { animation: glitch .5s steps(2) 1; }
@keyframes glitch { 20% { transform: translate(-2px, 1px); filter: hue-rotate(20deg); } 40% { transform: translate(2px, -1px); } 60% { transform: translate(-1px, -1px); } 80% { transform: translate(1px, 2px); } }

/* section entrance line under eyebrow */
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.center .eyebrow::before { display: none; }

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .hero { height: auto; } .hero-sticky { position: relative; min-height: 100svh; }
  .hero-act2 { display: none; }
  .redact::after { transform: scaleX(0); }
  .scan::after { display: none; }
}
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }
.hero .reveal.in .redact:not(.open)::after { transform: scaleX(1); }
.hero .redact.open::after { transform: scaleX(0); transition-delay: 0s; }
