:root {
  --bg: #0A1220;
  --surface: #0F1A2C;
  --line: #1E2B42;
  --line-2: #2C3B57;
  --line-3: #3A4A66;
  --text: #EEF0F4;
  --text-2: #C7CED9;
  --muted: #9AA6B8;
  --gold: #C8A96A;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.num { font-variant-numeric: tabular-nums; }
.text-2 { color: var(--text-2); }
.small { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.eyebrow {
  margin: 0 0 22px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
}
.label { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tag { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--gold); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Wordmark */
.wordmark {
  font-family: var(--serif); font-weight: 600; letter-spacing: 0.06em;
  color: var(--text); text-decoration: none; line-height: 1;
}
.wordmark em { color: var(--gold); font-style: italic; letter-spacing: 0.01em; }

/* Buttons */
.btn, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: 500 14px/1 var(--sans); letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
}
.btn { background: var(--gold); color: var(--bg); border: 0; font-weight: 600; font-size: 15px; min-height: 48px; padding: 0 26px; }
.btn:hover { background: #D6BA80; color: var(--bg); }
.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: rgba(200, 169, 106, 0.1); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; padding-top: 14px; padding-bottom: 14px;
}
.site-header .wordmark { font-size: 34px; }
.nav { display: flex; flex-wrap: wrap; gap: 0 26px; font-size: 14px; letter-spacing: 0.02em; }
.nav a { text-decoration: none; padding: 12px 0; color: var(--text-2); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.handle { font-size: 14px; color: var(--muted); text-decoration: none; padding: 12px 0; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; padding-top: 88px; padding-bottom: 64px; }
.hero-copy { flex: 999 1 520px; min-width: 0; }
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: clamp(56px, 8vw, 92px); line-height: 0.98; letter-spacing: -0.01em;
}
.hero h1 em { font-weight: 500; color: var(--gold); }
.lede { margin-top: 30px; max-width: 540px; font-size: 18px; color: var(--text-2); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.record-panel {
  flex: 1 1 360px; min-width: 0; border-top: 2px solid var(--gold);
  padding: 28px; display: flex; flex-direction: column; gap: 22px;
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.panel-title { font-family: var(--serif); font-weight: 600; font-size: 24px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-size: 30px; font-weight: 500; line-height: 1.1; }
.split {
  border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px;
}
.link-gold { color: var(--gold); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }

/* Sections */
.section { padding-bottom: 80px; }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px;
  border-top: 1px solid var(--line); padding-top: 32px; margin-bottom: 24px;
}
.section-head h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 46px; line-height: 1; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-3); background: transparent; color: var(--text-2);
  font: 500 14px/1 var(--sans); letter-spacing: 0.02em; cursor: pointer;
}
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 600; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.card { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.card.live { border-top: 2px solid var(--gold); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-title { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.note { font-size: 14px; color: var(--text-2); }
.card .note:last-child { margin-top: auto; }

.rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-title { font-weight: 600; }
.row-sub { font-size: 13px; color: var(--muted); }
.legs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.legs li { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.legs li:last-child { border-bottom: 0; padding-bottom: 0; }

.price {
  border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 12px; min-width: 64px;
  text-align: center; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.price.gold { border-color: var(--gold); color: var(--gold); font-size: 20px; padding: 6px 14px; }
.price.muted { color: var(--muted); font-weight: 500; font-size: 13px; }
.pill {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--line-3); color: var(--text-2); white-space: nowrap;
}
.pill.win { background: var(--gold); border-color: var(--gold); color: var(--bg); }

.ticker { font-size: 34px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.1; }
.contract { font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.level-label { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--text-2); }
.level { font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kv { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

.empty { grid-column: 1 / -1; padding: 48px 24px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }

/* Record table */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
th {
  padding: 14px 18px; text-align: left; background: var(--surface);
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
td { padding: 15px 18px; border-top: 1px solid var(--line); }
td.muted { color: var(--muted); }
.r { text-align: right; }
td.empty-row { text-align: center; color: var(--text-2); padding: 32px 18px; }
.more { margin-top: 16px; }

/* How it works */
.steps {
  border-top: 1px solid var(--line); padding-top: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 36px;
}
.step { display: flex; flex-direction: column; gap: 10px; }
.numeral { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); }
.step h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.1; }
.step p { color: var(--text-2); }

/* Newsletter */
.newsletter { padding: 36px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; }
.newsletter-copy { flex: 1 1 360px; min-width: 0; }
.newsletter-copy h2 { margin: 0 0 10px; font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1; }
.newsletter-copy p { color: var(--text-2); max-width: 520px; }
.subscribe { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.subscribe label { font-size: 13px; color: var(--muted); }
.subscribe-row { display: flex; flex-wrap: wrap; gap: 10px; }
.subscribe input {
  flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 20px;
  background: var(--bg); border: 1px solid var(--line-3); border-radius: 999px;
  color: var(--text); font: 16px var(--sans);
}
.subscribe input::placeholder { color: #7D899C; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 48px; padding-top: 36px; padding-bottom: 52px; }
.small-mark { font-size: 26px; }
.site-footer p { flex: 1 1 520px; max-width: 720px; font-size: 13px; color: var(--muted); }

@media (max-width: 640px) {
  .hero { padding-top: 56px; gap: 40px; }
  .section-head h2 { font-size: 36px; }
  .newsletter-copy h2 { font-size: 36px; }
  .card, .newsletter { padding: 20px; }
  .record-panel { padding: 22px; }
  .stat-value { font-size: 26px; }
  .header-actions .handle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
