/* Layout, type and motion. Values measured off the reference at 1440 / 390; colours come only from tokens.css. */
@font-face { font-family: "Montserrat Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/montserrat.woff2") format("woff2-variations"), url("../fonts/montserrat.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono Variable"; font-style: normal; font-display: swap; font-weight: 100 800; src: url("../fonts/jetbrains-mono.woff2") format("woff2-variations"), url("../fonts/jetbrains-mono.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 150px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 450 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
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; }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 600; }
.skip:focus { top: 8px; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); }
.unit { font-size: .72em; font-weight: 500; color: var(--ink-3); }

/* ---- sticky top: header + contract row ---- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 95%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr-in { height: 64px; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; }
.nav { display: none; gap: 28px; margin-left: 40px; margin-right: auto; font-size: 14.5px; color: var(--ink-2); }
.nav a { min-height: 44px; min-width: 44px; justify-content: center; display: inline-flex; align-items: center; transition: color var(--t-ui) var(--ease-ui); }
.nav a:hover { color: var(--ink); }
.social { display: flex; align-items: center; gap: 4px; margin-right: -8px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink-2); transition: color var(--t-ui) var(--ease-ui), background-color var(--t-ui) var(--ease-ui); }
a.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.icon-btn.is-inert { color: var(--ink-3); opacity: .6; cursor: not-allowed; }
.icon-btn svg { width: 20px; height: 20px; }

.ca-row { border-top: 1px solid var(--line); }
.ca-in { max-width: var(--container); margin: 0 auto; padding: 10px var(--gutter); }
.ca { display: grid; grid-template-columns: 1fr 44px; grid-template-areas: "label btn" "value btn" "note btn"; column-gap: 12px; align-items: center; min-height: 64px; }
.ca-label { grid-area: label; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ca-value { grid-area: value; font: 600 clamp(17px, 1.3vw + 11px, 26px)/1.25 var(--font-mono); letter-spacing: -.01em; overflow-wrap: anywhere; word-break: break-all; color: var(--ink); }
.ca.is-inert .ca-value { color: var(--ink-3); font-family: var(--font-sans); letter-spacing: -.02em; }
.ca-note { grid-area: note; font-size: 12.5px; color: var(--ink-3); }
.ca-btn { grid-area: btn; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); color: var(--ink); position: relative; transition: background-color var(--t-ui) var(--ease-ui), border-color var(--t-ui) var(--ease-ui); }
.ca-btn:not(:disabled):hover { background: var(--surface-2); }
.ca-btn:disabled { color: var(--ink-3); border-color: var(--line); cursor: not-allowed; opacity: .6; }
.ca-btn .ico + .ico { position: absolute; opacity: 0; transform: scale(.4); }
.ca-btn.is-done .ico:first-of-type { opacity: 0; }
.ca-btn.is-done .ico + .ico { opacity: 1; transform: none; animation: pop .42s var(--ease-out); }
.ca.is-copied .ca-value { animation: flash 1.2s ease-out; }

/* ---- shells ---- */
.shell { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sec { margin-top: 112px; }
.sec-stack { margin-top: 112px; display: grid; gap: 96px; grid-template-columns: minmax(0, 1fr); }
.sec-stack > *, .sec-block, .frame { min-width: 0; }
.frame, .sec-block { overflow-x: clip; }

/* ---- hero ---- */
.hero { position: relative; overflow-x: clip; }
.hero-in { position: relative; max-width: var(--container); margin: 0 auto; padding: 24px var(--gutter) 56px; display: grid; gap: 40px; align-items: center; }
.hero-copy { position: relative; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.display { font-weight: 600; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.035em; }
.word { display: inline-block; animation: word 1s var(--ease-out) backwards; animation-delay: calc(var(--w, 0) * 90ms + 80ms); }
.word:nth-of-type(1) { --w: 0; } .word:nth-of-type(2) { --w: 1; } .word:nth-of-type(3) { --w: 2; } .word:nth-of-type(4) { --w: 3; } .word:nth-of-type(5) { --w: 4; }
.lead { margin-top: 24px; font-size: 17.5px; line-height: 1.63; color: var(--ink-2); max-width: 420px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { min-height: 46px; padding: 0 22px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; transition: transform var(--t-ui) var(--ease-ui), background-color var(--t-ui) var(--ease-ui), border-color var(--t-ui) var(--ease-ui); }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--ink); color: var(--bg); box-shadow: 0 1px 2px color-mix(in srgb, var(--c-white) 20%, transparent); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }
.rise { animation: rise 1s var(--ease-out) backwards; }
.d0 { animation-delay: 340ms; } .d1 { animation-delay: 420ms; } .d2 { animation-delay: 480ms; } .d3 { animation-delay: 580ms; }

.blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(56px); }
.b1 { width: 543px; height: 538px; right: 4%; top: 6%; background: radial-gradient(closest-side, var(--glow), transparent); animation: drift-a 17s ease-in-out infinite alternate; }
.b2 { width: 410px; height: 421px; right: -4%; top: 40%; background: radial-gradient(closest-side, var(--glow-2), transparent); animation: drift-b 21s ease-in-out infinite alternate; }
.b3 { width: 394px; height: 347px; left: 10%; top: 4%; background: radial-gradient(closest-side, var(--glow-3), transparent); animation: drift-c 25s ease-in-out infinite alternate; }
.hero-card, .hero-copy { z-index: 1; }
.hero-card { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ---- card ---- */
.id-card { position: relative; width: 100%; max-width: 380px; height: 404px; overflow: hidden; border-radius: var(--radius-card); background: var(--card-bg); color: var(--card-ink); box-shadow: var(--shadow-card); perspective: 1400px; animation: float 9s ease-in-out infinite; }
.id-card::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; border-radius: inherit; pointer-events: none; background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--c-silver) 38%, transparent), transparent); animation: sheen 8s var(--ease-out) 1.4s infinite; z-index: 3; }
.card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s var(--ease-out); }
.card-inner.is-flipped { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: inherit; overflow: hidden; display: flex; flex-direction: column; background: var(--card-bg); }
.face.back { transform: rotateY(180deg); }
.face-body { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 15px; }
.face-foot { height: 50px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--card-line); font-size: 13px; color: var(--card-ink-2); background: color-mix(in srgb, var(--c-silver) 18%, var(--c-white)); }
.face .muted, .face .muted-2, .id-card .unit { color: var(--card-ink-2); }
.face .slot, .face .slot > span:first-child { color: inherit; }
.card-top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--c-silver) 45%, var(--c-white)); box-shadow: inset 0 0 0 1px var(--card-line); }
.avatar.sm { width: 38px; height: 38px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.card-no { font-size: 13px; font-weight: 600; }
.k { font-size: 12.5px; font-weight: 500; line-height: 20px; color: var(--card-ink-2); }
.handle { font-weight: 700; font-size: 20px; letter-spacing: -.02em; line-height: 29px; }
.score-row { display: flex; align-items: center; gap: 10px; font-weight: 600; line-height: 21px; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 12px; height: 12px; border-radius: 3px; background: color-mix(in srgb, var(--c-silver) 55%, var(--c-white)); }
.card-result { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; height: 58px; }
.big { font-weight: 700; font-size: 26px; letter-spacing: -.035em; line-height: 1.1; }
.spark { width: 96px; height: 32px; color: var(--card-ink-2); }
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.5s var(--ease-out) .1s backwards; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 16px; border-top: 1px solid var(--card-line); margin-top: auto; }
.tiles dt { font-size: 12px; color: var(--card-ink-2); line-height: 18px; }
.tiles dd { font-weight: 700; font-size: 17px; line-height: 26px; }
.keys { display: grid; gap: 6px; margin-top: 4px; }
.keys li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 12px; background: color-mix(in srgb, var(--c-silver) 22%, var(--c-white)); font-size: 13px; line-height: 1.4; }
.keys .k-name { font-weight: 700; letter-spacing: -.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keys .k-price { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--card-ink-2); }
.keys .tok-logo.tile { background: var(--card-ink); color: var(--c-white); }
.face .skel { background: linear-gradient(90deg, color-mix(in srgb, var(--c-silver) 35%, var(--c-white)) 30%, var(--c-white) 50%, color-mix(in srgb, var(--c-silver) 35%, var(--c-white)) 70%); background-size: 220% 100%; }
.face .skel.round { width: 22px; height: 22px; }
.meters .mv { min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.tenure { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--card-ink); }
.tenure .skel { width: 90px; }
.keys em, .row em { font-style: normal; font-family: var(--font-sans); font-size: 11.5px; font-weight: 600; color: var(--card-ink-2); }
.mt { margin-top: 6px; }
.meters { display: grid; gap: 9px; }
.meters > div { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 10px; font-size: 13px; }
.meters dd { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.meter { flex: 1; height: 6px; border-radius: 4px; background: color-mix(in srgb, var(--c-silver) 50%, var(--c-white)); overflow: hidden; }
.meter b { display: block; width: calc(var(--w, 0) * 100%); height: 100%; background: var(--card-ink); transition: width 1.2s var(--spring); }
.flip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; color: var(--ink-2); transition: color var(--t-ui) var(--ease-ui), background-color var(--t-ui) var(--ease-ui); }
.flip:hover { color: var(--ink); background: var(--surface-2); }
.card-date { margin-top: -2px; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 500; color: var(--ink-3); background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }

