:root {
  --bg: #071114;
  --bg-alt: #0b1b20;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text: #e8f4f6;
  --muted: #a8c3c9;
  --accent: #ff4d5e;
  --accent-soft: rgba(255, 77, 94, 0.14);
  --cyan: #4cc9f0;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 76rem;
  --header-height: 4.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 77, 94, 0.16), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(76, 201, 240, 0.12), transparent 28%),
    linear-gradient(180deg, #050b0d 0%, #071114 36%, #071114 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
  opacity: 0.35;
  z-index: -1;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  left: 0;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 60;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 11, 13, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #8b1e2d);
  color: white;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(255, 77, 94, 0.22);
}

.brand-text {
  font-size: 1.08rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.primary-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: color 160ms ease, background 160ms ease;
}

.primary-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-icon {
  position: relative;
  width: 1.15rem;
  height: 1px;
  background: currentColor;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.nav-toggle-icon::before {
  top: -5px;
}

.nav-toggle-icon::after {
  top: 5px;
}

.hero {
  padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(3rem, 8vw, 6rem);
}

.hero-inner {
  max-width: 62rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
}

h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.65rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lede {
  margin: 1.5rem 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #c9273b);
  color: white;
  box-shadow: 0 16px 45px rgba(255, 77, 94, 0.24);
}

.button-ghost {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.hero-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.stats {
  padding: 0 0 clamp(3rem, 7vw, 5.5rem);
}

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

.stat-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.stat-value {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 850;
  background: linear-gradient(90deg, white, #bfe9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.stat-source {
  margin: 0.85rem 0 0;
}

.section {
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.025)),
    var(--bg-alt);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.section-inner {
  max-width: 68rem;
}

.section-number {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h2 {
  margin: 0 0 1.5rem;
  max-width: 24ch;
  font-size: clamp(1.9rem, 4.5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h3 {
  margin: 0 0 0.65rem;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose {
  color: #d7e9ed;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.prose p {
  margin: 0 0 1.25rem;
  max-width: 72ch;
}

.prose strong {
  color: white;
}

.footnote {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
  padding-left: 0.15rem;
}

.footnote:hover {
  text-decoration: underline;
}

.callout {
  margin: 1.75rem 0 0;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-md);
  background: var(--surface);
  max-width: 72ch;
}

.callout-danger {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), rgba(255, 255, 255, 0.04));
}

.callout-title {
  margin: 0 0 0.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.callout p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

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

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

.panel {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.checklist {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.checklist li {
  position: relative;
  padding: 1rem 1rem 1rem 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: #d7e9ed;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 35%, rgba(255, 77, 94, 0.18) 36% 100%);
  box-shadow: 0 0 0 6px rgba(255, 77, 94, 0.08);
}

.source-list {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.85rem;
  counter-reset: source;
}

.source-list li {
  counter-increment: source;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.source-list li::marker {
  color: var(--accent);
  font-weight: 800;
}

.source-list a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.source-list a:hover {
  color: var(--cyan);
  text-decoration: underline;
}

.source-note {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 9, 11, 0.75);
}

.footer-inner {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(var(--header-height) + 0.65rem);
    left: 1.25rem;
    right: 1.25rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(6, 14, 17, 0.98);
    box-shadow: var(--shadow);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
  }

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

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
