@font-face { font-family: 'Inter'; src: url('fonts/Inter-latin-var.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/JetBrainsMono-latin-var.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0b1216; --p1: #0f1a1f; --p2: #13232a; --p3: #182c34;
  --ln: #1b2c33; --ln2: #273c45;
  --tx: #e3ecec; --t2: #a3b3b6; --t3: #71858b; --t4: #4b5e64;
  --ac: #50d2c1; --ac2: #97fce4; --rd: #ed7088; --am: #d8b46a; --vi: #a39be6;
  --ac-a: rgba(80, 210, 193, .11); --rd-a: rgba(237, 112, 136, .11); --am-a: rgba(216, 180, 106, .11);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r: 4px;
  --hdr: 64px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--tx); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: 'cv11', 'calt'; text-rendering: optimizeLegibility; }
html.lock, html.lock body { overflow: hidden; }
img, svg, canvas { display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code { font-family: var(--mono); font-size: .86em; color: var(--ac2); background: var(--p2); border: 1px solid var(--ln); border-radius: 3px; padding: 0 .3em; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ac2); outline-offset: 2px; border-radius: 2px; }
::selection { background: rgba(80, 210, 193, .3); color: var(--tx); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ac { color: var(--ac2); } .up { color: var(--ac); } .dn { color: var(--rd); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ac); color: #08201d; font-weight: 600; border-radius: var(--r); transition: top .15s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--ln2); border-radius: 4px; } ::-webkit-scrollbar-track { background: var(--bg); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; background: var(--p2); border: 1px solid var(--ln2); border-radius: var(--r); color: var(--tx); font-weight: 500; font-size: 14px; line-height: 1; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease); }
.btn:hover { background: var(--p3); border-color: var(--t4); }
.btn:active { transform: translateY(1px); }
.btn.pri { background: var(--ac); border-color: var(--ac); color: #08201d; font-weight: 600; }
.btn.pri:hover { background: var(--ac2); border-color: var(--ac2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--t2); }
.btn.ghost:hover { color: var(--tx); border-color: var(--ln2); background: rgba(19, 35, 42, .6); }
.btn.lg { height: 46px; padding: 0 20px; font-size: 15px; }

/* ---------- header */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--hdr); border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s, -webkit-backdrop-filter .25s, backdrop-filter .25s; }
.hdr.solid { background: rgba(11, 18, 22, .74); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--ln); }
.hdr-in { position: relative; z-index: 2; height: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -.015em; color: var(--tx); min-height: 44px; }
.logo .wm { font-weight: 700; letter-spacing: -.02em; }
.logo .wm b { color: var(--ac); font-weight: 700; }
.logo-mark .lm-arc, .logo-mark .lm-head, .logo-mark .lm-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .logo-mark .lm-arc { animation: draw .7s var(--ease) .1s both; }
.js .logo-mark .lm-head { animation: draw .35s var(--ease) .7s both; }
.js .logo-mark .lm-line { animation: draw .7s var(--ease) .3s both; }
.logo:hover .lm-arc { animation: redraw .7s var(--ease) both; }
.logo:hover .lm-head { animation: redraw .35s var(--ease) .55s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.rbt { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 9px; margin-left: -6px; border: 1px solid rgba(80, 210, 193, .3); border-radius: 13px; background: rgba(80, 210, 193, .1); color: var(--ac2); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: border-color .15s, color .15s; }
.rbt:hover { border-color: var(--ac); color: var(--tx); }
.rbt svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 10px; color: var(--t2); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 1px; background: var(--ac2); transform: scaleX(0); transform-origin: right center; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--tx); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); transform-origin: left center; }
.nav a.on { color: var(--tx); }
.hdr-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.burger { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; margin-right: -10px; background: none; border: 0; border-radius: var(--r); }
.burger span { position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--tx); border-radius: 1px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 21.25px; } .burger span:nth-child(3) { top: 26.5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

.mnav { display: none; }

/* ---------- hero */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--hdr); }
.hero-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 18, 22, .96) 0%, rgba(11, 18, 22, .9) max(calc(50% + 70px), 700px), rgba(11, 18, 22, .35) max(calc(50% + 230px), 860px), rgba(11, 18, 22, 0) max(calc(50% + 380px), 1000px)),
    linear-gradient(180deg, rgba(11, 18, 22, .55) 0%, rgba(11, 18, 22, 0) 18%, rgba(11, 18, 22, 0) 62%, rgba(11, 18, 22, .92) 86%, var(--bg) 100%); }
