:root {
  --navy: #07143d;
  --navy-deep: #030a25;
  --navy-soft: #16265e;
  --paper: #fcf8f1;
  --surface: #ffffff;
  --ink: #07143d;
  --muted: #59627d;
  --mint: #17b96f;
  --purple: #8a45f2;
  --coral: #ff6f74;
  --amber: #ffc13b;
  --blue: #1976f3;
  --hairline: rgba(7, 20, 61, .12);
  --shadow: 0 24px 70px rgba(3, 10, 37, .14);
  --radius-lg: 32px;
  --radius-md: 22px;
  --content: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Outfit, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.05; }
h2 { font-size: clamp(2.5rem, 5vw, 4.9rem); margin-bottom: 24px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--navy);
  background: white;
  border-radius: 10px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  color: white;
  background: rgba(5, 13, 46, .64);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: rgba(3, 10, 37, .92); box-shadow: 0 16px 46px rgba(0,0,0,.28); }
.brand { width: 142px; text-decoration: none; }
.brand img { width: 100%; height: 48px; object-fit: contain; object-position: center; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav > a { font-size: .9rem; font-weight: 800; text-decoration: none; }
.primary-nav > a:not(.button) { opacity: .8; transition: opacity .2s ease, color .2s ease; }
.primary-nav > a:not(.button):hover { color: #b9ffdb; opacity: 1; }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 24px;
  color: white;
  background: linear-gradient(135deg, var(--mint), #0d9f5b);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 13px 30px rgba(23,185,111,.28);
  font-weight: 900;
  line-height: 1.05;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(23,185,111,.35); }
.button small { display: block; margin-bottom: 3px; font-size: .62rem; font-weight: 700; letter-spacing: .08em; opacity: .75; text-transform: uppercase; }
.button-small { min-height: 42px; padding: 9px 18px; border-radius: 12px; }
.play-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); font-size: .72rem; }

