/* Single home for every colour literal. Nothing else under src/ may contain a hex value.
   Provenance: k-means (k=5, fixed seed) over opaque pixels of each brand file; each centre snapped to the
   nearest real pixel, whose coordinate is listed. Regenerate with `npm run assets`. */
/*   --bg  #050505  <- brand/LOGO UNKNWN PNG.png  pixel (x=889, y=1926)  cluster share 96.8%  [page ground] */
/*   --ink  #f1eee5  <- brand/LOGO UNKNWN PNG...png  pixel (x=877, y=962)  cluster share 49.6%  [primary text, wordmark cream] */
/*   --accent  #db7756  <- brand/LOGO UNKNWN PNG...png  pixel (x=1516, y=989)  cluster share 17.0%  [wordmark final N, signal colour] */
/*   --edge  #363534  <- brand/LOGO UNKNWN PNG.png  pixel (x=972, y=984)  cluster share 0.1%  [strong hairline, anti-alias shoulder of the wordmark] */
/*   --dim  #7e7e7d  <- brand/LOGO UNKNWN PNG.png  pixel (x=1118, y=1083)  cluster share 0.1%  [secondary text] */
/*   --faint  #65625d  <- reference/SAMPUL UNKNWN JPG.jpg.jpeg  pixel (x=654, y=472)  cluster share 0.8%  [tertiary text, hex dump grey] */
/*   --line  #1d1d1b  <- reference/SAMPUL UNKNWN JPG.jpg.jpeg  pixel (x=275, y=204)  cluster share 5.2%  [hairline, hex dump ground] */
/*   --ember  #1f1412  <- reference/UNKNWN 2.jpg.jpeg  pixel (x=1074, y=247)  cluster share 7.1%  [warm shadow behind the orange glow] */
/*   --accent-deep  #6d403b  <- reference/UNKNWN 2.jpg.jpeg  pixel (x=1060, y=866)  cluster share 1.3%  [dimmed accent, orange glow falloff] */
:root {
  --bg: #050505;
  --ink: #f1eee5;
  --accent: #db7756;
  --edge: #363534;
  --dim: #7e7e7d;
  --faint: #65625d;
  --line: #1d1d1b;
  --ember: #1f1412;
  --accent-deep: #6d403b;

  /* derived surfaces: mixes of the sampled colours only */
  --panel: color-mix(in srgb, var(--ink) 3%, var(--bg));
  --panel-2: color-mix(in srgb, var(--ink) 6%, var(--bg));
  --ink-soft: color-mix(in srgb, var(--ink) 80%, var(--bg));
  --accent-wash: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 38%, transparent);
  --scrim: color-mix(in srgb, var(--bg) 92%, transparent);
  --flash-up: color-mix(in srgb, var(--ink) 16%, transparent);
  --flash-down: color-mix(in srgb, var(--accent) 22%, transparent);

  /* type */
  --mono: "JBM", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs: 13px;

  /* layout, measured off the reference */
  --gut: 24px;
  --hdr: 44px;
  --ca-h: 64px;
  --pane-h: 30px;
  --tap: 44px;

  /* motion, measured off the reference */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 120ms;
  --t-base: 160ms;
  --t-med: 250ms;
  --t-sheet: 220ms;
  --t-flash: 900ms;
  --t-pulse: 1600ms;
  --t-blink: 1060ms;
  --t-flow: 2400ms;
  color-scheme: dark;
}
@media (max-width: 760px) {
  :root { --gut: 16px; --hdr: 48px; --ca-h: 92px; }
}

