/* MwanaLearn — public landing page.
   Deliberately separate from the app: no service worker, no app shell, nothing a
   child's device caches. Dark and cinematic at the top, warm paper below. */

@font-face {
  font-family: "Satoshi";
  src: url("/assets/fonts/satoshi-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #10182b;
  --ink-soft: #44506a;
  --muted: #6f7787;
  --paper: #f8f5ee;
  --paper-2: #fffdf8;
  --line: #e7e2d6;
  --blue: #4266d5;
  --blue-deep: #2b4bab;
  --amber: #f2b45c;
  --navy: #0b1120;
  --navy-2: #121c31;
  --font: "Satoshi", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--ink);
}
.skip:focus { left: 12px; }

/* ------------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border: 1px solid transparent; border-radius: 999px;
  font-size: 14.5px; font-weight: 800; letter-spacing: -.1px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(150deg, #5b7ae6, #2a4bb0); color: #fff; box-shadow: 0 18px 34px #2b4bab3d, inset 0 1px 0 #ffffff33; }
.btn-primary:hover { box-shadow: 0 22px 40px #2b4bab4d, inset 0 1px 0 #ffffff33; }
.btn-ghost { border-color: #ffffff2e; color: #eaeefb; background: #ffffff12; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #ffffff1f; }
.btn-sm { padding: 11px 20px; font-size: 13px; }

/* ---------------------------------------------------------------------- nav --- */

.nav {
  position: sticky; top: 0; z-index: 40;
  transition: background .2s ease, border-color .2s ease, backdrop-filter .2s ease;
  border-bottom: 1px solid transparent; color: #eef2fb;
}
.nav.is-stuck {
  background: #0b1120e6;
  border-bottom-color: #ffffff14;
  backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex; align-items: center; gap: 26px;
  max-width: var(--max); margin: 0 auto; padding: 16px 28px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.4px; }
