/* Layout and motion values measured from the reference bundle: panel radius 18px, label 11px/.08em,
   status pill 28px/8px, hero title clamp(42px,5vw,76px)/1.02, CTA height 52px/12px radius,
   step cards min-height 112px/16px radius, spring 260/24, ease (.22,1,.36,1), ticker linear loop. */
:root {
  --bg: var(--ink);
  --fg: var(--paper);
  --muted: var(--grey);
  --panel: color-mix(in srgb, var(--paper) 5.5%, var(--ink));
  --secondary: color-mix(in srgb, var(--paper) 8%, var(--ink));
  --accent: color-mix(in srgb, var(--paper) 11%, var(--ink));
  --border: color-mix(in srgb, var(--paper) 13%, var(--ink));
  --border-strong: color-mix(in srgb, var(--paper) 22%, var(--ink));
  --mint: var(--color-mint);
  --font-display: Sora, "Segoe UI", system-ui, sans-serif;
  --font-body: Manrope, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 64px;
  --ca-h: 56px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--ca-h) + 12px); background: var(--bg); }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
.wrap { width: 100%; max-width: 1450px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }
.label { text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 16px; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; margin-top: 8px; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.25; margin-top: 8px; }
@media (min-width: 640px) { .h2 { font-size: 30px; } }
.lede { color: var(--muted); margin-top: 8px; max-width: 36rem; }
.panel { border: 1px solid var(--border); background: var(--panel); border-radius: 18px; position: relative; overflow: hidden; }

/* progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--fg); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px color-mix(in srgb, var(--mint) 70%, transparent); }

/* header + CA slot */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ink) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.top-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-mark { width: 36px; height: 36px; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; line-height: 1; }
.nav { display: none; gap: 4px; margin-left: auto; margin-right: 16px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 14px; padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--fg); background: var(--secondary); }
@media (min-width: 900px) { .nav { display: flex; } }
.socials { display: flex; gap: 4px; margin-left: auto; }
@media (min-width: 900px) { .socials { margin-left: 0; } }
.social { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); color: var(--fg); background: var(--secondary); transition: background .15s, border-color .15s; }
a.social:hover { background: var(--accent); border-color: var(--border-strong); }
.social[aria-disabled="true"] { color: var(--muted); opacity: .6; cursor: default; }
.ca-bar { border-top: 1px solid var(--border); background: color-mix(in srgb, var(--paper) 3%, var(--ink)); }
.ca-wrap { display: flex; align-items: center; gap: 12px; min-height: var(--ca-h); padding-top: 6px; padding-bottom: 6px; }
.ca-label { flex: none; }
@media (max-width: 639px) {
  .ca-wrap { flex-direction: column; align-items: stretch; gap: 2px; padding-top: 6px; padding-bottom: 8px; }
  .ca-wrap .ca-value { font-size: 17px; }
}
.ca-slot { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 12px; border: 1px dashed var(--border-strong); }
.ca-value { font-family: var(--font-display); font-weight: 600; font-size: clamp(14px, 2.4vw, 24px); letter-spacing: .01em; overflow-wrap: anywhere; word-break: break-all; line-height: 1.25; }
.ca-slot[aria-disabled="true"] .ca-value { color: var(--muted); }
.ca-slot.is-live { border-style: solid; border-color: var(--mint); cursor: pointer; background: color-mix(in srgb, var(--mint) 6%, transparent); transition: background .15s; }
.ca-slot.is-live:hover { background: color-mix(in srgb, var(--mint) 12%, transparent); }
.ca-slot.is-live:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.ca-hint { flex: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--mint); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.mesh { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; transform: translate3d(calc(var(--px, 0) * var(--d, 1) * 28px), calc(var(--py, 0) * var(--d, 1) * 28px + var(--sy, 0) * var(--d, 1) * -40px), 0); }
.mesh-a { width: 520px; height: 520px; left: -140px; top: -120px; background: radial-gradient(circle, color-mix(in srgb, var(--mint) 26%, transparent), transparent 68%); animation: drift 16s ease-in-out infinite alternate; }
.mesh-b { width: 460px; height: 460px; right: -120px; top: 40px; background: radial-gradient(circle, color-mix(in srgb, var(--paper) 16%, transparent), transparent 68%); animation: drift 21s ease-in-out infinite alternate-reverse; }
.mesh-c { width: 380px; height: 380px; left: 38%; bottom: -200px; background: radial-gradient(circle, color-mix(in srgb, var(--mint) 14%, transparent), transparent 68%); animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { margin: 0; } to { margin: 36px 0 0 44px; } }
.dots { position: absolute; inset: -40px; opacity: .48; background-image: radial-gradient(circle, var(--border-strong) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(circle at 50% 46%, var(--ink), transparent 78%); mask-image: radial-gradient(circle at 50% 46%, var(--ink), transparent 78%); transform: translate3d(calc(var(--px, 0) * var(--d, 1) * 14px), calc(var(--py, 0) * var(--d, 1) * 14px + var(--sy, 0) * var(--d, 1) * -20px), 0); }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.25fr .75fr; } .hero { padding: 96px 0 104px; } }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--secondary); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint); animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { opacity: 0; transform: scale(2.4); } }
.is-warn .live-dot, .is-down .live-dot { background: var(--grey); }
.is-warn .live-dot::after, .is-down .live-dot::after { animation: none; }
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(42px, 5vw, 76px); line-height: 1.02; letter-spacing: -.02em; margin-top: 22px; max-width: 56rem; }
.hero-sub { margin-top: 20px; max-width: 42rem; font-size: 18px; line-height: 32px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 700; border: 1px solid var(--border); transition: transform .2s var(--ease), background .15s, border-color .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.btn-primary:hover { background: color-mix(in srgb, var(--paper) 88%, var(--ink)); }
.btn-ghost { background: var(--secondary); }
.btn-ghost:hover { background: var(--accent); border-color: var(--border-strong); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 14px; }
.hero-art { position: relative; aspect-ratio: 1; width: min(100%, 420px); margin: 0 auto; display: grid; place-items: center; }
.hero-logo { width: 52%; height: auto; position: relative; filter: drop-shadow(0 0 28px color-mix(in srgb, var(--paper) 30%, transparent)); }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--border-strong); transform: translate3d(calc(var(--px, 0) * var(--d, 1) * 18px), calc(var(--py, 0) * var(--d, 1) * 18px), 0); }
.ring-1 { inset: 17%; } .ring-2 { inset: 7%; border-style: dashed; animation: spin 60s linear infinite; } .ring-3 { inset: -3%; opacity: .55; }
@keyframes spin { to { rotate: 360deg; } }

