:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --max: 1120px;
  --gutter: clamp(20px, 4vw, 48px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { opacity: 0.7; }

img, video { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Header ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img { height: 28px; width: auto; display: block; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-cta:hover { opacity: 0.85; }

/* ── Hero ───────────────────────────────── */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 6vw, 64px);
  text-align: center;
}
.hero h1 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.hero p.lede {
  margin: 20px auto 32px;
  max-width: 52ch;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--muted);
}
.cta-row {
  display: inline-flex;
  gap: 12px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--fg);
}
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { opacity: 0.85; }
.btn-secondary { background: transparent; color: var(--fg); }
.btn-secondary:hover { background: var(--fg); color: var(--bg); opacity: 1; }

.hero-media {
  position: relative;
  width: min(960px, 100%);
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: #f4f4f4;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Pillars ────────────────────────────── */
.pillars {
  padding: clamp(56px, 8vw, 112px) 0;
  border-top: 1px solid var(--line);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.pillar h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  font-weight: 600;
}
.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.pillar .num {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ── Stat ───────────────────────────────── */
.stat {
  padding: clamp(64px, 9vw, 128px) 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.stat .figure {
  font-size: clamp(96px, 16vw, 200px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat .caption {
  margin-top: 16px;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--muted);
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ─────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); opacity: 1; }
.site-footer .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .colophon { max-width: 38ch; }

/* ── Legal pages ────────────────────────── */
.legal {
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 96px);
}
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em;
  font-weight: 600;
}
.legal .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 40px;
}
.legal h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.legal h3 {
  margin: 28px 0 10px;
  font-size: 17px;
  font-weight: 600;
}
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal strong { font-weight: 600; }
.legal a { color: var(--fg); }

/* ── Responsive ─────────────────────────── */
@media (max-width: 860px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer .container { flex-direction: column; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding-top: 32px; }
  .cta-row { flex-direction: column; width: 100%; max-width: 280px; margin-left: auto; margin-right: auto; }
  .btn { justify-content: center; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media video { display: none; }
  .hero-media .reduced-poster { display: block; }
}
.hero-media .reduced-poster { display: none; }
