:root {
  --blue: #243b8f;
  --blue-deep: #17275f;
  --sky: #6ec9ff;
  --yellow: #ffd15c;
  --pink: #ff7aa8;
  --green: #3fbf7f;
  --ink: #142033;
  --muted: #5f6b7d;
  --surface: #ffffff;
  --soft: #f4f8ff;
  --line: rgba(20, 32, 51, 0.1);
  --shadow: 0 20px 60px rgba(23, 39, 95, 0.16);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--blue-deep);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #4d6cff);
  box-shadow: 0 8px 24px rgba(36, 59, 143, 0.28);
}

.site-nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--blue);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 800;
}

.nav-cta,
.btn-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(36, 59, 143, 0.24);
}

.btn-secondary {
  color: var(--blue-deep);
  background: #fff;
  border: 1px solid rgba(36, 59, 143, 0.18);
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 70px clamp(18px, 5vw, 72px) 60px;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(244, 248, 255, 0.96) 0%, rgba(244, 248, 255, 0.88) 42%, rgba(244, 248, 255, 0.3) 100%),
    url("backgrounds/classroom.png");
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero-copy,
.hero-stage {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 18px;
  max-width: 12ch;
  color: var(--blue-deep);
  font-size: clamp(2.65rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 58ch;
  margin: 0 0 26px;
  color: #334155;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin: 34px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid rgba(36, 59, 143, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.hero-stats dt {
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-stage {
  aspect-ratio: 16 / 10;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #dff5ff;
}

.stage-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toon {
  position: absolute;
  bottom: 5%;
  height: 52%;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(24, 38, 68, 0.22));
}

.toon-milo {
  left: 42%;
}

.toon-luna {
  left: 59%;
  height: 55%;
}

.toon-dog {
  left: 26%;
  height: 32%;
}

.speech-bubble {
  position: absolute;
  top: 8%;
  left: 8%;
  max-width: 310px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue-deep);
  font-weight: 850;
  box-shadow: 0 14px 30px rgba(23, 39, 95, 0.18);
}

.audience-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 48px);
  background: var(--blue-deep);
}

.audience-band span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  font-size: 0.9rem;
  font-weight: 800;
}

.section,
.split-section,
.final-cta {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px clamp(18px, 4vw, 40px);
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head h2,
.split-section h2,
.final-cta h2 {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-head p,
.split-section p,
.final-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.feature-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.faq-grid article,
.lesson-panel,
.deploy-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(23, 39, 95, 0.07);
}

.feature-card,
.faq-grid article {
  padding: 24px;
}

.feature-card h3,
.faq-grid h3 {
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-size: 1.05rem;
}

.feature-card p,
.faq-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.split-section-alt {
  padding-top: 40px;
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--blue);
  font-weight: 900;
}

.lesson-panel,
.deploy-list {
  padding: 14px;
}

.lesson-row,
.deploy-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
}

.lesson-row:not(:last-child),
.deploy-list div:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.lesson-row strong,
.deploy-list strong {
  color: var(--blue);
}

.lesson-row span,
.deploy-list span {
  color: var(--muted);
}

.final-cta {
  text-align: center;
  background: var(--blue-deep);
  color: #fff;
  max-width: none;
}

.final-cta h2 {
  color: #fff;
  margin-inline: auto;
  max-width: 760px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: 0 auto 24px;
}

.final-cta .hero-actions {
  justify-content: center;
}

.final-cta .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 48px);
  background: #111a35;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a:hover {
  color: #fff;
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 14ch;
  }

  .hero-stage {
    min-height: 340px;
  }

  .feature-grid,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats,
  .feature-grid,
  .faq-grid,
  .lesson-row,
  .deploy-list div {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 300px;
  }

  .speech-bubble {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}
