/* All colour comes from tokens.css. Surfaces are mixes of sampled tokens, never new literals. */
:root {
  --bg: var(--ground);
  --surface: color-mix(in srgb, var(--ink) 4%, var(--ground));
  --surface-2: color-mix(in srgb, var(--ink) 7%, var(--ground));
  --surface-3: color-mix(in srgb, var(--ink) 11%, var(--ground));
  --line: color-mix(in srgb, var(--ink) 12%, var(--ground));
  --line-strong: color-mix(in srgb, var(--ink) 24%, var(--ground));
  --ink-2: color-mix(in srgb, var(--ink) 66%, var(--ground));
  --ink-3: color-mix(in srgb, var(--ink) 52%, var(--ground));
  --up: var(--green);
  --down: var(--orange);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: "Doto", "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-rise: cubic-bezier(.2, .7, .2, 1);
  --ease-row: cubic-bezier(.2, .8, .2, 1);
  --ease-inout: cubic-bezier(.77, 0, .175, 1);
  --gutter: 28px;
  --head-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-mono); font-size: 14px; line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container-x { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--orange), var(--violet), var(--green), var(--yellow)); }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.head-row { display: flex; align-items: center; gap: 12px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; border-radius: 2px; }
.brand-mark { width: 32px; height: 32px; }
.brand-word { font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: .28em; }
.nav { display: none; margin-left: 24px; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 2px; color: var(--ink-2); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: color .15s var(--ease-out), background-color .15s var(--ease-out); }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.socials { display: flex; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink); transition: background-color .15s var(--ease-out), transform .15s var(--ease-out), border-color .15s var(--ease-out); }
a.icon-btn:hover { background: var(--surface-3); border-color: var(--ink-3); }
a.icon-btn:active { transform: scale(.96); }
.icon-btn.is-inert { color: var(--ink-3); border-style: dashed; cursor: not-allowed; }

/* status pill */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.pill[data-status="live"] .dot { background: var(--green); box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); animation: pulse-dot 1.4s ease-in-out infinite, ring-pulse 2.4s var(--ease-out) infinite; }
.pill[data-status="live"] { color: var(--ink); }
.pill[data-status="stale"] .dot, .pill[data-status="wait"] .dot { background: var(--yellow); animation: pulse-dot 1.4s ease-in-out infinite; }
.pill[data-status="error"] .dot { background: var(--orange); }
.pill.flash-up { animation: land 1.2s ease-out; }