/* ---- tabbed stage ---- */
.tabs-wrap { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.tablist { display: flex; gap: 8px; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.tablist::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-3); transition: color var(--t-ui) var(--ease-ui), background-color var(--t-ui) var(--ease-ui); white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface-2); color: var(--ink); }
.tab-n { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; border: 1px solid var(--line-2); }
.stage-frame { border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); overflow: hidden; }
.panel { animation: veil .25s ease-out backwards; }
.panel[hidden] { display: none; }
.stage { display: grid; gap: 28px; padding: 28px 20px; align-items: center; min-height: 360px; }
.stage-copy h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; }
.stage-copy p { margin-top: 12px; font-size: 15.5px; line-height: 1.625; color: var(--ink-2); max-width: 420px; }
.mock { display: grid; gap: 12px; padding: 20px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.field { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); font-size: 18px; font-weight: 600; }
.field.soft { font-size: 14px; font-weight: 500; color: var(--ink-2); border-color: var(--line); }
.mock.list { gap: 0; padding: 4px 20px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; border-top: 1px solid var(--line); font-size: 14px; }
.row:first-child { border-top: 0; }
.row b { width: 22px; font-weight: 700; color: var(--ink-3); }
.row em { color: var(--ink-3); }
.row .bar { margin: 0; }
.mock.notice { grid-template-columns: 44px 1fr; align-items: start; }
.bell { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); }
.mock .k, .frame .k { color: var(--ink-3); }