@font-face { font-family: JBM; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: JBM; src: url(../fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: JBM; src: url(../fonts/jetbrains-mono-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--edge) var(--bg);
  scrollbar-width: thin;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + var(--ca-h) + 12px);
}
html, body { background: var(--bg); color: var(--ink); margin: 0; }
body {
  font: 400 var(--fs) / 1.55 var(--mono);
  font-variant-ligatures: none;
  font-variant-numeric: tabular-nums slashed-zero;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
@media (hover: hover) { a:hover { color: var(--accent); } }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0 0 0.8em; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }
summary { cursor: pointer; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr:focus { position: fixed; z-index: 200; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 12px 16px; background: var(--ink); color: var(--bg); }
.acc { color: var(--accent); }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.bold { font-weight: 700; }
.up { text-transform: uppercase; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 12px; }
.mt2 { margin-top: 24px; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px;
  border: 1px solid var(--edge); background: var(--panel); color: var(--ink);
  font-size: 12px; font-weight: 700; white-space: nowrap; position: relative;
  transition: border-color var(--t-base) ease-out, background var(--t-base) ease-out, color var(--t-base) ease-out;
}
@media (hover: hover) { .btn:hover { border-color: var(--ink); color: var(--ink); } }
.btn.pri { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (hover: hover) { .btn.pri:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); } }
.btn svg { width: 14px; height: 14px; }

