/* Layout, type and motion. Colour literals live only in tokens.css (generated from src/tokens.json).
   Measured against the reference at 1440: container 1200 / gutter 32, h1 clamp(3.5rem,9.4vw,8.5rem) lh .94,
   h2 clamp(2.2rem,4.4vw,3.6rem), section pad 128, card radius 14, window radius 18, button 48 / r10,
   ease-out cubic-bezier(.22,1,.36,1), reveal .8s, rise 1s, tick flash 1.1s, marquee linear, pulse ring 2s. */

:root {
  --paper: var(--ink);
  --paper-2: var(--panel);
  --line: color-mix(in srgb, var(--cream) 8%, transparent);
  --line-2: color-mix(in srgb, var(--cream) 14%, transparent);
  --soft: color-mix(in srgb, var(--cream) 5%, transparent);
  --up: var(--mint);
  --down: var(--pink);
  --up-soft: color-mix(in srgb, var(--mint) 14%, transparent);
  --down-soft: color-mix(in srgb, var(--pink) 14%, transparent);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-std: cubic-bezier(.4, 0, .2, 1);
  --r-card: 14px;
  --r-win: 18px;
  --r-btn: 10px;
  --gutter: 20px;
  --stack: 9.5rem;
  --font-display: "Newsreader", ui-serif, Georgia, serif;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
@media (min-width: 40rem) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--stack) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/24px var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--violet) 40%, transparent); color: var(--cream); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 880px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.display { font-family: var(--font-display); font-weight: 400; color: var(--cream); letter-spacing: -.025em; }
.h1 { font-size: clamp(3.5rem, 9.4vw, 8.5rem); line-height: .94; }
.h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.04; max-width: 11em; text-wrap: balance; }
.h2h { font-size: clamp(2.2rem, 5.2vw, 4.6rem); line-height: 1.1; max-width: 12em; margin: 0 auto; text-align: center; text-wrap: balance; }
h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; color: var(--cream); letter-spacing: -.015em; }
.eyebrow { font: 500 11.5px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.lede { font-size: 17px; line-height: 1.55; color: var(--text); max-width: 34rem; text-wrap: pretty; margin-top: 28px; }
.sub { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 40rem; margin-top: 20px; text-wrap: pretty; }
.fine { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.foot { margin-top: 20px; }
@media (min-width: 40rem) { .lede { font-size: 19px; } .sub { font-size: 19px; } }

/* ---------- progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; background: transparent; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--violet), var(--sky), var(--mint)); }

/* ---------- fixed top stack ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 60; }
.hdr { background: color-mix(in srgb, var(--ink) 72%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: background-color .3s var(--ease-std), border-color .3s var(--ease-std); }
.top.is-stuck .hdr { background: color-mix(in srgb, var(--ink) 90%, transparent); border-bottom-color: var(--line); }
.hdr__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
@media (min-width: 48rem) { .hdr__row { min-height: 65px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand__mark { width: 40px; height: auto; }
.brand__word { font: 500 22px/1 var(--font-display); letter-spacing: .01em; color: var(--cream); }
.nav { display: none; align-items: center; gap: 24px; }
@media (min-width: 48rem) { .nav { display: flex; } }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: 14px; color: var(--muted); transition: color .2s var(--ease-std); }
.nav a:hover { color: var(--cream); }
.link-draw { background-image: linear-gradient(currentColor, currentColor); background-position: 0 70%; background-repeat: no-repeat; background-size: 0% 1px; transition: background-size .35s var(--ease-out), color .2s; }
.link-draw:hover { background-size: 100% 1px; }
.hdr__right { display: flex; align-items: center; gap: 4px; }
.socials { display: flex; align-items: center; gap: 4px; }
.soc { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-btn); color: var(--muted); transition: color .15s var(--ease-std), background-color .15s var(--ease-std); }
a.soc:hover { color: var(--cream); background: var(--soft); }
.soc.is-inert { opacity: .45; cursor: default; }
.ico { width: 20px; height: 20px; }
.menu { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border-radius: var(--r-btn); }
.menu span { display: block; width: 20px; height: 1.5px; background: var(--cream); transition: transform .3s var(--ease-out); }
.menu[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (min-width: 48rem) { .menu { display: none; } }
.drawer { display: grid; padding: 4px var(--gutter) 16px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 96%, transparent); }
.drawer[hidden] { display: none; }
.drawer a { display: flex; align-items: center; min-height: 48px; font-size: 17px; border-bottom: 1px solid var(--line); }

/* ---------- contract address slot ---------- */
.ca-wrap { background: color-mix(in srgb, var(--deep) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-2); }
.ca { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l b" "v v"; align-items: center; gap: 0 12px; padding: 6px 0 8px; min-height: 56px; }
.ca__label { grid-area: l; }
.ca__btn { grid-area: b; }
.ca__value { grid-area: v; }
.ca.is-inert { display: flex; flex-wrap: nowrap; gap: 14px; padding: 6px 0; }
@media (min-width: 48rem) { .ca { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "l v b"; gap: 16px; padding: 10px 0; } }
.ca__label { font: 500 11.5px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); flex: 0 0 auto; }
.ca__value { min-width: 0; text-align: left; font: 500 clamp(1rem, 1.1vw + .72rem, 1.75rem)/1.25 var(--font-mono); color: var(--cream); word-break: break-all; min-height: 44px; display: flex; align-items: center; border-radius: 8px; transition: color .2s var(--ease-std); }
button.ca__value:hover { color: var(--violet); }
.ca__value--pending { color: var(--muted); letter-spacing: .02em; cursor: default; }
.ca__btn { flex: 0 0 auto; }
.ca.is-copied .ca__value { color: var(--mint); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r-btn); font: 500 15px/1 var(--font-sans); letter-spacing: -.01em; white-space: nowrap; user-select: none; transition: background-color .15s var(--ease-std), color .15s var(--ease-std), transform .3s var(--ease-out), border-color .15s var(--ease-std); }
.btn--solid { background: var(--cream); color: var(--ink); }
.btn--solid:hover { background: var(--text); transform: translateY(-1px); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: var(--soft); border-color: var(--muted); }
.btn--sm { min-height: 44px; min-width: 76px; padding: 0 16px; font-size: 14px; border: 1px solid var(--line-2); color: var(--cream); }
.btn--sm:hover { background: var(--soft); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- status pill ---------- */
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 14px 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 12.5px/1 var(--font-mono); letter-spacing: .04em; color: var(--text); background: var(--soft); }
.pill--lg { min-height: 44px; padding: 0 18px 0 16px; }
.pill__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.pill__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0; }
.pill[data-state="live"] .pill__dot { background: var(--mint); }
.pill[data-state="live"] .pill__dot::after { animation: pulse-ring 2s var(--ease-out) infinite; }
.pill[data-state="retry"] .pill__dot { background: var(--amber); }
.pill[data-state="retry"] .pill__dot::after { animation: pulse-ring 2s var(--ease-out) infinite; }
.pill[data-state="offline"] .pill__dot { background: var(--pink); }
.pill[data-state="loading"] .pill__dot { animation: pulse 2s var(--ease-std) infinite; }
@keyframes pulse-ring { 0% { opacity: .6; transform: scale(.8); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: calc(var(--stack) + 3rem); isolation: isolate; }
@media (min-width: 40rem) { .hero { padding-top: calc(var(--stack) + 4rem); } }
.hero__copy { position: relative; z-index: 3; }
.hero__copy .pill { margin-bottom: 28px; }
.rise-line { display: block; overflow: hidden; padding-bottom: .06em; }
.rise-line > span { display: block; animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes rise { 0% { transform: translateY(105%); } }
.enter { animation: enter-up .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 160ms); }
@keyframes enter-up { 0% { opacity: 0; transform: translateY(8px); } }

.hero__art { position: absolute; z-index: 1; right: -18%; top: calc(var(--stack) + 1rem); width: min(78vw, 640px); aspect-ratio: 1; pointer-events: none; opacity: .5; }
@media (min-width: 64rem) { .hero__art { right: 2%; top: calc(var(--stack) - 1rem); opacity: 1; } }
.rings { position: absolute; inset: 0; width: 100%; height: 100%; color: color-mix(in srgb, var(--cream) 22%, transparent); will-change: transform; }
.hero__mark { position: absolute; left: 50%; top: 50%; width: 82%; height: auto; transform: translate(-50%, -50%); will-change: transform; filter: drop-shadow(0 30px 60px color-mix(in srgb, var(--deep) 90%, transparent)); }
[data-depth] { will-change: transform; }

.mesh { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.mesh__b { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 24s var(--ease-std) infinite alternate; }
.mesh__b--a { width: 46vw; height: 46vw; left: -8%; top: 4%; background: color-mix(in srgb, var(--violet) 38%, transparent); }
.mesh__b--b { width: 38vw; height: 38vw; right: 0; top: -6%; background: color-mix(in srgb, var(--sky) 24%, transparent); animation-duration: 30s; animation-delay: -8s; }
.mesh__b--c { width: 34vw; height: 34vw; left: 38%; top: 38%; background: color-mix(in srgb, var(--amber) 20%, transparent); animation-duration: 36s; animation-delay: -15s; }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(6vw, 5vw, 0) scale(1.18); } }
.dots { position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--cream) 7%, transparent) 1px, transparent 1px); background-size: 20px 20px; -webkit-mask-image: linear-gradient(180deg, var(--ink) 30%, transparent); mask-image: linear-gradient(180deg, var(--ink) 30%, transparent); }
.mesh--soft .mesh__b { opacity: .4; }

