/* Quaner · Quantum Miner
   Calm product look: floating pill nav, dark and light bands joined by notched edges, soft
   cards on dotted grounds, mono labels. Palette: 08D9D6 cyan · 252A34 charcoal · FF2E63 pink ·
   EAEAEA paper, with a cyan-to-pink gradient for accents. */

:root {
  --navy: #252a34;
  --navy-2: #2d323d;
  --navy-3: #363b47;
  --line-d: rgba(255, 255, 255, .09);
  --text-d: #eaeaea;
  --text-d2: #a9adb6;

  --paper: #eaeaea;
  --card: #ffffff;
  --ink: #252a34;
  --ink-2: #555b66;
  --muted: #8b8f97;
  --line: #d9d9d9;

  --cyan: #08d9d6;
  --pink: #ff2e63;
  --rainbow: linear-gradient(90deg, #08d9d6, #eaeaea, #ff2e63, #eaeaea, #08d9d6);
  --rainbow-deep: linear-gradient(90deg, #04b5b2, #ff2e63, #04b5b2);
  --good: #08d9d6;
  --bad: #ff2e63;

  --display: 'Clash Display', 'Satoshi', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Satoshi', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --code: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --wrap: 1136px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text-d);
  font: 400 16px/1.6 var(--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; }
code, kbd, pre { font-family: var(--code); }
::selection { background: #08d9d6; color: #252a34; }
:focus-visible { outline: 2px solid #08d9d6; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- Type ---------- */

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.015em; word-spacing: .08em; line-height: 1.02; }
.rainbow {
  background: var(--rainbow);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: spectrum 12s linear infinite;
}
.light .rainbow, .on-light .rainbow { background-image: var(--rainbow-deep); }
@keyframes spectrum { to { background-position: -200% 0; } }
.eyebrow { display: inline-block; font: 500 14px/1 var(--sans); margin-bottom: 18px; }
.eyebrow.rainbow { animation-duration: 8s; }
.mono-label {
  font: 400 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec-title { font-size: clamp(38px, 5vw, 56px); }
.sec-lead { font-size: 17px; color: var(--text-d2); max-width: 560px; margin: 20px 0 0; }
.light .sec-lead { color: var(--ink-2); }
.center { text-align: center; }
.center .sec-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--sans);
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.btn-ghost { border-color: rgba(255, 255, 255, .22); color: var(--text-d); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .5); }
.btn-ink { background: var(--navy-3); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.btn-ink:hover { background: #3d4452; }
.light .btn-ghost, .on-light .btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.light .btn-ghost:hover, .on-light .btn-ghost:hover { border-color: #bdbdbd; }
.btn-danger { background: #fff1f3; color: var(--bad); border-color: #fecdd6; }
.btn-danger:hover { background: #ffe4e8; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.copy-btn {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  padding: 6px 10px;
  font: 400 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
}
.copy-btn:hover { color: var(--ink); border-color: #bdbdbd; }

/* ---------- Nav ---------- */

.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.nav-inner > * { pointer-events: auto; }
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(37, 42, 52, .12), inset 0 0 0 1px rgba(37, 42, 52, .06);
}
.brand-mark { width: 28px; height: 28px; }
.brand-name { font: 600 16px/1 var(--display); letter-spacing: .1em; }
.nav-menu {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 16px rgba(37, 42, 52, .12), inset 0 0 0 1px rgba(37, 42, 52, .06);
  backdrop-filter: blur(10px);
}
.nav-menu a { padding: 7px 16px; border-radius: 999px; color: var(--ink-2); font: 500 14px/1.2 var(--sans); transition: background-color .2s, color .2s; }
.nav-menu a:hover { color: var(--ink); background: rgba(37, 42, 52, .05); }
.nav-menu a[aria-current='page'] { background: var(--navy); color: #fff; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { box-shadow: 0 4px 16px rgba(37, 42, 52, .18), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.nav-user {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink-2);
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(37, 42, 52, .06);
}
.nav-user strong { color: var(--ink); margin-left: 4px; }
.nav-user:empty { display: none; }

/* ---------- Bands ---------- */

.band { position: relative; padding: 120px 0; }
.dark { background: var(--navy); color: var(--text-d); }
.light { background: var(--paper); color: var(--ink); }
/* Notched joins between bands: the dark color reaches into the light band's corners. */
.light::before, .light::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 44px;
  background: var(--navy);
  pointer-events: none;
}
.light::before { top: -1px; clip-path: polygon(0 0, 100% 0, 100% 100%, calc(100% - 96px) 100%, calc(100% - 140px) 0, 140px 0, 96px 100%, 0 100%); }
.light::after { bottom: -1px; clip-path: polygon(0 0, 96px 0, 140px 100%, calc(100% - 140px) 100%, calc(100% - 96px) 0, 100% 0, 100% 100%, 0 100%); }
.light.no-top::before, .light.no-bottom::after { display: none; }

.dotted {
  background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.2px);
  background-size: 18px 18px;
}
.light .dotted, .on-light .dotted { background-image: radial-gradient(#cfcfcf 1px, transparent 1.2px); }

/* ---------- Hero ---------- */

.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
/* Gradient mesh: slow drifting blobs of cyan and pink. */
.hero-field { position: absolute; inset: 0; overflow: hidden; background: #1f232c; }
.hero-field::before, .hero-field::after {
  content: '';
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .32;
  animation: drift 26s ease-in-out infinite alternate;
}
.hero-field::before { left: -25vmax; top: -30vmax; background: radial-gradient(circle, #08d9d6, transparent 65%); }
.hero-field::after { right: -25vmax; bottom: -35vmax; background: radial-gradient(circle, #ff2e63, transparent 65%); animation-delay: -13s; }
@keyframes drift { to { transform: translate(12vmax, 8vmax) scale(1.15); } }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 30% at 50% 46%, rgba(31, 35, 44, .45), transparent 80%),
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.2px) 0 0 / 22px 22px,
    linear-gradient(180deg, transparent 72%, var(--navy));
}
.hero h1, .hero p { text-shadow: 0 2px 30px rgba(31, 35, 44, .9); }
.hero h1 .rainbow { text-shadow: none; filter: drop-shadow(0 2px 24px rgba(31, 35, 44, .8)); }
.hero-inner { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; text-align: center; padding: 120px 0 90px; }
.hero h1 { font-size: clamp(46px, 8vw, 104px); letter-spacing: -.02em; line-height: 1; }
.hero h1 .rainbow { display: inline-block; padding-bottom: .08em; }
.hero p { max-width: 640px; margin: 28px auto 0; font-size: 18px; color: #c9ccd2; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.reveal { animation: rise .9s var(--ease) both; }
.reveal.d1 { animation-delay: .1s; }
.reveal.d2 { animation-delay: .2s; }
.reveal.d3 { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.hero-stats { position: relative; z-index: 1; padding: 30px 0 70px; }
.hero-stats .wrap { padding: 36px 32px 0; }
.hero-stats .big { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 30px; }
.hero-stats .big b { font: 600 52px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hero-stats .big span { color: var(--text-d2); font-size: 15px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d); }
.stat-row > div { padding: 26px 32px 34px; border-left: 1px solid var(--line-d); }
.stat-row > div:first-child { border-left: 0; }
.stat-row dd { margin: 12px 0 0; font: 600 22px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.round-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: -16px 0 30px; max-width: 360px; }
.round-bar i { display: block; height: 100%; width: 0; background: var(--rainbow); background-size: 360px 100%; transition: width 1s linear; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a9adb6; flex: none; }
.dot.live { background: var(--good); box-shadow: 0 0 0 0 rgba(8, 217, 214, .5); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(8, 217, 214, 0); } 100% { box-shadow: 0 0 0 0 rgba(8, 217, 214, 0); } }

/* ---------- Estimator ---------- */

.sec-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; }
.estimator {
  display: grid;
  grid-template-columns: 1.15fr 1fr .8fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(37, 42, 52, .04);
}
.estimator > div { padding: 34px 32px; }
.estimator > div + div { border-left: 1px solid var(--line); }
.slider-block + .slider-block { margin-top: 38px; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.slider-top span { font-weight: 500; font-size: 15px; }
.slider-top b { font: 600 26px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.slider-top b small { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 4px; letter-spacing: 0; }
.slider-ends { display: flex; justify-content: space-between; margin-top: 10px; }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #08d9d6, #ff2e63) 0 0 / var(--fill, 50%) 100% no-repeat, #dcdcdc; outline-offset: 6px; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(37, 42, 52, .35); cursor: grab; }
input[type='range']::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--navy); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(37, 42, 52, .35); cursor: grab; }
.est-total { font: 700 60px/1 var(--display); letter-spacing: -.02em; margin: 14px 0 6px; font-variant-numeric: tabular-nums; }
.est-total small { font-size: 16px; letter-spacing: 0; color: var(--ink-2); font-weight: 500; margin-left: 6px; -webkit-text-fill-color: var(--ink-2); }
.est-rows { margin: 18px 0 0; }
.est-rows div { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.est-rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.est-note { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.est-art { display: grid; place-items: center; }
.est-art svg { width: 100%; max-width: 220px; }

/* ---------- Protocol cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.card-d {
  background: var(--navy-2);
  border: 1px solid var(--line-d);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease);
}
.card-d:hover { border-color: rgba(255, 255, 255, .2); transform: translateY(-3px); }
.card-art { height: 190px; display: grid; place-items: center; border-bottom: 1px solid var(--line-d); padding: 20px; }
.card-copy { padding: 22px 24px 26px; }
.card-copy h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 18px; letter-spacing: -.02em; }
.card-copy h3 span { font: 400 11px var(--mono); color: var(--text-d2); }
.card-copy p { margin: 10px 0 0; color: var(--text-d2); font-size: 15px; }

.keys { display: flex; gap: 8px; }
.keys span { display: grid; place-items: center; width: 34px; height: 38px; border-radius: 7px; background: var(--navy); border: 1px solid var(--line-d); font: 400 14px var(--mono); }
.keys span:nth-child(1) { color: #ff2e63; }
.keys span:nth-child(2) { color: #08d9d6; }
.keys span:nth-child(3) { color: #ff2e63; }
.keys span:nth-child(4) { color: #08d9d6; }
.icon-circle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); border: 1px solid var(--line-d); margin: 0 auto 14px; }
.icon-circle svg { width: 20px; height: 20px; }
.chip-d { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--navy); border: 1px solid var(--line-d); font: 400 13px var(--mono); }
.chip-stack { display: grid; justify-items: start; }
.chip-stack .chip-d + .chip-d { margin: 10px 0 0 30px; }
.chip-d i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.chip-d .spin { border-right-color: transparent; color: #a9adb6; animation: rot 1s linear infinite; }
.chip-d .ok { color: #08d9d6; }
@keyframes rot { to { transform: rotate(360deg); } }
.meter { width: 100%; max-width: 240px; padding: 14px; border-radius: 12px; background: var(--navy); border: 1px solid var(--line-d); display: flex; gap: 5px; }
.meter i { flex: 1; height: 22px; border-radius: 3px; background: #454b58; animation: meter 2.4s ease-in-out infinite; }
.meter i:nth-child(odd) { animation-delay: .3s; }
@keyframes meter { 50% { background: #08d9d6; } }
.art-cap { font: 400 12px var(--mono); color: var(--text-d2); margin-top: 12px; text-align: center; }
.pill-chip { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-d); background: var(--navy); font: 400 12px var(--mono); margin-bottom: 14px; }
.pulse-ring { position: relative; width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--navy); border: 1px solid var(--line-d); }
.pulse-ring::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); }
.key-bar { width: 220px; max-width: 100%; height: 6px; border-radius: 6px; background: var(--rainbow); background-size: 200% 100%; animation: spectrum 6s linear infinite; margin: 16px auto 0; }
.log-chip { position: relative; width: 100%; }
.log-chip .ghost { font: 400 11px var(--mono); color: rgba(255, 255, 255, .14); white-space: nowrap; overflow: hidden; line-height: 2.2; text-align: center; }
.log-chip .chip-d { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; }

/* ---------- Steps ---------- */

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.step-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); font: 400 13px var(--mono); }
.step h3 { font-size: 22px; margin: 18px 0 8px; }
.step p { margin: 0 0 22px; color: var(--ink-2); font-size: 15px; }
.mini { margin-top: auto; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.mini-head { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; border-top: 1px solid var(--line); }
.mini-head + .mini-row { border-top: 0; }
.mini-row code { font-size: 13px; color: var(--ink); }
.mini-row .tick { color: var(--good); }
.mini-row em { font-style: normal; color: var(--muted); font-size: 13px; }
.mini-dark { margin-top: auto; border-radius: 12px; background: var(--navy); color: #c9cfe0; padding: 16px; font: 400 13px/1.8 var(--code); }
.mini-dark .ok { display: inline-block; padding: 0 6px; border-radius: 4px; background: rgba(8, 217, 214, .16); color: #08d9d6; }
.mini-dark .r { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.cta-center { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- Arena ---------- */

.pulse { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 16px; border: 1px solid var(--line-d); border-radius: 16px; overflow: hidden; background: var(--navy-2); }
.pulse > div { padding: 24px 26px; border-left: 1px solid var(--line-d); }
.pulse > div:first-child { border-left: 0; }
.pulse dd { margin: 12px 0 0; font: 600 34px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.arena-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.panel { background: var(--navy-2); border: 1px solid var(--line-d); border-radius: 16px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-d); font-weight: 600; font-size: 15px; }
.panel-head > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.panel-head .meta { font: 400 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.panel-body { padding: 20px; }
.side-stack { display: grid; gap: 16px; align-content: start; }
.on-light .panel { background: var(--card); border-color: var(--line); }
.on-light .panel-head { border-color: var(--line); }

.feed-list, .league-list { list-style: none; margin: 0; padding: 0; max-height: 600px; overflow: auto; }
.feed-empty { padding: 26px 20px; color: var(--muted); font-size: 14px; }
.feed-item { padding: 16px 20px; border-bottom: 1px solid var(--line-d); }
.feed-item.is-new { animation: flash 1.6s var(--ease); }
@keyframes flash { from { background: rgba(8, 217, 214, .16); } to { background: transparent; } }
.feed-meta { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--text-d2); }
.feed-miner { color: #fff; font-weight: 600; }
.feed-model { font: 400 11px var(--mono); color: #08d9d6; }
.feed-meta time { margin-left: auto; font: 400 11px var(--mono); }
.feed-q { margin: 6px 0 10px; font-size: 15px; color: #d6d8dc; }
.feed-result { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.feed-pick { font: 400 12px var(--code); color: var(--text-d2); }
.feed-tag { padding: 3px 9px; border-radius: 999px; font: 400 11px var(--mono); }
.feed-tag.ok { background: rgba(8, 217, 214, .14); color: #08d9d6; }
.feed-tag.no { background: rgba(255, 46, 99, .14); color: #ff6b8f; }
.league-row { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-d); }
.league-rank { font: 400 13px var(--mono); color: var(--text-d2); }
.league-row:nth-child(1) .league-rank { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.league-line { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.league-line b { font-weight: 600; }
.league-line span { font: 400 12px var(--code); color: var(--text-d2); }
.league-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .07); margin: 8px 0; overflow: hidden; }
.league-bar i { display: block; height: 100%; border-radius: 4px; background: var(--rainbow); background-size: 300px 100%; }
.league-sub { font-size: 12px; color: var(--muted); }
.is-provisional { opacity: .6; }

/* Terminal */
.term { margin-top: 16px; border-radius: 16px; background: #1d2129; border: 1px solid var(--line-d); overflow: hidden; }
.term-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-d); font: 400 12px var(--mono); color: var(--muted); }
.term-head i { width: 10px; height: 10px; border-radius: 50%; }
.term-head i:nth-child(1) { background: #ff5f57; }
.term-head i:nth-child(2) { background: #febc2e; }
.term-head i:nth-child(3) { background: #28c840; }
.term-head span { margin-left: 8px; }
.term-body { height: 520px; overflow: hidden; padding: 18px 20px; font: 12.5px/1.45 var(--code); color: #d6d8dc; white-space: pre; }
.term-body .line { min-height: 1.45em; }
.term-body .cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: text-bottom; background: #d6d8dc; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.t-prompt { color: #08d9d6; }
.t-text { color: #eaeaea; }
.t-muted { color: #80858f; }
.t-line { color: #464c58; }
.t-bone { color: #fff; font-weight: 700; }
.t-cyan { color: #08d9d6; }
.t-pink { color: #ff2e63; }
.t-b { font-weight: 700; }
.t-chip-cyan { background: #08d9d6; color: #252a34; font-weight: 700; }
.t-chip-pink { background: #ff2e63; color: #fff; font-weight: 700; }
.t-chip-gray { background: #464c58; color: #fff; font-weight: 700; }
.t-key { background: #464c58; color: #fff; }

/* ---------- FAQ ---------- */

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; align-items: start; }
.faq-col { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { display: flex; align-items: center; gap: 16px; padding: 22px 20px; cursor: pointer; list-style: none; font-weight: 500; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mono-label { flex: none; }
.faq summary::after { content: '+'; margin-left: auto; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); font: 400 16px/1 var(--sans); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 22px 54px; color: var(--ink-2); font-size: 15px; }
.faq details code { font-size: 13px; color: var(--ink); }

/* ---------- Footer ---------- */

footer { background: var(--navy); color: var(--text-d); padding: 90px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .6fr) 1fr; gap: 32px; align-items: start; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font: 600 19px var(--display); letter-spacing: .1em; }
.foot-brand .brand-mark { width: 30px; height: 30px; }
.foot-about { color: var(--text-d2); font-size: 15px; max-width: 280px; margin: 18px 0 24px; }
.foot-col h4 { margin: 6px 0 18px; font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #08d9d6; }
.foot-col a { display: block; margin-bottom: 12px; font-size: 15px; }
.foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-card { border: 1px solid var(--line-d); border-radius: 16px; background: var(--navy-2); padding: 20px; }
.foot-card h4 { margin: 0 0 14px; font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #08d9d6; }
.foot-card div { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-d2); margin-top: 10px; }
.foot-card b { color: #fff; font-weight: 500; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line-d); font-size: 13px; color: var(--text-d2); }
.foot-bottom .rainbow { font-weight: 500; }

/* ---------- Inner pages ---------- */

.page-top { position: relative; padding: 150px 0 110px; overflow: hidden; }
.page-top .hero-field { opacity: .6; }
.page-top .wrap { position: relative; z-index: 1; }
.page-top h1 { font-size: clamp(44px, 6.4vw, 80px); letter-spacing: -.02em; }
.page-top .sub-lead { max-width: 600px; color: #c9ccd2; font-size: 17px; margin: 20px 0 0; }
.page-body { padding: 80px 0 120px; min-height: 40vh; }
.on-light { color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; }
.stat-value { font: 600 40px/1 var(--display); letter-spacing: -.01em; margin: 14px 0 8px; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat-value small { font: 500 14px var(--sans); letter-spacing: 0; color: var(--ink-2); margin-left: 6px; }
.stat-sub { font-size: 13px; color: var(--muted); }
.stat.signal .stat-value { background: var(--rainbow-deep); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: spectrum 12s linear infinite; }
.stat.signal .stat-value small { -webkit-text-fill-color: var(--ink-2); }

.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 40px; align-items: start; }
.prose p { font-size: 17px; color: var(--ink-2); margin: 0 0 16px; }
.spec { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.spec-title { display: flex; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 600; }
.spec-title span:last-child { font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); align-self: center; }
.spec > div:not(.spec-title) { display: flex; justify-content: space-between; gap: 16px; padding: 13px 20px; border-top: 1px solid var(--line); font-size: 14px; }
.spec > div:nth-child(2) { border-top: 0; }
.spec dt { color: var(--ink-2); }
.spec dd { margin: 0; text-align: right; font-weight: 500; }
.auth .spec { background: rgba(45, 50, 61, .8); border-color: var(--line-d); backdrop-filter: blur(8px); }
.auth .spec-title, .auth .spec > div:not(.spec-title) { border-color: var(--line-d); }
.auth .spec dt { color: var(--text-d2); }
.auth .spec dd { color: #fff; }
.block-title { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 70px 0 20px; flex-wrap: wrap; }
.block-title h2 { font-size: 32px; }
.block-title p { margin: 0; color: var(--ink-2); font-size: 15px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 13px 20px; font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
td { padding: 13px 20px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f5f5f5; }
.num { text-align: right; }
.mono { font-family: var(--code); font-size: 13px; }
.coin { font-family: var(--code); font-size: 13px; font-weight: 600; color: #e8195a; }
td.empty { text-align: center; color: var(--muted); padding: 30px; }
.skeleton { color: transparent; border-radius: 6px; background: linear-gradient(90deg, #e6e6e6, #dadada, #e6e6e6); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Dashboard ---------- */

.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.identity { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.identity code { font-size: 12px; color: var(--text-d2); background: rgba(255, 255, 255, .06); padding: 6px 10px; border-radius: 8px; }
.identity .link-btn { color: var(--text-d2); }
.identity .link-btn:hover { color: #fff; }
.rename { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.rename input { min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-d); background: var(--navy-2); color: #fff; font: 500 15px var(--sans); }
.rename input:focus { outline: none; border-color: #08d9d6; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-d); background: rgba(255, 255, 255, .05); font-size: 13px; color: #d6d8dc; }

.qubit { margin-top: -150px; position: relative; z-index: 2; border-radius: 20px; background: var(--navy-2); color: var(--text-d); border: 1px solid var(--line-d); box-shadow: 0 30px 60px -30px rgba(37, 42, 52, .5); overflow: hidden; }
.qubit::before { content: ''; display: block; height: 3px; background: var(--rainbow); background-size: 200% 100%; animation: spectrum 8s linear infinite; }
.qubit-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--line-d); }
.hud-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill, .hud-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; border: 1px solid var(--line-d); color: var(--text-d2); }
.hud-chip b { color: #fff; font-weight: 400; }
.hud-chip.on { color: #08d9d6; border-color: rgba(8, 217, 214, .4); }
.pill-live { background: rgba(8, 217, 214, .18); color: #7ff0ee; border-color: rgba(8, 217, 214, .5); }
.pill-ok { background: rgba(8, 217, 214, .16); color: #08d9d6; border-color: rgba(8, 217, 214, .45); }
.pill-bad { background: rgba(255, 46, 99, .14); color: #ff6b8f; border-color: rgba(255, 46, 99, .45); }
.q-clock { display: flex; align-items: baseline; gap: 10px; }
.q-clock b { font: 700 36px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.q-clock b.urgent { color: #ff6b8f; }
.q-clock span { font: 400 11px var(--mono); text-transform: uppercase; color: var(--muted); }
#q-body { padding: 28px 24px 8px; min-height: 230px; }
#q-body h2 { font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.025em; line-height: 1.25; margin-bottom: 22px; }
.qubit-empty p { color: var(--text-d2); max-width: 60ch; margin: 0 0 16px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--navy); border: 1px solid var(--line-d); }
.choice kbd { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 7px; border: 1px solid var(--line-d); font: 400 13px var(--mono); }
.choice.correct { border-color: rgba(8, 217, 214, .6); background: rgba(8, 217, 214, .08); }
.choice.correct kbd { background: #08d9d6; color: var(--navy); border-color: #08d9d6; }
.choice.wrong { border-color: rgba(255, 46, 99, .5); background: rgba(255, 46, 99, .07); }
.choice.wrong kbd { color: #ff6b8f; border-color: #ff6b8f; }
.choice.dim { opacity: .45; }
.qubit-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px 22px; flex-wrap: wrap; }
.qubit-foot { margin: 0; font-size: 14px; color: var(--text-d2); }
.qubit-foot b { color: #fff; }
.qubit .label { font: 400 11px var(--mono); color: var(--muted); text-transform: uppercase; }

.cmd { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--navy); border: 1px solid var(--line-d); max-width: 520px; margin-bottom: 8px; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 13px; color: #fff; }
.cmd .p { color: #08d9d6; }
.cmd button { flex: none; border: 1px solid var(--line-d); border-radius: 7px; background: transparent; color: var(--text-d2); padding: 5px 9px; font: 400 11px var(--mono); text-transform: uppercase; cursor: pointer; }
.cmd button:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.on-light .cmd { background: var(--paper); border-color: var(--line); }
.on-light .cmd code { color: var(--ink); }
.on-light .cmd .p { color: var(--good); }
.on-light .cmd button { border-color: var(--line); color: var(--ink-2); background: #fff; }
.cmd-list { display: grid; gap: 16px; }
.cmd-label { margin: 0 0 8px; font: 400 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.key-note { color: var(--ink-2); font-size: 14px; }
.key-note b { color: var(--ink); }
.key-actions { margin: 16px 0; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.dash-stack { display: grid; gap: 16px; margin: 16px 0; }

.vein { display: flex; gap: 8px; flex-wrap: wrap; }
.vein span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font: 400 14px var(--code); color: var(--muted); }
.vein .collected { background: var(--navy); border-color: var(--navy); color: #08d9d6; }
.vein .open { border-color: #08d9d6; color: #08d9d6; animation: pulse-border 1.2s infinite; }
.vein .wrong { color: var(--bad); border-color: #fecdd6; background: #fff1f3; }
@keyframes pulse-border { 50% { border-color: transparent; } }

.chart { display: flex; align-items: end; gap: 4px; height: 180px; }
.bar-col { position: relative; flex: 1; height: 100%; display: flex; align-items: end; }
.bar { width: 100%; min-height: 3px; border-radius: 4px 4px 0 0; background: #dcdcdc; transition: height .6s var(--ease); }
.bar.has { background: linear-gradient(180deg, #ff2e63, #08d9d6); }
.bar-col .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 6px 9px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 2; }
.bar-col:hover .tip { opacity: 1; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 10px; font: 400 11px var(--mono); color: var(--muted); }

/* ---------- Auth ---------- */

.auth { position: relative; min-height: 100vh; overflow: hidden; }
.auth .hero-field { opacity: .7; }
.auth-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 56px; align-items: center; min-height: 100vh; padding: 130px 0 70px; }
.auth h1 { font-size: clamp(44px, 6vw, 76px); letter-spacing: -.02em; margin-bottom: 20px; }
.auth .lead { color: #c9ccd2; font-size: 17px; max-width: 520px; margin: 0; }
.auth .lead code { color: #fff; }
.auth .spec { margin-top: 30px; max-width: 520px; }
.form-doc { background: #fff; color: var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.form-doc-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); font-weight: 600; }
.form-doc-head span:last-child { font: 400 11px var(--mono); color: var(--muted); }
.form-doc-body { padding: 24px; }
.form-doc-body .btn { width: 100%; margin-top: 10px; }
.form-doc .btn-ink, .connect .btn-ink { background: var(--navy); }
.form-doc .btn-line { border-color: var(--line); color: var(--ink); background: #fff; }
.sub { color: var(--ink-2); font-size: 15px; margin: 0 0 16px; }
.sub code { color: var(--ink); }
.auth-foot { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.alert { display: none; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: #fff1f3; border: 1px solid #fecdd6; color: #9f1239; font-size: 14px; }
.alert.show { display: block; }
.alert.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.device-code { margin: 6px 0 18px; padding: 18px; text-align: center; font: 600 40px/1 var(--code); letter-spacing: .2em; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.device-meta { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.device-meta div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14px; border-top: 1px solid var(--line); }
.device-meta div:first-child { border-top: 0; }
.device-meta dt { color: var(--ink-2); }
.device-meta dd { margin: 0; text-align: right; word-break: break-all; }
.auth-done h2 { font-size: 36px; margin-bottom: 12px; }
.connect .btn { width: 100%; }

/* ---------- 404 ---------- */

.lost { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.lost .wrap { position: relative; z-index: 1; }
.lost h1 { font-size: clamp(56px, 10vw, 130px); letter-spacing: -.02em; margin: 10px 0 20px; }
.lost p { color: #c9ccd2; font-size: 18px; margin: 0 0 30px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(37, 42, 52, .35), inset 0 0 0 1px rgba(255, 255, 255, .1);
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: opacity .25s, transform .25s var(--ease);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */

.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-up.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .nav-menu { display: none; }
  .nav-inner { grid-template-columns: auto 1fr; }
  .estimator { grid-template-columns: 1fr 1fr; }
  .est-art { display: none !important; }
  .cards, .steps3 { grid-template-columns: 1fr 1fr; }
  .arena-grid, .split, .auth-grid { grid-template-columns: 1fr; }
  .stat-row, .pulse, .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-row > div:nth-child(3), .pulse > div:nth-child(3) { border-left: 0; }
  .stat-row > div:nth-child(n+3), .pulse > div:nth-child(n+3) { border-top: 1px solid var(--line-d); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-grid > :first-child, .foot-card { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .band { padding: 90px 0; }
  .light::before, .light::after { height: 24px; }
  .light::before { clip-path: polygon(0 0, 100% 0, 100% 100%, calc(100% - 40px) 100%, calc(100% - 64px) 0, 64px 0, 40px 100%, 0 100%); }
  .light::after { clip-path: polygon(0 0, 40px 0, 64px 100%, calc(100% - 64px) 100%, calc(100% - 40px) 0, 100% 0, 100% 100%, 0 100%); }
  .brand-name { display: none; }
  .brand { padding-right: 6px; }
  .estimator, .cards, .steps3, .faq, .dash-grid, .choices, .stats, .stats.three { grid-template-columns: 1fr; }
  .estimator > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero-stats .wrap, .stat-row > div { padding-left: 18px; padding-right: 18px; }
  .hero p { font-size: 16px; }
  .term-body { height: 460px; font-size: 11px; }
  .faq details p { padding-left: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .qubit { margin-top: -110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal-up { opacity: 1; transform: none; }
}

/* The qubit card stays dark inside the light dashboard band. */
.on-light .qubit .cmd { background: var(--navy); border-color: var(--line-d); }
.on-light .qubit .cmd code { color: #fff; }
.on-light .qubit .cmd .p { color: #08d9d6; }
.on-light .qubit .cmd button { background: transparent; border-color: var(--line-d); color: var(--text-d2); }
.hero-stats .wrap + .wrap { padding-top: 0; }

/* Clash Display is for big headings; small card titles read better in Satoshi. */
.card-copy h3, .step h3, .auth-done h2 { font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; word-spacing: 0; }

/* The logo's cursor tail blinks like a terminal cursor. */
.brand-mark .mark-cursor { animation: blink 1.1s steps(1) infinite; }