/* ticker */
.ticker { border-block: 1px solid var(--border); background: var(--panel); overflow: hidden; height: 52px; display: flex; align-items: center; -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); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.tick-sym { font-family: var(--font-display); font-weight: 600; }
.tick-p { color: var(--muted); font-variant-numeric: tabular-nums; }
.tick .logo { width: 22px; height: 22px; }

/* sections */
.section { padding-top: 88px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.status { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--secondary); color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* board */
.tabs { display: flex; gap: 4px; padding: 12px 16px 0; }
.tab { height: 44px; padding: 0 16px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 14px; transition: color .15s, background .15s; }
.tab:hover { color: var(--fg); }
.tab.is-on { color: var(--fg); background: var(--accent); }
.board-head, .row { display: grid; grid-template-columns: 44px minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)) 52px; align-items: center; column-gap: 12px; padding: 0 20px; }
.board-head { height: 40px; margin-top: 8px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.r { text-align: right; }
.row { position: relative; min-height: 68px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; transition: background .2s; isolation: isolate; }
.row:last-child { border-bottom: 0; }
a.row:hover, .row.spot:hover { background: color-mix(in srgb, var(--paper) 3%, transparent); }
.row .rank { color: var(--muted); font-weight: 700; font-size: 13px; }
.tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; background: var(--secondary); border: 1px solid var(--border); }
.tile-letter { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent); border: 1px solid var(--border-strong); font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.tick .tile-letter { width: 22px; height: 22px; font-size: 11px; }
.tok-text { min-width: 0; }
.tok-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok-sym { color: var(--muted); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { text-align: right; font-weight: 600; font-size: 14px; white-space: nowrap; }
.num .k { display: none; }
.up { color: var(--mint); } .down { color: var(--fg); } .flat { color: var(--muted); }
.flash-up { animation: flashUp .9s var(--ease); } .flash-down { animation: flashDown .9s var(--ease); }
@keyframes flashUp { 0% { background: color-mix(in srgb, var(--mint) 38%, transparent); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: color-mix(in srgb, var(--paper) 22%, transparent); } 100% { background: transparent; } }
.num span.flash-up, .num span.flash-down { border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
.copy { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); border: 1px solid transparent; transition: color .15s, background .15s, border-color .15s; justify-self: end; }
.copy:hover { color: var(--fg); background: var(--secondary); border-color: var(--border); }
.copy.done { color: var(--mint); }
.row-own { border-left: 2px solid var(--color-mint); animation: ownPulse 2s ease-in-out infinite; }
@keyframes ownPulse { 0%, 100% { background: color-mix(in srgb, var(--color-mint) 2%, transparent); } 50% { background: color-mix(in srgb, var(--color-mint) 8%, transparent); } }
.row-own .rank { color: var(--mint); }
.row-ph .tok-name { letter-spacing: .3em; color: var(--muted); }
.board-error { padding: 14px 20px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
.row-sk .sk { display: block; height: 14px; }
.sk { background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary)); background-size: 200% 100%; border-radius: 8px; animation: shimmer 1.6s ease-in-out infinite; }
.sk-line { display: inline-block; width: 90px; height: 28px; vertical-align: middle; }
.sk-circle { width: 36px; height: 36px; border-radius: 50%; flex: none; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.fade-in { animation: fadeIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sub { display: contents; }
@media (max-width: 899px) {
  .board-head { display: none; }
  .row { grid-template-columns: 28px minmax(0, 1fr) auto 44px; grid-template-areas: "rk tk pr cp" "rk tk ch cp" ". sub sub sub"; row-gap: 2px; padding: 12px 16px; }
  .row .rank { grid-area: rk; }
  .row .tok { grid-area: tk; }
  .row .n-price { grid-area: pr; }
  .row .n-ch { grid-area: ch; }
  .row .sub { grid-area: sub; display: flex; gap: 18px; color: var(--muted); font-size: 12px; margin-top: 4px; }
  .row .sub .num { text-align: left; font-size: 12px; }
  .row .num .k { display: inline; color: var(--muted); font-weight: 500; margin-right: 4px; }
  .row .copy { grid-area: cp; align-self: center; grid-row: 1 / 3; }
}

/* loop */
.loop { display: grid; }
@media (min-width: 1280px) { .loop { grid-template-columns: 1fr 330px; } .loop-side { border-left: 1px solid var(--border); } }
.loop-main { padding: 20px; position: relative; }
@media (min-width: 640px) { .loop-main { padding: 32px; } }
.loop-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.bar { height: 4px; border-radius: 999px; background: var(--secondary); overflow: hidden; margin-bottom: 32px; }
.bar span { display: block; height: 100%; background: var(--fg); transform-origin: 0 50%; transform: scaleX(var(--lp, 0)); border-radius: 999px; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.step { min-height: 112px; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--panel); display: flex; flex-direction: column; justify-content: space-between; opacity: .42; transform: scale(1); transition: border-color .2s, background .2s; text-align: left; }
.step.is-done { opacity: 1; }
.step.is-on { opacity: 1; border-color: var(--border-strong); background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--fg) 45%, transparent); }
.step-ico { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--secondary); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.step strong { display: block; margin-top: 20px; font-size: 14px; overflow-wrap: anywhere; }
.step span.n { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.loop-side { padding: 24px 20px; border-top: 1px solid var(--border); }
@media (min-width: 1280px) { .loop-side { border-top: 0; padding: 32px 24px; } }
.side-note { margin-top: 12px; color: var(--muted); }
.side-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

/* why */
.why-grid { display: grid; gap: 20px; }
@media (min-width: 1024px) { .why-grid { grid-template-columns: .9fr 1.1fr; } }
.why-card { padding: 28px; }
.why-card.is-hot { border-color: var(--border-strong); }
.why-text { margin-top: 12px; color: var(--muted); line-height: 28px; }
.path { margin-top: 20px; font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--secondary); }
.is-hot .path { border-color: var(--border-strong); }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.tile { padding: 20px; }
.tile-v { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin-top: 12px; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (min-width: 640px) { .tile-v { font-size: 30px; } }
.tile-n { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* phases */
.phases { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .phases { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.phase { padding: 24px; }
.phase-n { font-family: var(--font-display); font-weight: 700; color: var(--muted); font-size: 14px; letter-spacing: .08em; }

/* footer */
.foot { margin-top: 96px; border-top: 1px solid var(--border); padding: 40px 0 56px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 32px; height: 32px; }
.foot-note { color: var(--muted); font-size: 13px; line-height: 1.2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--secondary); color: var(--muted); font-size: 12px; font-weight: 600; }
.chip b { color: var(--fg); font-weight: 700; }

/* spotlight */
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--paper) 9%, transparent), transparent 62%); z-index: 0; }
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* reveal */
.reveal { opacity: 0; will-change: transform, opacity; }
.reveal.is-in { opacity: 1; }
.no-js .reveal { opacity: 1; }

/* reduced motion: everything lands instantly */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; }
  .row-own { animation: none; background: color-mix(in srgb, var(--color-mint) 4%, transparent); }
  .mesh, .dots, .ring { transform: none; }
  .ticker { overflow-x: auto; }
  .ticker-track { width: max-content; }
  .progress { transition: none; }
}
