* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

:root {
  color-scheme: light;
  --bg: #f1eee7;
  --paper: #f8f6f1;
  --ink: #171714;
  --muted: #716b61;
  --line: rgba(23, 23, 20, .17);
  --soft: #e8e3d8;
  --orange: #f7931a;
  --coral: #de5639;
  --green: #177d58;
  --red: #b94738;
  --shadow: 0 24px 70px rgba(40, 32, 17, .13);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121210;
  --paper: #1b1b18;
  --ink: #f4f0e8;
  --muted: #a7a094;
  --line: rgba(244, 240, 232, .15);
  --soft: #272722;
  --orange: #f7a12d;
  --coral: #bd4933;
  --green: #69c59a;
  --red: #f07b6e;
  --shadow: 0 24px 80px rgba(0, 0, 0, .3);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "SF Pro Display", "PingFang SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

button,
a { color: inherit; }

a { text-decoration: none; }

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  height: 68px;
  margin: auto;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}

.brand b { color: var(--muted); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font: 16px Georgia, serif;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
}

.site-header nav > a:not(.home-link) {
  position: relative;
}

.site-header nav > a:not(.home-link)::after {
  position: absolute;
  right: 100%;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--orange);
  content: "";
  transition: right .2s;
}

.site-header nav > a:hover::after { right: 0; }

