/* ============================================================
   MYBRIDGE — Design System
   Palette: Navy #0D1B3E | Royal Blue #2B5BF5 | Cyan #4DD9E8
   Fonts: Nunito (headings) | Lora (accent/italic) | Nunito (body)
   ============================================================ */

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

:root {
  --navy:       #0D1B3E;
  --navy-mid:   #162454;
  --blue:       #2B5BF5;
  --blue-light: #4a78f7;
  --cyan:       #4DD9E8;
  --cyan-light: #a8edf3;
  --white:      #ffffff;
  --off-white:  #F4F6FB;
  --text:       #1a2340;
  --text-muted: #5a6480;
  --border:     #e2e7f0;

  --font-head:  'Nunito', sans-serif;
  --font-body:  'Nunito', sans-serif;
  --font-serif: 'Lora', serif;

  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(13,27,62,0.08);
  --shadow-lg:  0 12px 48px rgba(13,27,62,0.14);

  --max-w: 1160px;
  --section-py: 96px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ── UTILITY ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-py) 0; }
.section--light   { background: var(--off-white); }
.section--white   { background: var(--white); }
.section--navy    { background: var(--navy); color: var(--white); }
.section--mission { background: var(--navy-mid); color: var(--white); }
.section--cta     { background: var(--off-white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--cyan); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 18px;
  margin-top: 12px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  color: inherit;
}

h1 { font-size: clamp(40px, 5.5vw, 72px); }
h2 { font-size: clamp(28px, 3.5vw, 46px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; }

em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--cyan); }
.section--white em { color: var(--blue); }

p { max-width: 62ch; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 100px;
  padding: 14px 28px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(43,91,245,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover {
  background: var(--cyan-light);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

/* ── NAV ── */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
}
.footer-logo .logo-img {
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--navy); background: var(--off-white); }
.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  border-radius: 100px !important;
  padding: 8px 20px !important;
}
.nav-cta:hover {
  background: var(--blue-light) !important;
  box-shadow: 0 4px 14px rgba(43,91,245,0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── HERO ── */
.hero {
  position: relative;
  background: var(--white);
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-bg-arch {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg-arch svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

.hero-heading {
  color: var(--navy);
  margin-bottom: 24px;
}
.hero-heading em {
  color: var(--blue);
  display: inline-block;
}

.hero-body {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

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

/* Hero visual */
.hero-visual {
  position: relative;
  height: 440px;
}
.hero-arch-svg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  opacity: 0.12;
}

.arch-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 200px;
  animation: float 6s ease-in-out infinite;
}
.arch-card--1 { top: 20px; left: 10%; animation-delay: 0s; }
.arch-card--2 { top: 40%; right: 5%; animation-delay: -2s; }
.arch-card--3 { bottom: 60px; left: 20%; animation-delay: -4s; }

.arch-card-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.arch-card p {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  max-width: none;
}
.arch-card em { color: var(--cyan); font-size: 15px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── PROBLEM ── */
.problem-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.problem-quote {
  position: relative;
}
.problem-quote::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: -20px;
  font-family: var(--font-serif);
  font-size: 180px;
  color: var(--cyan);
  opacity: 0.15;
  line-height: 1;
}
.problem-quote p {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
  max-width: none;
}

.problem-text h2 { margin-bottom: 20px; }
.problem-text p { color: var(--text-muted); margin-bottom: 16px; }

/* ── JOURNEY ── */
.journey-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}
.journey-step {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.journey-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-num {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 900;
  color: var(--blue);
  opacity: 0.12;
  line-height: 1;
  margin-bottom: 8px;
}
.step-arch {
  width: 40px;
  height: 24px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  border: 5px solid var(--arch-color, var(--blue));
  border-bottom: none;
  margin-bottom: 16px;
}
.journey-step h3 { margin-bottom: 12px; color: var(--navy); }
.journey-step p { font-size: 15px; color: var(--text-muted); max-width: none; }

.journey-connector {
  font-size: 28px;
  color: var(--border);
  padding: 0 16px;
  margin-top: 60px;
}

/* ── AILG SECTION ── */
.ailg-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ailg-text h2 { color: var(--white); margin-bottom: 20px; }
.ailg-text p { color: rgba(255,255,255,0.75); margin-bottom: 16px; }
.ailg-text p:last-of-type { margin-bottom: 32px; }

.ailg-demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-bubble {
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  max-width: 100%;
}
.chat-bubble--guide {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;
}
.chat-bubble--learner {
  background: var(--blue);
  margin-left: 32px;
  border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
}
.chat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.chat-bubble--learner .chat-label { color: rgba(255,255,255,0.6); }
.chat-bubble p {
  font-size: 15px;
  color: var(--white);
  max-width: none;
  line-height: 1.6;
}

/* ── SCHOOLS STRIP ── */
.schools-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.schools-strip-text h2 { margin-bottom: 16px; }
.schools-strip-text p { color: var(--text-muted); margin-bottom: 28px; }
.schools-strip-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.feature-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow);
}

/* ── MISSION ── */
.mission-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.mission-arch {
  position: absolute;
  top: -40px;
  left: -80px;
  width: 200px;
  pointer-events: none;
}
.mission-text h2 { color: var(--white); margin-bottom: 20px; }
.mission-text p { color: rgba(255,255,255,0.75); margin: 0 auto 16px; }
.mission-text p:last-of-type { margin-bottom: 32px; }

/* ── CTA BAND ── */
.cta-band { text-align: center; max-width: 560px; margin: 0 auto; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--text-muted); margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo .logo-text { color: var(--white); }
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--white); }
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  max-width: none;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  :root { --section-py: 60px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .nav { position: relative; }

  .hero-inner,
  .problem-wrap,
  .ailg-wrap,
  .schools-strip {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual { height: 280px; }

  .journey-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .journey-connector { display: none; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-nav { justify-content: center; }
  .mission-arch { display: none; }
}

/* ── FADE-IN ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