.hero-body { flex: 1; display: flex; align-items: center; padding-top: clamp(40px, 7vh, 96px); padding-bottom: clamp(32px, 5vh, 64px); pointer-events: none; }
.hero-copy { max-width: 640px; pointer-events: auto; }
.status { display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 12px 0 10px; margin-bottom: 26px; border: 1px solid var(--ln2); border-radius: 15px; background: rgba(15, 26, 31, .7); color: var(--t2); font-size: 13px; font-weight: 500; }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ac); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ac); opacity: 0; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.hero h1 { font-size: clamp(42px, 6.6vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 600; max-width: 12ch; }
.lede { margin-top: 26px; max-width: 54ch; color: var(--t2); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.62; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

.hero-foot { padding-bottom: clamp(20px, 4vh, 40px); }
.board { background: rgba(15, 26, 31, .82); border: 1px solid var(--ln); border-radius: 6px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tape { display: flex; align-items: stretch; min-height: 56px; border-bottom: 1px solid var(--ln); overflow: hidden; }
.tk { display: flex; align-items: center; gap: 14px; padding: 0 20px; white-space: nowrap; }
.tk + .tk { border-left: 1px solid var(--ln); }
.tk-sym { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--tx); }
.tk-sym em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--ac2); background: var(--ac-a); padding: 1px 5px; border-radius: 3px; font-family: var(--mono); }
.tk-px { font-size: 17px; font-weight: 600; padding: 2px 4px; margin: 0 -4px; border-radius: 3px; transition: color .6s, background-color .6s; }
.tk-px.fu { color: var(--ac); background: var(--ac-a); transition: none; }
.tk-px.fd { color: var(--rd); background: var(--rd-a); transition: none; }
.tk-chg { font-size: 13px; color: var(--t3); }
.tk-chg.up { color: var(--ac); } .tk-chg.dn { color: var(--rd); }
.tk-meta { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
.tk-lbl { font-size: 12px; color: var(--t3); }
.tk-meta b { font-size: 13px; font-weight: 500; color: var(--t2); }
.tape-note { margin-left: auto; align-self: center; padding: 0 20px; color: var(--t3); font-size: 12px; white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 18px 20px 20px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--ln); }
.stat dd { margin: 0; display: flex; align-items: baseline; gap: 6px; font-size: clamp(30px, 3.2vw, 44px); font-weight: 500; line-height: 1; letter-spacing: -.04em; color: var(--tx); }
.stat dd small { font-size: 15px; letter-spacing: 0; font-weight: 500; color: var(--ac2); }
.stat dt { color: var(--t3); font-size: 13px; line-height: 1.4; }

/* ---------- sections */
.sec { position: relative; padding: clamp(80px, 11vw, 150px) 0 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 48px; align-items: end; padding-bottom: 28px; margin-bottom: 40px; border-bottom: 1px solid var(--ln); }
.sec-head h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; letter-spacing: -.035em; }
.sec-head p { color: var(--t2); font-size: 17px; line-height: 1.6; max-width: 56ch; }
.tlink { color: var(--ac2); text-decoration: underline; text-decoration-color: rgba(151, 252, 228, .35); text-underline-offset: 3px; }
.tlink:hover { text-decoration-color: var(--ac2); }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.step { position: relative; padding: 0 32px 0 0; display: flex; flex-direction: column; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--ln); }
.step-n { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--ln2); border-radius: 50%; color: var(--ac2); font-size: 14px; font-weight: 600; margin-bottom: 22px; background: var(--bg); }
.step h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.step p { margin-top: 10px; color: var(--t2); font-size: 15.5px; line-height: 1.6; }
.frag { margin-top: auto; padding-top: 24px; }
.frag { display: flex; flex-direction: column; gap: 0; }
.frag-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: var(--p1); border: 1px solid var(--ln); font-size: 13px; color: var(--t3); }
.frag-row + .frag-row { border-top: 0; }
.frag-row:first-child { border-radius: var(--r) var(--r) 0 0; }
.frag-row:last-child { border-radius: 0 0 var(--r) var(--r); }
.frag-row b { font-weight: 500; color: var(--tx); font-size: 13px; white-space: nowrap; }
.frag-row b.ac { color: var(--ac2); }

