@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Inter+Tight:wght@500;600;700&family=JetBrains+Mono:wght@400;500&family=Syncopate:wght@700&display=swap");

:root {
  --bg: #020203;
  --text: #eef0f4;
  --body: #b6bcc7;
  --muted: #9a9fa9;
  --dim: #868b95;
  --soft: #c9cdd5;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .15);
  --pos: #5fd39a;
  --neg: #f07a6e;
  --chrome: linear-gradient(180deg, #fff 0%, #eceff4 30%, #a3a9b5 48%, #5e6470 53%, #c8cdd6 64%, #fff 100%);
  --chrome-h: linear-gradient(100deg, #fff 0%, #c3c9d4 28%, #6e7583 50%, #dfe3ea 72%, #fff 100%);
  --btn: linear-gradient(180deg, #fff 0%, #e3e6ec 45%, #a9aeb8 52%, #e9ecf1 70%, #fff 100%);
  --surface: linear-gradient(180deg, rgba(15, 16, 20, .94), rgba(8, 9, 11, .96));
  --sans: "Inter", system-ui, sans-serif;
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wide: "Syncopate", "Inter Tight", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html {
  background: radial-gradient(90% 60% at 50% 20%, #23252b 0%, #08080a 55%, var(--bg) 100%) fixed var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
#liquid { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
/* darken the liquid away from the hero so long sections stay readable */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(130% 90% at 50% 10%, rgba(2, 2, 3, .05) 20%, rgba(2, 2, 3, .7) 100%); }
a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line2); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid #dfe3ea; outline-offset: 3px; border-radius: 6px; }
::selection { background: #dfe3ea; color: #050507; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--muted); }
.up { color: var(--neg); }   /* price up = worse for renters */
.down { color: var(--pos); }

h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; color: var(--text); }
h1 { font-size: clamp(42px, 6.6vw, 72px); line-height: 1; letter-spacing: -.04em; }
h2 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.04; letter-spacing: -.03em; }
h3 { font-size: 20px; letter-spacing: -.01em; }
/* each line is a mask; its inner span rises out of it (motion.js) */
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: inline-block; padding-bottom: .04em; }
/* chrome type: each line gets its own band, plus one highlight that sweeps across once the line is up */
.ln > span, .chrome {
  background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .95) 50%, transparent 58%) 160% 0 / 260% 100% no-repeat, var(--chrome);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.shine .ln > span { animation: sheen 1.5s cubic-bezier(.4, 0, .2, 1) forwards; }
.shine .ln:nth-child(2) > span { animation-delay: .12s; }
@keyframes sheen { from { background-position: 160% 0, 0 0; } to { background-position: -60% 0, 0 0; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: "✦"; color: var(--text); font-size: 11px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px var(--sans); color: var(--text); text-decoration: none; cursor: pointer; white-space: nowrap;
  background: linear-gradient(#0c0c10, #0c0c10) padding-box, var(--chrome-h) border-box;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn.solid { color: #050507; background: var(--btn); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 14px 34px -14px rgba(220, 226, 238, .55); }
.btn:hover { transform: translateY(-1px); }
.btn.solid:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 18px 40px -12px rgba(220, 226, 238, .75); }
.btn:active { transform: none; }
.btn.sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(2, 2, 3, .72); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 700 14px var(--wide); letter-spacing: .3em; text-transform: uppercase; }
.brand svg { width: 26px; height: 26px; flex: none; }
.top nav { display: flex; gap: 26px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; transition: color .2s; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.top .btn { height: 38px; padding: 0 18px; font-size: 14px; }

/* hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 72px; padding-bottom: 72px; min-height: calc(100svh - 68px - 50px); justify-content: center; }
.hero.sub { min-height: 0; padding-top: 88px; padding-bottom: 44px; }
.emblem { width: 112px; height: 112px; margin-bottom: 30px; filter: drop-shadow(0 20px 44px rgba(220, 226, 238, .28)); }
.hero .eyebrow { padding: 8px 14px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(2, 2, 3, .5); backdrop-filter: blur(8px); margin-bottom: 26px; }
.lede { font-size: 17px; line-height: 1.7; color: var(--body); max-width: 60ch; margin: 24px auto 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; padding: 0; list-style: none; }
.pills li { font: 12px var(--mono); letter-spacing: .06em; color: var(--soft); padding: 6px 13px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(2, 2, 3, .5); backdrop-filter: blur(8px); }
.status { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font: 12px var(--mono); letter-spacing: .04em; color: var(--muted); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: var(--pos); box-shadow: 0 0 0 3px rgba(95, 211, 154, .15); vertical-align: 1px; }
.dot.off { background: var(--neg); box-shadow: 0 0 0 3px rgba(240, 122, 110, .15); }
/* the one page-load moment: hero pieces rise in order */
.hero > * { animation: rise .9s var(--ease) both; }
.hero > :nth-child(2) { animation-delay: .08s; } .hero > :nth-child(3) { animation-delay: .16s; }
.hero > :nth-child(4) { animation-delay: .24s; } .hero > :nth-child(5) { animation-delay: .32s; }
.hero > :nth-child(n+6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* price ticker */
.ticker { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); background: rgba(2, 2, 3, .62); backdrop-filter: blur(10px); font: 500 13px var(--mono); }
.ticker .track { display: inline-flex; gap: 44px; padding: 14px 22px; animation: mqx 70s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker span { color: var(--dim); letter-spacing: .06em; }
.ticker b { color: var(--text); font-weight: 500; margin-left: 10px; }
.ticker i { font-style: normal; margin-left: 8px; }
@keyframes mqx { to { transform: translateX(-50%); } }

/* bands and section heads */
.band { padding-top: clamp(80px, 11vw, 136px); padding-bottom: 0; }
.band:last-of-type { padding-bottom: clamp(80px, 11vw, 136px); }
.head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px 64px; align-items: end; margin-bottom: 44px; }
.head .eyebrow { grid-column: 1 / -1; }
.head p { margin: 0; color: var(--body); max-width: 52ch; }
.statement { font: 500 clamp(24px, 3vw, 34px)/1.3 var(--head); letter-spacing: -.02em; text-align: center; max-width: 30ch; margin: 0 auto 56px; text-wrap: balance; }
.statement span { color: var(--muted); }

/* surfaces */
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .07); overflow: hidden; }
.panel { padding: 28px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 30px 26px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b { display: block; font: 600 48px/1.05 var(--head); letter-spacing: -.03em; margin-bottom: 14px; }
.fact span { color: var(--body); font-size: 14px; }

/* the board: one shared log price axis */
.board, .plain { width: 100%; border-collapse: collapse; }
.board th, .plain th { text-align: left; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 16px 20px; border-bottom: 1px solid var(--line); }
.board td { padding: 0 20px; height: 62px; border-bottom: 1px solid var(--line); }
.board tbody tr:not(.detail):hover td { background: rgba(255, 255, 255, .025); }
.board tr:last-child td, .plain tr:last-child td { border-bottom: 0; }
.r { text-align: right; }
.board .r, .plain .r { text-align: right; }
.board .gpu button { all: unset; cursor: pointer; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.board .gpu button:focus-visible { outline: 2px solid #dfe3ea; outline-offset: 4px; border-radius: 4px; }
.board .gpu button::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform .2s var(--ease); }
.board .gpu button[aria-expanded="true"]::before { transform: rotate(45deg); }
.board .gpu small { display: block; font: 11px var(--mono); letter-spacing: .04em; color: var(--dim); margin: 2px 0 0 16px; }
.board .price { font: 600 19px var(--head); letter-spacing: -.01em; }
.axiscol { width: 40%; }
.strip { position: relative; height: 22px; }
.strip .bar { position: absolute; top: 8px; height: 6px; border-radius: 3px; min-width: 3px; background: linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .22)); }
.strip .tick { position: absolute; top: 1px; width: 3px; height: 20px; margin-left: -1.5px; border-radius: 2px; background: var(--chrome); box-shadow: 0 0 12px rgba(230, 234, 242, .55); }
.axis { position: relative; height: 14px; font: 10px var(--mono); color: var(--dim); letter-spacing: .04em; text-transform: none; }
.axis span { position: absolute; transform: translateX(-50%); }
.board tr.detail td { background: rgba(255, 255, 255, .02); height: auto; padding: 22px 20px 26px; }
.detail-grid { display: grid; grid-template-columns: 290px 1fr; gap: 32px; }
.detail dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 6px 16px; font-size: 14px; align-content: start; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; text-align: right; white-space: nowrap; font-family: var(--mono); font-size: 13px; }
.spark { width: 100%; height: 130px; display: block; }
.spark path.line { fill: none; stroke: #e6eaf2; stroke-width: 1.6; }
.spark path.area { fill: rgba(255, 255, 255, .06); }
.spark text { font: 10px var(--mono); fill: var(--dim); }

/* segmented controls (history range) */
.ranges { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .03); }
.ranges button { font: 12px var(--mono); padding: 4px 11px; border: 0; border-radius: 7px; background: none; cursor: pointer; color: var(--muted); }
.ranges button[aria-pressed="true"] { background: var(--btn); color: #050507; }
.note { font-size: 13px; color: var(--dim); margin: 14px 0 0; }

/* marquee */
.mq { overflow: hidden; white-space: nowrap; padding: 44px 0; margin-top: clamp(80px, 11vw, 136px); border-block: 1px solid var(--line); background: rgba(2, 2, 3, .4); }
.mq .track { display: inline-flex; align-items: center; gap: 48px; animation: mqx 48s linear infinite; }
.mq span { font: 700 clamp(40px, 6vw, 76px)/1 var(--wide); letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28);
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .9) 50%, transparent 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; animation: mqShine 7s linear infinite; }
.mq i { font-style: normal; color: var(--muted); font-size: 22px; }
@keyframes mqShine { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { padding: 26px 24px; display: flex; flex-direction: column; }
.step .n { font: 500 12px var(--mono); color: var(--dim); letter-spacing: .1em; }
.step h3 { margin: 18px 0 10px; }
.step p { margin: 0 0 22px; color: var(--body); font-size: 15px; }
.step ul { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font: 12px/1.5 var(--mono); color: var(--soft); }
.step li::before { content: "— "; color: var(--dim); }

/* terminal */
.term .bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--dim); }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #3a3d44; }
.term .state { margin-left: auto; letter-spacing: .14em; text-transform: uppercase; }
.query form { display: flex; align-items: center; gap: 10px; margin: 18px 18px 14px; padding: 6px 6px 6px 16px; border: 1px solid var(--line2); border-radius: 12px; background: rgba(0, 0, 0, .4); }
.query form:focus-within { border-color: rgba(255, 255, 255, .35); }
.query form::before { content: "›"; font: 16px var(--mono); color: var(--muted); }
.query input { flex: 1; min-width: 0; font: 15px var(--mono); border: 0; padding: 8px 0; background: transparent; color: var(--text); }
.query input:focus-visible { outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px; }
.chips button { font: 12px var(--mono); color: var(--soft); border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); border-radius: 8px; padding: 6px 11px; cursor: pointer; transition: border-color .2s, color .2s; }
.chips button:hover { border-color: rgba(255, 255, 255, .4); color: var(--text); }
.query .out { margin: 16px 18px 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .45); font: 13px/1.75 var(--mono); color: var(--soft);
  min-height: 240px; max-height: 400px; overflow: auto; white-space: pre-wrap; font-variant-numeric: tabular-nums; }