.tag { display: inline-block; padding: 0 6px; border: 1px solid; font-size: 10px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.tag.ok { color: var(--ink); }
.tag.pend { color: var(--dim); }

.eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.eyebrow .n { color: var(--accent); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 8px var(--accent-glow); }


.hdr {
  position: sticky; top: 0; z-index: 30; height: var(--hdr);
  display: flex; align-items: stretch;
  background: var(--scrim); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hdr .logo { display: flex; align-items: center; padding: 0 16px 0 var(--gut); border-right: 1px solid var(--line); min-width: var(--tap); min-height: var(--tap); }
.hdr .logo img { height: 18px; width: auto; }
.hdr nav { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.hdr nav a {
  display: flex; align-items: center; padding: 0 12px; min-height: var(--tap);
  font-size: 12px; color: var(--dim); white-space: nowrap; border-right: 1px solid transparent;
  transition: color var(--t-fast) ease-out, background var(--t-fast) ease-out;
}
.hdr nav a .k { color: var(--faint); margin-right: 4px; }
@media (hover: hover) { .hdr nav a:hover { color: var(--ink); background: var(--panel); } }
.hdr nav a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.hdr .right { margin-left: auto; display: flex; align-items: stretch; }
.social { display: flex; align-items: stretch; }
.social li { display: flex; border-left: 1px solid var(--line); }
.soc {
  display: flex; align-items: center; justify-content: center;
  width: var(--tap); min-width: var(--tap); height: 100%; min-height: var(--tap);
  color: var(--ink); transition: color var(--t-base) ease-out, background var(--t-base) ease-out;
}
.soc svg { width: 18px; height: 18px; fill: currentColor; }
@media (hover: hover) { .soc:not(.is-inert):hover { color: var(--accent); background: var(--panel); } }
.soc.is-inert { color: var(--faint); cursor: not-allowed; }


.ca {
  position: sticky; top: var(--hdr); z-index: 29; min-height: var(--ca-h);
  background: var(--scrim); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ca-in { display: flex; align-items: center; gap: 16px; min-height: var(--ca-h); padding: 8px var(--gut); }
.ca-k { flex: none; display: flex; flex-direction: column; gap: 2px; }
.ca-k b { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); font-weight: 400; }
.ca-k .tag { align-self: flex-start; }
.ca-v {
  flex: 1; min-width: 0; min-height: var(--tap); display: flex; align-items: center; gap: 12px;
  text-align: left; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  font-size: clamp(13px, 2.1vw, 28px); overflow-wrap: anywhere; word-break: break-all;
  position: relative; padding: 4px 0;
}
.ca-v .ca-addr { min-width: 0; }
.ca-v.is-inert { color: var(--dim); cursor: not-allowed; font-weight: 700; letter-spacing: 0.02em; }
.ca-fb {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px;
  border: 1px solid var(--edge); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim);
  transition: color var(--t-base) ease-out, border-color var(--t-base) ease-out, background var(--t-base) ease-out;
}
.ca-fb svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ca-v[data-copied="true"] .ca-fb { color: var(--bg); background: var(--accent); border-color: var(--accent); }
@media (hover: hover) { .ca-v:not(.is-inert):hover .ca-fb { color: var(--ink); border-color: var(--ink); } .ca-v:not(.is-inert):hover { color: var(--accent); } }

.pill {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 10px;
  border: 1px solid var(--edge); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.pill[data-state="live"] { color: var(--ink); }
.pill[data-state="live"] .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); animation: pulse var(--t-pulse) ease-in-out infinite; }
.pill[data-state="stale"] .dot { background: var(--accent-deep); }
.pill[data-state="error"] { color: var(--accent); }
.pill[data-state="error"] .dot { background: var(--accent); }
.pill[data-state="loading"] .dot { background: var(--dim); animation: pulse var(--t-pulse) ease-in-out infinite; }


.wrap { padding: 0 var(--gut); }
.main { padding-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid > * { background: var(--panel); min-width: 0; }
.s12 { grid-column: span 12; } .s8 { grid-column: span 8; } .s7 { grid-column: span 7; } .s5 { grid-column: span 5; } .s4 { grid-column: span 4; }
.pane { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--panel); }
.pane-h { display: flex; align-items: center; gap: 8px; height: var(--pane-h); flex: none; padding: 0 10px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; }
.pane-h .n { color: var(--accent); }
.pane-h .t { color: var(--ink); font-weight: 700; }
.pane-h .rule { flex: 1; min-width: 12px; height: 1px; background: repeating-linear-gradient(90deg, var(--edge) 0 4px, transparent 4px 7px); }
.pane-h .meta { color: var(--faint); overflow: hidden; text-overflow: ellipsis; }
.pane-b { flex: 1; min-width: 0; padding: 10px 12px; }
.pane-b.flush { padding: 0; }
.pane-f { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 6px 10px; border-top: 1px solid var(--line); font-size: 11px; color: var(--faint); }

.sec { padding: 56px var(--gut) 0; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sec-h h2 { font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.03em; text-transform: lowercase; }
.sec-h .eyebrow { margin-bottom: 4px; }


.foot { margin-top: 56px; padding: 28px var(--gut) 28px; border-top: 1px solid var(--line); }
.foot img { height: 20px; width: auto; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 20px 56px; margin-top: 20px; }
.foot-cols > div { display: flex; flex-direction: column; gap: 2px; font-size: 12px; min-width: 140px; }
.foot-cols .eyebrow { margin-bottom: 4px; }
.foot-cols a, .foot-cols .chip { display: flex; align-items: center; min-height: var(--tap); min-width: var(--tap); color: var(--dim); }
.foot-l { margin-top: 16px; font-size: 11px; color: var(--faint); max-width: 760px; }


.mnav { display: none; }

@media (max-width: 1100px) {
  .s4 { grid-column: span 6; }
  .s5, .s7, .s8 { grid-column: span 12; }
  .hdr nav a .k { display: none; }
  .hdr nav a { padding: 0 9px; }
}
@media (max-width: 960px) {
  .hdr nav { display: none; }
}
@media (max-width: 760px) {
  .hdr .logo { border-right: 0; }
  .grid > * { grid-column: span 12 !important; }
  .main { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 16px); }
  .sec { padding-top: 40px; }
  .ca-in { gap: 4px 12px; flex-wrap: wrap; align-content: center; }
  .ca-k { order: 1; flex: 1; }
  .ca .pill { order: 2; }
  .ca-v { order: 3; flex: 1 1 100%; font-size: clamp(14px, 4vw, 17px); }
  .ca-fb { display: none; }
  .ca-v[data-copied="true"] .ca-fb { display: inline-flex; position: absolute; right: 86px; top: -34px; }
  .mnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    background: var(--scrim); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .mnav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    min-height: 56px; min-width: var(--tap); font-size: 11px; color: var(--dim); border-right: 1px solid var(--line);
    transition: background var(--t-fast) ease-out;
  }
  .mnav a:last-child { border-right: 0; }
  .mnav a b { font-size: 10px; color: var(--faint); font-weight: 400; }
  .mnav a.on { color: var(--ink); background: var(--panel); box-shadow: inset 0 2px 0 var(--accent); }
  .mnav a:active { background: var(--panel-2); }
  .foot { margin-top: 32px; }
}

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-mesh { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 0%, var(--ink) 35% 100%); mask-image: linear-gradient(90deg, transparent 0%, var(--ink) 35% 100%); }
.hero-mesh canvas { image-rendering: pixelated; }
.hero-in { position: relative; padding-top: 56px; padding-bottom: 32px; }
.hero-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.display {
  margin: 0; font-size: clamp(44px, 7.2vw, 116px); font-weight: 800; line-height: 0.9;
  letter-spacing: -0.055em; word-spacing: -0.2em; text-transform: uppercase;
}
.display .o { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.hero-txt .display { max-width: 520px; }
.defs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; max-width: 520px; font-size: 14px; line-height: 1.5; }
.defs dt { color: var(--accent); font-weight: 700; white-space: nowrap; }
.defs dt::after { content: " ="; color: var(--faint); font-weight: 400; }
.defs dd { color: var(--dim); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }


.vis-pane { background: color-mix(in srgb, var(--bg) 92%, transparent); border: 1px solid var(--line); }
.vis { position: relative; height: 440px; overflow: hidden; background: var(--bg); isolation: isolate; }
.vis canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; z-index: 0; }
.layer { position: absolute; will-change: transform; transition: none; }
.vis-hex {
  left: -2%; top: -4%; margin: 0; font-size: 11px; line-height: 1.5; color: var(--faint); white-space: pre; z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, var(--ink) 0%, var(--ink) 40%, transparent 85%); mask-image: linear-gradient(90deg, var(--ink) 0%, var(--ink) 40%, transparent 85%);
  user-select: none;
}
.vis-hex i { font-style: normal; color: var(--accent); }
.vis-code {
  right: 3%; bottom: 4%; margin: 0; z-index: 1; font-size: 10.5px; line-height: 1.6; color: var(--dim); white-space: pre; user-select: none;
}
.vis-code .c { color: var(--faint); }
.vis-code .k { color: var(--ink-soft); }
.vis-mark { left: 50%; top: 46%; width: min(66%, 460px); margin: 0; z-index: 2; translate: -50% -50%; }
.vis-mark img { width: 100%; height: auto; filter: drop-shadow(0 0 28px var(--accent-wash)); }
.vis-rule { top: 8%; bottom: 8%; right: 7%; width: 1px; background: var(--edge); z-index: 1; }
.vis-rule::before, .vis-rule::after { content: ""; position: absolute; left: -10px; width: 21px; height: 1px; background: var(--edge); }
.vis-rule::before { top: 30%; }
.vis-rule::after { top: 62%; }
.vis-dot { right: calc(7% - 3px); top: 8%; width: 7px; height: 7px; background: var(--accent); z-index: 1; }


.rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; position: relative; }
.rg { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 9px 12px 8px; background: var(--panel); }
.rg-k { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.rg-v { font-size: 21px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-v.is-pending { color: var(--dim); font-weight: 400; font-size: 14px; line-height: 24px; letter-spacing: 0.04em; }
.rg-d { min-height: 16px; font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cells { display: flex; gap: 2px; height: 8px; margin-top: 2px; }
.cells i { flex: 1; background: var(--line); }
.cells i.on { background: color-mix(in srgb, var(--accent) 65%, var(--bg)); }

@media (max-width: 1280px) {
  .hero-cols { grid-template-columns: 1fr; }
  .display { font-size: clamp(44px, 9vw, 120px); }
  .vis { height: 360px; }
  .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero-in { padding-top: 32px; }
  .display { font-size: clamp(40px, 12.5vw, 64px); }
  .vis { height: 300px; }
  .defs { grid-template-columns: 1fr; row-gap: 2px; font-size: 13px; }
  .defs dd { margin-bottom: 8px; }
  .hero-cta .btn { flex: 1 1 140px; }
  .vis-code { display: none; }
}
@media (max-width: 640px) {
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-d { white-space: normal; }
}

.flow { display: flex; align-items: stretch; border: 1px solid var(--edge); background: var(--panel-2); margin: 12px; container-type: inline-size; }
.node { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 12px; border-right: 1px solid var(--line); flex: 0 0 auto; }
.node:last-child { border-right: 0; }
.node .k { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.node .v { font-size: 18px; line-height: 1.1; font-weight: 700; white-space: nowrap; }
.node .s { font-size: 10px; color: var(--faint); max-width: 150px; }
.pipe { display: flex; align-items: center; flex: 1 1 0; min-width: 44px; padding: 0 2px 0 6px; border-right: 1px solid var(--line); }
.wire { flex: 1; overflow: hidden; white-space: nowrap; font-size: 10px; line-height: 14px; color: var(--faint); border-top: 1px dashed var(--edge); border-bottom: 1px dashed var(--edge);
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--ink) 18% 82%, transparent); mask-image: linear-gradient(90deg, transparent, var(--ink) 18% 82%, transparent); }
.wire span { display: inline-block; padding-right: 8px; color: var(--accent-deep); animation: flow var(--t-flow) linear infinite; }
.arrow { margin-left: 2px; width: 10px; height: 10px; flex: none; fill: var(--accent); }
.split { display: flex; flex-direction: column; flex: 4 1 0; min-width: 220px; border-left: 1px solid var(--edge); }
.split .br { display: flex; align-items: stretch; flex: 1 1 0; min-width: 0; }
.split .br + .br { border-top: 1px solid var(--line); }
.split .node { border-right: 0; }
.node.ok { background: var(--accent-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.node.ok .v { color: var(--accent); }
@container (width <= 760px) {
  .flow { flex-wrap: wrap; }
  .split { flex: 1 0 100%; border-left: 0; border-top: 1px solid var(--edge); }
}
@media (max-width: 760px) {
  .flow { flex-direction: column; }
  .node { border-right: 0; border-bottom: 1px solid var(--line); }
  .pipe { flex: 0 0 24px; min-width: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 12px; }
  .arrow { transform: rotate(90deg); }
  .split { border-top: 0; min-width: 0; }
}


.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.step { position: relative; min-height: 150px; padding: 16px; background: var(--panel); overflow: hidden; }
.step h3 { margin: 6px 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.step p { margin: 0; font-size: 12px; color: var(--dim); }
.step .n { font-size: 11px; color: var(--accent); letter-spacing: 0.14em; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } }


.rungs { display: flex; flex-direction: column; }
.rung { display: grid; grid-template-columns: 36px 150px minmax(0, 1fr) 120px; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 12px; position: relative; }
.rung:last-child { border-bottom: 0; }
.rung .id { color: var(--faint); }
.rung .st { font-weight: 700; color: var(--dim); }
.rung .wh { color: var(--dim); }
.rung .gg { display: flex; gap: 2px; height: 8px; }
.rung .gg i { flex: 1; background: var(--line); }
.rung .gg i.on { background: color-mix(in srgb, var(--accent) 65%, var(--bg)); }
.rung.is-live { background: color-mix(in srgb, var(--accent) 6%, transparent); box-shadow: inset 2px 0 0 var(--accent); }
.rung.is-live .st { color: var(--accent); animation: pulse2 2400ms ease-in-out infinite; }
.rung.is-queued .st { opacity: 0.7; }
@media (max-width: 900px) { .rung { grid-template-columns: 30px minmax(0, 1fr) 80px; } .rung .wh { grid-column: 2 / 4; grid-row: 2; padding-bottom: 6px; } .rung { padding-bottom: 6px; } }


.recs { display: flex; flex-direction: column; }
.rec { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px; border-bottom: 1px solid var(--line); font-size: 12px; position: relative; }
.rec:last-child { border-bottom: 0; }
.rec .l { color: var(--ink); font-weight: 700; }
.rec .v { margin-left: auto; text-align: right; color: var(--dim); overflow-wrap: anywhere; min-width: 0; }
.rec .v.is-pending { color: var(--dim); }
.rec .tag { flex: none; }


.qa { border-bottom: 1px solid var(--line); background: var(--panel); }
.qa:last-child { border-bottom: 0; }
.qa summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; list-style: none; font-weight: 700; font-size: 13px; user-select: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .m { color: var(--accent); width: 14px; flex: none; font-weight: 400; }
.qa summary .m::before { content: "+"; }
.qa[open] summary .m::before { content: "\2212"; }
.qa .a { padding: 0 12px 16px 38px; color: var(--dim); max-width: 760px; font-size: 13px; line-height: 1.65; }
@media (hover: hover) { .qa summary:hover { background: var(--panel-2); } }


.cta { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.cta-in { position: relative; padding: 40px 28px; }
.cta h2 { font-size: clamp(28px, 3.8vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; text-transform: uppercase; max-width: 720px; }
.cta p { margin-top: 12px; max-width: 560px; color: var(--dim); font-size: 14px; line-height: 1.65; }
.cta .chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 14px; border: 1px solid var(--edge); font-size: 12px; color: var(--dim); }
.chip svg { width: 16px; height: 16px; fill: currentColor; }
.chip .p { color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
a.chip { color: var(--ink); }
@media (hover: hover) { a.chip:hover { border-color: var(--ink); } }
@media (max-width: 760px) { .cta-in { padding: 28px 16px; } }


.tiles { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); height: 100%; }
.tile { position: relative; padding: 10px 12px; background: var(--panel); min-width: 0; }
.tile .k { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.tile .v { margin-top: 2px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .s { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }


[data-spot] { position: relative; }
@media (hover: hover) {
  [data-spot]:hover { background-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--accent-wash), transparent 70%); }
}

.ticker {
  position: relative; overflow: hidden; height: var(--tap); border-bottom: 1px solid var(--line); background: var(--bg);
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--ink) 5% 95%, transparent); mask-image: linear-gradient(90deg, transparent, var(--ink) 5% 95%, transparent);
}
.track { display: flex; width: max-content; height: 100%; animation: marquee var(--dur, 80s) linear infinite; }
.ticker:hover .track, .ticker:focus-within .track { animation-play-state: paused; }
.tk { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; height: 100%; font-size: 12px; white-space: nowrap; border-right: 1px solid var(--line); }
.tk .sy { font-weight: 700; }
.tk .px { color: var(--dim); }
.tk.sk-item { color: transparent; }


.lg { position: relative; flex: none; width: 28px; height: 28px; border: 1px solid var(--edge); background: var(--panel-2); overflow: hidden; display: grid; place-items: center; }
.lg img { width: 100%; height: 100%; object-fit: cover; }
.lg.is-letter { background: color-mix(in srgb, var(--accent) var(--tile, 14%), var(--panel-2)); color: var(--ink); font-size: 13px; font-weight: 800; }
.lg.sm { width: 20px; height: 20px; font-size: 10px; }


.tbl-wrap { overflow-x: auto; min-width: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th { position: sticky; top: 0; z-index: 1; padding: 6px 10px; text-align: left; font-weight: 400; white-space: nowrap; color: var(--faint); background: var(--panel); border-bottom: 1px solid var(--line); }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl td { height: 52px; padding: 4px 10px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl tbody tr { position: relative; }
.tbl .tok { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tbl .tok .nm { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.tbl .tok .nm b { overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.tbl .tok .nm span { color: var(--faint); font-size: 11px; }
.tbl .rk { color: var(--faint); width: 36px; }
.chg { font-weight: 700; }
.chg.up { color: var(--ink); }
.chg.dn { color: var(--accent); }
.chg.up::before, .chg.dn::before { display: inline-block; width: 10px; margin-right: 4px; font-size: 9px; font-family: sans-serif; }
.chg.up::before { content: "\25B2"; }
.chg.dn::before { content: "\25BC"; }
.tbl tbody { transition: opacity var(--t-base) ease-out; }
.tbl tbody.is-out { opacity: 0; }
.track .half { display: flex; flex: none; }
.tbl .gauge { width: 96px; }
.cp {
  display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); margin: -6px -8px -6px 0;
  color: var(--dim); position: relative; transition: color var(--t-base) ease-out, background var(--t-base) ease-out;
}
.cp svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cp .ck { display: none; }
.cp[data-copied="true"] { color: var(--accent); }
.cp[data-copied="true"] .cc { display: none; }
.cp[data-copied="true"] .ck { display: block; }
@media (hover: hover) { .cp:hover { color: var(--ink); background: var(--panel-2); } }
.cp-note { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }

.sk { display: inline-block; height: 12px; vertical-align: middle; background: linear-gradient(90deg, var(--panel-2) 0 40%, color-mix(in srgb, var(--ink) 9%, var(--panel-2)) 50%, var(--panel-2) 60%); background-size: 220% 100%; animation: shimmer 1400ms linear infinite; }
.sk.sq { width: 28px; height: 28px; }
.sk.w1 { width: 90px; } .sk.w2 { width: 64px; } .sk.w3 { width: 56px; } .sk.w4 { width: 70px; } .sk.w5 { width: 96px; }

.dash { color: var(--faint); }
.err-box { margin: 10px 12px; padding: 10px 12px; border: 1px solid var(--accent-deep); background: color-mix(in srgb, var(--accent) 6%, var(--panel)); color: var(--accent); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.err-box[hidden] { display: none; }

@media (max-width: 760px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody { display: block; }
  .tbl tr {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) var(--tap); grid-template-areas: "tok tok cp" "px chg chg" "vol liq liq";
    gap: 2px 12px; padding: 10px 12px 10px; border-bottom: 1px solid var(--line);
  }
  .tbl td { display: block; height: auto; padding: 0; border: 0; white-space: normal; min-width: 0; }
  .tbl td.rk, .tbl td.gauge { display: none; }
  .tbl td.c-tok { grid-area: tok; }
  .tbl td.c-cp { grid-area: cp; align-self: center; justify-self: end; }
  .tbl td.c-px { grid-area: px; text-align: left; }
  .tbl td.c-chg { grid-area: chg; text-align: left; }
  .tbl td.c-vol { grid-area: vol; text-align: left; }
  .tbl td.c-liq { grid-area: liq; text-align: left; }
  .tbl td.c-vol::before, .tbl td.c-liq::before, .tbl td.c-px::before { content: attr(data-l) " "; color: var(--faint); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
  .cp { margin: -8px -10px -8px 0; }
}

@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes pulse2 { 50% { opacity: 0.55; } }
@keyframes flash-up { 0% { background-color: var(--flash-up); } to { background-color: transparent; } }
@keyframes flash-down { 0% { background-color: var(--flash-down); } to { background-color: transparent; } }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes flow { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes cell { to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.cells.fill i.on, .gg.fill i.on { opacity: 0; animation: cell var(--t-med) ease-out forwards; animation-delay: calc(var(--j, 0) * 40ms); }
.flash-up { animation: flash-up var(--t-flash) ease-out; }
.flash-down { animation: flash-down var(--t-flash) ease-out; }
.row-in { animation: rowin 260ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.caret { display: inline-block; width: 8px; height: 1em; vertical-align: -2px; background: var(--accent); animation: blink var(--t-blink) step-end infinite; }


.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .layer { transform: none !important; }
  .track { animation: none !important; transform: none !important; }
  .ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .sk { animation: none; }
  .pill .dot, .rung.is-live .st, .caret, .wire span { animation: none !important; }
  .cells.fill i.on, .gg.fill i.on { opacity: 1; animation: none; }
  .flash-up, .flash-down { animation: none; }
}