/* contract address slot */
.ca-bar { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 80%, transparent); }
.ca-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; min-height: 56px; }
.ca-label { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.ca-value { display: inline-flex; flex: 1 1 280px; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface-2); text-align: left; transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out), transform .15s var(--ease-out); }
.ca-value:hover { background: var(--surface-3); border-color: var(--ink-3); }
.ca-value:active { transform: scale(.995); }
.ca-text { font-size: clamp(13px, 3.6vw, 22px); font-weight: 600; letter-spacing: .02em; overflow-wrap: anywhere; line-height: 1.3; }
.ca-hint { flex: none; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.ca-value[data-copied="yes"] { border-color: var(--green); }
.ca-value[data-copied="yes"] .ca-hint { color: var(--green); }
.ca-copy-inert { margin-left: auto; min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px dashed var(--line-strong); border-radius: 2px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px dashed var(--line-strong); border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

/* type */
.eyebrow { font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.h-display { margin-top: 24px; font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 8.1vw, 46px); line-height: 1.02; letter-spacing: -.02em; }
.h-display .block { display: block; }
.accent { color: color-mix(in srgb, var(--ink-hi) 85%, var(--yellow)); text-shadow: 0 0 28px color-mix(in srgb, var(--yellow) 35%, transparent); }
.h-sec { margin-top: 20px; font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 6vw, 36px); line-height: 1.06; letter-spacing: -.02em; }
.h-card { margin-top: 14px; font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 1.1; letter-spacing: -.02em; }
.lede, .sec-lede { color: var(--ink-2); font-size: 15px; line-height: 1.65; max-width: 480px; }
.lede { margin-top: 20px; }
.sec-lede { margin-top: 14px; }

/* buttons */
.cta-row { display: grid; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 2px; border: 1px solid transparent; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; user-select: none; transition: transform .15s var(--ease-out), background-color .15s var(--ease-out), border-color .15s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--ink); color: var(--ground); }
.btn-solid:hover { background: var(--ink-hi); }
.btn-line { border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { background: var(--surface-2); border-color: var(--ink-3); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 72px; isolation: isolate; }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 260px; }
.hero-logo { position: relative; width: min(100%, 360px); height: auto; filter: drop-shadow(0 18px 50px color-mix(in srgb, var(--ink) 18%, transparent)); will-change: transform; }
.halo { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 20%, transparent), transparent); will-change: transform; }
.floor { position: absolute; bottom: -4%; width: 80%; height: 22%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 14%, transparent), transparent); filter: blur(10px); will-change: transform; }
.dots { position: absolute; inset: -40px; z-index: -1; background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 22%, transparent) 1px, transparent 1.4px); background-size: 14px 14px; mask-image: radial-gradient(ellipse at 60% 45%, var(--ink) 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 60% 45%, var(--ink) 10%, transparent 70%); will-change: transform; }
.mesh { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.blob { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(80px); opacity: .22; will-change: transform; }
.b1 { left: -12%; top: -30%; background: var(--orange); animation: drift-a 26s var(--ease-inout) infinite alternate; }
.b2 { right: -14%; top: -18%; background: var(--violet); animation: drift-b 31s var(--ease-inout) infinite alternate; }
.b3 { left: 18%; bottom: -46%; background: var(--green); opacity: .14; animation: drift-c 29s var(--ease-inout) infinite alternate; }
.b4 { right: 8%; bottom: -40%; background: var(--yellow); opacity: .1; animation: drift-a 35s var(--ease-inout) infinite alternate-reverse; }

/* ticker */
.ticker { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.tk-mask { overflow: hidden; height: 56px; -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-track { display: flex; width: max-content; height: 56px; align-items: center; }
.tk-track.is-ready { animation: k-marquee 56s linear infinite; }
.tk-mask:hover .tk-track { animation-play-state: paused; }
.tk-run { display: flex; flex: none; align-items: center; }
.tk-item { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; height: 56px; font-size: 12px; white-space: nowrap; }
.tk-sym { font-weight: 600; letter-spacing: .1em; }
.tk-price { color: var(--ink-2); }
.tk-chg[data-dir="up"], .c-change[data-dir="up"] .v { color: var(--up); }
.tk-chg[data-dir="down"], .c-change[data-dir="down"] .v { color: var(--down); }

/* sections */
.section { padding-top: 64px; padding-bottom: 64px; }
.sec-head { margin-bottom: 32px; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile, .step, .panel, .warn { position: relative; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); overflow: hidden; }
.tile { padding: 16px; min-height: 112px; }
.tile-k { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.tile-v { margin-top: 10px; font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 5.4vw, 30px); line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.tile-c { margin-top: 10px; font-size: 11px; line-height: 1.4; color: var(--ink-3); }
.sk-text { color: var(--ink-3); animation: shimmer 1.4s ease-in-out infinite; }
[data-spot]::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease-out); background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--ink) 11%, transparent), transparent 70%); }
[data-spot]:hover::before { opacity: 1; }
[data-spot]:hover { border-color: var(--line-strong); }
.flash-up { animation: land-up 1.2s ease-out; }
.flash-down { animation: land-down 1.2s ease-out; }
.note { margin: 16px 0 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--orange) 45%, var(--line)); border-radius: 2px; color: var(--ink-2); font-size: 12px; }

