:root {
  color-scheme: dark;
  --bg: #0a0c0f;
  --surface: #12161b;
  --surface-2: #191f26;
  --text: #f6f8fb;
  --muted: #a9b2bd;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #f2b84b;
  --accent-2: #fff0bc;
  --ink-on-accent: #1d1505;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f0;
  --surface: #ffffff;
  --surface-2: #eceae2;
  --text: #171a1d;
  --muted: #626a72;
  --line: rgba(19, 23, 27, 0.14);
  --shadow: 0 24px 70px rgba(40, 35, 20, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 6%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 28rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--surface); padding: .75rem 1rem; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.mark { width: 34px; aspect-ratio: 1; display: grid; place-items: center; color: var(--ink-on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-2)); clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }
.nav-links, .nav-actions, .hero-actions, .ecosystem-links { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav-links a:hover { color: var(--text); }
.control, .button { border: 1px solid var(--line); border-radius: 999px; padding: .65rem .92rem; color: var(--text); background: var(--surface); font: inherit; text-decoration: none; cursor: pointer; }
.button.primary { border-color: transparent; color: var(--ink-on-accent); font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.hero { padding: clamp(5rem, 10vw, 9rem) 0 4.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 2rem; align-items: end; }
.eyebrow, .status { display: inline-flex; width: fit-content; align-items: center; border-radius: 999px; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; }
.eyebrow { color: var(--accent-2); }
.status { padding: .38rem .7rem; color: var(--text); border: 1px solid var(--line); background: var(--surface); }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.035em; }
h1 { max-width: 860px; margin-top: 1.2rem; font-size: clamp(3rem, 8vw, 7.4rem); }
h1 { overflow-wrap: anywhere; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: 1.3rem; }
.hero-copy, .section-copy { color: var(--muted); }
.hero-copy { max-width: 700px; margin: 1.4rem 0 0; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-actions { margin-top: 2rem; }
.signal-card, .card, .statement { border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, var(--accent) 6%), var(--surface)); box-shadow: var(--shadow); }
.signal-card { padding: 1.5rem; }
.signal-card strong { display: block; margin: .9rem 0 .25rem; font-size: 1.45rem; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { min-width: 0; padding: 1.5rem; }
.card-index { display: grid; place-items: center; width: 42px; aspect-ratio: 1; margin-bottom: 3.2rem; color: var(--ink-on-accent); font-weight: 900; background: var(--accent); clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }
.card p { margin-bottom: 0; color: var(--muted); }
.statement { padding: clamp(1.6rem, 5vw, 4rem); display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.ecosystem { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ecosystem-links a { color: var(--muted); text-decoration: none; padding: .42rem 0; }
.ecosystem-links a:hover { color: var(--accent-2); }
.site-footer { padding: 2rem 0 3rem; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-credit { display: inline-flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.footer-credit a { color: var(--text); text-underline-offset: .2em; }
.footer-credit a:hover { color: var(--accent-2); }
.footer-credit-link { display: inline-flex; align-items: center; min-height: 34px; padding: .28rem .65rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .hero-grid, .section-head, .statement { grid-template-columns: 1fr; }
  .hero-grid > *, .section-head > *, .statement > * { min-width: 0; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .signal-card { margin-top: 1rem; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 1.2rem), 1120px); }
  .nav { align-items: flex-start; padding: .8rem 0; flex-wrap: wrap; }
  .nav-actions { justify-content: flex-end; }
  .control { padding: .5rem .68rem; }
  h1 { font-size: clamp(2.7rem, 15vw, 4rem); }
}

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