:root {
  --bg: #050505;
  --panel: rgba(18, 12, 7, 0.88);
  --panel-2: rgba(26, 18, 10, 0.88);
  --surface: rgba(255, 168, 40, 0.09);
  --surface-strong: rgba(255, 173, 51, 0.14);
  --border: rgba(255, 184, 86, 0.22);
  --border-strong: rgba(255, 200, 104, 0.34);
  --gold: #ffb026;
  --gold-strong: #ffd36b;
  --orange: #ff7a00;
  --orange-deep: #e55200;
  --ink: #fff5df;
  --muted: #d0ba96;
  --soft: #8d7350;
  --green: #2fd38d;
  --red: #ff7d69;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 125, 20, 0.22), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(255, 196, 95, 0.15), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(255, 136, 0, 0.12), transparent 30%),
    linear-gradient(180deg, #0a0907 0%, #050505 50%, #090603 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
[hidden] { display: none !important; }

.topbar, main, .footer {
  position: relative;
  z-index: 1;
}

.shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(5, 5, 5, 0.72);
  border-bottom: 1px solid rgba(255, 179, 76, 0.08);
}

.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.topbar::before {
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 227, 182, 0.48), transparent);
}

.topbar::after {
  bottom: -1px;
  height: 18px;
  background: linear-gradient(180deg, rgba(255, 172, 69, 0.06), transparent 90%);
}

.nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 104px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-badge {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 206, 125, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 240, 211, 0.16), 0 16px 38px rgba(255, 125, 20, 0.22);
  flex: 0 0 auto;
  position: relative;
}

.brand-badge::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 52%);
  pointer-events: none;
}

.brand-meta {
  display: grid;
  gap: 5px;
}

.eyebrow {
  color: var(--gold-strong);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.94;
}

.brand h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
  overflow: visible;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 206, 125, 0.14);
  background: linear-gradient(180deg, rgba(22, 13, 8, 0.92), rgba(10, 7, 4, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 214, 145, 0.08), 0 22px 48px rgba(0, 0, 0, 0.24);
  position: relative;
  isolation: isolate;
  backdrop-filter: blur(14px);
}

.nav-links::before,
.nav-links::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.nav-links::before {
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 235, 200, 0.06), rgba(255, 174, 82, 0.02));
  z-index: -1;
}

.nav-links::after {
  left: 16px;
  right: 16px;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 223, 170, 0.38), transparent);
  opacity: 0.7;
}

.nav-links a {
  color: inherit;
}

.nav-home-link,
.nav-parent {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  position: relative;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.nav-home-link::after,
.nav-parent::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 221, 166, 0.8), transparent);
  opacity: 0;
  transform: scaleX(0.42);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav-home-link:hover,
.nav-home-link:focus-visible,
.nav-parent:hover,
.nav-parent:focus-visible,
.nav-home-link.is-current,
.nav-group.is-open > .nav-parent,
.nav-parent.is-current {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 199, 112, 0.13), rgba(255, 142, 38, 0.08));
  border-color: rgba(255, 210, 133, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 239, 211, 0.12), 0 12px 28px rgba(255, 137, 24, 0.14);
  transform: translateY(-1px) scale(1.01);
}

.nav-home-link:hover::after,
.nav-home-link:focus-visible::after,
.nav-home-link.is-current::after,
.nav-parent:hover::after,
.nav-parent:focus-visible::after,
.nav-group.is-open > .nav-parent::after,
.nav-parent.is-current::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-parent {
  appearance: none;
  cursor: pointer;
}

.nav-group {
  position: relative;
}

.nav-group:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 1px;
  height: 24px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, transparent, rgba(255, 211, 146, 0.18), transparent);
  pointer-events: none;
}

.nav-caret {
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.22s ease;
}

.nav-group:hover > .nav-parent .nav-caret,
.nav-group:focus-within > .nav-parent .nav-caret,
.nav-group.is-open > .nav-parent .nav-caret {
  transform: rotate(225deg) translateY(-1px);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 236px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 26px;
  border: 1px solid rgba(255, 206, 125, 0.18);
  background: radial-gradient(circle at top, rgba(255, 189, 96, 0.14), transparent 58%), linear-gradient(180deg, rgba(20, 12, 7, 0.98), rgba(8, 5, 3, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 239, 211, 0.08), 0 28px 64px rgba(0, 0, 0, 0.46);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(16px);
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 228, 184, 0.46), transparent);
  pointer-events: none;
}

.nav-dropdown a {
  padding: 13px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(255, 188, 92, 0.04), rgba(255, 188, 92, 0.02));
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

.nav-dropdown a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 214, 143, 0.9), rgba(255, 145, 31, 0.82));
  transform: translateY(-50%);
  transition: height 0.22s ease;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible,
.nav-dropdown a.is-current {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 198, 108, 0.12), rgba(255, 143, 28, 0.06));
  border-color: rgba(255, 205, 122, 0.18);
  box-shadow: 0 12px 24px rgba(255, 129, 19, 0.08);
  transform: translateX(3px);
}

.nav-dropdown a:hover::before,
.nav-dropdown a:focus-visible::before,
.nav-dropdown a.is-current::before {
  height: 24px;
}

