/* $ONEMAC: clean dark page, colours only via tokens. */
:root {
  --bg: #0b0b0c;
  --panel: #121213;
  --ink: #f3f2ef;
  --ink-2: #a7a5a0;
  --muted: #9b9ba1;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --gold: #ffc72c;
  --gold-ink: #1a1405;
  --ketchup: #e2231a;
  --sk-base: rgba(255, 255, 255, .06);
  --sk-sheen: rgba(255, 255, 255, .12);
  --focus: #ffc72c;
  --radius: 6px;
  --radius-lg: 18px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f8;
    --panel: #ffffff;
    --ink: #0f1115;
    --ink-2: #474b54;
    --muted: #5b5f68;
    --line: rgba(0, 0, 0, .08);
    --line-2: rgba(0, 0, 0, .14);
    --gold: #b98900;
    --gold-ink: #ffffff;
    --sk-base: rgba(0, 0, 0, .06);
    --sk-sheen: rgba(0, 0, 0, .11);
    --focus: #8a6400;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px 56px; }
section { padding: 72px 0; border-top: 1px solid var(--line); }
section:first-child { border-top: 0; }
h2 { font-family: var(--serif); font-size: clamp(32px, 5vw, 48px); line-height: 1.05; letter-spacing: -.005em; text-align: center; }
.sub { color: var(--ink-2); text-align: center; margin-top: 10px; }
.label {
  font: 500 11px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.note { color: var(--muted); font-size: 13.5px; text-align: center; margin-top: 18px; }
.accent { color: var(--gold); }

/* Hero */
.hero {
  min-height: min(100svh, 900px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 56px 0;
}
.coin {
  width: clamp(180px, 34vw, 280px); height: auto; aspect-ratio: 1;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }
.eyebrow {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 12px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
h1 {
  margin-top: 18px; font: 700 clamp(56px, 13vw, 128px)/.92 var(--sans); letter-spacing: -.045em;
}
.lede { margin-top: 18px; font-family: var(--serif); font-size: clamp(22px, 3.4vw, 32px); line-height: 1.2; color: var(--ink-2); max-width: 22ch; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn {
  min-height: 48px; padding: 0 22px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 110ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gold); color: var(--gold-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-ghost .mono { color: var(--ink-2); font-size: 13px; }

.ca {
  min-height: 48px; max-width: 100%; display: inline-flex; align-items: center; gap: 12px; padding: 0 8px 0 16px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink);
  font: 500 14px/1 var(--sans); cursor: pointer;
  transition: border-color 160ms var(--ease-out), transform 110ms var(--ease-out);
}
.ca:not(:disabled):hover { border-color: var(--gold); }
.ca:not(:disabled):active { transform: scale(.98); }
.ca:disabled { cursor: default; color: var(--muted); }
.ca-k { font: 600 11px/1 var(--mono); letter-spacing: .14em; color: var(--gold); }
.ca-v { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ca:disabled .ca-v { font-family: var(--sans); padding-right: 8px; }
.ca-copy:empty { display: none; }
.ca-copy {
  flex: none; padding: 8px 12px; border-radius: 999px; background: var(--gold); color: var(--gold-ink);
  font: 600 13px/1 var(--sans);
}
.ca.copied { border-color: var(--gold); }
.ca-hint { margin-top: 10px; color: var(--muted); font-size: 12.5px; }

/* Live counter */
.counter { text-align: center; }
.big {
  margin-top: 14px; min-height: 1em;
  font: 700 clamp(64px, 16vw, 160px)/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.stats { margin: 36px auto 0; max-width: 720px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stats div { padding: 18px 8px 0; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font: 500 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 8px 0 0; font: 500 clamp(18px, 3vw, 24px)/1.2 var(--mono); font-variant-numeric: tabular-nums; min-height: 1.2em; }
.note a { color: var(--ink-2); }

/* Skeletons */
.sk {
  display: inline-block; vertical-align: middle; border-radius: 6px;
  background: linear-gradient(90deg, var(--sk-base) 0%, var(--sk-sheen) 50%, var(--sk-base) 100%) 0 0 / 200% 100%;
  animation: sheen 1.2s linear infinite;
}
.sk-big { width: min(70%, 420px); height: .82em; }
.sk-num { width: 88px; height: 1em; }
@keyframes sheen { to { background-position: -200% 0; } }

/* Calculator: auto-growing chart */
.calc-box {
  margin: 32px auto 0; max-width: 720px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
}
.calc-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.calc-in { display: block; flex: 1 1 240px; }
.field {
  margin-top: 10px; display: flex; align-items: center; gap: 4px;
  border-bottom: 1px solid var(--line-2); padding-bottom: 6px;
}
.field:focus-within { border-color: var(--gold); }
.cur { font: 500 32px/1 var(--mono); color: var(--muted); }
#amount {
  width: 100%; min-width: 0; background: transparent; border: 0; color: var(--ink); outline: none;
  font: 600 clamp(28px, 6vw, 40px)/1.1 var(--mono); font-variant-numeric: tabular-nums; padding: 0;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button {
  min-height: 44px; min-width: 64px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); font: 500 14px/1 var(--mono);
  transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.chips button:hover, .chips button[aria-pressed="true"] { color: var(--ink); border-color: var(--gold); }
.readout { margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.readout div { padding: 16px 0 0; }
.readout div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.readout dt { font: 500 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.readout dd { margin: 8px 0 0; font-size: clamp(20px, 4.4vw, 32px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart { position: relative; margin: 22px 0 0; }
.chart svg { display: block; width: 100%; height: 220px; color: var(--gold); overflow: visible; }
.grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bars rect { fill: var(--line-2); }
.area { fill: url(#g-area); }
.line { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.head {
  position: absolute; left: 0; top: 0; font-size: 22px; line-height: 1; pointer-events: none;
  transform: translate(-50%, -50%); will-change: left, top;
}
.legend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--muted); font-size: 13px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; vertical-align: -1px; }
.k-bar { background: var(--line-2); }
.k-line { background: var(--gold); }
.legend .day { margin-left: auto; color: var(--ink-2); }

/* Steps */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 22px 20px 0 0; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.steps .n { color: var(--gold); font-size: 13px; }
.steps h3 { margin-top: 12px; font: 600 18px/1.25 var(--sans); letter-spacing: -.01em; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* Platforms */
.logos { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.logos li {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-weight: 600;
}
.logos img { width: 40px; height: 40px; flex: none; border-radius: 10px; object-fit: contain; }

.fine { max-width: 640px; margin: 8px auto 0; text-align: center; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 28px; }

/* Mobile */
@media (max-width: 860px) {
  section { padding: 56px 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { margin-top: 24px; }
  .logos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 20px 0 0; border-left: 0; }
  .steps li + li { margin-top: 20px; border-top: 1px solid var(--line); }
  .stats dt { font-size: 10px; letter-spacing: .1em; }
  .calc-box { padding: 18px; }
  .actions { width: 100%; }
  .ca, #buy { width: 100%; justify-content: center; }
  .ca-v { font-size: 13px; }
  .readout div + div { padding-left: 10px; }
  .chart svg { height: 180px; }
  .logos li { padding: 0 14px; font-size: 15px; }
}

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