.hero__stage { position: relative; z-index: 3; margin-top: 56px; padding-bottom: 8px; }
.window { position: relative; border: 1px solid var(--line); border-radius: var(--r-win); background: color-mix(in srgb, var(--panel) 80%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px color-mix(in srgb, var(--deep) 80%, transparent); overflow: hidden; }
.window__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.window__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); opacity: .6; }
.window__title { margin-left: 10px; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; color: var(--muted); }
.window__body { display: grid; gap: 24px; padding: 24px; }
@media (min-width: 48rem) { .window__body { grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px; } }
.draft { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; font-size: 17px; line-height: 1.5; color: var(--cream); background: var(--ink); min-height: 117px; transition: opacity .3s var(--ease-std); }
.draft.is-swap { opacity: 0; }
.compose .fine { margin-top: 12px; }
.strands { display: grid; gap: 8px; align-content: start; }
.strand { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--ink) 60%, transparent); transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out); }
.strand__k { flex: none; width: 52px; font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.strand__v { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.35; }
.tick { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--faint); position: relative; transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), transform .5s var(--ease-out); }
.strand.is-on { border-color: color-mix(in srgb, var(--mint) 45%, transparent); background: var(--up-soft); }
.strand.is-on .tick { background: var(--mint); border-color: var(--mint); transform: scale(1.08); }
.strand.is-on .tick::after { content: ""; position: absolute; left: 4.5px; top: 2.5px; width: 4px; height: 7px; border: solid var(--ink); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.window__foot { display: flex; justify-content: space-between; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--line); }

