:root {
  --bg: #eef2f8;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: #ffffff;
  --fg: #0f172a;
  --muted: #526076;
  --line: rgba(15, 23, 42, 0.08);
  --accent: #007aff;
  --accent-soft: rgba(0, 122, 255, 0.12);
  --focus: #0f172a;
  --max: 1160px;
  --space: clamp(1.1rem, 2vw, 1.8rem);
  --space-lg: clamp(3rem, 7vw, 7.5rem);
  --text: clamp(1rem, 0.98rem + 0.15vw, 1.06rem);
  --h1: clamp(3rem, 6.5vw, 5.8rem);
  --h2: clamp(1.7rem, 3vw, 2.4rem);
  --h3: clamp(1.05rem, 1.5vw, 1.22rem);
  --radius: 30px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(0, 122, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #f7f9fd 0%, #e8eef7 100%);
  color: var(--fg);
  line-height: 1.55;
  font-size: var(--text);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--fg);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 999;
  border-radius: 999px;
}

.skip-link:focus {
  left: 1rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.9rem 0;
  backdrop-filter: blur(22px);
  background: rgba(238, 242, 248, 0.72);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--fg);
}

.segmented {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.segmented a {
  text-decoration: none;
  padding: 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.segmented a:hover,
.segmented a:focus {
  background: #fff;
  color: var(--fg);
  transform: translateY(-1px);
}

.hero {
  padding: var(--space-lg) 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 1.2rem;
  align-items: stretch;
  min-height: calc(100svh - 5.5rem);
}

.hero-copy,
.glass-panel,
.card,
.stat,
.cta-box {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.hero-copy {
  border-radius: 38px;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.glass-panel {
  border-radius: 34px;
  padding: clamp(1.2rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.eyebrow,
.mini-label {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3, p, ul {
  margin: 0;
}

h1 {
  font-size: var(--h1);
  line-height: 0.95;
  letter-spacing: -0.07em;
  max-width: 12ch;
}

.lead {
  max-width: 60ch;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.2);
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.98;
}

.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  color: var(--fg);
}

.feature-list li {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.section {
  padding: var(--space-lg) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section h2 {
  font-size: var(--h2);
  line-height: 1.04;
  letter-spacing: -0.06em;
  margin-bottom: 0.7rem;
}

.section-head p {
  color: var(--muted);
}

.stats,
.cards,
.timeline {
  display: grid;
  gap: 1rem;
}

.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat,
.card,
.cta-box {
  border-radius: var(--radius);
  padding: 1.25rem;
}

.stat {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.stat strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 0.35rem;
  color: var(--accent);
  letter-spacing: -0.06em;
}

.stat span,
.card p,
.timeline-item p,
.cta-box p {
  color: var(--muted);
}

.card {
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
  border-color: rgba(0, 122, 255, 0.2);
}

.card-kicker {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: var(--h3);
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0.08));
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.timeline {
  grid-template-columns: 1fr;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.dot {
  width: 12px;
  height: 12px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.timeline-item h3 {
  margin-bottom: 0.25rem;
  font-size: var(--h3);
}

.cta-box {
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(0, 122, 255, 0.14), transparent 30%),
    rgba(255,255,255,0.78);
}

.cta-box h2 {
  margin-bottom: 0.7rem;
}

.cta-box p {
  max-width: 64ch;
  margin-bottom: 1.4rem;
}

.footer {
  padding: 1.5rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.99);
  animation: fadeUp 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 90ms; }
.delay-2 { animation-delay: 180ms; }
.delay-3 { animation-delay: 270ms; }
.delay-4 { animation-delay: 360ms; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .stats,
  .cards.three-up {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .nav-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .segmented {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-grid,
  .stats,
  .cards.two-up,
  .cards.three-up {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5rem;
  }

  h1 {
    max-width: 100%;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .btn:hover,
  .card:hover,
  .segmented a:hover {
    transform: none;
    box-shadow: none;
  }
}
