/* ==========================================================================
   NeuroVox landing page
   Palette + type system documented in STYLE_GUIDE.md
   ========================================================================== */

:root {
  --navy: #0000A4;
  --royal: #1C17F1;
  --sky: #00BDFF;
  --pale: #9AEFFF;
  --white: #FFFFFF;

  --font-display: 'Fraunces', serif;
  --font-mark: 'Baloo 2', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --wrap: 1140px;
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.3em; }

h1 em, h2 em, .big-stat em {
  font-style: italic;
  font-weight: 600;
  color: var(--sky);
}

.hero h1 em { color: var(--royal); }

.section-navy h1 em, .section-navy h2 em,
.section-royal h1 em, .section-royal h2 em { color: var(--pale); }

.eyebrow {
  font-family: var(--font-mark);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--royal);
  margin: 0 0 1em;
}

.eyebrow-light { color: var(--pale); }

.lead {
  font-size: 1.15rem;
  max-width: 620px;
  color: #1a1a6e;
}

.lead-light { color: rgba(255,255,255,0.88); }

.section-navy .lead:not(.lead-light),
.section-royal .lead:not(.lead-light) { color: rgba(255,255,255,0.88); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

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

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--royal); }

.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--pale); }

.btn-sm { padding: 0.6em 1.3em; font-size: 0.85rem; }

/* ---------- Intro splash ---------- */

.no-scroll { overflow: hidden; height: 100%; }

#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pale);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-dots {
  width: 100%;
  height: 100%;
  display: block;
}

.splash-dots circle {
  fill: var(--navy);
  transform-box: fill-box;
  transform-origin: center;
  animation: splash-pulse 2.6s ease-in-out infinite;
}

.splash-dots .d1 { animation-duration: 2.2s; animation-delay: -2.0s; }
.splash-dots .d2 { animation-duration: 2.6s; animation-delay: -1.7s; }
.splash-dots .d3 { animation-duration: 2.1s; animation-delay: -1.4s; }
.splash-dots .d4 { animation-duration: 2.8s; animation-delay: -1.1s; }
.splash-dots .d5 { animation-duration: 2.3s; animation-delay: -0.8s; }
.splash-dots .d6 { animation-duration: 2.5s; animation-delay: -0.5s; }
.splash-dots .d7 { animation-duration: 2.0s; animation-delay: -0.2s; }
.splash-dots .d8 { animation-duration: 2.7s; animation-delay: 0s; }

@keyframes splash-pulse {
  0%, 100% { transform: scale(0.55); }
  50% { transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-dots circle { animation: none; }
  #splash { transition: none; }
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(154, 239, 255, 0.0);
  backdrop-filter: blur(0px);
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,164,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mark);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
}

.logo-mark { width: 26px; height: auto; fill: var(--navy); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-mark);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:not(.btn):hover { color: var(--royal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- Sections & backgrounds ---------- */

.section, .hero {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.section > .wrap, .hero > .wrap { position: relative; z-index: 1; }

.corner-accent {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 460px;
  height: 460px;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 68% 32%, black 0%, transparent 68%);
  mask-image: radial-gradient(circle at 68% 32%, black 0%, transparent 68%);
}

.hero { background: var(--pale); padding-top: 140px; }

.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-royal { background: var(--royal); color: var(--white); }
.section-sky { background: var(--sky); color: var(--white); }

.section-navy h2, .section-royal h2, .section-sky h2,
.section-navy h3, .section-royal h3 { color: var(--white); }

/* ---------- Hero ---------- */

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 2em;
  flex-wrap: wrap;
}

.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-visual svg { width: 100%; max-width: 380px; height: auto; }

/* ---------- Dot divider ---------- */

.dot-divider { margin: 2.2em 0; max-width: 760px; }
.dot-divider svg { width: 100%; height: 16px; display: block; fill: currentColor; opacity: 0.55; }

/* ---------- Stat grid ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 3em;
}

.stat-label {
  font-family: var(--font-mark);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 0.4em;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 4.2rem;
  line-height: 1;
  margin: 0;
  color: var(--white);
}

.stat-num span { font-size: 0.42em; vertical-align: top; }

.stat-caption { margin: 0.4em 0 0; color: rgba(255,255,255,0.75); font-size: 0.95rem; }

/* ---------- Check list ---------- */

.check-list {
  list-style: none;
  margin: 1.6em 0 0;
  padding: 0;
  display: grid;
  gap: 0.7em;
}

.check-list li {
  position: relative;
  padding-left: 1.8em;
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky);
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 3em 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.25);
}

.steps .step:last-child { border-bottom: 1px solid rgba(255,255,255,0.25); }

.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--pale);
  line-height: 1;
}

.step h3 { margin-bottom: 0.25em; }
.step p { margin: 0; max-width: 520px; color: rgba(255,255,255,0.85); }

/* ---------- Results ---------- */

.results-inner { text-align: center; }

.big-stat {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(5rem, 16vw, 10rem);
  line-height: 1;
  margin: 0.1em 0;
  color: var(--white);
}

.big-stat span { font-size: 0.4em; vertical-align: top; }

.big-stat-caption {
  font-size: 1.1rem;
  max-width: 460px;
  margin: 0 auto;
  color: rgba(255,255,255,0.9);
}

/* ---------- Participate cards ---------- */

.participate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 2.5em;
}

.participate-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 40px;
}

.participate-tag {
  font-family: var(--font-mark);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 0.8em;
}

.participate-card h3 { color: var(--white); font-size: 1.6rem; }

.participate-card p {
  color: rgba(255,255,255,0.85);
  margin: 0 0 1.6em;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.logo-footer { color: var(--white); }
.logo-footer .logo-mark { fill: var(--pale); }
.footer p { margin: 0; font-size: 0.85rem; }

/* ---------- Scroll reveal ---------- */

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

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

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual svg { max-width: 240px; }
  .stat-grid { grid-template-columns: 1fr; gap: 32px; }
  .participate-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 28px 32px;
    box-shadow: 0 8px 24px rgba(0,0,164,0.12);
    display: none;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .section, .hero { padding: 70px 0; }
  .step { grid-template-columns: 60px 1fr; }
}