.query .out:empty::before { content: "Press Run, or pick a command above."; color: var(--dim); }
.query .out .q { color: var(--text); }

/* forms */
.controls { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.controls label { display: grid; gap: 8px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.controls input, .controls select { font: 15px var(--sans); padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; background: rgba(0, 0, 0, .45); color: var(--text); width: 170px; }
.controls input:focus-visible, .controls select:focus-visible { outline: none; border-color: rgba(255, 255, 255, .45); }
.controls select option { background: #0c0c10; }
.result { font-size: 16px; color: var(--body); margin: 0 0 20px; }
.result b { font: 600 26px var(--head); letter-spacing: -.02em; color: var(--text); }

/* tables */
.plain { font-size: 15px; }
.plain td { padding: 12px 20px; border-bottom: 1px solid var(--line); }
.plain td.num, .plain .num { font-family: var(--mono); font-size: 13px; }
.plain td.cheap { color: var(--pos); background: rgba(95, 211, 154, .06); }
.plain tr.best td { background: rgba(255, 255, 255, .045); }
.plain tr.best td:first-child { box-shadow: inset 2px 0 0 #e6eaf2; }
.panel .plain { border: 1px solid var(--line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.scroll { overflow-x: auto; }

/* API cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { padding: 28px; }
.card .eyebrow { margin-bottom: 16px; }
.card h3 { font-size: 24px; margin-bottom: 20px; }
.card p { color: var(--body); font-size: 14px; margin: 18px 0 0; }
.cmd { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .45); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font: 13px var(--mono); color: var(--soft); background: none; padding: 0; }
.copy { flex: none; font: 12px var(--mono); color: var(--soft); border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); border-radius: 7px; padding: 5px 10px; cursor: pointer; }
.copy:hover { color: var(--text); border-color: rgba(255, 255, 255, .4); }

pre, code { font-family: var(--mono); font-size: 13px; }
pre { scrollbar-width: thin; scrollbar-color: #3a3d44 transparent; background: rgba(0, 0, 0, .5); color: var(--soft); border: 1px solid var(--line); padding: 16px 18px; border-radius: 12px; overflow: auto; line-height: 1.7; }
:not(pre) > code { background: rgba(255, 255, 255, .07); color: var(--text); padding: 1px 6px; border-radius: 5px; }

/* closing */
.closing { text-align: center; padding-top: clamp(100px, 14vw, 170px); padding-bottom: clamp(100px, 14vw, 170px); }
.closing .emblem { width: 84px; height: 84px; margin-bottom: 26px; }
.closing h2 { font-size: clamp(36px, 5.4vw, 60px); }
.closing p { color: var(--body); margin: 18px 0 32px; }

/* docs */
.doc { display: grid; grid-template-columns: 200px 1fr; gap: 48px; padding-top: 16px; padding-bottom: 96px; }
.doc aside { position: sticky; top: 96px; align-self: start; display: grid; gap: 4px; }
.doc aside a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 12px; border-left: 1px solid var(--line); }
.doc aside a:hover { color: var(--text); border-left-color: #e6eaf2; }
.doc article { max-width: 78ch; min-width: 0; padding: clamp(24px, 4vw, 44px); }
.doc article > p, .doc li { color: var(--body); }
.doc h2 { font-size: 30px; margin: 56px 0 14px; }
.doc h2:first-child { margin-top: 0; }
.doc ol { padding-left: 20px; display: grid; gap: 8px; }
.doc .plain { border: 1px solid var(--line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; margin: 8px 0 16px; }
.doc .plain td:first-child { width: 46%; }

.empty { padding: 36px; text-align: center; color: var(--muted); }

/* footer */
footer { border-top: 1px solid var(--line); background: rgba(2, 2, 3, .82); backdrop-filter: blur(12px); padding: 56px 0 64px; font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; }
footer p { color: var(--dim); max-width: 38ch; margin: 18px 0 0; }
footer h3 { font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
footer .wrap > div:not(.foot-brand) { display: grid; gap: 8px; align-content: start; }
footer .wrap > div a:not(.brand) { color: var(--muted); text-decoration: none; }
footer .wrap > div a:not(.brand):hover { color: var(--text); }

@media (max-width: 960px) {
  .steps, .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .axiscol, .hide-sm, .hide-m { display: none; }
  .top .wrap { gap: 16px; height: 60px; }
  .top nav { gap: 16px; }
  .top nav a { font-size: 13px; }
  .brand { letter-spacing: .2em; font-size: 12px; }
  .brand svg { width: 22px; height: 22px; }
  .hero { min-height: 0; padding-top: 56px; }
  .head { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .board td, .board th { padding-left: 14px; padding-right: 14px; }
  .doc { grid-template-columns: 1fr; }
  .doc aside { position: static; display: flex; flex-wrap: wrap; }
  .controls label { flex: 1 1 140px; }
  .controls input, .controls select { width: 100%; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .steps, .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .fact b { font-size: 40px; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- mobile menu ---------- */
.menu { display: none; margin-left: auto; font: 500 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
@media (max-width: 960px) {
  .menu { display: block; }
  .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--pad) 18px; background: #020203; box-shadow: 0 24px 48px rgba(0, 0, 0, .6); border-bottom: 1px solid var(--line); }
  .top.open nav { display: flex; }
  .top nav a { font-size: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .top .btn { display: none; }
}

/* ---------- shared page bits ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); padding: 4px 9px; border-radius: 6px; background: rgba(255, 255, 255, .05); }
.badge.live { color: var(--pos); } .badge.warn { color: #f0b35a; } .badge.off { color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kv > div { padding: 22px 24px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin: -1px 0 0 -1px; }
.kv .k { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.kv .v { font: 600 22px var(--head); letter-spacing: -.01em; }
.big-price { font: 600 clamp(44px, 7vw, 80px)/1 var(--head); letter-spacing: -.04em; margin-top: 22px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; justify-content: center; }
.big-price small { font: 400 16px var(--sans); color: var(--muted); letter-spacing: 0; }
.big-price .chg { font: 500 15px var(--mono); letter-spacing: 0; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { display: inline-flex; gap: 10px; padding: 9px 14px; border: 1px solid var(--line2); border-radius: 10px; background: rgba(255, 255, 255, .03); text-decoration: none; font-size: 14px; }
.links a span { font-family: var(--mono); font-size: 13px; color: var(--soft); }
.links a:hover { border-color: rgba(255, 255, 255, .4); }
.pbar { display: grid; grid-template-columns: 130px 1fr 80px; gap: 14px; align-items: center; padding: 8px 0; font-size: 14px; }
.pbar .track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .06); position: relative; overflow: hidden; }
.pbar .track i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 3px; background: var(--chrome-h); }
.pbar span:last-child { text-align: right; font: 13px var(--mono); }
.section-gap { padding-top: 56px; }
.sub-h { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 16px; }

/* ---------- markets ---------- */
.mk { display: grid; grid-template-columns: 290px 1fr 300px; gap: 14px; padding-top: 24px; padding-bottom: 80px; }
.mk-list { display: flex; flex-direction: column; max-height: calc(100vh - 110px); position: sticky; top: 86px; }
.mk-list input { margin: 14px; font: 14px var(--sans); padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; background: rgba(0, 0, 0, .45); color: var(--text); }
.mk-head, .mk-row { display: grid; grid-template-columns: 1fr 74px 60px; gap: 8px; padding: 0 16px; }
.mk-head { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mk-rows { overflow: auto; flex: 1; }
.mk-row { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr 74px 60px; gap: 8px; width: 100%; padding: 10px 16px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.mk-row:hover { background: rgba(255, 255, 255, .03); }
.mk-row[aria-current="true"] { background: rgba(255, 255, 255, .06); box-shadow: inset 2px 0 0 #e6eaf2; }
.mk-row:focus-visible { outline: 2px solid #dfe3ea; outline-offset: -2px; }
.mk-row b { font-weight: 600; display: block; }
.mk-row small { font: 11px var(--mono); color: var(--dim); }
.mk-row .r { font: 13px var(--mono); align-self: center; }
.mk-main { display: grid; gap: 14px; align-content: start; min-width: 0; }
.mk-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 24px; }
.mk-sym { display: flex; align-items: center; gap: 12px; font: 600 20px var(--head); }
.mk-px { font: 600 40px/1.1 var(--head); letter-spacing: -.03em; margin-top: 6px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mk-px small { font: 14px var(--sans); color: var(--muted); letter-spacing: 0; }
.mk-px .chg { font: 500 14px var(--mono); letter-spacing: 0; }
.mk-kpis { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 28px; font-size: 13px; color: var(--muted); align-content: center; }
.mk-kpis b { display: block; color: var(--text); font: 500 14px var(--mono); }
.chart-box { position: relative; padding: 14px 16px 10px; }
.chart-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-bar .ranges { margin: 0; }
.ohlc { font: 12px var(--mono); color: var(--dim); margin-left: auto; }
.ohlc b { color: var(--text); font-weight: 500; margin: 0 10px 0 4px; }
.chart-box canvas { width: 100%; height: 380px; display: block; cursor: crosshair; }
.chart-empty { position: absolute; inset: 60px 16px 16px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.7; }
.mk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mk-side { display: grid; gap: 14px; align-content: start; }
.tape { font: 12px var(--mono); }
.tape > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.tape > div:last-child { border-bottom: 0; }
.tape span:first-child { color: var(--muted); }
@media (max-width: 1180px) { .mk { grid-template-columns: 260px 1fr; } .mk-side { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .mk { grid-template-columns: 1fr; }
  .mk-list { position: static; max-height: 320px; }
  .mk-side, .mk-split { grid-template-columns: 1fr; }
  .chart-box canvas { height: 300px; }
}

/* ---------- token ---------- */
.ca { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 20px; }
.ca code { font: 14px var(--mono); padding: 10px 14px; border: 1px solid var(--line2); border-radius: 10px; background: rgba(0, 0, 0, .45); word-break: break-all; }
.tbd { padding: 26px 28px; border: 1px dashed var(--line2); border-radius: 16px; color: var(--muted); }
.chips4 { display: flex; gap: 8px; flex-wrap: wrap; }
.chips4 div { font: 12px var(--mono); padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; display: flex; gap: 8px; }
.chips4 span { color: var(--dim); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.three .card h3 { font-size: 26px; margin-bottom: 8px; }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; } }

/* ---------- roadmap ---------- */
.progress { display: flex; align-items: center; gap: 18px; justify-content: center; margin-top: 26px; font: 13px var(--mono); color: var(--muted); }
.progress .track { width: min(320px, 60vw); height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress .track i { display: block; height: 100%; background: var(--chrome-h); }
.phase { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 32px; }
.phase + .phase { margin-top: 14px; }
.phase .n { font: 500 12px var(--mono); color: var(--dim); letter-spacing: .1em; }
.phase h3 { font-size: 28px; margin: 12px 0 8px; }
.phase .when { margin-bottom: 14px; }
.phase .lead { color: var(--body); margin: 0; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.items li:last-child { border-bottom: 0; }
.items b { display: block; font-weight: 600; }
.items p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.st { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; align-self: start; text-align: center; background: rgba(255, 255, 255, .05); color: var(--muted); }
.st.done { color: var(--pos); background: rgba(95, 211, 154, .08); }
.st.building { color: #f0b35a; background: rgba(240, 179, 90, .08); }
@media (max-width: 860px) { .phase { grid-template-columns: 1fr; gap: 16px; padding: 24px; } }

/* ---------- changelog ---------- */
.log { display: grid; gap: 14px; }
.entry { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 28px 32px; }
.entry time { font: 13px var(--mono); color: var(--muted); display: block; margin-top: 8px; }
.entry .ver { font: 600 22px var(--head); }
.entry h3 { margin-bottom: 10px; }
.entry ul { margin: 0; padding-left: 18px; color: var(--body); display: grid; gap: 6px; }
@media (max-width: 760px) { .entry { grid-template-columns: 1fr; gap: 10px; padding: 22px; } }
.chart-empty[hidden] { display: none; }
.mk-row > span:first-child { min-width: 0; }
.mk-row b, .mk-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar { grid-template-columns: minmax(84px, auto) minmax(60px, 1fr) auto; }
.pbar span:last-child { white-space: nowrap; }
.mk-head, .mk-row { grid-template-columns: minmax(0, 1fr) 66px 52px; }
@media (max-width: 1180px) { .mk { grid-template-columns: 290px 1fr; } .mk-list { position: static; max-height: 640px; } }
@media (max-width: 860px) { .mk { grid-template-columns: 1fr; } .mk-list { max-height: 320px; } }

/* ---------- motion (motion.js): intro, scroll choreography, footer wordmark ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.top { transition: transform .45s var(--ease); }

/* intro: draw the hourglass outline, then light the chrome */
#intro { position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center; transition: opacity .7s var(--ease), visibility .7s;
  animation: introOut .7s 3.2s forwards; } /* safety net: never stays up if the script fails */
#intro.done { opacity: 0; visibility: hidden; }
#intro .box { position: relative; width: min(38vmin, 280px); aspect-ratio: 1; }
#intro svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#intro path { stroke-dasharray: 2000; stroke-dashoffset: 2000; fill: none; stroke: url(#introG); stroke-width: 1.4; stroke-linejoin: round; }
#intro .lit-mark { opacity: 0; transform: scale(.96); transition: opacity 1s var(--ease), transform 1.4s var(--ease); filter: drop-shadow(0 0 40px rgba(230, 236, 248, .35)); }
#intro.lit .lit-mark { opacity: 1; transform: none; }
#intro.lit svg:first-child { opacity: 0; transition: opacity .8s; }
#intro .flash { position: absolute; inset: -30%; background: radial-gradient(circle, rgba(255, 255, 255, .55), transparent 45%); opacity: 0; mix-blend-mode: screen; }
#intro.lit .flash { animation: flash 1.1s var(--ease); }
#intro .word { position: absolute; left: -50%; right: -50%; top: calc(100% + 26px); text-align: center; font: 700 14px var(--wide); letter-spacing: .62em; padding-left: .62em; text-transform: uppercase; opacity: 0; transition: opacity 1s .3s; }
#intro.lit .word { opacity: 1; }
@keyframes flash { 30% { opacity: .9; } 100% { opacity: 0; } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
.seen #intro { display: none; }
@media (max-width: 760px), (prefers-reduced-motion: reduce) { #intro { display: none; } }

/* GSAP drives the hero entrance and the marquee instead of the CSS fallbacks */
html.entering .hero > * { animation: none; }
html.gsap .mq .track { animation: none; }
.mark { display: flex; justify-content: center; }
.btn { translate: var(--tx, 0) var(--ty, 0); transition: transform .2s var(--ease), box-shadow .2s var(--ease), translate .35s var(--ease); }

/* phones and reduced-power devices: IntersectionObserver reveals (html.io) */
html.io .ln > span { transition: transform 1.1s var(--ease); }
html.io .lines:not(.in) .ln > span { transform: translateY(115%); }
html.io .surface { transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.io .surface:not(.in) { opacity: 0; transform: translateY(40px); }

/* big outline numbers behind section heads, drifting with the scroll */
.head[data-n] { position: relative; isolation: isolate; }
.head[data-n]::before { content: attr(data-n); position: absolute; right: -.04em; top: -.42em; z-index: -1; font: 700 clamp(110px, 15vw, 230px)/1 var(--wide); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07); pointer-events: none; translate: 0 var(--np, 0px); }

/* manifesto: words light up in chrome as you scroll */
.statement .w { transition: opacity .2s; }
.statement .w.hl { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* footer wordmark: rises with the last scroll, catches the pointer's light */
.bigword { margin: 56px 0 0; font: 700 clamp(40px, 10.4vw, 158px)/.85 var(--wide); letter-spacing: .04em; text-align: center; text-transform: uppercase; white-space: nowrap; user-select: none;
  background: radial-gradient(circle at var(--wx, 50%) var(--wy, 50%), rgba(255, 255, 255, .85), transparent 22%) 0 0 / 0 0 no-repeat, linear-gradient(rgba(255, 255, 255, .22), rgba(255, 255, 255, .02) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.bigword.lit { background-size: 100% 100%, 100% 100%; }