.nav-group:hover > .nav-dropdown,
.nav-group:focus-within > .nav-dropdown,
.nav-group.is-open > .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.nav-wallet {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  border: 1px solid rgba(255, 208, 126, 0.22);
  background: radial-gradient(circle at 28% 20%, rgba(255, 236, 196, 0.18), transparent 36%), linear-gradient(180deg, rgba(255, 194, 104, 0.2), rgba(255, 117, 24, 0.13));
  box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.18), 0 14px 30px rgba(255, 124, 12, 0.18);
  color: var(--gold-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
  position: relative;
  overflow: hidden;
}

.nav-wallet::before,
.nav-wallet::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.nav-wallet::before {
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 55%);
}

.nav-wallet::after {
  width: 18px;
  height: 18px;
  top: 6px;
  right: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 220, 0.46), transparent 70%);
  opacity: 0.7;
}

.nav-wallet svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  position: relative;
  z-index: 1;
}

.nav-wallet:hover,
.nav-wallet:focus-visible,
.nav-wallet.is-connected {
  color: #fff3cf;
  border-color: rgba(255, 223, 163, 0.36);
  background: radial-gradient(circle at 26% 18%, rgba(255, 245, 217, 0.22), transparent 34%), linear-gradient(180deg, rgba(255, 196, 105, 0.3), rgba(255, 118, 24, 0.2));
  box-shadow: 0 20px 42px rgba(255, 124, 12, 0.24);
  transform: translateY(-2px) scale(1.02);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 208, 129, 0.18);
  background: linear-gradient(180deg, rgba(255, 204, 129, 0.08), rgba(255, 144, 35, 0.05));
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 236, 198, 0.08), 0 12px 28px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible,
.menu-toggle.is-open {
  border-color: rgba(255, 224, 167, 0.28);
  background: linear-gradient(180deg, rgba(255, 204, 129, 0.12), rgba(255, 144, 35, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 236, 198, 0.1), 0 16px 32px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.menu-open, body.modal-open { overflow: hidden; }

.pill, .button, .ghost, .wallet-copy, .tab, .data-mode-chip {
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button, .ghost, .wallet-copy {
  padding: 12px 18px;
  min-height: 48px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
}

.button {
  color: #150b02;
  background: linear-gradient(135deg, var(--gold-strong), var(--orange));
  box-shadow: 0 12px 30px rgba(255, 132, 0, 0.22);
}

.button:hover, .ghost:hover, .pill:hover, .wallet-copy:hover, .tab:hover {
  transform: translateY(-1px);
}

.ghost {
  color: var(--ink);
  background: rgba(255, 186, 84, 0.06);
  border-color: rgba(255, 186, 84, 0.18);
}

.pill {
  color: var(--gold-strong);
  background: rgba(255, 190, 92, 0.1);
  border-color: rgba(255, 190, 92, 0.12);
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
}

main { padding: 26px 0 80px; position: relative; z-index: 1; }
section { padding: 30px 0; }

.section-band {
  position: relative;
  padding: 38px;
  margin-top: 22px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 189, 92, 0.08);
}

.section-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 26%);
}

.section-band-hero {
  padding: 42px;
  background: radial-gradient(circle at 18% 18%, rgba(255, 180, 74, 0.08), transparent 28%), linear-gradient(180deg, rgba(17, 12, 7, 0.86), rgba(9, 7, 5, 0.92));
}

.section-band-ember {
  background: radial-gradient(circle at 82% 18%, rgba(255, 138, 26, 0.12), transparent 24%), linear-gradient(180deg, rgba(22, 14, 8, 0.92), rgba(14, 10, 7, 0.88));
}

.section-band-charcoal {
  background: radial-gradient(circle at 14% 16%, rgba(255, 188, 92, 0.08), transparent 24%), linear-gradient(180deg, rgba(12, 12, 12, 0.96), rgba(8, 8, 8, 0.9));
}

.section-band-gold {
  background: radial-gradient(circle at 75% 12%, rgba(255, 211, 107, 0.11), transparent 22%), linear-gradient(180deg, rgba(27, 17, 9, 0.95), rgba(18, 12, 7, 0.9));
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  padding-top: 36px;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero-tape {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -4px;
}

.hero-tape span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 112, 0.16);
  background: linear-gradient(180deg, rgba(255, 201, 114, 0.08), rgba(255, 124, 18, 0.04));
  color: #f1c678;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h2, .section-head h3, .brand h1, .hero-card h3, .card h4, .feature-card h4, .mini-panel h4, .timeline-step h4, summary {
  margin: 0;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #fff2d4 0%, #f7b14f 48%, #8d4c18 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h2 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  max-width: 10ch;
  white-space: pre-line;
}

.hero-copy p, .section-head p, .card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy p { font-size: 18px; max-width: 62ch; }
.hero-actions, .hero-points, .status-strip, .status-bar { display: flex; flex-wrap: wrap; gap: 12px; }
.status-strip { padding-top: 4px; }

.hero-slider {
  position: relative;
  display: grid;
  max-width: 62ch;
}

.hero-slider-track {
  position: relative;
  min-height: 210px;
  padding-bottom: 44px;
}

.hero-quote {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 26px 24px 24px 28px;
  border: 1px solid rgba(247, 177, 79, 0.14);
  border-left: 4px solid rgba(247, 177, 79, 0.72);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 74, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 206, 120, 0.11), rgba(255, 140, 40, 0.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 18px 48px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.hero-quote.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-quote-kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f0bb69;
}