/* ---------- ticker ---------- */
.ticker { margin-top: 72px; border-block: 1px solid var(--line); overflow: hidden; background: color-mix(in srgb, var(--deep) 70%, transparent); }
.ticker__track { display: flex; width: max-content; align-items: center; min-height: 56px; animation: marquee var(--dur, 60s) linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, var(--ink) 6%, var(--ink) 94%, transparent); mask-image: linear-gradient(90deg, transparent, var(--ink) 6%, var(--ink) 94%, transparent); }
.tk { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; min-height: 56px; border-right: 1px solid var(--line); white-space: nowrap; font-size: 14px; }
.tk__s { font-weight: 600; color: var(--cream); }
.tk__p { font-family: var(--font-mono); font-size: 13px; color: var(--text); }
.ticker__skel { display: block; width: 190px; height: 14px; margin: 0 22px; border-radius: 7px; }
.ticker__skel, .skel { background: linear-gradient(90deg, var(--panel) 30%, color-mix(in srgb, var(--cream) 10%, var(--panel)) 50%, var(--panel) 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.up { color: var(--up); }
.down { color: var(--down); }

/* ---------- sections ---------- */
.sec { position: relative; padding: 96px 0; }
@media (min-width: 40rem) { .sec { padding: 128px 0; } }
.sec--line { border-top: 1px solid var(--line); }
.sec--night { background: var(--deep); border-top: 1px solid var(--line); }
.sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
[data-reveal] { will-change: transform, opacity; }
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }

/* cards */
.steps, .cards { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 48rem) { .steps, .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: color-mix(in srgb, var(--panel) 55%, transparent); transition: border-color .3s var(--ease-std), transform .3s var(--ease-out); }
.card:hover { border-color: var(--line-2); }
.card p { color: var(--muted); }
.idx { font: 500 12px/1 var(--font-mono); color: var(--violet); letter-spacing: .1em; }
.pb dl { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.pb dl div { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pb dt { flex: none; width: 52px; font: 500 11px/24px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pb dd { font-size: 14.5px; }
.spark { width: 100%; height: 56px; color: var(--violet); margin-top: auto; padding-top: 8px; }
.pb:nth-child(2) .spark { color: var(--amber); }
.pb:nth-child(3) .spark { color: var(--sky); }

/* spotlight */
[data-spot] { position: relative; }
[data-spot]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease-std); background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--violet) 16%, transparent), transparent 62%); }
@media (hover: hover) { [data-spot]:hover::after { opacity: 1; } }

