/* ==========================================================================
   BTC FOUNDRY — Lumina design system
   Charcoal #080808 · Metallic gold #c5a059
   Space Grotesk (display) · Inter (UI/body) · JetBrains Mono (data)
   No italics anywhere. Sharp corners on primary CTAs.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- tokens ---------- */
:root {
  --bg: #080808;
  --bg-2: #0c0c0c;
  --gold: #c5a059;
  --gold-dark: #b8860b;
  --gold-soft: #e8d0a3;

  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.4);
  --text-3: rgba(255, 255, 255, 0.3);
  --text-4: rgba(255, 255, 255, 0.18);

  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.02);
  --glass-2: rgba(255, 255, 255, 0.035);

  --up: #7fd18a;
  --down: #d97575;

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --dur: 1.2s;

  --gutter: 48px;
  --nav-h: 76px;

  --f-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --f-ui: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

@media (max-width: 900px) {
  :root { --gutter: 22px; --nav-h: 64px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.6;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
i, em { font-style: normal; }

::selection { background: var(--gold); color: #000; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- surface ---------- */
.page { position: relative; z-index: 2; }
.solid-bg { background: var(--bg); }

/* ---------- background loop ----------
   Source footage is red neon; the hue rotation carries it to Bitcoin gold.
   Sections below the hero are opaque, so it only shows behind the hero. */
.hero-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.34) hue-rotate(26deg) saturate(1.55) brightness(0.55) contrast(1.05);
  /* keep the graded frame on its own compositor layer so the grade is not
     recomputed against the page on every repaint */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}
.hero-video-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 32%, rgba(8, 8, 8, 0.28) 0%, rgba(8, 8, 8, 0.78) 58%, #080808 100%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.72) 0%, rgba(8, 8, 8, 0.3) 34%, rgba(8, 8, 8, 0.92) 100%);
}

/* ---------- typography primitives ---------- */
.label {
  font-family: var(--f-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-2);
}
.label-gold { color: var(--gold); }
.mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0;
}
.h-xl { font-size: clamp(2.4rem, min(6vw, 9vh), 6.5rem); }
.h-lg { font-size: clamp(2.2rem, 5.2vw, 4.4rem); }
.h-md { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.h-sm { font-size: clamp(1.15rem, 1.7vw, 1.5rem); letter-spacing: -0.02em; }
.gold { color: var(--gold); }
.tone-2 { color: var(--text-2); }

.lede {
  font-family: var(--f-ui);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.15vw, 1.06rem);
  line-height: 1.75;
  color: var(--text-2);
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 940px; }
.section { padding: clamp(72px, 9vw, 140px) 0; }
.section-line { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }

/* ---------- header ---------- */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.hdr-inner { width: 100%; display: flex; align-items: center; gap: 40px; }

.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-mark {
  width: 32px; height: 32px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  display: grid; place-items: center;
  color: var(--gold);
  transition: box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.brand-mark svg { transform: rotate(-45deg); width: 17px; height: 17px; }
.brand-mark { box-shadow: 0 0 18px rgba(197, 160, 89, 0.18); }
.brand-mark svg { filter: drop-shadow(0 0 4px rgba(197, 160, 89, 0.45)); }
.brand:hover .brand-mark { box-shadow: 0 0 30px rgba(197, 160, 89, 0.42); }
.brand-name {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-name span { color: var(--text); }

.nav { display: flex; align-items: center; gap: 30px; margin-left: 8px; }
.nav a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 6px 0;
  position: relative;
  transition: color 0.5s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }
.nav a[aria-current='page'] { color: var(--gold); }
.nav a[aria-current='page']::after { width: 100%; }

.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 24px; }

.tickers { display: flex; align-items: center; gap: 18px; padding-right: 22px; border-right: 1px solid var(--line-2); }
.tick { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: -0.01em; }
.tick-dot { width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(197, 160, 89, 0.14); color: var(--gold); font-size: 8px; }
.tick-chg { font-size: 10px; color: var(--up); }
.tick-chg.neg { color: var(--down); }

.ticker-chip {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--gold);
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 6px 11px;
  white-space: nowrap;
}
.icon-link {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  flex-shrink: 0;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.icon-link:hover {
  color: var(--gold);
  border-color: rgba(197, 160, 89, 0.5);
  box-shadow: 0 0 18px rgba(197, 160, 89, 0.16);
}

.link-underline {
  font-size: 10px; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.link-underline:hover { color: var(--gold); border-color: var(--gold); }

.burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.burger span { display: block; width: 18px; height: 1px; background: var(--text); position: relative; transition: 0.4s var(--ease); }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; width: 18px; height: 1px; background: var(--text); transition: 0.4s var(--ease); }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 55;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 22px var(--gutter) 34px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
body.menu-open .mobile-menu { display: flex; }
.mobile-menu a {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-2); padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu a[aria-current='page'] { color: var(--gold); }

@media (max-width: 1120px) {
  .tickers { display: none; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hdr-right { gap: 12px; }
  .btn-nav { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 34px;
  border-radius: 0;
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease), color 0.5s var(--ease);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #000;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(197, 160, 89, 0.3);
}
.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 26px 0 12px;
}
.btn-ghost:hover { border-color: rgba(197, 160, 89, 0.5); transform: translateY(-2px); }
.btn-play {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid; place-items: center;
  color: var(--gold);
  transition: border-color 0.5s var(--ease);
}
.btn-ghost:hover .btn-play { border-color: rgba(197, 160, 89, 0.5); }
.btn-sm { height: 40px; padding: 0 20px; font-size: 10px; letter-spacing: 0.18em; }
.btn-nav { height: 38px; padding: 0 20px; font-size: 10px; letter-spacing: 0.18em; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-h);
}
.hero-core {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(26px, 4.5vh, 60px) var(--gutter) clamp(20px, 3.5vh, 40px);
}
.hero-core .inner { width: 100%; max-width: 1280px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: clamp(20px, 3.6vh, 40px);
}
.hero-badge .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero h1 { margin-bottom: clamp(20px, 3.2vh, 34px); }
.hero h1 .line-2 { display: block; color: var(--gold); }
.hero .lede { max-width: 640px; margin: 0 auto clamp(26px, 4.4vh, 46px); }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 0 var(--gutter) 34px;
  flex-wrap: wrap;
}
.hero-foot .status { display: flex; align-items: flex-start; gap: 16px; }
.hero-foot .status .rule { width: 44px; height: 1px; background: var(--gold); margin-top: 7px; flex-shrink: 0; }
.hero-foot .status p { margin: 8px 0 0; font-size: 10px; line-height: 1.7; color: var(--text-3); max-width: 340px; }
.hero-foot .links { display: flex; align-items: center; gap: 20px; }
.hero-foot .links .rule { width: 48px; height: 1px; background: var(--line-2); }
.hero-foot .links a { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-2); transition: color 0.5s var(--ease); }
.hero-foot .links a:hover { color: var(--gold); }
@media (max-width: 760px) {
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-foot .links .rule { width: 24px; }
}

/* ---------- key/value strip ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.strip .cell { padding: 26px var(--gutter); display: flex; align-items: baseline; gap: 14px; border-left: 1px solid var(--line); }
.strip .cell:first-child { border-left: 0; }
.strip .cell b { font-family: var(--f-mono); font-weight: 500; font-size: 15px; color: var(--gold); letter-spacing: -0.01em; }
@media (max-width: 760px) {
  .strip { grid-template-columns: 1fr; }
  .strip .cell { border-left: 0; border-top: 1px solid var(--line); padding: 18px var(--gutter); }
  .strip .cell:first-child { border-top: 0; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--bg); padding: 38px 32px 34px; transition: background 0.6s var(--ease); }
.stat:hover { background: var(--bg-2); }
.stat .v { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 3.4vw, 3.3rem); letter-spacing: -0.04em; line-height: 1; margin: 20px 0 14px; display: flex; align-items: baseline; gap: 8px; }
.stat .v .unit { font-family: var(--f-ui); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; color: var(--gold); }
.stat p { margin: 0; font-size: 12px; line-height: 1.65; color: var(--text-3); }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--bg); padding: 40px 34px 44px; position: relative; overflow: hidden; }
.step::after {
  content: '';
  position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 0.9s var(--ease);
}
.step:hover::after { width: 100%; }
.step .n { font-family: var(--f-mono); font-size: 11px; color: var(--gold); letter-spacing: 0.2em; }
.step h3 { margin: 26px 0 16px; font-size: 1.45rem; }
.step p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--text-2); }
.step .meta { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.step .meta b { font-family: var(--f-mono); font-weight: 500; font-size: 13px; color: var(--gold-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- panel / glass card ---------- */
.panel {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 34px;
}
.panel-pad-lg { padding: 44px; }
@media (max-width: 700px) { .panel, .panel-pad-lg { padding: 24px; } }