.hero-quote-mark {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 88px;
  line-height: 1;
  font-weight: 800;
  color: rgba(255, 211, 138, 0.12);
  pointer-events: none;
}

.hero-quote p {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.04em;
  color: #fff2d6;
  text-wrap: balance;
  max-width: 17ch;
}

.hero-slider-controls {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

.hero-slider-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-dot {
  width: 30px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 210, 132, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 205, 120, 0.12);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hero-dot.is-active {
  background: linear-gradient(180deg, #ffd68c 0%, #f79e34 100%);
  transform: scale(1.02);
  box-shadow: 0 0 18px rgba(247, 147, 26, 0.35);
}

.status-chip, .data-mode-chip {
  border: 1px solid rgba(255, 185, 84, 0.14);
  background: rgba(255, 185, 84, 0.05);
  color: var(--muted);
  font-size: 14px;
  padding: 10px 14px;
}
.status-chip strong { color: var(--ink); }
.data-mode-chip { width: fit-content; }

.hero-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 189, 92, 0.18);
  background: linear-gradient(180deg, rgba(255, 174, 64, 0.08), rgba(18, 12, 7, 0.7));
  box-shadow: var(--shadow);
  min-height: 540px;
}
.hero-card-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(circle at 74% 16%, rgba(255, 197, 100, 0.18), transparent 22%),
    radial-gradient(circle at 28% 64%, rgba(247, 147, 26, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(14, 10, 6, 0.96), rgba(18, 12, 7, 0.76));
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.72;
}
.hero-orb-one {
  width: 220px;
  height: 220px;
  top: 44px;
  right: 28px;
  background: radial-gradient(circle, rgba(255, 216, 136, 0.26) 0%, rgba(247, 147, 26, 0.18) 46%, transparent 70%);
}
.hero-orb-two {
  width: 280px;
  height: 280px;
  bottom: 42px;
  left: 26px;
  background: radial-gradient(circle, rgba(247, 147, 26, 0.18) 0%, rgba(125, 67, 20, 0.12) 44%, transparent 72%);
}
.hero-art {
  position: absolute;
  inset: auto;
  object-fit: contain;
}
.hero-art-front {
  right: 6px;
  bottom: 14px;
  width: clamp(260px, 34vw, 430px);
  max-height: calc(100% - 72px);
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.28));
}

.treasury-visual-panel {
  padding: 10px;
  overflow: hidden;
}

.treasury-art {
  display: block;
  width: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 24px;
  border: 1px solid rgba(255, 189, 92, 0.12);
}
.hero-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18,12,7,0.45), rgba(12,8,4,0.88));
  border: 1px solid rgba(255, 188, 92, 0.16);
  display: grid;
  gap: 10px;
}
.hero-loop { font-size: 24px; letter-spacing: -0.04em; }

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  max-width: 66ch;
  position: relative;
  z-index: 1;
}
.section-head h3 { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; }
.section-head p { font-size: 17px; }

.section-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.section-visual-left .section-jack-panel {
  order: -1;
}

.section-visual-compact {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
}

.section-visual .section-head {
  margin-bottom: 0;
}

.section-jack-panel {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 22px 18px 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 189, 92, 0.12);
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 194, 96, 0.16), transparent 24%),
    radial-gradient(circle at 18% 72%, rgba(247, 147, 26, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(18, 12, 7, 0.38));
  overflow: hidden;
}

.section-jack-panel::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -18px;
  height: 64px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(247, 147, 26, 0.24) 0%, rgba(247, 147, 26, 0.08) 44%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

.section-jack-panel-compact {
  min-height: 260px;
}

.section-jack-panel-story {
  width: min(100%, 420px);
  max-width: 420px;
  min-height: 320px;
  justify-self: end;
}

.section-jack-art {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 460px);
  max-width: min(100%, 460px);
  max-height: 360px;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.34));
}

.section-jack-art-console {
  max-width: min(100%, 500px);
  max-height: 330px;
}

.section-jack-art-story {
  max-width: min(100%, 390px);
  max-height: 335px;
}

.section-disclaimer {
  margin-top: 10px;
  color: var(--soft);
  font-size: 13px !important;
  line-height: 1.7;
}