/* features */
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ln); border-radius: 6px; overflow: hidden; }
.feat { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.feat:nth-child(odd) { border-right: 1px solid var(--ln); }
.feat:nth-child(-n+2) { border-bottom: 1px solid var(--ln); }
.feat h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.feat p { margin-top: 10px; color: var(--t2); font-size: 15.5px; line-height: 1.62; max-width: 52ch; }
.viz { margin-top: auto; background: var(--p1); border: 1px solid var(--ln); border-radius: var(--r); min-width: 0; }

/* ---------- mechanics */
.mech { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--ln); border: 1px solid var(--ln); border-radius: 6px; overflow: hidden; }
.mech > div { background: var(--bg); padding: clamp(20px, 2.4vw, 30px); min-width: 0; }
.mech h3 { font-size: 16.5px; line-height: 1.3; letter-spacing: -.015em; }
.mech p { margin-top: 8px; color: var(--t2); font-size: 14.5px; line-height: 1.6; }
.disc.geo { margin-top: 8px; }

.bbo { padding: 6px 0; }
.bbo-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 7px 16px; font-size: 13px; color: var(--t3); }
.bbo-row b { font-size: 15px; font-weight: 500; text-align: right; }
.bbo-row.ask b { color: var(--rd); } .bbo-row.bid b { color: var(--ac); }
.bbo-row.mid { margin: 2px 0; padding: 11px 16px; background: var(--bg); border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); box-shadow: inset 2px 0 0 var(--ac2); color: var(--t2); grid-template-columns: 1fr auto; }
.bbo-row.mid b { font-size: 19px; font-weight: 600; color: var(--tx); }
.bbo-row.mid i { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: var(--t3); }