/* ---------- token table ---------- */
.table-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip {
  height: 34px; padding: 0 16px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-2);
  transition: 0.5s var(--ease);
}
.chip:hover { color: var(--text); border-color: rgba(197, 160, 89, 0.45); }
.chip[aria-pressed='true'], .chip.is-on { color: #000; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); border-color: transparent; }

.t-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
table.tokens { min-width: 940px; }
table.tokens thead th {
  text-align: left;
  padding: 16px 20px;
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.012);
}
table.tokens thead th.r, table.tokens tbody td.r { text-align: right; }
table.tokens tbody td { padding: 18px 20px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
table.tokens tbody tr { transition: background 0.5s var(--ease); cursor: pointer; }
table.tokens tbody tr:hover { background: rgba(197, 160, 89, 0.045); }
table.tokens tbody tr:last-child td { border-bottom: 0; }

.tk { display: flex; align-items: center; gap: 14px; }
.tk-badge {
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid rgba(197, 160, 89, 0.35);
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 13px; font-weight: 500; color: var(--gold);
  background: rgba(197, 160, 89, 0.06);
}
.tk-name { display: flex; flex-direction: column; gap: 3px; }
.tk-name b { font-family: var(--f-display); font-weight: 500; font-size: 14px; letter-spacing: -0.01em; }
.tk-name small { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.rank { font-family: var(--f-mono); font-size: 11px; color: var(--text-4); }
.pair { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 11px; color: var(--gold-soft); border: 1px solid rgba(197, 160, 89, 0.22); padding: 4px 10px; }
.chg { font-family: var(--f-mono); font-size: 12.5px; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.pool-yes { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.pool-no { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-4); }
.sweep { font-family: var(--f-mono); font-size: 12.5px; color: var(--text-2); }

/* ---------- token cards (explore grid) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 22px; transition: background 0.6s var(--ease); }
.card:hover { background: var(--bg-2); }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card .kv { display: flex; align-items: center; justify-content: space-between; font-size: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.card .kv:last-child { border-bottom: 0; }
.card .kv span { color: var(--text-3); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
.card .kv b { font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; }
.bar { height: 2px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.field > label { font-size: 10px; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-2); }
.field .hint { font-size: 11.5px; color: var(--text-3); line-height: 1.6; margin: 0; }
.input, .textarea, .select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-2);
  border-radius: 0;
  color: var(--text);
  font-family: var(--f-ui);
  font-size: 14px;
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.textarea { height: auto; min-height: 108px; padding: 14px 16px; line-height: 1.65; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: rgba(197, 160, 89, 0.6); background: rgba(197, 160, 89, 0.04); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 24px, calc(100% - 14px) 24px; background-size: 6px 6px; background-repeat: no-repeat; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.form-err { font-size: 11.5px; color: var(--down); margin: 0; min-height: 16px; }

.radio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.radio-tile { position: relative; }
.radio-tile input { position: absolute; opacity: 0; pointer-events: none; }
.radio-tile span {
  display: block; padding: 16px; border: 1px solid var(--line-2);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2);
  transition: 0.5s var(--ease); cursor: pointer;
}
.radio-tile b { display: block; font-family: var(--f-mono); font-size: 15px; color: var(--text); letter-spacing: -0.01em; margin-bottom: 6px; text-transform: none; }
.radio-tile input:checked + span { border-color: var(--gold); background: rgba(197, 160, 89, 0.07); color: var(--gold); }
.radio-tile input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 640px) { .radio-grid { grid-template-columns: 1fr; } }

/* ---------- contract address cell ---------- */
.ca { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; }
.ca a {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(197, 160, 89, 0.28);
  transition: border-color 0.5s var(--ease), color 0.5s var(--ease);
}
.ca a:hover { color: var(--gold); border-color: var(--gold); }
.ca-copy {
  font-family: var(--f-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--line-2);
  padding: 4px 8px;
  transition: 0.5s var(--ease);
}
.ca-copy:hover { color: var(--gold); border-color: rgba(197, 160, 89, 0.5); }

/* ---------- launch layout ---------- */
.launch-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 1000px) { .launch-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- docs ---------- */
.doc-layout { display: grid; grid-template-columns: 232px 1fr; gap: 64px; align-items: start; }
.doc-layout > * { min-width: 0; }
.doc-nav { position: sticky; top: calc(var(--nav-h) + 40px); display: flex; flex-direction: column; gap: 2px; }
.doc-nav a { font-size: 11px; letter-spacing: 0.06em; color: var(--text-3); padding: 9px 0 9px 16px; border-left: 1px solid var(--line); transition: 0.5s var(--ease); }
.doc-nav a:hover, .doc-nav a.is-active { color: var(--gold); border-color: var(--gold); }
.doc-nav .grp { font-size: 9.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-4); padding: 22px 0 8px 16px; }
.doc-body h2 { margin: 0 0 22px; }
.doc-body h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin: 0 0 14px; }
.doc-body p { color: var(--text-2); font-size: 14.5px; line-height: 1.85; margin: 0 0 18px; }
.doc-body ul { margin: 0 0 22px; padding-left: 18px; color: var(--text-2); font-size: 14.5px; line-height: 1.9; }
.doc-body li::marker { color: var(--gold); }
.doc-sec { padding: 0 0 64px; scroll-margin-top: calc(var(--nav-h) + 32px); }
.code {
  font-family: var(--f-mono); font-size: 12.5px; line-height: 1.9;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-left: 1px solid var(--gold);
  padding: 20px 22px;
  color: var(--gold-soft);
  overflow-x: auto;
  white-space: pre;
  margin: 0 0 24px;
}
.kv-table { width: 100%; margin-bottom: 26px; }
.kv-table td { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.kv-table td:first-child { color: var(--text-3); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; width: 42%; }
.kv-table td:last-child { font-family: var(--f-mono); color: var(--gold-soft); text-align: right; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 34px; }
  .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .doc-nav a { border-left: 0; border: 1px solid var(--line); padding: 8px 12px; }
  .doc-nav .grp { display: none; }
}

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; text-align: left; font-family: var(--f-display); font-size: clamp(1rem, 1.5vw, 1.22rem); font-weight: 400; letter-spacing: -0.015em; transition: color 0.5s var(--ease); }
.faq-q:hover { color: var(--gold); }
.faq-q .sign { width: 14px; height: 14px; position: relative; flex-shrink: 0; }
.faq-q .sign::before, .faq-q .sign::after { content: ''; position: absolute; background: var(--gold); transition: transform 0.6s var(--ease); }
.faq-q .sign::before { left: 0; top: 6.5px; width: 14px; height: 1px; }
.faq-q .sign::after { left: 6.5px; top: 0; width: 1px; height: 14px; }
.faq-item.open .sign::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.8s var(--ease); }
.faq-a p { margin: 0 0 26px; padding-right: 60px; color: var(--text-2); font-size: 14px; line-height: 1.85; }
@media (max-width: 640px) { .faq-a p { padding-right: 0; } }