.grid-3, .grid-2, .wallet-layout, .calc-layout, .lock-layout, .faq-grid, .split, .dashboard-grid, .kpi-grid, .timeline {
  display: grid;
  gap: 18px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wallet-layout, .calc-layout, .lock-layout, .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-grid { grid-template-columns: 1.1fr 0.9fr; }
.kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { grid-template-columns: repeat(2, minmax(0, 1fr)); }

#stakingHighlights,
.lock-layout {
  align-items: start;
}

#stakingHighlights > .card,
.lock-layout > .card {
  display: grid;
  align-content: start;
  gap: 18px;
}

.card, .feature-card, .mini-panel, .timeline-step {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.card { padding: 22px; min-width: 0; }
.feature-card, .mini-panel, .timeline-step { padding: 20px; }
.card h4, .card h5, .feature-card h4, .mini-panel h4, .timeline-step h4 { margin: 0; letter-spacing: -0.04em; }

.feature-card { display: grid; gap: 14px; align-content: start; position: relative; }
.card-body { position: relative; z-index: 1; display: grid; gap: 12px; }
.tax-card-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.tax-step-icon { background: linear-gradient(135deg, rgba(255, 179, 59, 0.18), rgba(255, 111, 61, 0.16)); color: var(--gold-strong); }
.tax-card-title-stack { display: grid; gap: 8px; }
.info-callout {
  display: inline-grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  padding: 12px 14px; border-radius: 16px; background: rgba(255, 188, 92, 0.05); border: 1px solid rgba(255, 188, 92, 0.14);
  color: var(--muted); font-size: 13px; line-height: 1.6;
}
.info-dot {
  width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: rgba(255, 188, 92, 0.14); color: var(--gold-strong);
}
.tax-chart-wrap { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.tax-pie {
  --tax-pie: conic-gradient(rgba(255,255,255,0.08) 0 100%);
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--tax-pie);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 10px 24px rgba(0,0,0,0.22);
}
.tax-pie::after {
  content: ""; position: absolute; inset: 18px; border-radius: 50%;
  background: linear-gradient(180deg, rgba(15, 11, 8, 0.96), rgba(25, 18, 11, 0.96));
  border: 1px solid rgba(255,255,255,0.05);
}
.tax-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tax-legend li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  color: var(--muted); font-size: 13px;
}
.tax-legend strong { color: var(--ink); }
.tax-legend-swatch {
  --swatch: #fff;
  width: 12px; height: 12px; border-radius: 999px; background: var(--swatch);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--gold-strong);
  background: linear-gradient(135deg, rgba(255, 188, 92, 0.12), rgba(255, 122, 0, 0.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.brand-token {
  display: inline-block;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff2d4 0%, #f7b14f 46%, #8d4c18 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-btcb .brand-b,
.brand-bnb .brand-b {
  color: transparent;
  background: linear-gradient(180deg, #ffd38a 0%, #f7931a 46%, #8d4c18 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-btcb .brand-rest,
.brand-bnb .brand-rest,
.brand-btcb .brand-dollar,
.brand-bnb .brand-dollar,
.brand-bitcoin {
  color: transparent;
  background: linear-gradient(180deg, #ffe2a2 0%, #f7931a 46%, #7a4314 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.feature-list, .metric-list, .wallet-list, .lock-list, .faq-stack, .treasury-events, .wallet-box, .activity-list, .allocation-bars {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 12px;
}
.wallet-list li, .lock-list li, .feature-list li, .ready-list li, .waiting-list li {
  color: var(--muted); display: flex; align-items: flex-start; gap: 10px; line-height: 1.6;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-strong), var(--orange));
  margin-top: 9px; flex: 0 0 auto;
}
.wallet-value, .highlight { color: var(--ink); }
.highlight { font-weight: 700; font-variant-numeric: tabular-nums; }

.live-board-shell { display: grid; gap: 18px; }
.live-board-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: 10px; background: rgba(255, 188, 92, 0.06);
  border: 1px solid rgba(255, 188, 92, 0.12); padding: 8px; border-radius: 999px; width: fit-content;
}
.tab {
  border: 0; background: transparent; color: var(--muted); padding: 10px 16px; cursor: pointer; min-height: 42px; font-weight: 600;
}
.tab.active {
  color: #170d03; background: linear-gradient(135deg, var(--gold-strong), var(--orange));
  box-shadow: 0 8px 24px rgba(255, 124, 0, 0.18);
}
.panel { display: none; gap: 16px; }
.panel.active { display: grid; }

.kpi-card {
  padding: 18px; border-radius: 22px; background: rgba(255, 188, 92, 0.04);
  border: 1px solid rgba(255, 189, 92, 0.1); display: grid; gap: 8px;
}
.kpi-card .label, .fine, .mini small, .wallet-meta span:last-child, .allocation-label, .allocation-meta { color: var(--soft); font-size: 12px; line-height: 1.5; }
.kpi-card .value, .big-number, .mini .num {
  font-size: 28px; font-weight: 800; letter-spacing: -0.05em; font-variant-numeric: tabular-nums;
}
.big-number { font-size: 34px; }

.metric-list li {
  display: flex; justify-content: space-between; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid rgba(255, 189, 92, 0.1); color: var(--muted);
}
.metric-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.metric-list strong { color: var(--ink); }
.metric-value-stack { display: grid; gap: 6px; justify-items: end; text-align: right; }
.metric-sublist { display: grid; gap: 4px; color: var(--soft); font-size: 12px; line-height: 1.5; }

.allocation-row { display: grid; gap: 8px; }
.allocation-track {
  height: 12px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.04);
}
.allocation-fill { height: 100%; border-radius: inherit; }
.allocation-fill.treasury { background: linear-gradient(90deg, #ffd36b, #ff7a00); }
.allocation-fill.burn { background: linear-gradient(90deg, #ff9866, #ff5b2d); }
.allocation-fill.support { background: linear-gradient(90deg, #ffe9b8, #c59648); }
.allocation-fill.wallet { background: linear-gradient(90deg, #9dd6ff, #4d84ff); }

.activity-item, .treasury-event, .wallet-row {
  display: grid; gap: 12px; border: 1px solid rgba(255, 189, 92, 0.1); border-radius: 18px; padding: 14px; background: rgba(255, 190, 92, 0.03);
}
.activity-item { grid-template-columns: auto 1fr auto; align-items: center; }
.type-buy, .type-sell, .type-tax, .type-treasury {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.type-buy { background: rgba(47, 211, 141, 0.12); color: #93ffca; }
.type-sell { background: rgba(255, 125, 105, 0.12); color: #ffc2b7; }
.type-tax, .type-treasury { background: rgba(255, 188, 92, 0.12); color: var(--gold-strong); }

.wallet-row { grid-template-columns: 1fr auto auto; align-items: center; }
.wallet-copy {
  border: 1px solid rgba(255, 190, 92, 0.15); background: rgba(255, 189, 92, 0.05); color: var(--gold-strong); padding: 10px 14px; min-height: 42px;
}
.wallet-copy:disabled { opacity: 0.55; cursor: not-allowed; }
.wallet-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 190, 92, 0.15); background: rgba(255, 189, 92, 0.05); color: var(--ink); font-weight: 600;
}
.gradient-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 190, 92, 0.18);
  background: linear-gradient(135deg, rgba(255, 211, 107, 0.16), rgba(255, 122, 0, 0.12));
  color: #fff3d9;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(255, 120, 0, 0.12);
}
.gradient-link:hover { transform: translateY(-1px); border-color: rgba(255, 200, 104, 0.34); }
.footer-link {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #fff2d4 0%, #f7b14f 46%, #8d4c18 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  box-shadow: none;
  font-weight: 700;
}
.footer-link:hover { opacity: 0.92; }
.wallet-meta { display: grid; gap: 4px; min-width: 0; }
.wallet-address { word-break: break-all; }

.calc-box, .connect-box { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
label {
  color: var(--gold-strong); font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700;
}
.input {
  width: 100%; border-radius: 16px; border: 1px solid rgba(255, 190, 92, 0.16); background: rgba(255, 186, 84, 0.05);
  padding: 14px 16px; color: var(--ink); outline: none; min-height: 50px;
}
.input:focus {
  border-color: rgba(255, 189, 92, 0.4); box-shadow: 0 0 0 4px rgba(255, 187, 89, 0.08);
}
.range { width: 100%; accent-color: var(--gold); }
.formula {
  padding: 16px; border-radius: 18px; background: rgba(255, 188, 92, 0.04); border: 1px dashed rgba(255, 188, 92, 0.18);
  color: var(--muted); font-size: 14px; line-height: 1.7;
}
.mini {
  border: 1px solid rgba(255, 190, 92, 0.1); border-radius: 18px; padding: 16px; background: rgba(255, 186, 84, 0.03); display: grid; gap: 8px;
}

.wallet-state {
  border: 1px solid rgba(255, 189, 92, 0.12); border-radius: 20px; padding: 16px; background: rgba(255, 190, 92, 0.04);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.wallet-state > :first-child,
.mining-stat-card,
.contract-readiness-list li,
.contract-readiness-list li > span:last-child,
.mining-action-message,
.form-head,
.big-number {
  min-width: 0;
}

.wallet-state strong,
.wallet-state .fine,
.mining-stat-card .big-number,
.contract-readiness-list span,
.mining-action-message,
.form-head p {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 12px;
  background: rgba(47, 211, 141, 0.08); color: #b6ffd8; border: 1px solid rgba(47, 211, 141, 0.14); font-size: 13px; font-weight: 700;
}
.tag.pending {
  color: var(--gold-strong); background: rgba(255, 188, 92, 0.08); border-color: rgba(255, 188, 92, 0.14);
}

.mining-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mining-stat-card {
  gap: 10px;
}

.contract-readiness-box,
.mining-action-box,
.mining-form,
.form-head {
  display: grid;
  gap: 14px;
}

.contract-readiness-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contract-readiness-list {
  gap: 10px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-row > * {
  flex: 1 1 180px;
}

.mining-form {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 189, 92, 0.12);
  background: rgba(255, 188, 92, 0.03);
}

.mining-form p,
.mining-action-message {
  margin: 0;
}

.mining-action-message.is-ready {
  border-style: solid;
  border-color: rgba(47, 211, 141, 0.2);
  background: rgba(47, 211, 141, 0.06);
}

.button:disabled,
.ghost:disabled,
.wallet-copy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.timeline-step { display: grid; gap: 10px; position: relative; }
.timeline-step .step-num { color: var(--gold-strong); font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }

details {
  border: 1px solid rgba(255, 189, 92, 0.12); border-radius: 18px; padding: 0 18px; background: rgba(255, 189, 92, 0.03);
}
summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
details p { padding: 0 0 18px; }

.footer { padding: 10px 0 40px; color: var(--soft); font-size: 14px; }
.footer-line {
  border-top: 1px solid rgba(255, 189, 92, 0.08); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px;
}
.footer-left,
.footer-right {
  display: grid;
  gap: 12px;
}
.footer-disclaimer {
  max-width: 78ch;
  line-height: 1.7;
}
.footer-disclaimer .footer-link {
  white-space: nowrap;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.page-hero,
.doc-page-card {
  max-width: 920px;
}

.doc-page-card {
  display: grid;
  gap: 18px;
}

.doc-section {
  display: grid;
  gap: 12px;
}

.doc-section h4,
.doc-section h5 {
  margin: 0;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bitcoin-paper-shell {
  max-width: 1200px;
}

.bitcoin-paper-lead {
  max-width: 72ch;
}

.bitcoin-paper-viewer {
  display: grid;
  gap: 22px;
}

.bitcoin-paper-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.bitcoin-paper-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bitcoin-paper-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 189, 92, 0.16);
  background: linear-gradient(180deg, rgba(255, 189, 92, 0.12), rgba(255, 189, 92, 0.05));
  color: #fff0d2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bitcoin-paper-stage {
  position: relative;
  padding: clamp(14px, 2vw, 24px);
  border-radius: 34px;
  border: 1px solid rgba(255, 189, 92, 0.16);
  background:
    radial-gradient(circle at top left, rgba(255, 191, 92, 0.1), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 122, 0, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(15, 10, 6, 0.98), rgba(8, 6, 4, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.bitcoin-paper-glow {
  position: absolute;
  inset: auto -10% -35% auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 164, 58, 0.18), rgba(255, 164, 58, 0));
  pointer-events: none;
}

.bitcoin-paper-reading-room {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.bitcoin-paper-outline {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(255, 189, 92, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 214, 143, 0.08), rgba(255, 214, 143, 0.02)),
    rgba(12, 9, 6, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 239, 210, 0.08);
}

.bitcoin-paper-outline-head {
  display: grid;
  gap: 8px;
}

.bitcoin-paper-outline-head h4,
.bitcoin-paper-page-header h4,
.bitcoin-paper-meta h4,
.bitcoin-paper-loading-card h4,
.bitcoin-paper-error-card h4 {
  margin: 0;
}

.bitcoin-paper-outline-head p,
.bitcoin-paper-topbar .section-head p,
.bitcoin-paper-meta p,
.bitcoin-paper-loading-card p,
.bitcoin-paper-error-card p {
  margin: 0;
}

.bitcoin-paper-frame {
  position: relative;
  min-height: 780px;
  border-radius: 28px;
  border: 1px solid rgba(255, 189, 92, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 190, 92, 0.06), rgba(255, 190, 92, 0.01)),
    rgba(10, 7, 5, 0.94);
  padding: clamp(14px, 2vw, 24px);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 214, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.28);
}

.bitcoin-paper-frame.is-rendering {
  opacity: 0.88;
}

.bitcoin-paper-frame.has-error .bitcoin-paper-page-surface {
  opacity: 0.3;
}

.bitcoin-paper-progress {
  overflow: hidden;
  height: 6px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 204, 112, 0.08);
}

.bitcoin-paper-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f3b64f 0%, #f7931a 48%, #ffe8bb 100%);
  box-shadow: 0 0 18px rgba(247, 147, 26, 0.28);
  transition: width 220ms ease;
}

.bitcoin-paper-page-surface {
  position: relative;
  display: grid;
  gap: 20px;
  min-height: 700px;
  padding: clamp(24px, 3vw, 42px);
  border-radius: 24px;
  border: 1px solid rgba(122, 77, 31, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(244, 235, 217, 0.98)),
    #f6efdf;
  color: #2f2113;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  isolation: isolate;
}

.bitcoin-paper-page-surface::before,
.bitcoin-paper-page-surface::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.bitcoin-paper-page-surface::before {
  inset: 18px;
  border-radius: 18px;
  border: 1px solid rgba(133, 92, 44, 0.1);
}

.bitcoin-paper-page-surface::after {
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 42%);
}

.bitcoin-paper-page-meta,
.bitcoin-paper-page-header,
.bitcoin-paper-text {
  position: relative;
  z-index: 1;
}

.bitcoin-paper-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.bitcoin-paper-page-meta .bitcoin-paper-chip {
  color: #553519;
  border-color: rgba(122, 77, 31, 0.14);
  background: rgba(247, 147, 26, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-size: 12px;
}

.bitcoin-paper-page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(122, 77, 31, 0.16);
}

.bitcoin-paper-page-header h4 {
  color: #2f2113;
  font-size: clamp(24px, 3vw, 34px);
}

.bitcoin-paper-outline-head h4 {
  color: #fff0d2;
  font-size: 20px;
}

.bitcoin-paper-meta h4 {
  font-size: 21px;
}

.bitcoin-paper-page-header .eyebrow {
  display: inline-block;
  color: #9a6323;
  letter-spacing: 0.14em;
}

.bitcoin-paper-outline .eyebrow,
.bitcoin-paper-loading-card .eyebrow,
.bitcoin-paper-error-card .eyebrow {
  color: #ffcf7c;
}

.bitcoin-paper-outline-head p {
  color: rgba(255, 240, 210, 0.76);
}

.bitcoin-paper-outline-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bitcoin-paper-outline-stat {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 189, 92, 0.1);
  background: linear-gradient(180deg, rgba(255, 210, 132, 0.08), rgba(255, 210, 132, 0.02));
  text-align: center;
}

.bitcoin-paper-outline-stat strong {
  color: #fff5e3;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.bitcoin-paper-outline-stat span {
  color: rgba(255, 240, 210, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bitcoin-paper-page-counter {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(122, 77, 31, 0.12);
  background: rgba(122, 77, 31, 0.06);
  color: #6e4618;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.bitcoin-paper-text {
  margin: 0;
  white-space: pre-wrap;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.82;
  color: #2e2113;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: pretty;
}

.bitcoin-paper-page-body {
  position: relative;
  padding: clamp(18px, 2vw, 24px);
  border-radius: 20px;
  border: 1px solid rgba(122, 77, 31, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.18)),
    repeating-linear-gradient(180deg, rgba(104, 74, 37, 0.035) 0px, rgba(104, 74, 37, 0.035) 1px, transparent 1px, transparent 34px);
}

.bitcoin-paper-page-body::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.34), transparent 32%),
    radial-gradient(circle at bottom right, rgba(247, 147, 26, 0.06), transparent 38%);
}

.bitcoin-paper-page-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(122, 77, 31, 0.14);
}

.bitcoin-paper-page-note {
  color: #8e6332;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bitcoin-paper-text::selection {
  background: rgba(247, 147, 26, 0.24);
}

.bitcoin-paper-loading,
.bitcoin-paper-error {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.bitcoin-paper-loading[hidden],
.bitcoin-paper-error[hidden] {
  display: none;
}

.bitcoin-paper-loading-card,
.bitcoin-paper-error-card {
  max-width: 520px;
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 189, 92, 0.14);
  background: rgba(19, 13, 8, 0.92);
  color: #fff0d2;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.bitcoin-paper-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bitcoin-paper-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bitcoin-paper-btn {
  min-width: 148px;
  font-family: inherit;
}

.bitcoin-paper-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.bitcoin-paper-page-jump {
  display: grid;
  gap: 10px;
}

.bitcoin-paper-page-dot {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 189, 92, 0.12);
  background: rgba(255, 189, 92, 0.04);
  color: #fff0d2;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.bitcoin-paper-page-dot:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 200, 104, 0.34);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.bitcoin-paper-page-dot.is-active {
  border-color: rgba(255, 200, 104, 0.42);
  background: linear-gradient(135deg, rgba(255, 211, 107, 0.18), rgba(255, 122, 0, 0.12));
}

.bitcoin-paper-page-dot-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 246, 229, 0.08);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bitcoin-paper-page-dot-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bitcoin-paper-page-dot.is-active .bitcoin-paper-page-dot-number,
.bitcoin-paper-page-dot.is-active .bitcoin-paper-page-dot-label {
  color: #fff8eb;
}

.bitcoin-paper-page-dot.is-active .bitcoin-paper-page-dot-number,
.bitcoin-paper-page-dot:hover .bitcoin-paper-page-dot-number {
  background: rgba(255, 244, 218, 0.14);
}

.bitcoin-paper-meta {
  display: grid;
  gap: 12px;
}

.bitcoin-paper-meta .gradient-link {
  width: fit-content;
}

.bitcoin-paper-meta .doc-actions {
  margin-top: 4px;
}

.bitcoin-paper-page-dot:focus-visible,
.bitcoin-paper-btn:focus-visible {
  outline: 2px solid rgba(255, 214, 143, 0.78);
  outline-offset: 3px;
}

.bitcoin-paper-page-surface,
.bitcoin-paper-outline,
.bitcoin-paper-frame {
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 980px) {
  .bitcoin-paper-reading-room {
    grid-template-columns: 1fr;
  }

  .bitcoin-paper-outline {
    position: relative;
    top: auto;
  }

  .bitcoin-paper-outline-stats,
  .bitcoin-paper-page-jump {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bitcoin-paper-frame {
    min-height: 560px;
  }

  .bitcoin-paper-page-surface {
    min-height: 560px;
  }
}

@media (max-width: 860px) {
  .bitcoin-paper-controls,
  .bitcoin-paper-topbar,
  .bitcoin-paper-page-header {
    align-items: stretch;
  }

  .bitcoin-paper-nav,
  .bitcoin-paper-status {
    width: 100%;
  }

  .bitcoin-paper-btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 640px) {
  .bitcoin-paper-stage,
  .bitcoin-paper-frame,
  .bitcoin-paper-outline {
    border-radius: 22px;
  }

  .bitcoin-paper-page-surface {
    min-height: auto;
    padding: 18px;
    border-radius: 18px;
  }

  .bitcoin-paper-page-surface::before {
    inset: 12px;
    border-radius: 14px;
  }

  .bitcoin-paper-outline-stats,
  .bitcoin-paper-page-jump {
    grid-template-columns: 1fr;
  }

  .bitcoin-paper-page-dot {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 10px 12px;
  }

  .bitcoin-paper-page-dot-number {
    width: 36px;
    height: 36px;
  }

  .bitcoin-paper-page-body {
    padding: 14px;
  }

  .bitcoin-paper-page-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .bitcoin-paper-text {
    font-size: 14px;
    line-height: 1.72;
  }
}

@media (min-width: 1280px) {
  .bitcoin-paper-shell {
    max-width: 1240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bitcoin-paper-progress span,
  .bitcoin-paper-page-dot {
    transition: none;
  }

  .bitcoin-paper-page-dot:hover {
    transform: none;
  }
}

.external-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.external-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 3, 0.76);
  backdrop-filter: blur(8px);
}

.external-modal-card {
  position: relative;
  width: min(calc(100% - 32px), 620px);
  margin: min(14vh, 120px) auto 0;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 189, 92, 0.18);
  background: linear-gradient(180deg, rgba(20, 13, 8, 0.98), rgba(10, 8, 5, 0.98));
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.external-modal-card h3,
.external-modal-card p {
  margin: 0;
}

.external-destination {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 189, 92, 0.14);
  background: rgba(255, 189, 92, 0.05);
  color: #fff0d2;
  word-break: break-all;
}

.external-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.hide-mobile { display: inline-flex; }

@media (max-width: 1180px) {
  .hero, .grid-3, .grid-2, .wallet-layout, .calc-layout, .lock-layout, .faq-grid, .split, .dashboard-grid, .timeline { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tax-chart-wrap { grid-template-columns: 1fr; }
  .tax-pie { margin-inline: auto; }
  .section-visual,
  .section-visual-compact { grid-template-columns: 1fr; }
  .section-visual-left .section-jack-panel { order: initial; }
}

@media (max-width: 860px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    padding: 12px 0;
  }
  .brand {
    gap: 14px;
  }
  .brand-badge {
    width: 58px;
    height: 58px;
  }
  .brand h1 {
    font-size: 21px;
  }
  .menu-toggle { display: inline-flex; }
  .nav-links {
    order: 4;
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px;
    padding: 18px;
    border-radius: 28px;
    background: radial-gradient(circle at top, rgba(255, 186, 90, 0.11), transparent 56%), linear-gradient(180deg, rgba(16, 10, 6, 0.98), rgba(8, 5, 3, 0.98));
    border: 1px solid rgba(255, 206, 125, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 236, 198, 0.06), 0 24px 56px rgba(0, 0, 0, 0.42);
  }
  .nav-links.is-open { display: flex; }
  .nav-links::after {
    left: 22px;
    right: 22px;
  }
  .nav-home-link,
  .nav-parent {
    width: 100%;
    justify-content: space-between;
    padding: 0 16px;
    min-height: 52px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 189, 92, 0.05), rgba(255, 141, 24, 0.02));
    border-color: rgba(255, 205, 122, 0.1);
  }
  .nav-group {
    width: 100%;
  }
  .nav-group::after {
    display: none;
  }
  .nav-dropdown {
    position: static;
    min-width: 0;
    display: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    margin-top: 10px;
    padding: 10px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 168, 71, 0.08), rgba(255, 168, 71, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 236, 198, 0.04);
  }
  .nav-group:hover > .nav-dropdown,
  .nav-group:focus-within > .nav-dropdown {
    transform: none;
  }
  .nav-group.is-open > .nav-dropdown {
    display: grid;
  }
  .nav-dropdown a {
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(255, 189, 92, 0.05);
    border: 1px solid rgba(255, 205, 122, 0.08);
  }
  .nav-actions {
    justify-content: flex-end;
  }
  .hide-mobile { display: none; }
  .hero-copy p { font-size: 16px; }
  .hero-tape span { letter-spacing: 0.1em; }
  .hero-slider-track { min-height: 190px; }
  .hero-quote p { font-size: 22px; max-width: 100%; }
  .section-band { padding: 28px 22px; }
  .action-grid,
  .mining-status-grid { grid-template-columns: 1fr; }
  .action-row > * { flex-basis: 100%; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 22px), var(--max)); }
  main { padding-top: 14px; }
  .card, .feature-card, .mini-panel, .timeline-step { padding: 18px; border-radius: 22px; }
  .hero-card { min-height: 360px; }
  .hero-art-front { width: min(74vw, 320px); right: 0; bottom: 0; }
  .hero-slider-track { min-height: 210px; }
  .hero-quote { padding: 18px 16px 18px 18px; }
  .hero-quote-mark { font-size: 72px; top: 8px; right: 12px; }
  .hero-slider-controls { bottom: 12px; }
  .hero-overlay { inset: auto 12px 12px 12px; }
  .section-band,
  .section-band-hero { padding: 22px 16px; border-radius: 26px; }
  .section-visual { gap: 16px; }
  .section-jack-panel,
  .section-jack-panel-compact { min-height: 220px; padding: 18px 12px 0; }
  .section-jack-panel-story { max-width: 100%; min-height: 220px; }
  .section-jack-art,
  .section-jack-art-console { max-width: 100%; max-height: 280px; }
  .section-jack-art-story { max-width: 100%; max-height: 280px; }
  .button, .ghost { width: 100%; }
  .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 84px;
    gap: 12px;
  }
  .brand {
    gap: 12px;
  }
  .brand-badge {
    width: 52px;
    height: 52px;
  }
  .nav-wallet {
    width: 42px;
    height: 42px;
    border-radius: 16px;
  }
  .nav-wallet svg {
    width: 18px;
    height: 18px;
  }
  .nav-wallet::after {
    width: 14px;
    height: 14px;
    top: 5px;
    right: 5px;
  }
  .brand h1 {
    font-size: 18px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.18em;
  }
  .menu-toggle { order: 2; }
  .nav-actions {
    order: 4;
    width: 100%;
  }
  .nav-actions > * { flex: 1; }
  .wallet-row, .activity-item, .wallet-state, .footer-line { grid-template-columns: 1fr; display: grid; justify-content: initial; }
  .wallet-state {
    padding: 14px;
  }
  .tag {
    width: 100%;
    justify-content: center;
  }
  .mining-form,
  .contract-readiness-box,
  .mining-action-box {
    padding-inline: 16px;
  }
  .mining-status-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }
  .action-row,
  .action-row.action-row-stack-mobile {
    flex-direction: column;
  }
  .action-row > * {
    width: 100%;
    flex: 1 1 auto;
  }
  .big-number {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.05;
  }
  .tabs { width: 100%; border-radius: 22px; }
  .tab { flex: 1 1 calc(50% - 10px); }
  .kpi-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