.home-link {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.theme-toggle span {
  display: block;
  width: 26px;
  height: 14px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.theme-toggle span::after {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
  transition: transform .2s;
}

:root[data-theme="dark"] .theme-toggle span::after {
  transform: translateX(12px);
  background: var(--orange);
}

main {
  max-width: 1400px;
  margin: auto;
  padding: 0 40px 58px;
}

.section-space { margin-top: 58px; }

.hero {
  display: grid;
  grid-template-columns: minmax(260px, .55fr) minmax(460px, 1.45fr);
  align-items: center;
  gap: 34px;
  padding: 48px 0 34px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.rule-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rule-label span {
  width: 28px;
  height: 1px;
  background: var(--orange);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font: 500 clamp(48px, 5vw, 72px)/.98 Georgia, "Songti SC", serif;
  letter-spacing: -.05em;
}

.hero h1 em {
  color: var(--orange);
  font-style: italic;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.refresh-action {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.refresh-action:disabled { opacity: .45; }

.update-note {
  width: 100%;
  color: var(--muted);
  font-size: 10px;
}

.price-stage {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 4px;
  background: #171714;
  box-shadow: var(--shadow);
  color: #fff;
}

.stage-grid {
  position: absolute;
  inset: 0;
  opacity: .23;
  background-image: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

.price-content {
  position: absolute;
  z-index: 2;
  bottom: 36px;
  left: 38px;
}

.price-content p {
  margin: 0 0 10px;
  color: #aaa59b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

.price-content strong {
  display: block;
  font: 500 clamp(46px, 5vw, 72px) Georgia, serif;
  letter-spacing: -.05em;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: #c9c4ba;
  font-size: 12px;
}

.price-content small {
  display: block;
  margin-top: 12px;
  color: #7e7a72;
  font-size: 9px;
}

.change {
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
}

.up { color: var(--green) !important; }
.down { color: var(--red) !important; }
.flat { color: inherit; }
.price-stage .up { color: #70d6a4 !important; }
.price-stage .down { color: #ff8a7d !important; }

.coin-orbit {
  position: absolute;
  z-index: 2;
  top: -68px;
  right: -28px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(247, 147, 26, .5);
  border-radius: 50%;
}

.coin-orbit::before,
.coin-orbit::after {
  position: absolute;
  border: 1px solid rgba(247, 147, 26, .26);
  border-radius: 50%;
  content: "";
}

.coin-orbit::before { inset: 24px; }
.coin-orbit::after { inset: 52px; }

.coin-orbit span {
  position: absolute;
  display: grid;
  place-items: center;
  inset: 78px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 50px rgba(247, 147, 26, .28);
  color: #171714;
  font: 64px Georgia, serif;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip article {
  position: relative;
  padding: 22px 22px 24px;
  border-right: 1px solid var(--line);
}

.signal-strip article:last-child { border: 0; }

.signal-strip > article > span {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--muted);
  font: italic 12px Georgia, serif;
}

.signal-strip p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
}

.signal-strip strong {
  display: block;
  font: 500 24px Georgia, serif;
}

.signal-strip small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.market-grid { display: grid; }

.panel {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.panel h2,
.section-title h2,
.comparison-head h2 {
  margin: 0;
  font: 500 clamp(30px, 3vw, 42px) Georgia, "Songti SC", serif;
  letter-spacing: -.025em;
}

.range-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--soft);
}

.range-tabs button {
  padding: 6px 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}

.range-tabs button.active {
  background: var(--ink);
  color: var(--bg);
}

.chart-shell {
  position: relative;
  height: 330px;
  margin-top: 22px;
}

.chart-shell canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-empty {
  position: absolute;
  display: grid;
  place-items: center;
  inset: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 116px;
  padding: 9px 10px;
  background: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
  color: var(--bg);
  pointer-events: none;
  font-size: 11px;
}

.chart-tooltip b,
.chart-tooltip span { display: block; }

.chart-tooltip b { font: 500 15px Georgia, serif; }
.chart-tooltip span { margin-top: 3px; opacity: .65; }

.chart-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.chart-meta b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font: 500 16px Georgia, serif;
}

.section-title,
.comparison-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 22px;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.network-feature {
  position: relative;
  min-height: 300px;
  padding: 26px;
  overflow: hidden;
}

.network-feature > p {
  margin: 0;
  color: inherit;
  opacity: .65;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.network-feature > strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 32px;
  font: 500 clamp(42px, 5vw, 64px) Georgia, serif;
  letter-spacing: -.04em;
}

.network-feature > span {
  display: block;
  opacity: .68;
  font-size: 10px;
}

.network-feature > small {
  position: absolute;
  right: 26px;
  bottom: 22px;
  left: 26px;
  opacity: .68;
  font-size: 9px;
}

.feature-index {
  position: absolute;
  top: 23px;
  right: 23px;
  opacity: .55;
  font: italic 13px Georgia, serif;
}

.network-feature.coral { background: var(--coral); color: #fff; }
.network-feature.ink { background: #171714; color: #fff; }
.network-feature.paper { border: 1px solid var(--line); background: var(--paper); }

.wave {
  position: absolute;
  right: 0;
  bottom: 50px;
  left: 0;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 70px;
  padding: 0 26px;
  opacity: .5;
}

.wave i { flex: 1; height: 20%; background: #fff; }
.wave i:nth-child(2) { height: 58%; }
.wave i:nth-child(3) { height: 38%; }
.wave i:nth-child(4) { height: 86%; }
.wave i:nth-child(5) { height: 47%; }
.wave i:nth-child(6) { height: 72%; }
.wave i:nth-child(7) { height: 30%; }
.wave i:nth-child(8) { height: 64%; }
.wave i:nth-child(9) { height: 42%; }

.hash-field {
  position: absolute;
  right: -14px;
  bottom: 30px;
  transform: rotate(-9deg);
  opacity: .22;
  color: var(--orange);
  font: 700 26px/1.18 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: .12em;
}

.fee-scale { margin-top: 34px; }

.fee-scale > div {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 4px 10px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 9px;
}

.fee-scale b {
  color: var(--ink);
  text-align: right;
  font: 500 14px Georgia, serif;
}

.fee-scale i {
  display: block;
  grid-column: 1 / -1;
  height: 3px;
  background: var(--soft);
}

.fee-scale i::after {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
  content: "";
  transition: width .5s ease;
}

.fee-scale i[data-width]::after { width: var(--fee-width); }

.network-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  border: 1px solid var(--line);
}

.network-facts article {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.network-facts article:last-child { border: 0; }

.network-facts p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 9px;
}

.network-facts strong { font: 500 24px Georgia, serif; }

.network-facts span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.halving-section {
  display: grid;
  grid-template-columns: .45fr 1.55fr;
  align-items: center;
  gap: 48px;
  padding: 48px;
  background: #171714;
  color: #fff;
}

.halving-copy h2 {
  margin: 0;
  font: 500 clamp(34px, 3.5vw, 52px)/1.02 Georgia, "Songti SC", serif;
  letter-spacing: -.04em;
}

.halving-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: #1d1d1a;
}

.halving-top,
.progress-copy,
.halving-note {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #aaa69e;
  font-size: 9px;
}

.halving-top strong { color: #fff; }

.countdown { padding: 38px 0 32px; }

.countdown strong {
  display: block;
  color: var(--orange);
  font: 500 clamp(58px, 8vw, 100px)/.85 Georgia, serif;
  letter-spacing: -.06em;
}

.countdown span {
  display: block;
  margin-top: 15px;
  color: #817d75;
  font-size: 8px;
  letter-spacing: .2em;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  background: #33332f;
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
  transition: width .5s ease;
}

.progress-copy { margin-top: 9px; }
.progress-copy b { color: #fff; }

.halving-note {
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.halving-note b { color: #fff; font: 500 19px Georgia, serif; }

.comparison-section {
  padding: 40px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.gold-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 28px;
}

.gold-comparison article { text-align: center; }

.gold-comparison span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .1em;
}

.gold-comparison strong {
  display: block;
  margin-top: 12px;
  color: #b98522;
  font: 500 clamp(46px, 6vw, 76px) Georgia, serif;
  letter-spacing: -.05em;
}

.gold-comparison p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.exchange-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1320px;
  margin: 0 auto 28px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.site-footer > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.site-footer > div > p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.site-footer a:not(.brand) {
  color: var(--muted);
  font-size: 9px;
}

.site-footer a:not(.brand):hover { color: var(--orange); }

.noscript {
  position: fixed;
  z-index: 99;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 13px;
  background: var(--coral);
  color: #fff;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 1060px) {
  .signal-strip { grid-template-columns: repeat(3, 1fr); }
  .signal-strip article:nth-child(3) { border-right: 0; }
  .signal-strip article:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .network-grid { grid-template-columns: 1fr 1fr; }
  .fee-feature { grid-column: 1 / -1; }
  .halving-section { gap: 36px; padding: 40px; }
  .site-footer { margin-inline: 40px; }
}

@media (max-width: 780px) {
  .site-header { height: auto; padding: 18px 20px; }
  .site-header nav > a:not(.home-link),
  .theme-toggle b { display: none; }
  .site-header nav { gap: 14px; }
  main { padding: 0 20px 48px; }
  .section-space { margin-top: 48px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 42px 0 30px; }
  .hero h1 { font-size: clamp(46px, 14vw, 68px); }
  .price-stage { min-height: 300px; }
  .signal-strip { grid-template-columns: 1fr 1fr; }
  .signal-strip article { border-bottom: 1px solid var(--line) !important; }
  .signal-strip article:nth-child(even) { border-right: 0; }
  .signal-strip article:last-child { grid-column: 1 / -1; border-bottom: 0 !important; }
  .panel { padding: 22px; }
  .chart-shell { height: 250px; }
  .network-grid { grid-template-columns: 1fr; }
  .fee-feature { grid-column: auto; }
  .network-facts { grid-template-columns: 1fr 1fr; }
  .network-facts article:nth-child(2) { border-right: 0; }
  .network-facts article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .halving-section { grid-template-columns: 1fr; padding: 32px 22px; }
  .comparison-section { padding: 32px 22px; }
  .gold-comparison { grid-template-columns: 1fr; gap: 18px; }
  .exchange-mark { margin: auto; transform: rotate(90deg); }
  .site-footer { grid-template-columns: 1fr; margin: 0 20px 18px; gap: 26px; }
}

@media (max-width: 520px) {
  .brand span:last-child { font-size: 10px; }
  .price-content { bottom: 26px; left: 22px; }
  .price-content strong { font-size: 42px; }
  .coin-orbit { top: -90px; right: -78px; }
  .panel-head { display: block; }
  .range-tabs { width: max-content; margin-top: 16px; }
  .chart-meta { display: grid; grid-template-columns: repeat(3, 1fr); }
  .signal-strip strong { font-size: 21px; }
  .network-feature { min-height: 285px; }
  .network-facts strong { font-size: 20px; }
}

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