/* ---------- cta band ---------- */
.cta-band { text-align: center; padding: clamp(80px, 10vw, 150px) 0; }
.cta-band h2 { margin-bottom: 26px; }
.cta-band .lede { max-width: 560px; margin: 0 auto 42px; }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); padding: 72px 0 40px; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; }
.ftr-col h4 { font-family: var(--f-ui); font-size: 9.5px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-4); margin: 0 0 20px; }
.ftr-col a { display: block; font-size: 12.5px; color: var(--text-2); padding: 7px 0; transition: color 0.5s var(--ease); }
.ftr-col a:hover { color: var(--gold); }
.ftr-brand p { font-size: 12.5px; line-height: 1.8; color: var(--text-3); max-width: 320px; margin: 20px 0 0; }
.ftr-bottom { margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ftr-bottom span { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-4); }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .ftr-grid { grid-template-columns: 1fr; } }

/* ---------- reveal animation ---------- */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.rv { opacity: 0; }
.rv.in { animation: revealUp var(--dur) var(--ease) forwards; }
.rv-now { opacity: 0; animation: revealUp var(--dur) var(--ease) forwards; }

/* ---------- bitcoin emblem ---------- */
.hero-coin {
  width: clamp(48px, 7vh, 88px);
  margin: 0 auto clamp(14px, 2.2vh, 28px);
  color: var(--gold);
}
.coin-float {
  display: block;
  filter: drop-shadow(0 0 28px rgba(197, 160, 89, 0.35));
  animation: coinFloat 7s ease-in-out infinite;
}
@keyframes coinFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.coin-inline { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.strip .cell b .coin-inline { vertical-align: -3px; margin-right: 6px; }

.coin-watermark {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: min(360px, 34vw);
  color: var(--gold);
  opacity: 0.05;
  pointer-events: none;
}
@media (max-width: 900px) { .coin-watermark { display: none; } }

/* ---------- responsive corrections (declared last so they win) ---------- */
@media (max-width: 900px) {
  .hdr-right .btn-nav { display: none; }
  .hdr-right .link-underline { display: none; }
  .hdr-right .ticker-chip { display: none; }
  .hero-foot .status p { max-width: none; }
}