.perms { padding: 0; }
.perm-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--ln); color: var(--t2); font-size: 13px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 3px; background: var(--ac-a); color: var(--ac2); font-size: 12px; font-weight: 500; }
.perms ul { list-style: none; margin: 0; padding: 8px 0; display: grid; grid-template-columns: 1fr 1fr; }
.perms li { display: flex; align-items: center; gap: 9px; padding: 7px 16px; font-size: 14px; color: var(--tx); }
.perms li.n { color: var(--t3); }
.perms svg { width: 14px; height: 14px; flex: none; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.perms li.y svg { stroke: var(--ac); } .perms li.n svg { stroke: var(--rd); }

.queue { padding: 16px; }
.bkt { display: flex; height: 10px; border-radius: 2px; overflow: hidden; gap: 2px; }
.bkt i { display: block; height: 100%; }
.b-cash { background: var(--ac); } .b-side { background: var(--vi); } .b-q { background: var(--am); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--t2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.qrows { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--ln); }
.qrows li { position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; height: 34px; font-size: 13px; color: var(--t3); border-bottom: 1px solid rgba(27, 44, 51, .6); }
.qrows li:last-child { border-bottom: 0; }
.qrows b { font-weight: 500; color: var(--am); }
.qbar { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow: hidden; }
.qbar i { position: absolute; inset: 0; background: var(--am); transform-origin: left; transform: scaleX(.38); }
.js .in .qbar i { animation: qfill 5.5s var(--ease) infinite; }
@keyframes qfill { 0% { transform: scaleX(.05); } 80%, 100% { transform: scaleX(1); } }

.curve { padding: 14px 16px 12px; }
.curve-svg { width: 100%; height: 130px; overflow: visible; }
.cg line { stroke: var(--ln); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cline { fill: none; stroke: var(--vi); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.cfill { fill: rgba(163, 155, 230, .1); stroke: none; }
.cg text { fill: var(--t3); font: 500 10.5px var(--mono); }
.cg .cdiv { stroke: var(--ln2); stroke-dasharray: 2 3; }
.curve-svg circle { fill: var(--bg); stroke: var(--vi); stroke-width: 1.5; }
.curve-lbl { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--t3); }
.curve-lbl b { color: var(--vi); font-weight: 500; }

/* ---------- calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--p1); border: 1px solid var(--ln); border-radius: 6px; overflow: hidden; }
.calc-in { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 26px; border-right: 1px solid var(--ln); margin: 0; }
.cin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cin-entry { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; color: var(--t3); }
.cin-entry b { font-size: 16px; font-weight: 500; color: var(--tx); }
.seg { display: inline-flex; padding: 3px; gap: 3px; background: var(--p2); border: 1px solid var(--ln2); border-radius: var(--r); }
.seg button { min-width: 74px; height: 38px; padding: 0 16px; border: 0; border-radius: 3px; background: none; color: var(--t2); font-weight: 600; font-size: 14px; transition: background-color .15s, color .15s; }
.seg button:hover { color: var(--tx); }
.seg button.on { background: var(--p3); color: var(--ac2); box-shadow: inset 0 0 0 1px var(--ln2); }
.field-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.field-h label { color: var(--t2); font-size: 14px; font-weight: 500; }
.field-h output { font-size: 20px; font-weight: 600; color: var(--tx); }
input[type=range] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; --p: 50%; touch-action: pan-y; }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--ac) 0 var(--p), var(--ln2) var(--p) 100%); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--ln2); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ac); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--tx); border: 4px solid var(--ac); box-shadow: 0 0 0 4px rgba(11, 18, 22, .9); transition: transform .12s; }
input[type=range]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--tx); border: 4px solid var(--ac); }
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.12); }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ac2); }
input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ac2); }
.ticks { display: flex; justify-content: space-between; margin: 4px -8px 0; }
.ticks button { min-width: 44px; height: 32px; padding: 0 8px; background: none; border: 0; border-radius: 3px; color: var(--t3); font-family: var(--mono); font-size: 12px; transition: color .15s, background-color .15s; }
.ticks button:hover { color: var(--tx); background: var(--p2); }
.ticks button.on { color: var(--ac2); }
.calc-note { padding: 10px 12px; border: 1px solid rgba(216, 180, 106, .35); background: var(--am-a); color: #e9cf98; border-radius: var(--r); font-size: 13.5px; line-height: 1.5; }
.calc-fine { color: var(--t3); font-size: 13px; line-height: 1.55; margin-top: auto; }
.rc { padding-top: 22px; border-top: 1px solid var(--ln); }
.rc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--t3); margin-bottom: 8px; }
.rc-h b { font-size: 14px; font-weight: 600; color: var(--ac2); }
.rc-svg { display: block; width: 100%; height: 120px; overflow: visible; }
.rc-svg .g { stroke: var(--ln); stroke-width: 1; }
.rc-svg .gt { fill: var(--t3); font: 500 10.5px var(--mono); }
.rc-svg .ln { fill: none; stroke: var(--ac); stroke-width: 1.6; stroke-linejoin: round; }
.rc-svg .ar { fill: rgba(80, 210, 193, .08); }
.rc-svg .cur { stroke: var(--ac2); stroke-width: 1; stroke-dasharray: 2 3; }
.rc-svg .dot { fill: var(--bg); stroke: var(--ac2); stroke-width: 2; }
.rc-x { display: flex; justify-content: space-between; margin-top: 6px; padding-left: 34px; font-size: 11px; color: var(--t3); }

.calc-out { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; background: var(--bg); min-width: 0; }
.net { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.lbl { display: block; color: var(--t3); font-size: 13px; margin-bottom: 4px; }
.net-v { display: block; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; font-weight: 600; letter-spacing: -.045em; color: var(--ac); }
.net-v.zero { color: var(--t3); }
.roi { text-align: right; }
.roi b { font-size: 22px; font-weight: 600; color: var(--tx); letter-spacing: -.02em; }
.wf-bar { display: flex; height: 12px; gap: 2px; border-radius: 2px; overflow: hidden; background: var(--p2); }
.wf-bar i { display: block; height: 100%; min-width: 0; transition: flex-basis .25s var(--ease); flex: 0 0 0%; }
.w-net { background: var(--ac); } .w-fee { background: var(--am); } .w-imp { background: var(--vi); } .w-db { background: var(--rd); }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; border-top: 1px solid var(--ln); }
.kv dt, .kv dd { margin: 0; padding: 9px 0; border-bottom: 1px solid rgba(27, 44, 51, .7); font-size: 14px; }
.kv dt { color: var(--t3); }
.kv dt small { color: var(--t3); font-size: 12px; margin-left: 6px; }
.kv dd { text-align: right; color: var(--tx); font-weight: 500; white-space: nowrap; }
.kv dd.dn { color: var(--rd); }
.kv .strong { color: var(--tx); font-weight: 600; border-bottom: 0; }
.kv dd.strong.up { color: var(--ac); }
.liq { padding: 14px 16px; border: 1px solid rgba(237, 112, 136, .3); background: var(--rd-a); border-radius: var(--r); }
.liq > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.liq .lbl { margin: 0; color: #f3b3c0; }
.liq b { color: var(--rd); font-size: 18px; font-weight: 600; }
.liq p { margin-top: 4px; color: var(--t2); font-size: 13.5px; line-height: 1.5; }

/* ---------- roadmap */
.road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--ln2); }
.road::after { content: ""; position: absolute; left: 0; width: calc(20% + 8px); top: 7px; height: 1px; background: linear-gradient(90deg, var(--ac), var(--ac2)); transform-origin: left; }
.rm { position: relative; padding: 34px 24px 0 0; min-width: 0; }
.rm-dot { position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ln2); }
.rm.done .rm-dot { background: var(--ac); border-color: var(--ac); }
.rm.done .rm-dot::after { content: ""; position: absolute; left: 4.5px; top: 2.5px; width: 3.5px; height: 6.5px; border: solid #08201d; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.rm.now .rm-dot { border-color: var(--ac2); box-shadow: 0 0 0 4px rgba(151, 252, 228, .12); }
.rm.now .rm-dot::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ac2); }
.rm.now .rm-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--ac2); opacity: 0; animation: ping 2.4s ease-out infinite; }
.rm-st { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--t3); margin-bottom: 8px; }
.rm.done .rm-st { color: var(--ac); }
.rm.now .rm-st { color: #08201d; background: var(--ac2); padding: 1px 8px; border-radius: 3px; }
.rm h3 { font-size: 18px; letter-spacing: -.015em; }
.rm p { margin-top: 8px; color: var(--t2); font-size: 14.5px; line-height: 1.6; }
.rm:not(.done):not(.now) h3 { color: var(--t2); }
.rm:not(.done):not(.now) p { color: var(--t3); }

/* ---------- FAQ */
.faq-wrap .sec-head { margin-bottom: 0; border-bottom: 0; }
.faq { border-top: 1px solid var(--ln); }
.qa { border-bottom: 1px solid var(--ln); }
.qa h3 { font-size: inherit; letter-spacing: 0; text-wrap: wrap; }
.qa button { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; min-height: 64px; padding: 16px 4px; background: none; border: 0; text-align: left; color: var(--tx); font-size: 17px; font-weight: 500; letter-spacing: -.01em; transition: color .15s; }
.qa button:hover { color: var(--ac2); }
.qa button i { position: relative; flex: none; width: 28px; height: 28px; border: 1px solid var(--ln2); border-radius: 50%; transition: border-color .2s, background-color .2s, transform .3s var(--ease); }
.qa button i::before, .qa button i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: var(--t2); border-radius: 1px; transition: transform .3s var(--ease), background-color .2s; }
.qa button i::after { transform: rotate(90deg); }
.qa button[aria-expanded="true"] i { border-color: var(--ac); background: var(--ac-a); transform: rotate(180deg); }
.qa button[aria-expanded="true"] i::before, .qa button[aria-expanded="true"] i::after { background: var(--ac2); }
.qa button[aria-expanded="true"] i::after { transform: rotate(0deg); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.qa-a > div { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s linear .32s; }
.qa.open .qa-a { grid-template-rows: 1fr; }
.qa.open .qa-a > div { visibility: visible; transition-delay: 0s; }
.qa-a p { padding: 0 64px 22px 4px; color: var(--t2); font-size: 15.5px; line-height: 1.65; max-width: 76ch; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.faq-wrap .sec-head { display: block; padding: 0; position: sticky; top: calc(var(--hdr) + 32px); }
.faq-wrap .sec-head p { margin-top: 16px; }

/* ---------- footer */
.foot { margin-top: clamp(96px, 12vw, 160px); border-top: 1px solid var(--ln); background: var(--p1); }
.foot-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--ln); }
.foot-cta h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -.03em; max-width: 20ch; }
.foot-cta .cta-row { margin: 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding: 48px 0 36px; }
.foot-brand p { margin-top: 10px; color: var(--t3); font-size: 14px; max-width: 36ch; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; }
.foot-col h3 { font-size: 13px; font-weight: 600; color: var(--t3); letter-spacing: 0; margin-bottom: 6px; }
.foot-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--t2); font-size: 14.5px; transition: color .15s; }
.foot-col a:hover { color: var(--ac2); }
.foot-legal { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; padding: 24px 0 36px; border-top: 1px solid var(--ln); }
.disc { max-width: 78ch; color: var(--t3); font-size: 13.5px; line-height: 1.6; }
.disc strong { color: var(--am); font-weight: 600; }
.copy { color: var(--t3); font-size: 13.5px; white-space: nowrap; }

