/* golden.com — the canonical record. Design system.
   Deep warm ink ground · one metallic gold accent · teal for live data.
   Display: heavy grotesque · Figures: monospace · Body: humanist sans. */

:root {
  /* type */
  --font-display: "Helvetica Neue", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", "Consolas", monospace;

  /* dark is golden's native ground — a record read on a terminal */
  --ink: #0c0b09;
  --surface: #15130f;
  --surface-2: #1d1a14;
  --line: #2a2620;
  --text: #efe9dd;
  --muted: #9c9482;
  --faint: #6b6558;
  --gold: #e3a43a;
  --gold-bright: #f5c265;
  --gold-deep: #a9761f;
  --teal: #55b79c;

  --maxw: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 4px;
  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.85rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.2vw, 1.02rem);
  --step-1: clamp(1.15rem, 1rem + 0.7vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.5rem + 3vw, 3.6rem);
  --step-4: clamp(2.8rem, 1.7rem + 5.4vw, 5.4rem);
}

@media (prefers-color-scheme: light) {
  :root {
    --ink: #faf7f0;
    --surface: #ffffff;
    --surface-2: #f4efe4;
    --line: #e6ddcc;
    --text: #1a1611;
    --muted: #6e675a;
    --faint: #9a917f;
    --gold: #b07d1c;
    --gold-bright: #d99a2b;
    --gold-deep: #8c6114;
    --teal: #2f8e76;
  }
}
/* explicit toggle wins in both directions */
:root[data-theme="dark"] {
  --ink: #0c0b09; --surface: #15130f; --surface-2: #1d1a14; --line: #2a2620;
  --text: #efe9dd; --muted: #9c9482; --faint: #6b6558;
  --gold: #e3a43a; --gold-bright: #f5c265; --gold-deep: #a9761f; --teal: #55b79c;
}
:root[data-theme="light"] {
  --ink: #faf7f0; --surface: #ffffff; --surface-2: #f4efe4; --line: #e6ddcc;
  --text: #1a1611; --muted: #6e675a; --faint: #9a917f;
  --gold: #b07d1c; --gold-bright: #d99a2b; --gold-deep: #8c6114; --teal: #2f8e76;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* ── labels / eyebrows ── */
.label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ── top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 1.5rem; height: 60px; }
.brand { display: flex; align-items: baseline; gap: 0.55rem; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.15rem; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); align-self: center; }
.brand .tld { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); font-size: var(--step--1); letter-spacing: 0.01em; transition: color .15s; }
.nav a:hover { color: var(--text); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.03em;
  padding: 0.5rem 0.95rem; border-radius: var(--radius);
  border: 1px solid var(--gold); color: var(--ink); background: var(--gold);
  font-weight: 600; transition: transform .12s ease, background .15s, box-shadow .2s;
  cursor: pointer;
}
.btn:hover { background: var(--gold-bright); box-shadow: 0 6px 22px -8px var(--gold); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); box-shadow: none; }
.btn .arw { transition: transform .15s; }
.btn:hover .arw { transform: translateX(3px); }

/* ── hero ── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.hero .wrap { position: relative; z-index: 2; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; max-width: 40rem; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: var(--step-4); line-height: 0.98; margin: 0.7rem 0 0; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { font-size: var(--step-1); color: var(--muted); margin: 1.2rem 0 0; max-width: 34ch; line-height: 1.45; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 2.4rem; }
.stat { background: var(--ink); padding: 1rem 1.1rem; }
.stat .n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--step-2); font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.stat .k { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 0.35rem; }

/* ── generic section ── */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 46ch; margin-bottom: 2.4rem; }
.section-head h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: var(--step-3); line-height: 1.02; margin: 0.6rem 0 0; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: var(--step-1); margin: 0.8rem 0 0; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--surface); padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; min-height: 170px; }
.pillar .n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em; }
.pillar .t { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.pillar p { color: var(--muted); font-size: var(--step--1); margin: 0.2rem 0 0; line-height: 1.5; }

/* surfaces (money funnel cards) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem;
  transition: border-color .18s, transform .18s, background .18s; position: relative;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); background: var(--surface-2); }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); margin: 0; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: var(--step--1); margin: 0; flex: 1; line-height: 1.55; }
.card .go { font-family: var(--font-mono); font-size: var(--step--1); color: var(--gold); display: inline-flex; align-items: center; gap: 0.4rem; letter-spacing: 0.02em; }
.card:hover .go .arw { transform: translateX(3px); }
.card .arw { transition: transform .15s; }
.card .idx { position: absolute; top: 1.1rem; right: 1.2rem; font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); }

/* coverage band */
.band { border-block: 1px solid var(--line); background: var(--surface); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.4rem 0; }
.band .big { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); letter-spacing: -0.02em; text-wrap: balance; max-width: 24ch; }
.band .big em { font-style: normal; color: var(--gold); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
footer .col h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin: 0 0 0.9rem; }
footer .col a { display: block; color: var(--muted); font-size: var(--step--1); padding: 0.28rem 0; transition: color .15s; }
footer .col a:hover { color: var(--gold); }
footer .about p { font-size: var(--step--1); max-width: 34ch; line-height: 1.6; margin: 0.6rem 0 0; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); }
@media (max-width: 720px) { footer .wrap { grid-template-columns: 1fr 1fr; } footer .about { grid-column: 1 / -1; } }

/* theme toggle */
.toggle { background: transparent; border: 1px solid var(--line); color: var(--muted); width: 34px; height: 34px; border-radius: var(--radius); cursor: pointer; display: grid; place-items: center; transition: border-color .15s, color .15s; }
.toggle:hover { border-color: var(--gold); color: var(--gold); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* page hero (landing sub-pages) */
.subhero { border-bottom: 1px solid var(--line); padding: clamp(2.5rem,6vw,4.5rem) 0 clamp(2rem,4vw,3rem); }
.subhero h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); letter-spacing: -0.02em; margin: 0.6rem 0 0; text-wrap: balance; }
.subhero p { color: var(--muted); font-size: var(--step-1); max-width: 52ch; margin: 0.9rem 0 0; }
.crumbs { font-family: var(--font-mono); font-size: var(--step--1); color: var(--faint); }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--gold); }
