@charset "utf-8";

@font-face { font-family: "Avenir"; src: url("../fonts/Avenir-Roman.woff") format("woff"), url("../fonts/Avenir-Roman.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Berkeley Mono"; src: url("../fonts/BerkeleyMono-Regular.woff") format("woff"), url("../fonts/BerkeleyMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Berkeley Mono"; src: url("../fonts/BerkeleyMono-Bold.woff") format("woff"), url("../fonts/BerkeleyMono-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* Black, grain, one soft light. White ink; green/red only for up/down. */
:root {
  --bg: #000;
  --card: #0b0b0c;
  --ink: #fff;
  --ink-2: rgba(255, 255, 255, 0.72);
  --ink-3: rgba(255, 255, 255, 0.48);
  --ink-4: rgba(255, 255, 255, 0.28);
  --line: rgba(255, 255, 255, 0.08);
  --up: #0ead69;
  --down: #de3c4b;
  --mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Avenir", "Avenir Next", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1160px;
  --r: 28px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink-2); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, canvas { display: block; max-width: 100%; }
var { font-style: italic; font-family: "Times New Roman", Georgia, serif; color: var(--ink); }
code { font-family: var(--mono); font-size: 0.88em; color: var(--ink); }
b { color: var(--ink); font-weight: 400; }

/* film grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
/* the soft light behind a headline */
.glow {
  position: absolute; left: 50%; top: -18vw; z-index: 0; pointer-events: none;
  width: min(1400px, 160vw); aspect-ratio: 1.6; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05) 45%, transparent 75%),
    radial-gradient(closest-side at 35% 60%, rgba(120, 140, 255, 0.1), transparent 70%),
    radial-gradient(closest-side at 68% 55%, rgba(14, 173, 105, 0.07), transparent 70%);
  filter: blur(30px);
}

/* same side margins as the header */
.wrap { position: relative; z-index: 1; width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 16px var(--gutter);
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.nav-logo img { width: 96px; height: auto; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-3); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 999px;
  font: 400 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 0; transition: transform 0.15s, background 0.15s, opacity 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: #e9e9e9; }
.btn-dark { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.btn-dark:hover { background: rgba(255, 255, 255, 0.14); }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.center .btns { justify-content: center; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--mono); font-weight: 400; color: var(--ink); letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.04; max-width: 12ch; }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; max-width: 24ch; }
h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -0.02em; }
.lede { font-size: clamp(17px, 1.3vw, 19px); max-width: 30em; margin-top: 24px; }
.kicker { font: 400 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }

.pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px; padding: 9px 16px 9px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); font: 400 12px/1 var(--mono); letter-spacing: 0.06em; color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); flex: none; }
.dot.on { background: var(--up); animation: pulse 2s infinite; }
.dot.snap { background: #c9a227; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14, 173, 105, 0.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(14, 173, 105, 0); } }

/* ---------- cards ---------- */
.card { position: relative; border-radius: var(--r); padding: clamp(20px, 2.6vw, 32px); background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
figcaption { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.hint { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }

.canvas-wrap { position: relative; width: 100%; height: 300px; }
.canvas-wrap canvas { width: 100%; height: 100%; touch-action: pan-y; }
.tip { position: absolute; z-index: 5; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s;
  min-width: 170px; max-width: 250px; padding: 10px 12px; border-radius: 12px; background: rgba(20, 20, 22, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 12px 30px -10px #000; font: 400 12px/1.5 var(--mono); color: var(--ink-2); }
.tip.show { opacity: 1; transform: none; }
.tip b { color: var(--ink); }
.tip .row { display: flex; justify-content: space-between; gap: 14px; }
.tip .h { color: var(--ink); margin-bottom: 4px; }

/* ---------- hero ---------- */
/* sections that fit one screen */
.screen { min-height: calc(100vh - 70px); min-height: calc(100svh - 70px); display: flex; align-items: center; }
.screen > .wrap { width: 100%; }

.hero { position: relative; padding: 32px 0 48px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero { padding-top: 56px; } }
.hero-card { padding: 20px 20px 16px; }
.hero-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hero-title { font: 400 14px/1 var(--mono); color: var(--ink); display: flex; align-items: center; gap: 12px; }
.hero-spot { font: 400 13px/1 var(--mono); color: var(--ink-3); }
.hero-spot b { font-weight: 700; margin-left: 6px; }
.hero-canvas { height: clamp(260px, min(46vh, 34vw), 460px); }
@media (max-width: 960px) { .hero-canvas { height: 340px; } }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--up); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); animation: pulse 2s infinite; }

/* lower bound, expected, upper bound */
.bounds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.bounds div { padding: 12px 14px; border-radius: 14px; background: #141416; }
.bounds dt { font-size: 12.5px; color: var(--ink-3); }
.bounds dd { margin-top: 4px; font: 700 clamp(17px, 1.6vw, 22px)/1.1 var(--mono); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bounds .mid { background: #1d1d20; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.bounds dd small { display: block; margin-top: 4px; font: 400 11px/1 var(--mono); color: var(--ink-3); letter-spacing: 0; }
.key { display: inline-flex; align-items: center; gap: 7px; margin-right: 18px; font: 400 12px/1 var(--mono); color: var(--ink-3); }
.key::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.key.down, .key.up { color: var(--ink-3) !important; }
.key.down::before { background: var(--down); }
.key.up::before { background: var(--up); }
.key.line::before { height: 2px; width: 14px; border-radius: 0; background: #fff; }
.key.band::before { height: 0; width: 14px; border-radius: 0; border-top: 1px dashed rgba(255, 255, 255, 0.7); }
.stamp { font: 400 12px/1 var(--mono); color: var(--ink-3); }

/* date strip */
.dates { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.dates::-webkit-scrollbar { display: none; }
.dates button { flex: none; font: 400 12.5px/1 var(--mono); color: var(--ink-3); background: transparent; border: 0; cursor: pointer; padding: 9px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.dates button:hover { color: var(--ink); }
.dates button[aria-pressed="true"] { color: #000; background: #fff; box-shadow: none; }

/* text beside a visual */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split.flip > :first-child { order: 2; }
@media (max-width: 960px) { .split, .split.flip { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; } }
.side p:not(.formula) { margin-top: 18px; max-width: 32em; }
.stack { display: grid; gap: 16px; }
.center-h { max-width: none; margin: 0 auto clamp(32px, 4vw, 48px); text-align: center; }
.row-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 28px; }
.row-head { flex-direction: column; align-items: flex-start; }
.row-head h2 { max-width: none; font-size: clamp(24px, 2.7vw, 46px); }
@media (min-width: 961px) { .row-head h2 { white-space: nowrap; } }
.readout { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 18px; font: 400 13px/1.4 var(--mono); color: var(--ink-3); }
.readout i { font-style: normal; }
.readout b { font-weight: 700; margin: 0 6px; font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
.block { padding: clamp(64px, 8vw, 96px) 0; }
.head { margin-bottom: clamp(36px, 5vw, 56px); text-align: center; }
.head h2 { margin: 0 auto; }
.head p:not(.kicker) { max-width: 38em; margin: 22px auto 0; font-size: 18px; }

/* three steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { display: flex; flex-direction: column; }
.step-n { font: 400 13px/1 var(--mono); color: var(--ink-4); margin-bottom: 18px; }
.step > p:not(.step-n):not(.hint) { margin-top: 12px; font-size: 16px; }
.step .canvas-wrap, .step .ticket { margin-top: auto; }
.step h3 + p { margin-bottom: 20px; }
.step-canvas { height: 160px; }
.ticket { padding: 20px; border-radius: 20px; background: #141416; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.t-q { font: 400 14px/1.4 var(--mono); color: var(--ink-2); }
.t-q b { white-space: nowrap; }
.t-when { margin-top: 4px; font: 400 12px/1.4 var(--mono); color: var(--ink-3); }
.t-price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
.t-price b { font: 700 54px/1 var(--mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.t-price { gap: 2px; }
.t-price span { font: 700 54px/1 var(--mono); letter-spacing: -0.04em; color: var(--ink); }
.gauge { position: relative; margin-top: 16px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); }
.gauge i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: #fff; transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.t-foot { margin-top: 12px; font: 400 12px/1.4 var(--mono); color: var(--ink-3); }

/* up / down */
.up { color: var(--up) !important; }
.down { color: var(--down) !important; }
.mcard i { font-style: normal; }
.updown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 26px; }
.ud { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 18px; background: #141416; }
.ud span { font-size: 14px; color: var(--ink-3); }
.ud b { font: 700 clamp(24px, 3vw, 36px)/1 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .updown { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ud:last-child { grid-column: span 2; } }

/* crowd stepper */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 24px; background: rgba(255, 255, 255, 0.06); }
.seg button { font: 400 14px/1 var(--sans); color: var(--ink-3); background: none; border: 0; cursor: pointer; padding: 10px 18px; border-radius: 999px; transition: color 0.15s, background 0.15s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: #000; background: #fff; }
.step-text { min-height: 3.2em; margin: 20px 0 8px; font-size: 17px; color: var(--ink-2); max-width: 44em; }
.crowd-canvas { height: clamp(220px, 32vh, 300px); }

/* market maker */
.sand-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 960px) { .sand-grid { grid-template-columns: minmax(0, 1fr); } }
.sand-canvas { height: clamp(280px, 48vh, 440px); }
#sandCanvas { cursor: crosshair; }
.formula { margin-top: 24px; padding: 14px 18px; border-radius: 16px; background: #141416; font: 400 19px/1.4 "Times New Roman", Georgia, serif; color: var(--ink); text-align: center; }
.formula sub, .formula sup { font-size: 0.68em; }
.slider { display: grid; grid-template-columns: auto 1fr 3.5em; align-items: center; gap: 14px; margin: 20px 0 8px; font-size: 14px; color: var(--ink-3); }
.slider b { text-align: right; font: 700 15px/1 var(--mono); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; }
.calc-out div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.calc-out dt { font-size: 14px; color: var(--ink-3); }
.calc-out dd { font: 400 14px/1.3 var(--mono); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* traders and builders */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.duo-card { display: flex; flex-direction: column; }
.duo-card > p { margin-top: 14px; }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding: 14px 16px 14px 44px; border-radius: 16px; background: #141416; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fff; }
.duo-card .btns { margin-top: 20px; }
.code { margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: #141416; overflow-x: auto; font: 400 13px/1.7 var(--mono); color: var(--ink); }
.code .c { color: var(--ink-4); }
.links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.links a { display: inline-block; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 14px; text-decoration: none; color: var(--ink); }
.links a:hover { background: rgba(255, 255, 255, 0.13); }

/* markets */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mcard { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; border-radius: 22px; background: var(--card); text-decoration: none; color: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.04); transition: background 0.15s; }
.mcard:hover { background: #121214; }
.mcard .m-name { font: 400 15px/1.2 var(--mono); color: var(--ink); }
.mcard .m-sub { font-size: 13px; color: var(--ink-3); }
.mcard canvas { width: 100%; height: 56px; margin: 12px 0; }
.mcard .m-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-3); }
.mcard .m-row b { font: 400 13px/1.5 var(--mono); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.planned { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.planned li { padding: 9px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.planned .soon { box-shadow: none; color: var(--ink-3); }

/* bitcoin facts */
.facts { display: grid; gap: 12px; }
.fact p { margin-top: 12px; font-size: 16px; }

/* investors */
.row-head p { max-width: 38em; }
.investors { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .investors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.investors li { display: flex; align-items: center; justify-content: center; height: clamp(96px, 11vw, 132px); border-radius: 22px; }
.investors img { width: auto; height: var(--h); max-width: 70%; object-fit: contain; opacity: 0.78; transition: opacity 0.15s; }
.investors li:hover img { opacity: 1; }

/* CTA + footer */
.cta { position: relative; overflow: clip; padding: clamp(140px, 18vw, 240px) 0 clamp(110px, 14vw, 180px); }
.cta .glow { top: 10%; }
.cta h2 { margin: 0 auto; font-size: clamp(38px, 5.6vw, 76px); }
.cta p { margin-top: 18px; font-size: 20px; }
.foot { position: relative; z-index: 1; padding: 44px 0 52px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.foot-top { display: flex; align-items: center; justify-content: space-between; }
.foot-top img { width: 90px; height: auto; }
.foot-top a { text-decoration: none; color: var(--ink-2); }
.disclaimer { margin-top: 24px; max-width: 60em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; }
.foot-links a { text-decoration: none; color: var(--ink-2); }
.foot-links a:hover { color: var(--ink); }
.copyright { margin-top: 16px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot.on { animation: none; }
  html { scroll-behavior: auto; }
}

/* the market maker: trades -> market maker -> forecast */
.maker-head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: 28px; }
.maker-head p { font-size: 17px; }
@media (max-width: 960px) { .maker-head { grid-template-columns: minmax(0, 1fr); } }
.flow { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 14px; align-items: stretch; }
@media (max-width: 960px) { .flow { grid-template-columns: minmax(0, 1fr); } }
.flow-col { display: flex; flex-direction: column; min-width: 0; }
.flow-lbl { font: 400 12px/1 var(--mono); color: var(--ink-3); margin-bottom: 12px; }
.tickets { list-style: none; display: grid; gap: 8px; }
.tickets li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px;
  background: #141416; font: 400 13px/1.2 var(--mono); color: var(--ink-3); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s, background 0.3s, box-shadow 0.3s; }
.tickets li .side { font-weight: 700; margin-right: 8px; }
.tickets li.buy .side { color: var(--up); }
.tickets li.sell .side { color: var(--down); }
.tickets li .res { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.tickets li.queued { opacity: 0.45; }
.tickets li.active { color: var(--ink); background: #1f1f23; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); transform: translateX(10px); }
.tickets li.active::after { content: ""; position: absolute; right: -16px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg); animation: nudge 0.9s ease-in-out infinite; }
@keyframes nudge { 50% { right: -22px; } }
.tickets li.done { color: var(--ink-2); }
@media (max-width: 960px) { .tickets li.active { transform: none; } .tickets li.active::after { display: none; } }
.mm { flex: 1; display: grid; gap: 8px; padding: 10px; border-radius: 16px; background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.mm-fn { padding: 14px; border-radius: 12px; background: #0e0e10; }
.fn-name { font: 400 14px/1.2 var(--mono); color: var(--ink); }
.fn-sub { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.fn-out { margin-top: 10px; font: 700 18px/1.2 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.fn-out.flash { animation: flash 0.8s ease-out; }
@keyframes flash { from { color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, 0.9); } }
.sim-canvas { flex: 1; min-height: 230px; height: auto; }
.flow-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #141416; }
.sim-what { flex: 1 1 380px; font-size: 15.5px; color: var(--ink); min-height: 2.9em; display: flex; align-items: center; }
.flow-ctl { display: flex; align-items: center; gap: 14px; flex: 0 1 300px; }
.sim-steps { list-style: none; display: flex; gap: 6px; flex: 1; }
.sim-steps li { flex: 1; }
.sim-steps button { width: 100%; height: 4px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.16); cursor: pointer; padding: 0; }
.sim-steps button[aria-current="true"] { background: #fff; }
.sim-play { font: 400 12px/1 var(--mono); color: var(--ink-2); background: rgba(255, 255, 255, 0.07); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.sim-play:hover { background: rgba(255, 255, 255, 0.13); }

/* scroll-driven market: the section pins while you scroll through it */
#how { padding-bottom: 0; }
.scrolly { position: relative; height: 620vh; margin-top: 24px; }
.sticky { position: sticky; top: 70px; height: calc(100vh - 70px); height: calc(100svh - 70px); display: flex; align-items: center; }
.sticky-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.sticky-text { display: flex; flex-direction: column; gap: 16px; }
.sim-count { font: 400 12px/1 var(--mono); color: var(--ink-3); letter-spacing: 0.06em; }
.sticky-text .sim-what { flex: none; font-family: var(--mono); font-size: clamp(20px, 1.9vw, 28px); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); min-height: 5.4em; display: block; }
.mm-fns { display: grid; gap: 8px; }
.sim-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.sim-bar i { display: block; height: 100%; width: 0; background: #fff; }
.sim-card { padding: 16px; }
.sim-card canvas { display: block; width: 100%; height: min(640px, calc(100vh - 150px)); height: min(640px, calc(100svh - 150px)); }
@media (max-width: 960px) {
  .sticky-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sticky-text { order: 2; gap: 10px; }
  .sticky-text .sim-what { font-size: 17px; min-height: 4.2em; }
  .mm-fns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-fn { padding: 10px; }
  .mm-fn .fn-sub { display: none; }
  .fn-out { font-size: 14px; margin-top: 6px; }
  .sim-card { padding: 10px; }
  .sim-card canvas { height: calc(100svh - 70px - 200px); min-height: 280px; }
}
.sim-key { list-style: none; display: flex; gap: 18px; font: 400 12px/1 var(--mono); color: var(--ink-3); }
.sim-key li { display: flex; align-items: center; gap: 8px; }
.k-coin { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #000; font: 700 11px/1 var(--mono); }
.k-slip { padding: 3px 5px; border-radius: 4px; background: #111; box-shadow: inset 0 0 0 1.5px #fff; color: #fff; font: 700 10px/1 var(--mono); }
.rules { list-style: none; counter-reset: r; display: grid; gap: 12px; margin-top: 20px; max-width: 34em; }
.rules li { counter-increment: r; position: relative; padding-left: 38px; font-size: 15.5px; line-height: 1.5; }
.rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 2px; font: 400 12px/1.6 var(--mono); color: var(--ink-4); }
.rules b { display: block; font: 400 15px/1.4 var(--mono); color: var(--ink); margin-bottom: 2px; }
.k-who { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #232327; color: #fff; font-size: 9px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5); }
.k-who.k-bot { border-radius: 5px; }

/* how it works: a looping voxel market */
.how-cap { margin-top: 20px; min-height: 5.6em; max-width: 24em; font: 400 clamp(18px, 1.6vw, 22px)/1.4 var(--mono) !important; letter-spacing: -0.02em; color: var(--ink) !important; transition: opacity 0.3s; }
.how-steps { list-style: none; display: flex; gap: 10px; margin-top: 28px; }
.how-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; font: 400 15px/1 var(--mono); color: var(--ink-3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); transition: color 0.3s, background 0.3s; }
.how-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-size: 12px; }
.how-steps li.on { color: #000; background: #fff; box-shadow: none; }
.how-steps li.on span { background: #000; color: #fff; }
.vox-card { padding: 0; overflow: hidden; }
.vox-card canvas { display: block; width: 100%; height: clamp(360px, 62vh, 620px); }
@media (max-width: 960px) { .vox-card canvas { height: min(92vw, 420px); } }
.hero-title .mood { font-weight: 700; margin-left: 2px; }