.hero {
  position: relative;
  min-height: 920px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: 28px;
  padding: 146px max(20px, calc((100vw - 1180px) / 2)) 90px;
  color: white;
  background:
    radial-gradient(circle at 72% 36%, rgba(45,86,255,.22), transparent 32%),
    linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 52%, #101654 100%);
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}
.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -82px;
  height: 150px;
  z-index: 1;
  border-radius: 50% 50% 0 0;
  background: var(--paper);
}
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(4px); pointer-events: none; }
.hero-glow-one { width: 340px; height: 340px; right: -110px; top: 90px; background: rgba(138,69,242,.2); }
.hero-glow-two { width: 280px; height: 280px; left: -150px; bottom: 100px; background: rgba(23,185,111,.12); }
.hero-copy { position: relative; z-index: 3; max-width: 590px; padding-bottom: 54px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #a9f5ce;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow span { width: 24px; height: 3px; border-radius: 10px; background: var(--mint); }
.eyebrow-dark { color: #087a4b; }
.hero h1 { margin-bottom: 28px; font-size: clamp(4.3rem, 7.5vw, 7.3rem); font-weight: 950; }
.hero h1 em { color: transparent; background: linear-gradient(90deg, #8a45f2, #ff6fcf 50%, var(--amber)); background-clip: text; font-style: normal; }
.hero-lede { max-width: 560px; color: rgba(255,255,255,.72); font-size: 1.12rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.text-link { color: white; font-weight: 850; text-decoration: none; }
.text-link span { display: inline-block; margin-left: 7px; color: var(--mint); }
.hero-facts { display: flex; gap: 0; padding: 0; margin: 50px 0 0; list-style: none; }
.hero-facts li { display: grid; gap: 2px; min-width: 118px; padding-right: 24px; margin-right: 24px; border-right: 1px solid rgba(255,255,255,.14); }
.hero-facts li:last-child { margin-right: 0; border: 0; }
.hero-facts strong { font-size: 1.5rem; }
.hero-facts span { color: rgba(255,255,255,.56); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

.hero-visual { position: relative; z-index: 2; min-width: 0; }
.scene-shell {
  position: relative;
  width: min(660px, 100%);
  aspect-ratio: 1 / 1;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(49,88,211,.16), rgba(4,10,38,.05) 62%, transparent 63%);
}
.scene-shell::before, .scene-shell::after { content: ""; position: absolute; border: 1px solid rgba(116,155,255,.13); border-radius: 50%; pointer-events: none; }
.scene-shell::before { inset: 7%; }
.scene-shell::after { inset: 17%; border-style: dashed; animation: ring-spin 30s linear infinite; }
@keyframes ring-spin { to { transform: rotate(1turn); } }
#sudoku-scene { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; border-radius: 50%; cursor: grab; opacity: 0; touch-action: pan-y; transition: opacity .5s ease; }
#sudoku-scene:active { cursor: grabbing; }
.scene-ready #sudoku-scene { opacity: 1; }
.board-fallback { position: absolute; z-index: 2; inset: 17%; display: grid; place-items: center; transition: opacity .35s ease; }
.scene-ready .board-fallback { opacity: 0; }
.fallback-grid { width: 100%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(9, 1fr); overflow: hidden; border: 9px solid #132761; border-radius: 24px; background: #132761; box-shadow: 0 28px 60px rgba(0,0,0,.35); transform: perspective(800px) rotateX(9deg) rotateZ(-5deg); }
.fallback-grid span { display: grid; place-items: center; color: var(--navy); background: #fffaf1; border: 1px solid #d8dff2; font-size: clamp(.5rem, 1.4vw, 1.05rem); font-weight: 900; }
.fallback-grid span:nth-child(3n) { border-right: 3px solid #132761; }
.fallback-grid span:nth-child(n+19):nth-child(-n+27), .fallback-grid span:nth-child(n+46):nth-child(-n+54) { border-bottom: 3px solid #132761; }
.scene-loader { position: absolute; z-index: 6; left: 50%; bottom: 10%; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.62); font-size: .74rem; font-weight: 800; transform: translateX(-50%); transition: opacity .3s ease; }
.scene-loader span { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px var(--mint); animation: pulse 1s ease-in-out infinite alternate; }
.scene-ready .scene-loader { opacity: 0; pointer-events: none; }
@keyframes pulse { to { transform: scale(1.5); opacity: .45; } }
.scene-hint { position: absolute; z-index: 6; left: 50%; bottom: 1%; display: flex; align-items: center; gap: 7px; margin: 0; color: rgba(255,255,255,.54); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; transform: translateX(-50%); }
.scene-hint span { color: var(--mint); font-size: 1.1rem; }
.floating-chip { position: absolute; z-index: 8; display: grid; min-width: 110px; padding: 15px 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(19,34,91,.72); box-shadow: 0 18px 50px rgba(0,0,0,.22); backdrop-filter: blur(12px); pointer-events: none; }
.floating-chip strong { font-size: 1.22rem; }
.floating-chip span { color: rgba(255,255,255,.55); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.chip-one { top: 15%; right: -2%; animation: chip-float 4s ease-in-out infinite; }
.chip-two { left: 3%; bottom: 20%; animation: chip-float 4.8s ease-in-out -1.2s infinite; }
@keyframes chip-float { 50% { transform: translateY(-10px); } }

.trust-strip { position: relative; z-index: 3; width: var(--content); min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 22px 30px; margin: -12px auto 0; border: 1px solid var(--hairline); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.trust-strip p { margin: 0; color: #087a4b; font-size: .72rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.trust-strip div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 28px; }
.trust-strip span { color: var(--muted); font-size: .78rem; font-weight: 800; display: flex; align-items: center; }
.trust-strip span::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; background-color: var(--purple); -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2l3 7 7 3-7 3-3 7-3-7-7-3 7-3z"/></svg>') no-repeat center; mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2l3 7 7 3-7 3-3 7-3-7-7-3 7-3z"/></svg>') no-repeat center; }

.section { width: var(--content); padding: 130px 0; margin: 0 auto; }
.section-heading { max-width: 760px; margin-bottom: 64px; }
.section-heading > p:last-child, .learn-copy > p, .progress-copy > p { color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.section-heading.centered { margin-right: auto; margin-left: auto; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }

.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mode-card { position: relative; min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 24px; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: white; box-shadow: 0 12px 34px rgba(7,20,61,.06); transition: transform .25s ease, box-shadow .25s ease; text-align: left; }
.mode-card:hover { transform: translateY(-6px); box-shadow: 0 25px 50px rgba(7,20,61,.12); }
.mode-card img { position: relative; width: 100%; height: 140px; margin-bottom: auto; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(7,20,61,.12)); transition: transform .3s ease; }
.mode-card:hover img { transform: rotate(3deg) scale(1.05); }
.mode-card > div { position: relative; z-index: 2; margin-top: 16px; }
.mode-card p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.6; }
.mode-number { display: inline-block; margin-bottom: 8px; color: var(--purple); font-size: .66rem; font-weight: 950; letter-spacing: .14em; }
.mode-card-featured { grid-column: span 2; color: white; background: linear-gradient(140deg, #0b245b, #083c68 58%, #0e7657); }
.mode-card-featured img, .mode-card-wide img { position: absolute; margin: 0; }
.mode-card-featured img { top: -6px; right: -5px; width: 45%; height: auto; max-height: 70%; }
.mode-card-featured p { max-width: 50%; color: rgba(255,255,255,.68); }
.mode-card-featured .mode-number { color: #8ff0bd; }
.mode-card-wide { grid-column: span 2; }
.mode-card-wide img { top: -20px; right: -10px; width: 55%; height: 85%; }
.mode-ribbon { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 22px 0 0; list-style: none; }
.mode-ribbon li { padding: 11px 16px; border: 1px solid var(--hairline); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.58); font-size: .75rem; font-weight: 850; }

.learn-section { width: 100%; display: grid; grid-template-columns: minmax(400px, 1fr) minmax(420px, .95fr); gap: 8vw; align-items: center; padding-right: max(20px, calc((100vw - 1180px) / 2)); padding-left: max(20px, calc((100vw - 1180px) / 2)); color: white; background: linear-gradient(145deg, var(--navy-deep), #0c1b56 52%, #2d1567); }
.learn-art { position: relative; min-height: 650px; display: grid; place-items: center; }
.mascot-disc { position: relative; z-index: 2; width: min(440px, 76%); aspect-ratio: 1; display: grid; place-items: end center; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: radial-gradient(circle at 48% 48%, #284bd2, #111b67 54%, #080e36 72%); box-shadow: inset 0 0 70px rgba(255,255,255,.05), 0 40px 90px rgba(0,0,0,.3); }
.mascot-disc::after { content: ""; position: absolute; right: 8%; bottom: 10%; left: 8%; height: 22%; border-radius: 50%; background: rgba(0,0,0,.2); filter: blur(18px); }
.mascot-disc img { position: relative; z-index: 2; width: 88%; height: auto; object-fit: contain; }
.lesson-orbit { position: absolute; z-index: 4; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(11,24,82,.8); box-shadow: 0 18px 45px rgba(0,0,0,.25); backdrop-filter: blur(10px); }
.lesson-orbit span { font-size: .69rem; font-weight: 900; }
.orbit-one { width: 104px; height: 104px; top: 11%; right: 5%; color: #ffd260; animation: chip-float 5s ease-in-out infinite; }
.orbit-two { width: 82px; height: 82px; left: 0; bottom: 18%; color: #aaffcf; animation: chip-float 4s ease-in-out -1s infinite; }
.orbit-three { width: 92px; height: 92px; right: 2%; bottom: 9%; color: #f1a1ff; animation: chip-float 4.5s ease-in-out -2s infinite; }
.learn-copy h2 { max-width: 610px; }
.learn-copy > p { max-width: 620px; color: rgba(255,255,255,.65); }
.learning-list { display: grid; gap: 12px; margin-top: 36px; }
.learning-list > div { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.045); }
.learning-list b { display: grid; height: 42px; place-items: center; border-radius: 12px; color: #a8f6cf; background: rgba(23,185,111,.13); font-size: .72rem; }
.learning-list span { color: rgba(255,255,255,.6); font-size: .88rem; }
.learning-list strong { display: block; color: white; font-size: .98rem; }

.benefits-section { padding-bottom: 150px; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: white; }
.benefit-icon { display: grid; width: 54px; height: 54px; place-items: center; margin-bottom: 24px; border-radius: 15px; color: white; background: var(--purple); box-shadow: 0 12px 25px rgba(138,69,242,.22); font-size: 1.45rem; font-weight: 900; }
.benefit-card:nth-child(2) .benefit-icon { background: var(--mint); box-shadow: 0 12px 25px rgba(23,185,111,.22); }
.benefit-card:nth-child(3) .benefit-icon { color: var(--navy); background: var(--amber); box-shadow: 0 12px 25px rgba(255,193,59,.25); }
.benefit-card:nth-child(4) .benefit-icon { background: var(--coral); box-shadow: 0 12px 25px rgba(255,111,116,.22); }
.benefit-card p { margin: 0; color: var(--muted); font-size: .88rem; }

.progress-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8vw; align-items: center; padding-top: 120px; border-top: 1px solid var(--hairline); }
.check-list { display: grid; gap: 12px; padding: 0; margin: 32px 0 0; list-style: none; }
.check-list li { color: var(--ink); font-weight: 800; }
.check-list li::before { content: "✓"; display: inline-grid; width: 25px; height: 25px; place-items: center; margin-right: 12px; border-radius: 50%; color: #087a4b; background: #dff8ea; font-size: .72rem; }
.progress-panel { padding: 38px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); color: white; background: linear-gradient(145deg, #0b1d56, #122c76 58%, #174f6f); box-shadow: 0 35px 80px rgba(7,20,61,.22); }
.progress-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.progress-top span { color: rgba(255,255,255,.62); font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.progress-track { height: 9px; overflow: hidden; margin-bottom: 38px; border-radius: 99px; background: rgba(255,255,255,.11); }
.progress-track span { display: block; width: 71%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), #84ffc1); }
.progress-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.progress-stats div { display: grid; gap: 2px; padding: 18px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(255,255,255,.05); }
.progress-stats strong { font-size: 1.4rem; }
.progress-stats span { color: rgba(255,255,255,.5); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.mini-calendar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 22px; }
.mini-calendar span, .mini-calendar i { display: grid; height: 36px; place-items: center; border-radius: 9px; font-size: .68rem; font-style: normal; }
.mini-calendar span { color: rgba(255,255,255,.4); }
.mini-calendar i { color: #a7f6cd; background: rgba(23,185,111,.13); }

.cta-section { position: relative; min-height: 540px; display: grid; place-items: center; overflow: hidden; padding: 90px 20px; color: white; text-align: center; background: linear-gradient(145deg, #40137b, #7225b4 48%, #d33a94); }
.cta-section::before, .cta-section::after { content: ""; position: absolute; width: 330px; height: 330px; border: 75px solid rgba(255,255,255,.055); border-radius: 50%; }
.cta-section::before { top: -180px; left: -120px; }
.cta-section::after { right: -130px; bottom: -210px; }
.cta-grid { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(circle, black, transparent 74%); }
.cta-copy { position: relative; z-index: 2; max-width: 760px; }
.cta-copy .eyebrow { justify-content: center; color: white; }
.cta-copy .eyebrow span { background: var(--amber); }
.cta-copy h2 { margin-bottom: 12px; font-size: clamp(3.8rem, 7vw, 7rem); }
.cta-copy p { color: rgba(255,255,255,.7); font-size: 1.05rem; }
.button-light { margin-top: 24px; color: var(--navy); background: white; box-shadow: 0 16px 40px rgba(23,7,50,.25); }
.button-light .play-mark { color: white; background: var(--mint); }

.site-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 30px; padding: 50px max(20px, calc((100vw - 1180px) / 2)); color: rgba(255,255,255,.65); background: var(--navy-deep); }
.footer-brand { width: 150px; }
.footer-brand img { width: 100%; height: 64px; object-fit: contain; object-position: center; }
.site-footer p { margin: 0; font-size: .84rem; }
.site-footer nav { grid-column: 2; grid-row: 1; display: flex; gap: 22px; }
.site-footer nav a { font-size: .78rem; font-weight: 800; text-decoration: none; }
.site-footer nav a:hover { color: white; }
.site-footer small { grid-column: 2; grid-row: 2; font-size: .67rem; text-align: right; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 820px; }
  .hero h1 { font-size: clamp(3.8rem, 7.5vw, 6rem); }
  .hero-facts li { min-width: 100px; padding-right: 14px; margin-right: 14px; }
  .mode-grid { grid-template-columns: repeat(3, 1fr); }
  .mode-card-featured { grid-column: span 2; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  :root { --content: min(100% - 28px, 680px); }
  .site-header { top: 10px; width: calc(100% - 20px); min-height: 62px; }
  .brand { width: 122px; }
  .brand img { height: 40px; }
  .menu-toggle { display: grid; width: 42px; height: 42px; place-content: center; gap: 5px; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: white; background: rgba(255,255,255,.06); }
  .menu-toggle span:not(.sr-only) { width: 18px; height: 2px; border-radius: 3px; background: currentColor; }
  .primary-nav { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: grid; gap: 0; padding: 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(3,10,37,.97); box-shadow: 0 20px 50px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav > a { padding: 13px; }
  .primary-nav .button { margin-top: 6px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 6px; padding-top: 128px; padding-bottom: 120px; text-align: center; }
  .hero-copy { max-width: 680px; margin: 0 auto; padding: 0; }
  .eyebrow, .hero-actions, .hero-facts { justify-content: center; }
  .hero-lede { margin-right: auto; margin-left: auto; }
  .hero-visual { grid-row: 1; width: min(570px, 100%); margin: 0 auto -15px; }
  .scene-shell { margin: 0 auto; }
  .chip-one { right: 3%; }
  .chip-two { left: 3%; }
  .trust-strip { align-items: flex-start; flex-direction: column; }
  .trust-strip div { justify-content: flex-start; }
  .section { padding: 96px 0; }
  .section-heading { margin-bottom: 44px; }
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .mode-card { min-height: 300px; }
  .learn-section { grid-template-columns: 1fr; gap: 10px; padding-top: 80px; padding-bottom: 90px; }
  .learn-art { min-height: 540px; }
  .learn-copy { max-width: 680px; }
  .progress-section { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 540px) {
  h2 { font-size: clamp(2.5rem, 13vw, 3.7rem); }
  .hero { padding-right: 14px; padding-left: 14px; }
  .hero h1 { font-size: clamp(3.6rem, 19vw, 5.2rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions { flex-direction: column; gap: 18px; }
  .hero-facts { gap: 0; margin-top: 38px; }
  .hero-facts li { min-width: 0; flex: 1; padding: 0 9px; margin: 0; }
  .hero-facts strong { font-size: 1.2rem; }
  .hero-facts span { font-size: .57rem; }
  .scene-shell { width: 108%; margin-left: -4%; }
  .floating-chip { min-width: 90px; padding: 10px 13px; border-radius: 13px; }
  .floating-chip strong { font-size: 1rem; }
  .chip-one { top: 12%; right: 0; }
  .chip-two { left: 0; bottom: 15%; }
  .trust-strip { padding: 20px; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card, .mode-card-featured { grid-column: auto; min-height: 290px; }
  .mode-card-featured img { width: 62%; }
  .mode-card-featured p { max-width: 60%; }
  .learn-art { min-height: 440px; }
  .lesson-orbit { transform: scale(.82); }
  .orbit-one { right: -4%; }
  .orbit-two { left: -5%; }
  .orbit-three { right: -5%; }
  .learning-list > div { grid-template-columns: 40px 1fr; padding: 14px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: 220px; }
  .benefit-icon { margin-bottom: 28px; }
  .progress-panel { padding: 24px 18px; }
  .progress-stats strong { font-size: 1.05rem; }
  .progress-stats span { font-size: .56rem; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { margin: 0 auto; }
  .footer-brand img { object-position: center; }
  .site-footer nav, .site-footer small { grid-column: 1; grid-row: auto; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