/* stats */
.stats, .tiles4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
@media (min-width: 64rem) { .stats, .tiles4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.stat { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: color-mix(in srgb, var(--panel) 55%, transparent); min-width: 0; }
.stat__k { font: 500 11.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat__v { font: 400 clamp(1.7rem, 3vw, 2.5rem)/1.05 var(--font-display); letter-spacing: -.02em; color: var(--cream); overflow-wrap: break-word; min-width: 0; }
.stat__v--text { font-size: clamp(1.3rem, 2.1vw, 1.9rem); line-height: 1.15; }

/* tabs + board */
.tabs { display: inline-flex; gap: 4px; margin-top: 40px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; }
.tab { min-height: 44px; min-width: 44px; padding: 0 18px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background-color .2s var(--ease-std), color .2s var(--ease-std); }
.tab:hover { color: var(--cream); }
.tab.is-on { background: var(--line-2); color: var(--cream); }
.board { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: color-mix(in srgb, var(--panel) 40%, transparent); overflow: hidden; }
.board__head, .row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.2fr) minmax(0, 1fr) 52px; align-items: center; gap: 12px; padding: 0 16px; }
@media (min-width: 40rem) { .board__head, .row { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr) 52px; padding: 0 24px; gap: 16px; } }
.board__head { min-height: 44px; font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.r { text-align: right; justify-self: end; }
.hide-sm { display: none; }
@media (min-width: 40rem) { .hide-sm { display: block; } }
.row { position: relative; min-height: 68px; border-top: 1px solid var(--line); font-size: 14.5px; transition: background-color .2s var(--ease-std); }
.row:first-child { border-top: 0; }
.row > * { min-width: 0; }
.row.is-enter { animation: row-in .6s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes row-in { 0% { opacity: 0; transform: translateY(10px); } }
.tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { flex: none; width: 36px; height: 36px; border-radius: 10px; overflow: hidden; background: var(--panel); display: grid; place-items: center; font: 600 15px/1 var(--font-sans); color: var(--ink); }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo.t0 { background: var(--violet); } .logo.t1 { background: var(--sky); } .logo.t2 { background: var(--amber); }
.logo.t3 { background: var(--mint); } .logo.t4 { background: var(--pink); } .logo.t5 { background: var(--text); }
.tok__n { min-width: 0; }
.tok__s { display: block; font-weight: 600; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok__f { display: block; font-size: 12.5px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; border-radius: 6px; padding: 2px 4px; }
.tick-up { animation: tick-up 1.1s var(--ease-out); }
.tick-down { animation: tick-down 1.1s var(--ease-out); }
@keyframes tick-up { 0% { background: var(--up-soft); color: var(--up); } }
@keyframes tick-down { 0% { background: var(--down-soft); color: var(--down); } }
.skelrow .skel { height: 14px; border-radius: 7px; width: 70%; justify-self: end; }
.skelrow .skel--tok { width: 100%; height: 36px; justify-self: stretch; }
.copy { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-btn); color: var(--muted); border: 1px solid transparent; transition: color .15s var(--ease-std), background-color .15s var(--ease-std), border-color .15s var(--ease-std); }
.copy:hover { color: var(--cream); background: var(--soft); border-color: var(--line); }
.copy.is-done { color: var(--mint); }
.copy svg { width: 18px; height: 18px; }
.board__err { padding: 20px 24px; color: var(--pink); font-size: 14.5px; border-top: 1px solid var(--line); }
.board__err[hidden] { display: none; }

/* signals mosaic */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 56px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--line); }
@media (min-width: 48rem) { .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; height: 100%; min-height: 159px; padding: 20px; text-align: left; background: var(--paper); transition: background-color .15s var(--ease-std); }
@media (min-width: 40rem) { .tile { padding: 24px; } }
.tile:hover { background: color-mix(in srgb, var(--panel) 60%, var(--paper)); }
.tile__k { font: 500 11.5px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.tile__q { font: 400 1.25rem/1.25 var(--font-display); color: var(--cream); }
.tile__a { margin-top: auto; font-size: 13.5px; color: var(--muted); transition: color .2s, transform .3s var(--ease-out); }
.tile:hover .tile__a { color: var(--cream); transform: translateX(3px); }
.mosaic > li { background: var(--paper); }

/* safety */
.split { display: grid; gap: 24px; margin-top: 56px; }
@media (min-width: 64rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.diagram { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 32px 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: color-mix(in srgb, var(--panel) 55%, transparent); color: var(--violet); }
.node { width: 100%; max-width: 320px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--ink); text-align: center; }
.node strong { display: block; font: 400 1.5rem/1.2 var(--font-display); color: var(--cream); }
.node .eyebrow { margin-bottom: 8px; }
.node--hold { border-color: color-mix(in srgb, var(--mint) 45%, transparent); }
.wire { width: 24px; height: 80px; }
.wire__flow { animation: edge-flow .9s linear infinite; }
@keyframes edge-flow { to { stroke-dashoffset: -20px; } }
.blocked { display: flex; justify-content: space-between; gap: 16px; width: 100%; max-width: 320px; margin-top: 20px; padding: 12px 16px; border: 1px dashed color-mix(in srgb, var(--pink) 50%, transparent); border-radius: 10px; font-size: 14px; color: var(--muted); }
.blocked b { color: var(--pink); font: 500 12px/24px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.can { display: grid; gap: 16px; }
@media (min-width: 40rem) { .can { grid-template-columns: 1fr 1fr; } }
.can__col { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-card); background: color-mix(in srgb, var(--panel) 55%, transparent); }
.can__col h3 { margin-bottom: 16px; }
.ticks li, .crosses li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); }
.ticks li::before, .crosses li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); }
.crosses li::before { background: var(--pink); }
.notes { display: grid; gap: 1px; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--line); }
@media (min-width: 48rem) { .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.notes li { padding: 24px; background: var(--deep); color: var(--muted); }
.notes strong { display: block; margin-bottom: 6px; color: var(--cream); font-weight: 500; }

/* token */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chip { display: inline-flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; max-width: 100%; min-width: 0; min-height: 44px; padding: 6px 16px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--soft); }
.chip__k { font: 500 11.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chip__v { min-width: 0; font-weight: 500; color: var(--cream); overflow-wrap: anywhere; word-break: break-all; }
.chip.is-inert .chip__v { color: var(--muted); font-weight: 400; }
a.chip__v { display: inline-flex; align-items: center; min-height: 44px; }
.alloc { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); }
.alloc .eyebrow { margin-bottom: 14px; }
.alloc__bar { display: flex; gap: 4px; height: 14px; }
.alloc__bar i { flex: 1; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--line-2) 0 6px, transparent 6px 12px); border: 1px solid var(--line-2); }
.alloc__legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.alloc__legend li { display: inline-flex; align-items: center; gap: 8px; }
.alloc__legend b { width: 8px; height: 8px; border-radius: 2px; background: var(--faint); }
.alloc__legend span { color: var(--cream); }

/* faq */
.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 67px; padding: 20px 0; font-size: 17px; cursor: pointer; list-style: none; color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 20px; height: 20px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 9.25px; height: 1.5px; background: var(--muted); transition: transform .3s var(--ease-out); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 40rem; animation: enter-up .5s var(--ease-out) both; }

/* cta band + footer */
.cta-band { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: 120px 0; text-align: center; isolation: isolate; }
.cta-band__in { position: relative; z-index: 2; }
.cta-band .cta { justify-content: center; }
.ftr { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--deep); }
.ftr__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.ftr__brand { display: flex; align-items: center; gap: 14px; }
.ftr__brand strong { display: block; font: 500 22px/1.1 var(--font-display); color: var(--cream); }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ftr__nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: 14px; color: var(--muted); }
.ftr__nav a:hover { color: var(--cream); }
.ftr__legal { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- motion off ---------- */
@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] { opacity: 1 !important; transform: none !important; }
  .rise-line > span, .enter { transform: none; opacity: 1; }
  .ticker { overflow-x: auto; }
  .ticker__track { transform: none; }
  [data-depth] { transform: none !important; }
  .skel, .ticker__skel { background: var(--panel); }
  .hero__mark { transform: translate(-50%, -50%) !important; }
}
