﻿/* Solvent, a dark instrument. Blue-slate housing, warm off-white text, phosphor teal readouts. */
:root {
  --bg: #0f171c;
  --bg-2: #131e25;
  --bg-3: #172530;
  --line: #21303a;
  --line-2: #2d404c;
  --ink: #e6ebe9;
  --ink-2: #9cafb7;
  --ink-3: #64777f;
  --teal: #3ad3dd;
  --teal-dim: rgba(58, 211, 221, .14);
  --red: #ff6f62;
  --amber: #e6b04e;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --grid: linear-gradient(#162129 1px, transparent 1px) 0 0 / 100% 28px,
          linear-gradient(90deg, #162129 1px, transparent 1px) 0 0 / 28px 100%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.025em; text-wrap: balance; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.05; }
h3 { font-size: 18px; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
::selection { background: var(--teal); color: var(--bg); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 54ch; }

/* ---------- status bar ---------- */
.status {
  position: sticky; top: 0; z-index: 30; height: 30px; border-bottom: 1px solid var(--line);
  background: var(--bg); color: var(--ink-3); font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 20px; font-variant-numeric: tabular-nums;
}
.status .l { display: flex; gap: 8px; align-items: center; }
.status .l i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.status .c { color: var(--ink-2); }
.status .r { display: flex; justify-content: flex-end; gap: 22px; }
.status .r b { color: var(--ink-2); font-weight: 500; transition: color .4s; }
.status .up { color: var(--teal) !important; } .status .dn { color: var(--red) !important; }
@media (max-width: 720px) { .status { grid-template-columns: 1fr auto; } .status .r { display: none; } }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; height: 64px;
  border-bottom: 1px solid var(--line); position: sticky; top: 30px; z-index: 29; background: var(--bg);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand svg { width: 20px; height: 20px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--ink-2); }
.nav ul a { position: relative; padding: 4px 0; transition: color .2s; }
.nav ul a:hover { color: var(--ink); }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--teal); transition: right .25s var(--ease); }
.nav ul a:hover::after { right: 0; }
@media (max-width: 860px) { .nav ul { display: none; } }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px; border-radius: 4px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: background .18s;
}
.btn:hover { background: #fff; }
.btn .arr { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: var(--bg-2); border-color: var(--ink-3); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn .k { font-family: var(--mono); font-size: 11px; opacity: .55; letter-spacing: .06em; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 64px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .grid { position: absolute; inset: -60px 0 0; background: var(--grid); will-change: transform; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 20% 50%, var(--bg) 20%, transparent 100%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(46px, 7vw, 86px); line-height: .96; letter-spacing: -.04em; font-weight: 600; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: block; transform: translateY(110%); animation: rise .9s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lede { animation: fade .8s .35s var(--ease) both; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; animation: fade .8s .45s var(--ease) both; }

/* the instrument */
.panel {
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--bg), 0 30px 60px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
  animation: fade .9s .5s var(--ease) both; font-family: var(--mono);
}
.panel .hd { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line-2); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.panel .hd b { color: var(--ink); font-weight: 500; }
.panel .hd .state { color: var(--teal); display: flex; align-items: center; gap: 6px; }
.panel .hd .state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: blink 1.6s infinite; }
.scope { position: relative; height: 250px; background: var(--grid), var(--bg-2); }
.scope canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scope .tag { position: absolute; right: 10px; font-size: 10px; letter-spacing: .08em; padding: 2px 6px; background: var(--bg-2); border: 1px solid; border-radius: 3px; }
.scope .tag.t { top: 14%; color: var(--teal); transform: translateY(-50%); }
.scope .tag.b { top: 86%; color: var(--red); transform: translateY(-50%); }
.scope .stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-8deg) scale(1.3); opacity: 0;
  font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: .08em; text-transform: uppercase;
  border: 3px solid currentColor; padding: 2px 14px; border-radius: 4px; pointer-events: none; mix-blend-mode: screen;
}
.scope .stamp.show { animation: stamp .5s var(--ease) forwards; }
.scope .stamp.pass { color: var(--teal); } .scope .stamp.fail { color: var(--red); }
.panel .rows { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.panel .rows div { padding: 10px 14px; border-right: 1px solid var(--line-2); }
.panel .rows div:last-child { border-right: 0; }
.panel .rows small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.panel .rows b { font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink); }
.meter { padding: 14px 14px 16px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.meter .lbl { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.meter .lbl b { color: var(--ink); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 12px; }
.meter .bar { position: relative; height: 8px; background: var(--bg); border-radius: 2px; }
.meter .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--teal); border-radius: 2px; transition: width .5s var(--ease), background .3s; box-shadow: 0 0 10px var(--teal-dim); }
.meter .bar i.warn { background: var(--amber); } .meter .bar i.bad { background: var(--red); }
.meter .bar b { position: absolute; right: 0; top: -3px; bottom: -3px; width: 2px; background: var(--red); }
.meter .ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); }

