/* Self-hosted: no CDN, so the page renders on a locked-down or slow network. */
:root {
  --bg: #0b0e13; --surface: #141922; --surface-2: #1d2430;
  --border: #232c39; --text: #e8ecf3; --muted: #8b95a7;
  --primary: #4c8dff; --up: #16c784; --down: #ea3943;
  --radius: 14px; --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11,14,19,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
nav.site a { color: var(--muted); margin-left: 22px; font-size: 14px; font-weight: 500; }
nav.site a:hover { color: var(--text); }

.hero { padding: 72px 0 48px; text-align: center; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -1px; }
.hero h1 .accent { color: var(--primary); }
.hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 28px; }
.cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 13px 26px; border-radius: 10px; font-weight: 600;
}
.btn.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn.disabled { opacity: 0.55; cursor: default; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 8px 0 56px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.stat .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat .value { font-size: 24px; font-weight: 700; margin-top: 6px; }

h2.section { font-size: 22px; margin: 0 0 6px; }
p.section-note { color: var(--muted); margin: 0 0 18px; font-size: 14px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.coins { width: 100%; border-collapse: collapse; }
table.coins th, table.coins td { padding: 13px 16px; text-align: right; border-bottom: 1px solid var(--border); }
table.coins th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
table.coins th:first-child, table.coins td:first-child { text-align: left; }
table.coins tbody tr:last-child td { border-bottom: none; }
table.coins tbody tr:hover { background: var(--surface-2); }
.coin-cell { display: flex; align-items: center; gap: 11px; }
.coin-cell img { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); }
.coin-cell .sym { font-weight: 600; }
.coin-cell .nm { color: var(--muted); font-size: 12px; }
.up { color: var(--up); } .down { color: var(--down); } .muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }

.movers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 56px; }
.mover-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.mover-row:last-child { border-bottom: none; }
.mover-head { padding: 14px 16px; font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--border); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 56px 0; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.feature .ic { font-size: 22px; margin-bottom: 12px; display: block; }

footer.site { border-top: 1px solid var(--border); margin-top: 64px; padding: 32px 0 48px; color: var(--muted); font-size: 13px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--muted); margin-right: 18px; }
footer.site a:hover { color: var(--text); }

.prose { max-width: 760px; margin: 48px auto; }
.prose h1 { font-size: 30px; margin-bottom: 8px; }
.prose h2 { font-size: 18px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--muted); font-size: 13px; margin-bottom: 32px; }

.coin-head { display: flex; align-items: center; gap: 16px; margin: 40px 0 4px; }
.coin-head img { width: 48px; height: 48px; border-radius: 50%; }
.coin-head h1 { margin: 0; font-size: 28px; }
.coin-price { font-size: 36px; font-weight: 700; margin: 8px 0 4px; }
.chart-card { padding: 20px; margin: 24px 0; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
.grid-stats > div { background: var(--surface); padding: 16px 18px; }

@media (max-width: 720px) {
  .hero h1 { font-size: 32px; }
  .hero { padding: 48px 0 32px; }
  .movers { grid-template-columns: 1fr; }
  nav.site a { margin-left: 14px; font-size: 13px; }
  table.coins th:nth-child(4), table.coins td:nth-child(4),
  table.coins th:nth-child(5), table.coins td:nth-child(5) { display: none; }
}
