:root {
  --navy: #071a36;
  --navy-soft: #102b56;
  --blue: #1677ff;
  --blue-soft: #eaf3ff;
  --gold: #f4b840;
  --gold-soft: #fff4d6;
  --ink: #0d1b2f;
  --muted: #5e6b7e;
  --line: #dfe7f2;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(7, 26, 54, 0.14);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 240ms ease, box-shadow 240ms ease, color 240ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 34px rgba(7, 26, 54, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
}

.site-header.is-scrolled .brand-mark {
  border-color: rgba(7, 26, 54, 0.1);
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.brand small {
  color: currentColor;
  font-size: 0.72rem;
  opacity: 0.78;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  color: currentColor;
  font-weight: 700;
  font-size: 0.92rem;
}

.header-cta {
  display: none;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 850;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.02);
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 26, 54, 0.94) 0%, rgba(7, 26, 54, 0.75) 46%, rgba(7, 26, 54, 0.22) 100%),
    linear-gradient(0deg, rgba(7, 26, 54, 0.3), rgba(7, 26, 54, 0.02));
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(680px, calc(100% - 36px));
  margin: 92px auto 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(3rem, 11vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-subhead {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.06rem, 3.3vw, 1.36rem);
}

.hero-actions,
.final-cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 14px 34px rgba(244, 184, 64, 0.26);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.stats-band {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 36px));
  margin: -46px auto 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(223, 231, 242, 0.9);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat {
  min-height: 132px;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat:nth-child(2n) {
  border-right: 0;
}

.stat:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  color: var(--navy);
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.section {
  padding: clamp(78px, 12vw, 128px) clamp(18px, 4vw, 56px);
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.parent-copy h2,
.final-cta h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.parent-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.journey-section {
  background:
    linear-gradient(180deg, var(--white), #f7fbff);
}

.journey-grid,
.story-grid {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  gap: 16px;
}

.journey-card,
.story-card,
.confidence-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(7, 26, 54, 0.08);
}

.journey-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
}

.journey-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.year {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.journey-card h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.38rem;
}

.journey-card p,
.story-card p {
  color: var(--muted);
}

.success-section {
  background: var(--navy);
}

.success-section .section-heading h2 {
  color: var(--white);
}

.success-section .eyebrow,
.final-cta .eyebrow {
  color: var(--gold);
}

.story-card {
  padding: 26px;
}

.student-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 900;
}

.avatar-one {
  background: linear-gradient(135deg, #1677ff, #2db9c9);
}

.avatar-two {
  background: linear-gradient(135deg, #f4b840, #e35d4f);
}

.avatar-three {
  background: linear-gradient(135deg, #102b56, #7c5cff);
}

.story-card p {
  min-height: 116px;
  margin-bottom: 24px;
  color: #344153;
  font-size: 1.1rem;
  font-weight: 700;
}

.story-card footer strong,
.story-card footer span {
  display: block;
}

.story-card footer strong {
  color: var(--navy);
}

.story-card footer span {
  color: var(--muted);
  font-size: 0.92rem;
}

.parent-confidence {
  display: grid;
  gap: 28px;
  padding: clamp(76px, 12vw, 128px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(234, 243, 255, 0.86), rgba(255, 244, 214, 0.56)),
    var(--white);
}

.parent-copy,
.confidence-panel {
  width: min(560px, 100%);
  margin: 0 auto;
}

.confidence-panel {
  padding: 10px;
}

.confidence-panel div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.confidence-panel div:last-child {
  border-bottom: 0;
}

.confidence-panel p {
  margin: 0;
  color: var(--navy);
  font-weight: 850;
}

.checkmark {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
}

.checkmark::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 8px;
  height: 13px;
  border: solid var(--white);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.final-cta {
  padding: clamp(78px, 12vw, 132px) clamp(18px, 4vw, 56px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(7, 26, 54, 0.95), rgba(16, 43, 86, 0.96)),
    var(--navy);
}

.final-cta-inner {
  width: min(840px, 100%);
  margin: 0 auto;
  justify-content: center;
  text-align: center;
}

.final-cta h2 {
  color: var(--white);
}

.final-cta .button {
  margin-top: 8px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: #c8d4e6;
  background: #061326;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--gold);
  font-weight: 850;
}

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

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

@keyframes heroDrift {
  from {
    transform: scale(1.02) translateX(0);
  }
  to {
    transform: scale(1.06) translateX(-12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

@media (min-width: 700px) {
  .nav-links,
  .header-cta {
    display: inline-flex;
  }

  .hero-content {
    width: min(760px, calc(100% - 80px));
    margin-left: clamp(40px, 8vw, 116px);
  }

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

  .stat,
  .stat:nth-child(2n),
  .stat:nth-last-child(-n + 2) {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .stat:last-child {
    border-right: 0;
  }

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

  .parent-confidence {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
    align-items: center;
  }

  .parent-copy {
    margin-right: 0;
  }

  .confidence-panel {
    margin-left: 0;
  }
}

@media (min-width: 1020px) {
  .journey-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 520px) {
  .site-header {
    min-height: 66px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 26, 54, 0.52), rgba(7, 26, 54, 0.95) 52%, rgba(7, 26, 54, 0.98)),
      linear-gradient(90deg, rgba(7, 26, 54, 0.78), rgba(7, 26, 54, 0.16));
  }

  .hero-media img {
    object-position: 70% center;
  }

  .hero-content {
    align-self: end;
  }

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

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

  .stat,
  .stat:nth-child(2n),
  .stat:nth-last-child(-n + 2) {
    min-height: 106px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }
}