/* ---------- sections ---------- */
section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.sec-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 44px; max-width: 720px; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* how */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.steps::after { content: ""; position: absolute; left: 0; top: 7px; height: 1px; width: 0; background: var(--teal); box-shadow: 0 0 8px var(--teal); transition: width 1.6s var(--ease); }
.steps.in::after { width: 100%; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; position: relative; }
.step::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); transition: background .3s, border-color .3s, box-shadow .3s; }
.steps.in .step::before { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 10px var(--teal-dim); }
.steps.in .step:nth-child(2)::before { transition-delay: .4s; } .steps.in .step:nth-child(3)::before { transition-delay: .8s; } .steps.in .step:nth-child(4)::before { transition-delay: 1.2s; }
.step .n { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.step p { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps::before, .steps::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* custody + rules */
.custody { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .custody { grid-template-columns: 1fr; } }
.custody .copy { display: flex; flex-direction: column; gap: 18px; }
.custody .copy p { color: var(--ink-2); max-width: 50ch; }
.diagram { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 8px; }
.diagram svg { width: 100%; height: auto; display: block; font-family: var(--body); }
.spec { border-top: 1px solid var(--line-2); margin-top: 8px; }
.spec div { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.in .spec div { opacity: 1; transform: none; }
.in .spec div:nth-child(2) { transition-delay: .07s; } .in .spec div:nth-child(3) { transition-delay: .14s; } .in .spec div:nth-child(4) { transition-delay: .21s; }
.in .spec div:nth-child(5) { transition-delay: .28s; } .in .spec div:nth-child(6) { transition-delay: .35s; } .in .spec div:nth-child(7) { transition-delay: .42s; }
.spec span { font-size: 15px; color: var(--ink-2); }
.spec b { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.spec b.no { color: var(--ink-3); text-decoration: line-through; }

/* evaluations: a ruled ledger, not cards */
.ledger { border-top: 1px solid var(--line-2); }
.ledger .row {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: background .25s, padding .25s var(--ease); position: relative;
}
.ledger .row::before { content: ""; position: absolute; left: -28px; top: 0; bottom: 0; width: 2px; background: var(--teal); transform: scaleY(0); transition: transform .3s var(--ease); }
.ledger .row:hover::before { transform: scaleY(1); }
.ledger .row:hover { background: linear-gradient(90deg, var(--teal-dim), transparent 60%); }
.ledger .h { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr auto; gap: 20px; padding: 10px 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line-2); }
.ledger .size { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ledger .size small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; font-weight: 400; }
.ledger .v { font-family: var(--mono); font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ledger .v small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.ledger .h .rt, .ledger .row .rt { text-align: right; }
@media (max-width: 860px) {
  .ledger .h { display: none; }
  .ledger .row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ledger .row .size { grid-column: 1 / -1; }
  .ledger .row .rt { grid-column: 1 / -1; text-align: left; }
}
.ledger-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }

/* token */
.flywheel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
@media (max-width: 900px) { .flywheel { grid-template-columns: 1fr; } }
.fw-copy { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.loop { display: flex; flex-direction: column; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.loop .n { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.loop h3 { font-size: 19px; }
.loop p { color: var(--ink-2); font-size: 14.5px; max-width: 50ch; }
.fw-diagram { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 16px; }
.fw-diagram svg { width: 100%; height: auto; display: block; font-family: var(--body); }
.fw-diagram .node rect { transition: stroke .3s; }
.holders { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.ledger .h.hold, .ledger .row.hold { grid-template-columns: 1.2fr 1fr 1fr 1.3fr 1fr; }
.ledger .row.hold .size { font-size: clamp(20px, 2.4vw, 26px); }
@media (max-width: 860px) { .ledger .row.hold { grid-template-columns: 1fr 1fr; } .ledger .row.hold .size { grid-column: 1 / -1; } }
.vault { border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-3); font-family: var(--mono); overflow: hidden; }
.vault .hd { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line-2); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.vault .cells { display: grid; grid-template-columns: repeat(4, 1fr); }
.vault .cells div { padding: 14px; border-right: 1px solid var(--line-2); }
.vault .cells div:last-child { border-right: 0; }
.vault small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.vault b { font-size: 20px; font-weight: 500; color: var(--ink-3); }
.vault-note { padding: 12px 14px; border-top: 1px solid var(--line-2); font-family: var(--body); font-size: 13px; color: var(--ink-3); }
@media (max-width: 720px) { .vault .cells { grid-template-columns: 1fr 1fr; } .vault .cells div:nth-child(2) { border-right: 0; } .vault .cells div:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); } }

/* closing */
.close { padding: 130px 0; border-bottom: 0; position: relative; overflow: hidden; background: var(--bg-2); }
.close .wrap { position: relative; display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.close h2 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -.04em; }
.close h2 em { font-style: normal; color: var(--teal); }
.close p { color: var(--ink-2); font-size: 17px; max-width: 46ch; }
.close canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }

footer { padding: 32px 0; color: var(--ink-3); font-size: 13px; border-top: 1px solid var(--line); background: var(--bg-2); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 20px; }
footer a:hover { color: var(--ink); }
footer .brand { color: var(--ink); font-size: 15px; }

/* ---------- checkout modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(6, 10, 13, .7); backdrop-filter: blur(6px); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { width: 100%; max-width: 460px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); animation: fade .3s var(--ease); }
.modal .hd { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.modal .hd button { color: var(--ink-2); font-size: 18px; line-height: 1; }
.modal .body { padding: 20px 16px; display: flex; flex-direction: column; gap: 16px; }
.modal .size { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.modal .size small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; font-weight: 400; }
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay button { border: 1px solid var(--line-2); border-radius: 4px; padding: 10px 8px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; font-family: var(--mono); font-size: 12px; color: var(--ink-2); transition: border-color .2s, background .2s; }
.pay button b { color: var(--ink); font-weight: 500; font-size: 14px; }
.pay button small { color: var(--teal); font-size: 10px; letter-spacing: .06em; }
.pay button.on { border-color: var(--teal); background: var(--teal-dim); }
.modal .kv { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); font-family: var(--mono); font-size: 12.5px; }
.modal .kv div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.modal .kv b { color: var(--ink); font-weight: 500; }
.modal .btn { width: 100%; justify-content: center; }
.modal .fine { font-size: 12px; color: var(--ink-3); }
.modal .busy { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.modal .busy i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); animation: blink 1s infinite; }

/* ---------- terminal ---------- */
.term-body { min-height: 100vh; }
.term-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.term-nav .acct { font-size: 12px; letter-spacing: .06em; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 640px) { .term-nav .wallet, .term-nav .brand span { display: none; } .term-nav .acct { font-size: 11px; } }
.term-nav-r { display: flex; gap: 10px; align-items: center; }
.pill { font-size: 10.5px; letter-spacing: .12em; padding: 4px 8px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--ink-2); }
.pill.live { color: var(--teal); border-color: var(--teal); } .pill.passed { color: var(--bg); background: var(--teal); border-color: var(--teal); } .pill.breached, .pill.expired { color: var(--red); border-color: var(--red); }
.wallet { font-size: 12px; color: var(--ink-3); }
.term-note { padding: 7px 20px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.term { display: grid; grid-template-columns: 200px 1fr 300px; gap: 0; min-height: calc(100vh - 130px); }
@media (max-width: 1000px) { .term { grid-template-columns: 1fr; } .markets { flex-direction: row; flex-wrap: wrap; } }
.markets { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-right: 1px solid var(--line); }
.ph { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 8px; }
.mkt { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; color: var(--ink-2); transition: border-color .2s, color .2s; }
.mkt b { font-weight: 500; color: var(--ink); }
.mkt:hover { border-color: var(--line-2); color: var(--ink); } .mkt.on { border-color: var(--teal); color: var(--ink); }
.markets .rules { display: flex; flex-direction: column; font-size: 12px; }
.markets .rules div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.markets .rules b { color: var(--ink-2); font-weight: 500; }
.chart-col { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chart-hd { display: flex; justify-content: space-between; font-size: 13px; }
.chart-hd .dim { color: var(--ink-3); font-size: 11px; margin-left: 8px; }
.chart { position: relative; height: 340px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 4px; }
.chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tbl { border: 1px solid var(--line); border-radius: 4px; font-size: 12.5px; overflow-x: auto; }
.tbl .tr { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); align-items: center; white-space: nowrap; min-width: 640px; }
.tbl .tr:last-child { border-bottom: 0; }
.tbl .th { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tbl .empty { padding: 14px 12px; color: var(--ink-3); }
.tbl .long, .tbl .buy { color: var(--teal); } .tbl .short, .tbl .sell { color: var(--red); }
.up { color: var(--teal); } .dn { color: var(--red); }
.lnk { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; } .lnk:hover { color: var(--ink); }
.ticket-col { border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.ticket, .acct-panel { padding: 16px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--line); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.seg button { padding: 9px; font-weight: 600; font-size: 13.5px; color: var(--ink-3); }
.seg button.on:first-child { background: var(--teal-dim); color: var(--teal); } .seg button.on:last-child { background: rgba(255,111,98,.14); color: var(--red); }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: flex; justify-content: space-between; }
.fld > span b { color: var(--ink); font-weight: 500; }
.fld input[type=number] { background: var(--bg); border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink); padding: 9px 10px; font-size: 14px; }
.fld input[type=range] { accent-color: var(--teal); }
.ticket-rows { display: flex; flex-direction: column; font-size: 12px; border-top: 1px solid var(--line); }
.ticket-rows div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.ticket-rows b { color: var(--ink); font-weight: 500; }
.btn.place { width: 100%; justify-content: center; }
.btn.place.short { background: var(--red); color: var(--bg); } .btn.place.long { background: var(--teal); color: var(--bg); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.err { color: var(--red); font-size: 12px; }
.acct-panel .big small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.acct-panel .big b { font-size: 26px; font-weight: 500; }
.acct-panel .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 12px; }
.acct-panel .kv div { display: flex; flex-direction: column; gap: 2px; color: var(--ink-3); }
.acct-panel .kv b { color: var(--ink); font-weight: 500; font-size: 13px; }
.acct-panel .meter { padding: 0; border: 0; }
.acct-panel .meter .bar i.good { background: var(--teal); }
.term-empty { max-width: 560px; margin: 120px auto; padding: 0 28px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.verdict { position: fixed; inset: 0; z-index: 70; background: rgba(6, 10, 13, .82); backdrop-filter: blur(6px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; text-align: center; }
.verdict p { color: var(--ink-2); max-width: 46ch; font-size: 16px; }
.stamp-lg { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 8vw, 84px); letter-spacing: .06em; text-transform: uppercase; border: 5px solid currentColor; padding: 4px 28px; border-radius: 6px; transform: rotate(-6deg); animation: stamp .5s var(--ease); }
.stamp-lg.pass { color: var(--teal); } .stamp-lg.fail { color: var(--red); }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 50;
  background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 12.5px; padding: 10px 14px; border-radius: 4px;
  transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none; max-width: calc(100vw - 40px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes rise { to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes stamp { from { opacity: 0; transform: translate(-50%,-50%) rotate(-8deg) scale(1.4); } to { opacity: .95; transform: translate(-50%,-50%) rotate(-8deg) scale(1); } }
@keyframes tape { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 .line > span, .hero .lede, .hero .cta, .panel { animation: none; transform: none; opacity: 1; }
  .reveal, .spec div { opacity: 1; transform: none; transition: none; }
  .steps::after { transition: none; }
  .panel .hd .state::before { animation: none; }
  .btn .arr, .ledger .row { transition: none; }
}
