:root {
  --bg: #07060d; --bg2: #0d0b17; --panel: #121021; --panel2: #18152b; --line: #262140; --line2: #332c55;
  --text: #ecebf5; --muted: #a29fbd; --dim: #6f6b8c;
  --violet: #8b5cf6; --violet2: #a78bfa; --mint: #5eead4; --mint2: #2dd4bf;
  --good: #34d399; --warn: #fbbf24; --bad: #f87171;
  --r: 14px; --r2: 10px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(900px 600px at 0% 0%, rgba(124,58,237,.18), transparent 60%),
              radial-gradient(700px 500px at 100% 10%, rgba(45,212,191,.08), transparent 60%); }
a { color: var(--violet2); text-decoration: none; } a:hover { color: var(--mint); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(38px, 6.5vw, 76px); font-weight: 800; letter-spacing: -.04em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.stack { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); } .stack-lg { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid4 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
section { padding: 56px 0; } section.tight { padding: 28px 0; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.lead { font-size: 19px; color: var(--muted); max-width: 64ch; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 14px; } .tiny { font-size: 12px; }
.mono { font-family: var(--mono); } .num { font-variant-numeric: tabular-nums; }
.hl { background: linear-gradient(90deg, var(--violet2), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7,6,13,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); letter-spacing: -.02em; font-size: 18px; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 10px var(--sans); letter-spacing: .02em;
  background: radial-gradient(circle at 35% 30%, #3b3266, #15122a 70%); border: 1.5px solid #8f86c9; color: #e8e4ff; box-shadow: 0 0 0 3px rgba(139,92,246,.18); }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--muted); padding: 8px 11px; border-radius: 9px; font-size: 14px; font-weight: 550; white-space: nowrap; }
.nav a:hover, .nav a.on { color: var(--text); background: var(--panel2); }
.btn.menu-btn { display: none; }
@media (min-width: 861px) { .nav a.more:not([href="/dashboard"]) { display: none; } }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 62px; flex-direction: column; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .nav.open { display: flex; }
  .btn.menu-btn { display: inline-flex; margin-left: auto; }
  .top .actions .btn-connect { display: none; }
}

/* buttons, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text);
  padding: 10px 16px; border-radius: 11px; font: 600 15px var(--sans); cursor: pointer; transition: transform .08s ease, background .15s; text-decoration: none; }
.btn:hover { background: #211c3b; color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, var(--violet), #6d28d9); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.1); color: #fff; }
.btn.mint { background: var(--mint); color: #062b26; border-color: transparent; } .btn.mint:hover { background: #7ff0dc; color: #062b26; }
.btn.ghost { background: transparent; } .btn.small { padding: 7px 11px; font-size: 13px; border-radius: 9px; }
.btn.danger { color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
input, select, textarea { background: var(--bg2); color: var(--text); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; font: 15px var(--sans); min-width: 0; }
textarea { width: 100%; min-height: 80px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* panels */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card.pad-lg { padding: 28px; }
.card.link { transition: border-color .15s, transform .15s; color: inherit; display: block; }
.card.link:hover { border-color: var(--violet); transform: translateY(-2px); }
.stat { display: grid; gap: 4px; }
.stat b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.stats .stat { padding: 18px 20px; border-right: 1px solid var(--line); }
.stats .stat:last-child { border-right: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 12px var(--sans); border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.pill.good { color: var(--good); border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.08); }
.pill.warn { color: var(--warn); border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.pill.bad { color: var(--bad); border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.08); }
.pill.violet { color: var(--violet2); border-color: rgba(167,139,250,.35); background: rgba(139,92,246,.1); }
.pill.mint { color: var(--mint); border-color: rgba(94,234,212,.35); background: rgba(94,234,212,.08); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(52,211,153,.15); display: inline-block; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 12px 14px; background: var(--bg2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* hero */
.hero { padding: 72px 0 40px; }
.hero .lead { margin-top: 18px; }
.hero .row { margin-top: 28px; }
.coin { width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none;
  background: radial-gradient(circle at 34% 28%, #3a3166 0%, #1a1630 55%, #0e0c1c 100%);
  border: 3px solid #a69fe0; box-shadow: 0 0 0 10px rgba(139,92,246,.1), 0 30px 80px rgba(124,58,237,.35), inset 0 0 40px rgba(167,139,250,.25); }
.coin::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1px solid rgba(232,228,255,.5); }
.coin b { font-size: 58px; font-weight: 800; letter-spacing: -.02em; color: #e8e4ff; }
.coin i { position: absolute; bottom: 38px; font: 700 10px var(--sans); letter-spacing: .32em; color: #cfc9f5; font-style: normal; }
@media (prefers-reduced-motion: no-preference) { .coin { animation: float 7s ease-in-out infinite; } }
@keyframes float { 50% { transform: translateY(-10px) rotate(-3deg); } }

/* split bar */
.split { display: flex; height: 46px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line2); }
.split div { display: flex; align-items: center; padding: 0 12px; font: 700 13px var(--sans); white-space: nowrap; overflow: hidden; min-width: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.legend span { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* feed */
.feed { display: grid; }
.feed .ev { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed .ev:last-child { border-bottom: 0; }
.feed time { color: var(--dim); font: 12px var(--mono); padding-top: 2px; }

/* steps */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.step { position: relative; padding-top: 44px; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; top: 18px; left: 20px; font: 700 12px var(--mono); color: var(--mint); letter-spacing: .1em; }

/* trial checklist */
.check li { margin: 8px 0; }
.check { padding-left: 0; list-style: none; margin: 10px 0 0; }
.check li { padding-left: 30px; position: relative; }
.check.yes li::before { content: "✓"; position: absolute; left: 4px; color: var(--good); font-weight: 800; }
.check.no li::before { content: "✕"; position: absolute; left: 4px; color: var(--bad); font-weight: 800; }
details.src summary { cursor: pointer; color: var(--dim); font-size: 12px; margin-top: 3px; list-style: none; }
details.src summary::-webkit-details-marker { display: none; }
details.src blockquote { margin: 6px 0 0; padding: 8px 12px; border-left: 2px solid var(--violet); background: var(--bg2); color: var(--muted); font-size: 13px; border-radius: 0 8px 8px 0; }
.notice { border: 1px solid rgba(251,191,36,.35); background: rgba(251,191,36,.07); border-radius: var(--r2); padding: 14px 16px; color: #f3dfa6; font-size: 14px; }
.notice.info { border-color: rgba(94,234,212,.3); background: rgba(94,234,212,.06); color: #bff3ea; }

/* code */
pre, code { font-family: var(--mono); }
pre { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r2); padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.6; color: #d9d6f0; margin: 0; }
code { background: var(--panel2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
pre code { background: none; padding: 0; }
.copy { display: flex; gap: 8px; align-items: stretch; }
.copy code { flex: 1; min-width: 0; display: flex; align-items: center; padding: 10px 12px; overflow-x: auto; white-space: nowrap; }

/* docs */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 36px; }
.doc nav { position: sticky; top: 84px; align-self: start; display: grid; gap: 4px; font-size: 14px; }
.doc nav a { color: var(--muted); padding: 4px 0; }
.doc article { max-width: 74ch; display: grid; gap: 16px; }
.doc article h2 { margin-top: 26px; font-size: 26px; }
.doc article h3 { margin-top: 8px; }
.doc article ul { margin: 0; padding-left: 20px; } .doc article li { margin: 4px 0; }
@media (max-width: 800px) { .doc { grid-template-columns: 1fr; } .doc nav { position: static; } }

/* misc */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 40px; color: var(--dim); font-size: 14px; }
.foot .row { justify-content: space-between; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.tabs button { background: transparent; border: 0; color: var(--muted); padding: 8px 14px; border-radius: 9px; font: 600 14px var(--sans); cursor: pointer; }
.tabs button.on { background: var(--panel2); color: var(--text); }
.gauge { height: 12px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; }
.gauge div { height: 100%; background: linear-gradient(90deg, var(--violet), var(--mint)); border-radius: 999px; }
.empty { padding: 28px; text-align: center; color: var(--dim); border: 1px dashed var(--line2); border-radius: var(--r); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line2); padding: 12px 18px; border-radius: 12px; z-index: 50; box-shadow: 0 10px 40px rgba(0,0,0,.5); max-width: calc(100vw - 32px); }
.toast.bad { border-color: rgba(248,113,113,.5); }
.split-num { font-size: 13px; }
@media (max-width: 600px) { section { padding: 40px 0; } .hero { padding: 44px 0 24px; } .coin { width: 150px; height: 150px; } .coin b { font-size: 42px; } .coin i { bottom: 28px; font-size: 8px; } .stats .stat { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- home: interactive pieces ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .coin-stage { order: -1; justify-self: center; } }
.btn-x { gap: 8px; }
.btn-x svg { flex: none; }
.top .btn-x span { display: inline; }
@media (max-width: 520px) { .top .btn-x span { display: none; } }

.coin-stage { perspective: 1100px; display: grid; justify-items: center; gap: 10px; }
.coin3d { width: 240px; height: 240px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2,.8,.2,1); border-radius: 50%; }
.coin3d .face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(circle at 34% 28%, #3a3166 0%, #1a1630 55%, #0e0c1c 100%);
  border: 3px solid #a69fe0; box-shadow: 0 0 0 10px rgba(139,92,246,.1), 0 30px 80px rgba(124,58,237,.35), inset 0 0 40px rgba(167,139,250,.25); }
.coin3d .face::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; border: 1px solid rgba(232,228,255,.5); }
.coin3d .face::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 48%, transparent 60%);
  background-size: 250% 100%; background-position: var(--shine, 100%) 0; }
.coin3d b { font-size: 66px; font-weight: 800; letter-spacing: -.02em; color: #e8e4ff; }
.coin3d .back b { font-size: 48px; }
.coin3d i { position: absolute; bottom: 46px; font: 700 10px var(--sans); letter-spacing: .3em; color: #cfc9f5; font-style: normal; }
.coin3d .back { transform: rotateY(180deg); }
.coin-hint { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 600px) { .coin3d { width: 170px; height: 170px; } .coin3d b { font-size: 46px; } .coin3d .back b { font-size: 34px; } .coin3d i { bottom: 32px; font-size: 8px; } }

.ticker { border-block: 1px solid var(--line); background: var(--bg2); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 48px; padding: 12px 0; font-size: 14px; color: var(--muted); animation: tick 60s linear infinite; padding-left: 100%; }
.ticker-track span::before { content: "●"; color: var(--mint); margin-right: 10px; font-size: 10px; vertical-align: 2px; }
@keyframes tick { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; padding-left: 20px; } }

.vid { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--line); background: #000; display: block; }
.card.lift { transition: transform .2s ease, border-color .2s ease; }
.card.lift:hover { transform: translateY(-4px); border-color: var(--violet); }
.ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(139,92,246,.14); color: var(--violet2); font-size: 20px; font-weight: 800; margin-bottom: 10px; }

.demo { display: grid; gap: 18px; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: d; }
.demo-steps li { counter-increment: d; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--dim); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .25s; }
.demo-steps li::before { content: counter(d) " "; font-family: var(--mono); color: var(--dim); }
.demo-steps li.on { border-color: var(--mint); color: var(--text); background: rgba(94,234,212,.07); }
.demo-steps li.done { color: var(--muted); border-color: var(--line2); }
.demo-steps li.done::before, .demo-steps li.on::before { color: var(--mint); }
@media (max-width: 700px) { .demo-steps { grid-template-columns: minmax(0, 1fr); } }
.demo-panel { min-height: 190px; display: grid; gap: 12px; align-content: start; }
.demo-panel .src { font-family: var(--mono); font-size: 13px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; color: var(--muted); line-height: 1.8; overflow-x: auto; }
.demo-panel mark { background: rgba(94,234,212,.2); color: var(--mint); border-radius: 4px; padding: 1px 3px; }
.vote { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line2); font-size: 14px; opacity: 0; transform: translateY(6px); transition: all .35s; }
.vote.show { opacity: 1; transform: none; border-color: rgba(52,211,153,.4); color: var(--good); }
.pop { animation: pop .45s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.split-x { height: 58px; }
.split-x button { border: 0; height: 100%; display: flex; align-items: center; padding: 0 12px; font: 800 14px var(--sans); cursor: pointer; transition: filter .2s, transform .2s; min-width: 0; overflow: hidden; white-space: nowrap; }
.split-x button:hover { filter: brightness(1.12); }
.split-x button[aria-selected="true"] { box-shadow: inset 0 -4px 0 rgba(255,255,255,.85); }
.calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.calc div { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 2px; }
.calc b { font-size: 22px; font-variant-numeric: tabular-nums; }
.calc span { font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 520px) { .calc { grid-template-columns: minmax(0, 1fr); } }
input[type=range] { width: 100%; accent-color: var(--violet); padding: 0; border: 0; background: none; }

.road { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.road li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; position: relative; }
.road li .pill { justify-self: start; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line2); }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; list-style: none; display: block; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font-weight: 800; position: absolute; right: 0; top: 16px; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--muted); }

.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 32px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(124,58,237,.28), rgba(45,212,191,.12)); border: 1px solid var(--line2); }

/* sections are always visible; the rise only plays when one scrolls into view */
.reveal.in { animation: rise .7s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.flash { animation: flash 1.6s ease; }
@keyframes flash { 0% { background: rgba(94,234,212,.12); } 100% { background: transparent; } }