/* table */
.table { margin-top: 24px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); }
.row { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; grid-template-areas: "rank token price change" ". vol liq copy"; gap: 4px 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); overflow: hidden; }
.row-head { display: none; border-top: 0; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.row .c-rank { grid-area: rank; color: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.row .c-token { grid-area: token; display: flex; align-items: center; gap: 12px; min-width: 0; }
.row .c-price { grid-area: price; justify-self: end; font-variant-numeric: tabular-nums; }
.row .c-change { grid-area: change; justify-self: end; min-width: 76px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.row .c-vol { grid-area: vol; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.row .c-liq { grid-area: liq; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; justify-self: end; }
.row .c-copy { grid-area: copy; justify-self: end; }
.row:not(.row-head):not(.sk) .c-vol::before, .row:not(.row-head):not(.sk) .c-liq::before { content: attr(data-label) " "; color: var(--ink-3); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.row .c-liq::before { margin-right: 4px; }
.tok { display: grid; min-width: 0; }
.tok-sym { font-weight: 600; letter-spacing: .06em; }
.tok-name { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-wrap { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.logo-tile, .logo-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo-tile { display: grid; place-items: center; font-weight: 600; font-size: 15px; color: var(--ground); }
.logo-tile[data-hue="0"] { background: var(--orange); }
.logo-tile[data-hue="1"] { background: var(--violet); }
.logo-tile[data-hue="2"] { background: var(--green); }
.logo-tile[data-hue="3"] { background: var(--yellow); }
.logo-img { object-fit: cover; background: var(--surface-3); }
.tk-item .logo-wrap { width: 22px; height: 22px; }
.tk-item .logo-tile { font-size: 11px; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 2px; background: var(--surface-2); font-size: 10px; letter-spacing: .1em; color: var(--ink-2); transition: background-color .15s var(--ease-out), transform .15s var(--ease-out), color .15s var(--ease-out); }
.copy-btn:hover { background: var(--surface-3); color: var(--ink); }
.copy-btn:active { transform: scale(.97); }
.copy-btn[data-copied="yes"] { color: var(--green); }
.row:not(.row-head):not(.sk):hover::before { opacity: 1; }
.row[data-spot]::before { z-index: 0; }
.row > * { position: relative; z-index: 1; }
.row-enter { animation: k-row-in 400ms var(--ease-row) both, k-row-tint 1.2s ease-out 400ms both; }

/* skeleton */
.sk-bar, .sk-circle { display: block; height: 12px; border-radius: 2px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sweep 1.4s linear infinite; }
.sk-circle { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.sk-bar.is-dash { animation: none; background: none; height: auto; width: auto !important; color: var(--ink-3); }
.sk-bar.is-dash::after { content: "—"; }

/* steps and panels */
.steps { display: grid; gap: 12px; }
.step { padding: 20px; }
.step-k { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.step-p { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.two { display: grid; gap: 12px; }
.panel, .warn { padding: 20px; }
.panel-h { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: -.02em; }
.recs { margin-top: 14px; display: grid; gap: 0; }
.rec { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-top: 1px solid var(--line); font-size: 13px; }
.rec:first-child { border-top: 0; }
.rec-k { color: var(--ink-2); letter-spacing: .06em; }
.rec-v { font-weight: 600; overflow-wrap: anywhere; text-align: right; }
.rec-v[data-ok="yes"] { color: var(--green); }
.rec-v[data-ok="no"] { color: var(--orange); }
.warn { margin-top: 12px; }
.warn p { margin-top: 12px; color: var(--ink-2); font-size: 13px; line-height: 1.7; max-width: 720px; }
.final { text-align: left; }
.final .btn { margin-top: 24px; }

/* footer */
.site-foot { margin-top: 24px; border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot-row { display: grid; gap: 14px; }
.foot-brand { font-family: var(--font-display); font-weight: 900; letter-spacing: .2em; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--ink-2); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.foot-nav a:hover { color: var(--ink); }
.foot-note { font-size: 11px; color: var(--ink-3); max-width: 520px; }

/* reveal: only hide when script is running */
.js [data-reveal]:not(.is-in) { opacity: 0; }

/* breakpoints */
@media (min-width: 640px) {
  .cta-row { display: flex; flex-wrap: wrap; align-items: center; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-display { font-size: clamp(34px, 6vw, 49.6px); }
  .foot-row { grid-template-columns: auto 1fr; align-items: center; }
  .foot-note { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .row { grid-template-columns: 36px minmax(180px, 1.6fr) 1fr 1fr 1fr 1fr auto; grid-template-areas: "rank token price change vol liq copy"; gap: 12px; padding: 12px 18px; }
  .row-head { display: grid; }
  .row .c-price, .row .c-change, .row .c-liq { justify-self: end; text-align: right; }
  .row .c-vol { justify-self: end; text-align: right; font-size: 14px; color: var(--ink); }
  .row .c-liq { font-size: 14px; color: var(--ink); }
  .row:not(.row-head):not(.sk) .c-vol::before, .row:not(.row-head):not(.sk) .c-liq::before { content: none; }
  .row-head .c-copy { min-width: 100px; text-align: right; }
}
@media (min-width: 1024px) {
  .nav { display: flex; }
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; }
  .hero-logo { width: min(100%, 440px); }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .section { padding-top: 96px; padding-bottom: 96px; }
  .site-head .pill { display: inline-flex; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .brand-word { font-size: 16px; letter-spacing: .2em; }
  .pill { padding: 0 8px; }
  .head-right { gap: 6px; }
  .socials { gap: 6px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
}
@media (max-width: 400px) {
  .brand-word { display: none; }
}

/* keyframes */
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ring-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes k-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes k-row-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes k-row-tint { from { background: color-mix(in srgb, var(--ink) 9%, transparent); } to { background: transparent; } }
@keyframes land { from { background: color-mix(in srgb, var(--green) 30%, transparent); } to { background: transparent; } }
@keyframes land-up { from { background: color-mix(in srgb, var(--green) 30%, transparent); } to { background: transparent; } }
@keyframes land-down { from { background: color-mix(in srgb, var(--orange) 30%, transparent); } to { background: transparent; } }
@keyframes shimmer { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes sweep { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes drift-a { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-9vmax, 8vmax, 0) scale(.9); } }
@keyframes drift-c { to { transform: translate3d(6vmax, -7vmax, 0) scale(1.2); } }

/* reduced motion: everything lands instantly, nothing loops */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal]:not(.is-in) { opacity: 1; }
  .tk-mask { overflow-x: auto; }
  .tk-track { animation: none !important; transform: none !important; }
  .tk-run + .tk-run { display: none; }
  .hero-logo, .halo, .floor, .dots { transform: none !important; }
}