.logo { width: 34px; height: 34px; filter: drop-shadow(0 8px 14px #4266d55c); }
.logo.small { width: 30px; height: 30px; }
.brand-name { font-size: 17px; }

.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 13.5px; font-weight: 700; }
.nav-links a { color: #c6cfe4; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.text-btn { font-size: 13.5px; font-weight: 750; color: #c6cfe4; }
.text-btn:hover { color: #fff; }
.menu-btn { display: none; }

/* --------------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: -67px;
  padding: 148px 28px 96px;
  background: radial-gradient(1100px 620px at 78% 12%, #1c2a4d 0, transparent 62%),
              radial-gradient(900px 600px at 8% 92%, #1a2540 0, transparent 60%),
              linear-gradient(180deg, #0b1120, #0e1526 62%, #0b1120);
  color: #f4f7ff;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .8; filter: saturate(1.04) contrast(1.02);
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(620px 420px at 72% 28%, #4a6ee038 0, transparent 68%),
    radial-gradient(520px 380px at 22% 70%, #f2b45c26 0, transparent 70%),
    /* Just enough scrim behind the headline to hold contrast; the footage is
       already graded in the video itself, so this stays light. */
    linear-gradient(90deg, #0b1120b8 0%, #0b112052 30%, #0b112014 52%, transparent 70%),
    linear-gradient(180deg, #0b1120a6 0%, transparent 22%, transparent 66%, #0b1120cc 100%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay;
  background-image: radial-gradient(#ffffff1f 1px, transparent 1px);
  background-size: 3px 3px;
}
.no-motion .hero-video { display: none; }

.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; align-items: center;
}
.pill-line {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px; border: 1px solid #ffffff26; border-radius: 999px;
  background: #ffffff0f; color: #cfd8ee;
  font-size: 11.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px #f2b45c26; }

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(46px, 6.4vw, 86px);
  font-weight: 900; line-height: .96; letter-spacing: -3.2px;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-lede { max-width: 34ch; color: #c3cde4; font-size: 17px; line-height: 1.62; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-cta.center { justify-content: center; }

.hero-facts {
  display: grid; grid-template-columns: repeat(4, auto); gap: 26px;
  margin-top: 46px; padding-top: 26px; border-top: 1px solid #ffffff1f;
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-size: 20px; font-weight: 850; letter-spacing: -.6px; }
.hero-facts span { color: #97a3bd; font-size: 11.5px; font-weight: 650; }

/* device mockup */
.hero-device { position: relative; display: flex; justify-content: center; }
.device {
  width: min(300px, 78vw); aspect-ratio: 9 / 18.4;
  padding: 9px; border-radius: 42px;
  background: linear-gradient(160deg, #2a3550, #0d1424 55%);
  box-shadow: 0 50px 90px #04080f7a, inset 0 1px 0 #ffffff2e;
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
}
.device-screen {
  height: 100%; padding: 18px 16px;
  border-radius: 34px; background: var(--paper-2); color: var(--ink);
  overflow: hidden;
}
.mini-top { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 850; }
.mini-logo { width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(150deg, #5b7ae6, #2a4bb0); }
.mini-ai { margin-left: 2px; padding: 1px 4px; border-radius: 4px; background: #edf0ff; color: var(--blue-deep); font-size: 8px; }
.mini-eyebrow { margin-top: 16px; color: var(--blue); font-size: 8.5px; font-weight: 850; letter-spacing: .12em; }
.device-screen h2 { margin-top: 5px; font-size: 17px; font-weight: 850; letter-spacing: -.6px; line-height: 1.2; }
.mini-pies { display: flex; gap: 10px; margin: 14px 0 12px; }
.mini-pies span {
  width: 46px; height: 46px; border-radius: 50%;
  background: conic-gradient(#f2b45c 0 50%, #fff);
  box-shadow: inset 0 0 0 1px #00000012;
}
.mini-pies .quarters { background: conic-gradient(#7c93ee 0 25%, #fff 25% 50%, #7c93ee 50% 75%, #fff 75%); }
.mini-body { color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.mini-options { display: grid; gap: 7px; margin: 13px 0; }
.opt {
  padding: 10px 12px; border: 1.5px solid #e5e6e6; border-radius: 12px;
  background: #fff; font-size: 11.5px; font-weight: 800;
}
.opt.correct { border-color: #7ba97f; background: #eef7ee; color: #39663f; }
.mini-cta { padding: 12px; border-radius: 13px; background: linear-gradient(150deg, #5b7ae6, #2a4bb0); color: #fff; font-size: 11.5px; font-weight: 800; text-align: center; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 11px 15px; border: 1px solid #ffffff2b; border-radius: 14px;
  background: #131d31d9; color: #e7edfb; backdrop-filter: blur(10px);
  font-size: 11.5px; font-weight: 750; box-shadow: 0 20px 40px #04080f66;
  animation: float 7s ease-in-out infinite;
}
.float-a { top: 9%; left: -6%; }
.float-b { bottom: 12%; right: -8%; animation-delay: -3.2s; }
@keyframes float { 50% { transform: translateY(-11px); } }
.no-motion .float-card { animation: none; }

/* -------------------------------------------------------------------- strip --- */

.strip { background: #0b1120; color: #cfd8ee; border-top: 1px solid #ffffff14; }
.strip-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  max-width: var(--max); margin: 0 auto; padding: 26px 28px;
}
.strip-inner p { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8b97b3; }
.strip-inner ul { display: flex; flex-wrap: wrap; gap: 26px; font-size: 13.5px; font-weight: 750; }
.strip-inner li { display: flex; align-items: center; gap: 9px; }
.strip-inner li::before { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); content: ""; }

/* ------------------------------------------------------------------ sections --- */

.section { max-width: var(--max); margin: 0 auto; padding: 108px 28px; }
.section-head { max-width: 720px; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow.light { color: var(--amber); }
.eyebrow.small { font-size: 10px; }
.section h2 {
  margin: 16px 0 18px;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 900; line-height: 1.04; letter-spacing: -1.7px;
}
.section-lede { max-width: 58ch; color: var(--ink-soft); font-size: 16.5px; line-height: 1.65; }
.section-lede.light { color: #b6c1d6; }

/* subjects */
.subjects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 46px; }
.subject {
  position: relative; padding: 26px 24px 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.subject:hover { transform: translateY(-3px); box-shadow: 0 24px 44px #2b36530f; }
.subject.is-live { border-color: #c9d4f6; background: linear-gradient(170deg, #fff, #f4f7ff); box-shadow: 0 26px 50px #2b4bab14; }
.subject-icon {
  display: grid; width: 46px; height: 46px; place-items: center;
  border-radius: 15px; background: #f4f3ec; font-size: 21px;
}
.subject.is-live .subject-icon { background: #edf1ff; }
.subject h3 { margin: 18px 0 7px; font-size: 17px; font-weight: 850; letter-spacing: -.4px; }
.subject p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; }
.badge {
  display: inline-block; margin-top: 18px; padding: 5px 11px;
  border-radius: 999px; background: #f2f1ea; color: #7b8291;
  font-size: 9.5px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase;
}
.badge.live { background: #e5f2e5; color: #3a6a43; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 48px 0; }
.steps li { padding-top: 22px; border-top: 2px solid var(--ink); }
.step-no { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.steps h3 { margin: 10px 0 8px; font-size: 19px; font-weight: 850; letter-spacing: -.5px; }
.steps p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

.lesson-frame {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  margin-top: 26px; padding: 40px; border-radius: 32px;
  background: linear-gradient(150deg, #101a30, #0b1120); color: #eef2fb;
  box-shadow: 0 40px 80px #101a3038;
}
.frame-copy h3 { margin: 12px 0 12px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 850; letter-spacing: -1px; line-height: 1.2; }
.frame-copy p { color: #b6c1d6; font-size: 14.5px; line-height: 1.65; }
.frame-visual { display: grid; gap: 12px; }
.bubble { padding: 15px 18px; border-radius: 18px; font-size: 13.5px; font-weight: 700; line-height: 1.45; }
.bubble-q { max-width: 84%; background: #ffffff12; border: 1px solid #ffffff24; }
.bubble-a { display: flex; align-items: center; gap: 11px; margin-left: auto; max-width: 92%; background: #edf1ff; color: #22305a; }
.pie { width: 26px; height: 26px; flex: none; border-radius: 50%; background: conic-gradient(#f2b45c 0 50%, #fff); box-shadow: inset 0 0 0 1px #00000012; }
.pie.quarters { background: conic-gradient(#7c93ee 0 25%, #fff 25% 50%, #7c93ee 50% 75%, #fff 75%); }

/* dark section */
.section-dark { max-width: none; padding: 0; background: #0b1120; color: #eef2fb; }
.dark-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 104px 28px;
}
.section-dark h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; line-height: 1.05; letter-spacing: -1.7px; }
.ticks { display: grid; gap: 12px; margin-top: 28px; }
.ticks li { display: flex; gap: 11px; color: #c3cde4; font-size: 14.5px; }
.ticks li::before {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  border-radius: 50%; background: #e9f3e9; color: #3a6a43;
  content: "✓"; font-size: 11px; font-weight: 900; text-align: center; line-height: 20px;
}

.dark-visual { display: grid; gap: 14px; }
.signal-card {
  padding: 22px; border: 1px solid #ffffff1f; border-radius: 20px;
  background: linear-gradient(160deg, #141f36, #0e1728);
  box-shadow: 0 30px 60px #04080f5c;
}
.signal-card.second { margin-left: 34px; }
.signal-label { color: #8693b0; font-size: 9.5px; font-weight: 850; letter-spacing: .16em; }
.signal-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: #dde6f8; font-size: 13px; font-weight: 700; line-height: 1.45; }
.signal-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.signal-dot.offline { background: var(--amber); box-shadow: 0 0 0 4px #f2b45c26; }
.signal-dot.ok { background: #7ec48c; box-shadow: 0 0 0 4px #7ec48c26; }
.signal-bar { height: 6px; margin-top: 16px; border-radius: 99px; background: #ffffff14; overflow: hidden; }
.signal-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f6c179, #e39a3c); }
.signal-foot { margin-top: 10px; color: #8693b0; font-size: 11px; }
.signal-list { display: grid; gap: 7px; margin-top: 14px; color: #b6c1d6; font-size: 12.5px; }
.signal-list li { display: flex; align-items: center; gap: 8px; }
.signal-list li::before { width: 5px; height: 5px; border-radius: 50%; background: #7ec48c; content: ""; }

/* privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 46px; }
.privacy-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.privacy-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: #f3f2ea; font-size: 20px; }
.privacy-card h3 { margin: 16px 0 8px; font-size: 17.5px; font-weight: 850; letter-spacing: -.4px; }
.privacy-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

.policy-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.policy-link {
  padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper-2); font-size: 12.5px; font-weight: 800;
}
.policy-link:hover { border-color: #b9c4ea; background: #f6f8ff; }

/* close */
.close { padding: 108px 28px; background: radial-gradient(700px 420px at 50% 0%, #eef2ff 0, transparent 70%), var(--paper); }
.close-inner { max-width: 660px; margin: 0 auto; text-align: center; }
.close h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 900; letter-spacing: -2px; line-height: 1.03; }
.close p { margin-top: 14px; color: var(--ink-soft); font-size: 16.5px; }
.close-note { margin-top: 22px !important; color: var(--muted) !important; font-size: 12px !important; font-weight: 750; }

/* -------------------------------------------------------------------- footer --- */

.footer { background: #0b1120; color: #c6cfe4; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  max-width: var(--max); margin: 0 auto; padding: 46px 28px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-size: 15px; font-weight: 850; color: #f1f5ff; }
.footer-brand p { color: #8693b0; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 12.5px; font-weight: 750; }
.footer-links a:hover { color: #fff; }
.footer-note { width: 100%; padding-top: 18px; border-top: 1px solid #ffffff14; color: #7c88a4; font-size: 11.5px; }

/* -------------------------------------------------------------------- responsive --- */

@media (max-width: 1000px) {
  .hero { padding: 128px 22px 80px; }
  /* One column means type sits over the middle of the room, so the footage
     drops back to a texture and the scrim does the legibility work. */
  .hero-video { opacity: .86; }
  .hero-glow {
    background:
      radial-gradient(620px 420px at 72% 28%, #4a6ee030 0, transparent 70%),
      linear-gradient(180deg, #0b1120db 0%, #0b11208a 20%, #0b11206b 48%, #0b1120b0 76%, #0b1120ee 100%),
      linear-gradient(90deg, #0b112099 0%, #0b112026 62%, transparent 100%);
  }
  .hero-inner { grid-template-columns: 1fr; gap: 46px; }
  .hero-device { display: none; }
  .hero-lede { max-width: 46ch; }
  .subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .lesson-frame { grid-template-columns: 1fr; padding: 30px; }
  .dark-grid { grid-template-columns: 1fr; gap: 38px; padding: 84px 22px; }
  .signal-card.second { margin-left: 0; }
  .privacy-grid { grid-template-columns: 1fr; }
  .section { padding: 84px 22px; }
}

@media (max-width: 720px) {
  .nav-inner { padding: 14px 18px; }
  .nav-links {
    position: absolute; top: 62px; left: 12px; right: 12px;
    display: none; flex-direction: column; gap: 4px;
    padding: 14px; border: 1px solid #ffffff1f; border-radius: 18px;
    background: #0d1526f2; backdrop-filter: blur(14px);
  }
  body.menu-open .nav-links { display: flex; }
  .nav-links a { padding: 10px 8px; border-radius: 10px; }
  .nav-links a:hover { background: #ffffff0f; }
  .menu-btn {
    display: inline-flex; margin-left: auto; padding: 9px 14px;
    border: 1px solid #ffffff2b; border-radius: 999px; background: #ffffff12;
    color: #eaeefb; font-size: 12.5px; font-weight: 800; cursor: pointer;
  }
  .nav-actions .text-btn { display: none; }
  .nav-actions .btn { display: none; }
  .hero { margin-top: -61px; padding: 122px 18px 64px; }
  .hero h1 { letter-spacing: -2px; }
  .hero-facts { grid-template-columns: repeat(2, auto); gap: 18px; }
  .hero-cta .btn { width: 100%; }
  .strip-inner { padding: 22px 18px; }
  .strip-inner ul { gap: 14px; font-size: 12.5px; }
  .subjects { grid-template-columns: 1fr; }
  .section { padding: 68px 18px; }
  .policy-row { flex-direction: column; align-items: flex-start; }
  .close { padding: 76px 18px; }
  .footer-inner { padding: 36px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-card { animation: none; }
  .btn:hover, .subject:hover { transform: none; }
  .hero-video { display: none; }
}
