:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-alt: #eef1f5;
  --text: #121826;
  --muted: #4a5568;
  --border: #d9dee6;
  --accent: #0f766e;
  --accent-strong: #0b5c56;
  --accent-soft: #d5f0ec;
  --hero-bg: #0b1220;
  --hero-text: #eef2f7;
  --hero-muted: #a9b4c4;
  --radius: 10px;
  --max: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1320;
    --surface: #141c2b;
    --surface-alt: #111827;
    --text: #e6eaf0;
    --muted: #a3adbd;
    --border: #263042;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-soft: #123b38;
    --hero-bg: #070b14;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent-strong); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--surface); color: var(--text); padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--hero-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  color: var(--hero-text);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 3.75rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: inherit; text-decoration: none; font-weight: 650;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 7px;
  background: #2dd4bf; color: #0b1220; font-size: 0.8rem; font-weight: 800;
}
.site-header nav ul {
  display: flex; gap: 0.25rem 1.1rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.site-header nav a {
  color: var(--hero-muted); text-decoration: none; font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--hero-text); }
@media (max-width: 560px) {
  .header-inner { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .site-header nav ul { gap: 0.25rem 0.9rem; }
}

/* Hero */
.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(45 212 191 / 0.18), transparent 60%),
    var(--hero-bg);
  color: var(--hero-text);
}
.hero-inner { padding-top: clamp(3.5rem, 9vw, 7rem); padding-bottom: clamp(3.5rem, 9vw, 6.5rem); }
.eyebrow {
  color: #5eead4; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em;
  max-width: 22ch; margin-bottom: 1.25rem;
}
.lede { color: var(--hero-muted); font-size: 1.15rem; max-width: 60ch; }
.cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }

.button {
  display: inline-block; padding: 0.7rem 1.2rem; border-radius: var(--radius);
  background: #2dd4bf; color: #0b1220; font-weight: 650; text-decoration: none;
  border: 1px solid transparent;
}
.button:hover { background: #5eead4; }
.button-ghost { background: transparent; color: var(--hero-text); border-color: rgb(255 255 255 / 0.3); }
.button-ghost:hover { background: rgb(255 255 255 / 0.08); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; scroll-margin-top: 3.75rem; }
@media (max-width: 560px) { .section { scroll-margin-top: 6rem; } }
.section-alt { background: var(--surface-alt); }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 1.5rem; }
.card, .panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.card p, .panel li, .facts dd { color: var(--muted); }

.two-col { display: grid; gap: 2rem; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; } }

.tag {
  display: inline-block; background: var(--accent-soft); color: var(--accent-strong);
  font-size: 0.8rem; font-weight: 650; padding: 0.15rem 0.6rem; border-radius: 999px;
}

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 1.5rem; margin-bottom: 0.85rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--accent);
}

.facts { margin: 0; }
.facts div { padding: 0.65rem 0; border-top: 1px solid var(--border); }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font-weight: 650; font-size: 0.9rem; }
.facts dd { margin: 0; }

.pubs { margin: 1.5rem 0 0; padding-left: 1.25rem; max-width: 60rem; }
.pubs li { margin-bottom: 0.75rem; color: var(--muted); }

.contact { text-align: center; }
.contact .button { margin-top: 0.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 0; color: var(--muted); font-size: 0.9rem; }
.site-footer p { margin: 0; }

/* 404 */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }
