/* =====================================================================
   EagLe — style.css
   Design language: "Dive into AI World"
   Dark, spacious, futuristic but warm. Premium credible cool.
   ===================================================================== */

/* ---------- Google Fonts import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* Backgrounds */
  --bg-page:    #060D16;
  --bg-surface: #0C1828;
  --bg-raised:  #0F1E30;

  /* Borders */
  --border:     #1A3050;
  --border-glow:#2A4A70;

  /* Brand colours */
  --gold:       #F5A623;
  --gold-dim:   #C07B10;
  --electric:   #4FC3F7;
  --electric-dim:#2A7A9F;
  --green:      #69F0AE;
  --coral:      #FF6B6B;
  --purple:     #CE93D8;

  /* Text */
  --text:       #C8D0E0;
  --text-muted: #4A6A7A;
  --text-bright:#FFFFFF;

  /* Product accent colours */
  --early-years: var(--coral);
  --junior:      var(--gold);
  --explorer:    var(--electric);
  --maker:       var(--purple);

  /* Spacing & sizing */
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --nav-height: 68px;
  --max-w:      1180px;
  --section-py: 96px;

  /* Transitions */
  --t-fast:     0.15s ease;
  --t-med:      0.25s ease;
  --t-slow:     0.4s ease;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 24px rgba(245,166,35,0.18);
  --shadow-blue: 0 0 24px rgba(79,195,247,0.18);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--electric); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-bright);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text); }

.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title { margin-bottom: 12px; }
.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
}
.section-sub.center { margin-inline: auto; text-align: center; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

section { padding-block: var(--section-py); }

.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-blue   { color: var(--electric); }

/* ---------- Gradient divider ---------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--electric), transparent);
  opacity: 0.3;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--t-med);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 0 0 rgba(245,166,35,0);
}
.btn-primary:hover {
  background: #FFB83F;
  color: #000;
  box-shadow: 0 0 20px rgba(245,166,35,0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--electric);
  border: 1.5px solid var(--electric);
}
.btn-ghost:hover {
  color: var(--electric);
  background: rgba(79,195,247,0.1);
  border-color: var(--electric);
  box-shadow: 0 0 16px rgba(79,195,247,0.25);
  transform: translateY(-1px);
}

.btn-sm { padding: 9px 20px; font-size: 0.85rem; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.05em;
}

.badge-live {
  background: rgba(105,240,174,0.12);
  color: var(--green);
  border: 1px solid rgba(105,240,174,0.3);
}
.badge-live::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2s infinite;
}

.badge-soon {
  background: rgba(74,106,122,0.2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--green); }
  50%       { opacity: 0.5; box-shadow: 0 0 12px var(--green); }
}

/* =====================================================================
   NAVIGATION
   ===================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(6, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,48,80,0.6);
  transition: background var(--t-med), box-shadow var(--t-med);
}

.nav.scrolled {
  background: rgba(6, 13, 22, 0.97);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.nav-logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), #E8820A);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #000;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-bright);
  letter-spacing: -0.01em;
}

.nav-logo-text span { color: var(--gold); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
  text-decoration: none;
}

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

/* Products dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown-toggle .chevron {
  width: 14px; height: 14px;
  transition: transform var(--t-fast);
  opacity: 0.6;
}

.nav-dropdown:hover .chevron,
.nav-dropdown.open .chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity var(--t-med), transform var(--t-med);
  box-shadow: var(--shadow-card);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-bright);
}

.nav-dropdown-item .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-dropdown-item .item-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-login {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
  text-decoration: none;
}
.nav-login:hover { color: var(--text-bright); background: rgba(255,255,255,0.06); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t-med);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(6, 13, 22, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-med), opacity var(--t-med);
}

.nav-mobile.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav-mobile a {
  display: block;
  padding: 12px 4px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
}

.nav-mobile a:hover { color: var(--text-bright); }

.nav-mobile .mobile-sub {
  padding-left: 16px;
  font-size: 0.9rem;
}

.nav-mobile-cta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Animated neural network canvas */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.45;
}

/* Grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,195,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,195,247,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

/* Gradient fade at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(transparent, var(--bg-page));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 28px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .accent { color: var(--gold); }
.hero h1 .accent-blue { color: var(--electric); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.hero-stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Floating block decorations */
.hero-blocks {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0.35;
}

.hero-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--electric);
  white-space: nowrap;
}

/* =====================================================================
   WHAT IS EAGLE
   ===================================================================== */
.about {
  background: var(--bg-page);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-text p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: border-color var(--t-med), box-shadow var(--t-med);
}

.about-stat-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.about-stat-card .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat-card .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* =====================================================================
   PEDAGOGY
   ===================================================================== */
.pedagogy {
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.pedagogy::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(79,195,247,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.pedagogy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pedagogy-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}

.pedagogy-card:hover {
  border-color: var(--electric);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}

.pedagogy-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.pedagogy-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-bright);
}

.pedagogy-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =====================================================================
   PRODUCTS
   ===================================================================== */
.products { background: var(--bg-page); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}

/* Top colour accent bar */
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-card.early-years::before { background: var(--coral); }
.product-card.junior::before       { background: var(--gold); }
.product-card.explorer::before     { background: var(--electric); }
.product-card.maker::before        { background: var(--purple); }

.product-card.junior {
  border-color: rgba(245,166,35,0.3);
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card.junior:hover { box-shadow: var(--shadow-gold); border-color: var(--gold); }
.product-card.early-years:hover { box-shadow: 0 0 24px rgba(255,107,107,0.18); border-color: var(--coral); }
.product-card.explorer:hover    { box-shadow: var(--shadow-blue); border-color: var(--electric); }
.product-card.maker:hover       { box-shadow: 0 0 24px rgba(206,147,216,0.18); border-color: var(--purple); }

.product-emoji { font-size: 2.4rem; margin-bottom: 16px; line-height: 1; }

.product-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.product-grades {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 500;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

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

/* =====================================================================
   HOW IT WORKS
   ===================================================================== */
.how-it-works {
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.how-it-works::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 56px;
  left: calc(33.33% / 2 + 32px);
  right: calc(33.33% / 2 + 32px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--electric));
  opacity: 0.3;
  z-index: 0;
}

.step {
  padding: 0 32px 0 0;
  position: relative;
  z-index: 1;
}

.step:last-child { padding-right: 0; }

.step-number-bg {
  position: absolute;
  top: -20px;
  left: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 7rem;
  font-weight: 700;
  color: var(--text-bright);
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.step-icon-wrap {
  width: 64px; height: 64px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  position: relative;
}

.step h3 { margin-bottom: 10px; font-size: 1.1rem; }

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =====================================================================
   WHO IS IT FOR
   ===================================================================== */
.audience { background: var(--bg-page); }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.audience-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--t-med), transform var(--t-med);
}

.audience-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.audience-emoji { font-size: 2.4rem; margin-bottom: 16px; }

.audience-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text-bright);
}

.audience-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =====================================================================
   CTA BANNER
   ===================================================================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(245,166,35,0.08) 0%, rgba(79,195,247,0.08) 100%);
  border-top: 1px solid rgba(245,166,35,0.15);
  border-bottom: 1px solid rgba(79,195,247,0.15);
  padding-block: 80px;
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  background: #030A12;
  padding-block: 64px 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.footer-brand-logo .mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--gold), #E8820A);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #000;
}

.footer-brand-logo .name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-bright);
}

.footer-brand-logo .name span { color: var(--gold); }

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 260px;
  margin-bottom: 20px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact a {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--t-fast);
}

.footer-contact a:hover { color: var(--electric); }

.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--t-fast);
}

.footer-col ul li a:hover { color: var(--text-bright); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(26,48,80,0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =====================================================================
   SCROLL ANIMATIONS
   ===================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .pedagogy-grid  { grid-template-columns: repeat(2, 1fr); }
  .products-grid  { grid-template-columns: repeat(2, 1fr); }
  .audience-grid  { grid-template-columns: repeat(2, 1fr); }
  .about-grid     { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero-blocks { display: none; }

  .steps-grid   { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid::before { display: none; }
  .step { padding-right: 0; }

  .audience-grid  { grid-template-columns: 1fr; }
  .products-grid  { grid-template-columns: 1fr; }
  .pedagogy-grid  { grid-template-columns: 1fr; }
  .about-stats    { grid-template-columns: 1fr 1fr; }
  .footer-grid    { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom  { flex-direction: column; text-align: center; }

  .hero-stats { gap: 24px; }

  .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-actions  { flex-direction: column; align-items: center; }
  .about-stats  { grid-template-columns: 1fr; }
  .jr-teaser    { flex-direction: column; gap: 12px; padding: 14px; }
  .proof-stats  { flex-direction: column; gap: 20px; align-items: center; }
}

/* =====================================================================
   LIGHT THEME
   ===================================================================== */
[data-theme="light"] {
  /* Backgrounds */
  --bg-page:     #EFF3F9;
  --bg-surface:  #FFFFFF;
  --bg-raised:   #E4EBF5;

  /* Borders — stronger so cards are visible on light bg */
  --border:      #BFD0E8;
  --border-glow: #96B4D4;

  /* Text */
  --text:        #1A2E42;
  --text-muted:  #3D5470;   /* 5.5:1 on white — passes AA */
  --text-bright: #050F1C;

  /* Brand colours — darkened for light-bg legibility (all ~5:1+ on white) */
  --gold:        #B45309;   /* amber-700 — 4.8:1 on white */
  --gold-dim:    #92400E;
  --electric:    #0369A1;   /* sky-700 — 5.5:1 on white */
  --electric-dim:#075985;
  --green:       #15803D;   /* green-700 — 4.9:1 on white */
  --coral:       #C8001C;   /* red — 5.1:1 on white */
  --purple:      #6D28D9;   /* violet-700 — 8.1:1 on white */

  /* Shadows — more visible on light bg */
  --shadow-card: 0 2px 12px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-gold: 0 0 20px rgba(180,83,9,0.18);
  --shadow-blue: 0 0 20px rgba(3,105,161,0.15);
}

/* --- Nav --- */
[data-theme="light"] .nav {
  background: rgba(255,255,255,0.96);
  border-bottom-color: #BFD0E8;
}

[data-theme="light"] .nav.scrolled {
  background: rgba(255,255,255,1);
  box-shadow: 0 2px 24px rgba(0,0,0,0.10);
}

[data-theme="light"] .nav-logo-text,
[data-theme="light"] .nav-links a,
[data-theme="light"] .nav-login { color: #1A2E42; }

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  color: #050F1C;
  background: rgba(0,0,0,0.05);
}

[data-theme="light"] .nav-dropdown-menu {
  background: #FFFFFF;
  border-color: #BFD0E8;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

[data-theme="light"] .nav-mobile {
  background: rgba(255,255,255,0.99);
  border-bottom-color: #BFD0E8;
}

[data-theme="light"] .nav-mobile a {
  color: #1A2E42;
  border-bottom-color: rgba(0,0,0,0.07);
}

/* --- Cards — add shadow so they pop on light bg --- */
[data-theme="light"] .pedagogy-card,
[data-theme="light"] .product-card,
[data-theme="light"] .audience-card,
[data-theme="light"] .about-stat-card,
[data-theme="light"] .step-icon-wrap { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }

/* --- Hero canvas grid overlay: less visible on light --- */
[data-theme="light"] .hero::before {
  background-image:
    linear-gradient(rgba(3,105,161,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3,105,161,0.06) 1px, transparent 1px);
}

/* --- Sections with bg-surface need a top/bottom border to separate --- */
[data-theme="light"] .pedagogy,
[data-theme="light"] .how-it-works {
  border-top: 1px solid #BFD0E8;
  border-bottom: 1px solid #BFD0E8;
}

/* --- Divider: make it more visible --- */
[data-theme="light"] .divider {
  opacity: 0.5;
}

/* --- Footer stays dark --- */
[data-theme="light"] .footer { background: #1A2A3A; }

/* --- Junior page: override hardcoded #4FC3F7 elements for light mode --- */
[data-theme="light"] .cbse-badge-strip {
  color: #0369A1;
  background: rgba(3,105,161,0.08);
  border-color: rgba(3,105,161,0.25);
}
[data-theme="light"] .cbse-card-class  { color: #0369A1; }
[data-theme="light"] .cbse-callout     { background: rgba(3,105,161,0.05); border-color: rgba(3,105,161,0.18); }
[data-theme="light"] .cbse-callout strong { color: #0369A1; }
[data-theme="light"] .domain-cbse {
  color: #0369A1;
  background: rgba(3,105,161,0.08);
  border-color: rgba(3,105,161,0.2);
}
[data-theme="light"] .badge-live {
  background: rgba(21,128,61,0.1);
  color: #15803D;
  border-color: rgba(21,128,61,0.3);
}
[data-theme="light"] .badge-live::before {
  background: #15803D;
  box-shadow: 0 0 6px #15803D;
}
[data-theme="light"] .section-label { color: #B45309; }
[data-theme="light"] .hero-eyebrow  { color: #B45309; background: rgba(180,83,9,0.08); border-color: rgba(180,83,9,0.2); }
[data-theme="light"] .product-hero-badge { color: #B45309; background: rgba(180,83,9,0.08); border-color: rgba(180,83,9,0.2); }

/* ---------- Theme Toggle Button ---------- */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  transition: border-color var(--t-fast), color var(--t-fast);
  line-height: 1;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark  { display: none; }
[data-theme="light"] .theme-icon-light { display: inline; }