/* ---- generic slots ---- */
.slot { color: var(--ink-3); }
.bar { display: block; height: 10px; border-radius: 6px; background: var(--surface-2); margin: 8px 0; }
.w-30 { width: 30%; } .w-45 { width: 45%; } .w-60 { width: 60%; } .w-70 { width: 70%; } .w-90 { width: 90%; }

/* ---- content blocks ---- */
.sec-head h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; }
.sec-head p { margin-top: 12px; max-width: 576px; font-size: 15.5px; line-height: 1.625; color: var(--ink-2); }
.frame { position: relative; margin-top: 32px; padding: 24px 16px; border: 1px solid var(--line); border-radius: var(--radius-panel); background-color: var(--surface); }
.frame > .pill { position: absolute; top: -12px; right: 22px; }
.chips-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chips-row .chips { margin-bottom: 0; }
.chip { min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; color: var(--ink-3); transition: color var(--t-ui) var(--ease-ui), background-color var(--t-ui) var(--ease-ui); }
.chip:hover { color: var(--ink); }
.chip[aria-selected="true"] { background: var(--surface-2); color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.tbl-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.tbl { width: 100%; min-width: 560px; border-collapse: collapse; }
.tbl th { padding: 0 12px 12px 8px; text-align: left; font-size: 12.5px; font-weight: 500; line-height: 20px; color: var(--ink-3); }
.tbl td { padding: 15px 12px 15px 8px; border-top: 1px solid var(--line); line-height: 38px; font-variant-numeric: tabular-nums; }
.tbl .rk { width: 48px; font-weight: 700; color: var(--ink-3); }
.tbl .trend { width: 90px; color: var(--ink-3); }
.tbl .trend svg { width: 56px; height: 20px; }
.feed { margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius-tile); overflow: hidden; }
.feed-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 16px 20px; min-height: 76px; border-top: 1px solid var(--line); align-items: center; animation: feed-in .7s var(--ease-out) backwards; }
.feed-row:first-child { border-top: 0; }
.feed-row:nth-child(2) { animation-delay: 80ms; } .feed-row:nth-child(3) { animation-delay: 160ms; } .feed-row:nth-child(4) { animation-delay: 240ms; } .feed-row:nth-child(5) { animation-delay: 320ms; }
.fr-t { font-weight: 700; letter-spacing: -.02em; }
.fr-s { font-size: 13px; color: var(--ink-3); }
.fr-m { font-size: 13px; color: var(--ink-2); grid-column: 1; }
.fr-v { text-align: right; font-weight: 600; font-size: 14px; grid-row: 1 / span 2; grid-column: 2; }
.fr-v .muted { font-weight: 450; font-size: 12.5px; }
.stack > .post:first-child { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.stack > .post:last-child { padding-top: 24px; }
.post-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-h .muted { font-size: 13px; }
.tag { padding: 2px 10px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.post-b { margin: 16px 0 14px 48px; }
.post-title { font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.post-f { margin-left: 48px; display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; font-size: 13px; }
.ticker { font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--surface-2); }
.react { margin-left: auto; color: var(--ink-3); }

.h2 { font-size: 26px; line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.steps { display: grid; gap: 16px; margin-top: 32px; }
.steps li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); }
.step-n { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: var(--ink); color: var(--bg); margin-bottom: 16px; }
.steps h4 { font-size: 18px; letter-spacing: -.02em; font-weight: 700; margin: 0 0 8px; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

.band { position: relative; margin-top: 112px; overflow: clip; padding: 80px 0; text-align: center; border-top: 1px solid var(--line); }
.band-in { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; }
.band .blob { opacity: .9; }
.band .b1 { right: auto; left: 8%; top: -10%; }
.band .b3 { left: auto; right: 8%; top: 10%; }
.h2.xl { font-size: 32px; }

.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: var(--container); margin: 0 auto; padding: 40px var(--gutter) 48px; display: grid; gap: 14px; }
.foot-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.foot-brand .muted { font-weight: 450; font-size: 13px; }
.foot-note { max-width: 576px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.foot-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.foot-meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.foot-meta a:hover { color: var(--ink); }
.foot-meta .sol { width: 16px; height: 16px; }

/* ---- market ---- */
.ticker-band { position: relative; border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.mq-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, var(--c-black) 6%, var(--c-black) 94%, transparent); mask-image: linear-gradient(90deg, transparent, var(--c-black) 6%, var(--c-black) 94%, transparent); }
.mq-track { display: flex; width: max-content; animation: marquee var(--mq-dur, 40s) linear infinite; }
.ticker-band:hover .mq-track, .ticker-band:focus-within .mq-track { animation-play-state: paused; }
.mq-item { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; font-size: 14px; white-space: nowrap; border-right: 1px solid var(--line); }
.mq-item strong { font-weight: 700; letter-spacing: -.01em; }
.mq-err { color: var(--ink-3); animation: none; }
.ticker-band[data-state="error"] .mq-track { animation: none; }
.mq-inert { display: flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 var(--gutter); }
.skel { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 30%, color-mix(in srgb, var(--c-graphite) 70%, var(--surface-2)) 50%, var(--surface-2) 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.skel.round { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.skel.round.sm { width: 22px; height: 22px; }
.skel.mq-skel { width: 90px; }
.mkt .num, .mkt th.num { text-align: right; }
.mkt { min-width: 760px; }
.mkt td { line-height: 1.3; vertical-align: middle; }
.mkt .act { width: 60px; text-align: right; }
.tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tok-logo { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.tok-logo.sm { width: 22px; height: 22px; font-size: 11px; }
.tok-logo.tile { display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--c-graphite); }
.tok-name { display: grid; line-height: 1.25; min-width: 0; }
.tok-name strong { font-weight: 700; letter-spacing: -.01em; }
.tok-name .muted { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.chg { font-weight: 600; }
.chg.up { color: var(--ink); }
.chg.down { color: var(--ink-3); }
.chg .arr { font-size: 10px; }
.fade { animation: veil .6s var(--ease-out) backwards; }
.addr-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); color: var(--ink); position: relative; transition: background-color var(--t-ui) var(--ease-ui); }
.addr-btn:not(:disabled):hover { background: var(--surface-2); }
.addr-btn:disabled { color: var(--ink-3); border-color: var(--line); cursor: not-allowed; opacity: .6; }
.addr-btn .ico + .ico { position: absolute; opacity: 0; transform: scale(.4); }
.addr-btn.is-done .ico:first-of-type { opacity: 0; }
.addr-btn.is-done .ico + .ico { opacity: 1; transform: none; animation: pop .42s var(--ease-out); }
.dot.err { background: var(--ink); }
.retry { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); color: var(--ink); }
.retry[hidden] { display: none; }
.is-error .mkt td .dash { color: var(--ink-3); }

/* ---- reveal ---- */
.reveal-wait { opacity: 0; transform: translateY(20px); }
.reveal-go { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }

/* ---- breakpoints (reference: sm 640, md 768, lg 1024) ---- */
@media (min-width: 640px) {
  .sec-head h3, .stage-copy h3 { font-size: 28px; line-height: 1.15; }
  .frame { padding: 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .h2 { font-size: 36px; }
  .h2.xl { font-size: 44px; line-height: 1.08; }
  .hero-in { padding-top: 40px; }
  .tablist { justify-content: center; }
}
@media (min-width: 768px) {
  .nav { display: flex; }
  .stage { grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px; }
  .feed-row { grid-template-columns: 1fr 220px 140px; }
  .fr-m { grid-column: auto; }
  .fr-v { grid-row: auto; grid-column: auto; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
  .sec { margin-top: 144px; }
  .sec-stack { margin-top: 144px; gap: 128px; }
  .hero-in { grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 40px; padding-bottom: 40px; min-height: calc(100svh - 128px); }
  .hero-card { justify-self: center; }
  .stage-frame { aspect-ratio: 16 / 9; display: grid; }
  .stage { padding: 56px 72px; }
  .band { margin-top: 144px; }
}
@media (max-width: 1023px) {
  .hero-card { align-items: stretch; }
  .id-card { margin: 0 auto; }
  .hero-card { align-items: center; }
}

/* ---- motion keyframes (reference values) ---- */
@keyframes drift-a { 0% { transform: translate(-3%, 2%) scale(1); } to { transform: translate(5%, -4%) scale(1.1); } }
@keyframes drift-b { 0% { transform: translate(4%, -3%) scale(1.06); } to { transform: translate(-6%, 5%) scale(.94); } }
@keyframes drift-c { 0% { transform: translate(0) scale(.95); } to { transform: translate(8%, 6%) scale(1.08); } }
@keyframes veil { 0% { opacity: 0; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } to { transform: scale(1); } }
@keyframes float { 0%, to { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes sheen { 0% { transform: translate(-130%) skew(-12deg); } 26%, to { transform: translate(340%) skew(-12deg); } }
@keyframes feed-in { 0% { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes word { 0% { opacity: 0; filter: blur(10px); transform: translateY(.35em); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes draw { 0% { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shimmer { 0% { background-position: 110% 0; } to { background-position: -110% 0; } }
@keyframes flash { 0% { background: var(--surface-2); } to { background: transparent; } }

/* ---- motion layer ---- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; pointer-events: none; }
.progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--c-graphite), var(--c-white)); }

.mesh { position: absolute; inset: -12%; z-index: 0; pointer-events: none; filter: blur(24px); background-size: 150% 150%;
  background-image: radial-gradient(40% 50% at 20% 30%, color-mix(in srgb, var(--c-silver) 16%, transparent), transparent 70%),
    radial-gradient(35% 45% at 82% 18%, color-mix(in srgb, var(--c-mid) 20%, transparent), transparent 70%),
    radial-gradient(45% 50% at 72% 86%, color-mix(in srgb, var(--c-graphite) 60%, transparent), transparent 70%),
    radial-gradient(30% 40% at 8% 90%, color-mix(in srgb, var(--c-ghost) 90%, transparent), transparent 70%);
  animation: mesh 24s ease-in-out infinite alternate; }
.px { position: relative; z-index: 1; will-change: transform; }
.layer { position: absolute; inset: 0; display: block; will-change: transform; }

.rv { opacity: 0; transform: translateY(32px); }
.rv-go .rv { opacity: 1; transform: none; transition: opacity .6s var(--ease-out) calc(var(--i, 0) * 80ms), transform 1.1s var(--spring) calc(var(--i, 0) * 80ms); }
.feed-row, .post { animation-delay: calc(var(--i, 0) * 70ms); }

.spot { background-image: radial-gradient(240px circle at var(--sx, -400px) var(--sy, -400px), color-mix(in srgb, var(--c-white) 9%, transparent), transparent 70%); }
.mkt tbody tr { transition: background-color var(--t-ui) var(--ease-ui); }

.live-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: var(--bg); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.live-pill .dot { position: relative; flex: none; }
.live-pill[data-state="live"] { color: var(--ink); }
.live-pill[data-state="live"] .dot { background: var(--ink); }
.live-pill[data-state="live"] .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); animation: pulse-dot 2s ease-out infinite; }
.live-pill[data-state="loading"] .dot { animation: blink 1.2s ease-in-out infinite; }
.live-pill[data-state="error"] .dot { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }

.num > span, .mq-item .chg { border-radius: 6px; }
.num > span { display: inline-block; padding: 2px 6px; margin: -2px -6px; }
.flash-up { animation: flash-up 1.1s ease-out; }
.flash-down { animation: flash-down 1.1s ease-out; }
.fade { animation: settle .9s var(--spring) backwards; }

@keyframes mesh { 0% { background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%; } 100% { background-position: 100% 100%, 0% 100%, 0% 0%, 100% 0%; } }
@keyframes pulse-dot { 0% { opacity: .6; transform: scale(1); } to { opacity: 0; transform: scale(3.6); } }
@keyframes blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes flash-up { 0% { background: color-mix(in srgb, var(--c-white) 30%, transparent); } to { background: transparent; } }
@keyframes flash-down { 0% { background: color-mix(in srgb, var(--c-mid) 38%, transparent); } to { background: transparent; } }
@keyframes settle { 0% { opacity: 0; transform: translateY(10px) scale(.98); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
  .id-card::after, .blob { display: none; }
  .id-card { animation: none; }
  .mq-track { animation: none; }
  .mq-viewport { overflow-x: auto; }
  .mq-clone { display: none; }
  .skel { animation: none; }
  .mesh { animation: none; }
  .px, .layer { transform: none !important; }
  .rv, .rv-go .rv { opacity: 1; transform: none; transition: none; }
  .fade, .flash-up, .flash-down { animation: none; }
  .live-pill .dot::after { display: none; }
  .live-pill[data-state="loading"] .dot { animation: none; }
  .reveal-wait { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
}
