:root {
  --ink: #17232d;
  --muted: #5d6b78;
  --line: #dfe6ec;
  --bg: #f6faf8;
  --accent: #1f9d5a;
  --accent-ink: #146b3e;
  --deep: #0b2e20;
  --gold: #e8b33a;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root:not([data-theme="light"]) { color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 88px 24px; }
.narrow { max-width: 42em; color: var(--muted); }
.kicker {
  color: var(--accent-ink); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6em;
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(11, 46, 32, .92);
  backdrop-filter: blur(8px);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand-icon { width: 30px; height: 30px; border-radius: 8px; transition: transform .4s var(--ease); }
.brand:hover .brand-icon { transform: rotate(-8deg) scale(1.06); }
.site-head nav { display: flex; gap: 22px; align-items: center; font-size: .95rem; }
.site-head nav a { color: rgba(255, 255, 255, .85); text-decoration: none; position: relative; padding: 4px 0; }
.site-head nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-head nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { background: var(--gold); color: var(--deep) !important; padding: 8px 16px !important; border-radius: 999px; font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: 84px max(28px, calc((100% - 1180px) / 2 + 28px)) 92px;
  color: #eaf6ef;
}
.hero::before {
  /* A soft gradient backdrop behind the whole hero. */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(31, 157, 90, .35), transparent 60%),
    linear-gradient(160deg, #0b2e20 0%, #134d34 60%, #1a6b45 100%);
}
.hero .kicker { color: var(--gold); }
.hero h1 { color: #fff; }
.lead { font-size: 1.12rem; color: #c9e6d6; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn.primary { background: linear-gradient(135deg, var(--gold), #d89f22); color: var(--deep); box-shadow: 0 8px 22px rgba(232, 179, 58, .3); }
.btn.ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn:hover { transform: translateY(-2px); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: #c9e6d6; font-size: .98rem; }
.tick { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 10px; vertical-align: middle; }

.map-stage { position: relative; margin: 0; width: 100%; max-width: 380px; justify-self: center; }
#cameroon-map { display: block; width: 100%; height: auto; }
@keyframes sway {
  from { transform: perspective(900px) rotateY(-14deg) translateY(0); }
  to   { transform: perspective(900px) rotateY(14deg) translateY(-8px); }
}
.map-label {
  position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  display: inline-flex; gap: 8px; align-items: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; font-size: .85rem; padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(6px);
  white-space: nowrap;
}
.map-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(232, 179, 58, .25); }

/* ---------- classroom ---------- */
.classroom { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.classroom-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.classroom-grid p { color: var(--muted); }
.scene { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px rgba(11, 46, 32, .16); border: 1px solid var(--line); }
.scene svg { display: block; width: 100%; height: auto; }
.scene .head { transform-box: fill-box; transform-origin: center; animation: bob 3.2s ease-in-out infinite; }
.scene .h2 { animation-delay: -1s; }
.scene .h3 { animation-delay: -2s; }
.scene .teacher { transform-box: fill-box; transform-origin: 50% 100%; animation: sway-teacher 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes sway-teacher { 0%, 100% { transform: rotate(-0.6deg); } 50% { transform: rotate(0.6deg); } }

/* ---------- sections ---------- */
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.tutors { background: linear-gradient(180deg, #fff, #f1faf5); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 20px 22px 20px 70px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.steps li:hover { box-shadow: 0 12px 26px rgba(16, 38, 29, .1); transform: translateY(-2px); }
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-ink)); color: #fff; font-weight: 700;
}
.steps li p { margin: 0; color: var(--muted); }
.steps.compact { grid-template-columns: repeat(3, 1fr); }
.steps.compact li { padding-left: 22px; }
.steps.compact li::before { display: none; }
.band.tutors .btn { margin-top: 22px; }
.video-note {
  margin-top: 26px; padding: 24px 26px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
}
.video-note p { color: var(--muted); margin-bottom: 14px; }
.video-note .kicker { margin-bottom: .4em; }
.note { margin-top: 20px; color: var(--muted); font-size: .95rem; }
.help { text-align: left; }
/* The help section is on a light background, so its outline button needs dark ink. */
.help .btn.ghost { color: var(--accent-ink); border: 1px solid var(--accent-ink); }
.help .btn.ghost:hover { background: #eaf6ef; }

.site-foot {
  padding: 36px 24px 44px; text-align: center; color: var(--muted); font-size: .88rem;
  border-top: 1px solid var(--line); background: #fff;
}
.site-foot p { max-width: 760px; margin: 0 auto 10px; }

/* ---------- small screens ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 56px 20px 64px; gap: 36px; }
  .map-stage { order: -1; max-width: 300px; }
  .classroom-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps.compact { grid-template-columns: minmax(0, 1fr); }
  .site-head nav a:not(.nav-cta) { display: none; }
  .wrap { padding: 64px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Nothing may push the page sideways on a phone. */
html, body { max-width: 100%; overflow-x: hidden; }
.hero > *, .wrap > *, .steps li, .classroom-grid > * { min-width: 0; }