/* ---------- scroll reveal (transform + opacity only) */
.js [data-reveal-group] > * { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal-group].in > * { opacity: 1; transform: none; }
.js .road::after { transform: scaleX(0); transition: transform 1.2s var(--ease) .3s; }
.js .road.in::after { transform: scaleX(1); }

/* ---------- responsive */
@media (max-width: 1180px) {
  .nav a { padding: 0 8px; font-size: 13.5px; }
  .nav a::after { left: 8px; right: 8px; }
  .hdr-in { gap: 16px; }
  .road { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .road::before, .road::after { display: none; }
  .rm { padding-top: 30px; }
  .rm::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--ln2); }
  .rm.done::before { background: var(--ac); }
}
@media (max-width: 1100px) {
  .hide-sm { display: none !important; }
  .rbt { display: none; }
}
@media (max-width: 980px) {
  .nav, .hdr-cta { display: none; }
  .burger { display: block; }
  .mnav { display: block; position: fixed; z-index: 1; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; padding-top: var(--hdr); background: var(--bg); visibility: hidden; transform: translate3d(0, -100%, 0); transition: transform .38s var(--ease), visibility 0s linear .38s; overflow-y: auto; overscroll-behavior: contain; }
  .hdr.open .mnav { visibility: visible; transform: none; transition: transform .38s var(--ease), visibility 0s; }
  .hdr.open { background: var(--bg); border-bottom-color: var(--ln); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mnav-in { display: flex; flex-direction: column; padding: 12px var(--gut) 32px; }
  .mnav-in > a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--ln); font-size: 20px; font-weight: 500; letter-spacing: -.015em; color: var(--tx); opacity: 0; transform: translate3d(0, -8px, 0); transition: opacity .3s, transform .3s var(--ease), color .15s; }
  .hdr.open .mnav-in > a { opacity: 1; transform: none; transition-delay: calc(80ms + var(--i, 0) * 40ms); }
  .mnav-in > a:hover { color: var(--ac2); }
  .mnav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .mnav-cta .btn { height: 50px; }
  .mnav-note { margin-top: 20px; color: var(--t3); font-size: 13.5px; }

  .sec-head { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step, .step + .step { padding: 0 0 0 56px; border-left: 0; }
  .step + .step { margin-top: 40px; }
  .step-n { position: absolute; left: 0; top: -4px; margin: 0; }
  .step:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: -36px; width: 1px; background: var(--ln2); }
  .frag { max-width: 440px; }
  .feats { grid-template-columns: 1fr; }
  .mech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat:nth-child(odd) { border-right: 0; }
  .feat:nth-child(-n+2) { border-bottom: 0; }
  .feat + .feat { border-top: 1px solid var(--ln); }
  .calc { grid-template-columns: 1fr; }
  .calc-in { border-right: 0; border-bottom: 1px solid var(--ln); }
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .tape { flex-wrap: wrap; }
  .tape-note { width: 100%; padding: 9px 20px; border-top: 1px solid var(--ln); margin: 0; }
  .faq-wrap .sec-head { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--ln); }
  .hero-shade { background:
    linear-gradient(90deg, rgba(11, 18, 22, .93) 0%, rgba(11, 18, 22, .84) 55%, rgba(11, 18, 22, .6) 100%),
    linear-gradient(180deg, rgba(11, 18, 22, .5) 0%, rgba(11, 18, 22, 0) 20%, rgba(11, 18, 22, 0) 55%, rgba(11, 18, 22, .9) 82%, var(--bg) 100%); }
}
@media (max-width: 899px) {
  .hero-body { align-items: flex-start; padding-bottom: clamp(200px, 36vw, 280px); }
  .hero-shade { background: linear-gradient(180deg, rgba(11, 18, 22, .55) 0%, rgba(11, 18, 22, .2) 40%, rgba(11, 18, 22, 0) 60%, rgba(11, 18, 22, 0) 88%, var(--bg) 100%); }
}
@media (max-width: 720px) {
  :root { --hdr: 58px; }
  body { font-size: 15.5px; }
  .road { grid-template-columns: 1fr; row-gap: 0; }
  .mech { grid-template-columns: 1fr; }
  .rm, .rm + .rm { padding: 0 0 30px 34px; }
  .rm::before { left: 7px; right: auto; top: 18px; bottom: -2px; width: 1px; height: auto; }
  .rm:last-child::before { display: none; }
  .rm-dot { top: 2px; }
  .tape { flex-wrap: wrap; }
  .tk { flex: 1 1 50%; min-height: 56px; padding: 0 14px; gap: 8px; flex-wrap: wrap; align-content: center; row-gap: 0; }
  .tk-sym { width: 100%; font-size: 13px; }
  .tk-px { font-size: 16px; }
  .tk-chg { font-size: 12px; }
  .tk { padding-top: 8px; padding-bottom: 8px; }
  .tape-note { width: 100%; padding: 8px 14px; border-top: 1px solid var(--ln); margin: 0; font-size: 11.5px; }
  .stat { padding: 14px 14px 16px; }
  .stat dd small { font-size: 13px; }
  .stat dt { font-size: 12px; }
  .hero-body { align-items: flex-start; padding-top: 28px; }
  .status { margin-bottom: 20px; font-size: 12.5px; }
  .lede { margin-top: 18px; }
  .cta-row { margin-top: 26px; }
  .cta-row .btn { flex: 1 1 auto; }
  .perms ul { grid-template-columns: 1fr; }
  .qa button { font-size: 16px; min-height: 60px; gap: 16px; }
  .qa-a p { padding-right: 8px; font-size: 15px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-legal { flex-direction: column; align-items: flex-start; }
  .foot-col a { min-height: 44px; }
  .foot-cta .cta-row { width: 100%; }
  .net-v { font-size: 40px; }
  .ticks button { height: 44px; }
  input[type=range] { height: 44px; }
  .kv dt, .kv dd { font-size: 13.5px; }
  .kv dt small { display: block; margin: 0; }
}
@media (max-width: 400px) {
  .seg button { min-width: 60px; padding: 0 12px; }
  .ticks { margin: 4px -10px 0; }
  .ticks button { padding: 0 4px; font-size: 11.5px; }
  .cin-entry b { font-size: 15px; }
  .mnav-cta { grid-template-columns: 1fr; }
}

/* ---------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .js [data-reveal-group] > * { opacity: 1; transform: none; }
  .js .road::after { transform: none; }
  .logo-mark .lm-arc, .logo-mark .lm-head, .logo-mark .lm-line { stroke-dashoffset: 0; }
  .mnav-in > a { opacity: 1 !important; transform: none !important; }
}
