:root {
  color-scheme: dark;
  --bg: #0c0a14;
  --surface: rgba(25, 22, 38, 0.82);
  --text: #f8f7fc;
  --muted: #b4aec5;
  --border: rgba(255, 255, 255, 0.1);
  --violet: #8b72f5;
  --blue: #5b96ff;
  --cyan: #47d8f0;
  --green: #2ce0a0;
  --font-display: "Space Grotesk", Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: var(--font-body); }
a { color: inherit; }
svg { display: block; }

.landing {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% -18%, rgba(108, 76, 241, 0.21), transparent 36rem), var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.ambient { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .18; pointer-events: none; }
.ambient-one { top: 28rem; left: -10rem; width: 28rem; height: 28rem; background: var(--violet); }
.ambient-two { top: 75rem; right: -14rem; width: 30rem; height: 30rem; background: var(--blue); }

.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: block; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; object-fit: cover; box-shadow: inset 0 1px rgba(255,255,255,.1), 0 10px 30px rgba(77,48,185,.14); }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font: 700 18px/1 var(--font-display); letter-spacing: -.03em; }
.brand-copy small { margin-top: 5px; color: #827c95; font: 700 9px/1 var(--font-body); letter-spacing: .18em; }
.header-cta { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.035); color: #eae7f4; font-size: 13px; font-weight: 650; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.header-cta:hover { transform: translateY(-2px); border-color: rgba(139,114,245,.5); background: rgba(139,114,245,.08); }

.hero { min-height: 760px; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr); align-items: center; gap: 40px; padding-block: 42px 88px; position: relative; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 18px; }
.pill { width: fit-content; display: flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(139,114,245,.2); border-radius: 999px; background: rgba(139,114,245,.075); color: #c9c1f9; font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(44,224,160,.09), 0 0 18px rgba(44,224,160,.55); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); }
.hero h1 { margin-top: 24px; max-width: 740px; font-size: clamp(54px, 7.3vw, 92px); line-height: .97; letter-spacing: -.067em; }
.hero h1 span { color: transparent; background: linear-gradient(95deg, #a48fff 4%, #6da4ff 57%, #59d5e8); -webkit-background-clip: text; background-clip: text; }
.hero-lead { max-width: 625px; margin: 26px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.store-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store-button { min-width: 182px; height: 60px; display: inline-flex; align-items: center; gap: 11px; padding: 8px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(255,255,255,.96); color: #0e0c15; text-decoration: none; box-shadow: 0 12px 35px rgba(0,0,0,.24); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.store-button:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.3), 0 0 0 1px rgba(139,114,245,.15); }
.store-button svg { width: 29px; height: 29px; flex: 0 0 auto; fill: currentColor; }
.store-button span { display: flex; flex-direction: column; }
.store-button small { font-size: 9px; line-height: 1.2; letter-spacing: .04em; }
.store-button strong { font: 600 19px/1.18 var(--font-display); letter-spacing: -.03em; }
.micro-proof { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0 0; color: #777186; font-size: 11px; font-weight: 600; }

.hero-visual { min-height: 610px; display: grid; place-items: center; position: relative; perspective: 1200px; }
.hero-visual::before { content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%; background: radial-gradient(circle, rgba(108,76,241,.27), rgba(91,150,255,.07) 50%, transparent 71%); filter: blur(4px); }
.orbit { position: absolute; border: 1px solid rgba(139,114,245,.12); border-radius: 50%; }
.orbit-one { width: 490px; height: 490px; }
.orbit-two { width: 580px; height: 580px; border-color: rgba(91,150,255,.07); }
.phone { width: 286px; height: 590px; padding: 9px; position: relative; border: 1px solid rgba(255,255,255,.22); border-radius: 48px; background: #07060b; box-shadow: 0 55px 100px rgba(0,0,0,.56), 0 0 0 7px rgba(255,255,255,.025), inset 0 1px 1px rgba(255,255,255,.35); transform: rotateY(-7deg) rotateX(2deg) rotateZ(1.5deg); }
.phone-island { position: absolute; z-index: 3; top: 18px; left: 50%; width: 86px; height: 24px; transform: translateX(-50%); border-radius: 999px; background: #07060a; }
.phone-screen { height: 100%; overflow: hidden; padding: 38px 16px 16px; border-radius: 40px; background: linear-gradient(170deg, #f8f7fc, #eeebfb 67%, #e6e0fb); color: #17141e; }
.app-top, .lesson-meta { display: flex; align-items: center; justify-content: space-between; }
.mini-mark { width: 25px; height: 25px; display: block; border-radius: 7px; object-fit: cover; }
.streak { padding: 5px 9px; border-radius: 999px; background: #fff; color: #5c566b; font-size: 10px; font-weight: 700; box-shadow: 0 4px 16px rgba(42,29,91,.08); }
.lesson-meta { margin-top: 22px; color: #6c4cf1; font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.progress { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 9px; background: rgba(108,76,241,.12); }
.progress i { display: block; width: 62%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6c4cf1, #3b7bf5); }
.question { margin: 26px 0 8px; color: #6e687a; font-size: 12px; }
.equation { min-height: 83px; display: grid; place-items: center; padding: 12px; border: 1px solid rgba(108,76,241,.11); border-radius: 18px; background: rgba(255,255,255,.78); font: 600 20px/1.3 Georgia, serif; box-shadow: 0 9px 30px rgba(52,35,118,.06); }
.answer-card { min-height: 48px; display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 11px 14px; border: 1px solid #ded9ec; border-radius: 14px; background: rgba(255,255,255,.7); font: 500 13px/1.3 Georgia, serif; }
.answer-card.selected { border-color: #18c98d; background: #ecfcf6; color: #0e7353; box-shadow: 0 0 0 2px rgba(24,201,141,.08); }
.answer-card b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #18c98d; color: #fff; font: 700 12px/1 var(--font-body); }
.coach-card { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 16px; background: linear-gradient(120deg, #6c4cf1, #5476f5); color: #fff; box-shadow: 0 13px 27px rgba(72,53,170,.25); }
.coach-face { width: 36px; height: 36px; display: block; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; object-fit: cover; }
.coach-card p { margin: 0; font-size: 9px; line-height: 1.45; }
.coach-card strong { font-size: 10px; }
.float-card { position: absolute; z-index: 4; padding: 12px 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(24,21,35,.82); box-shadow: 0 20px 50px rgba(0,0,0,.28); backdrop-filter: blur(16px); }
.float-card strong, .float-card span { display: block; }
.float-card strong { font: 700 16px/1.1 var(--font-display); }
.float-card span { margin-top: 4px; color: #8e879d; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.float-xp { right: 2%; top: 22%; color: var(--green); transform: rotate(4deg); }
.float-streak { left: 0; bottom: 23%; color: #ffb067; transform: rotate(-5deg); }

.proof-strip { border-block: 1px solid var(--border); background: rgba(255,255,255,.018); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 30px 16px; border-right: 1px solid var(--border); text-align: center; }
.proof-grid div:last-child { border-right: 0; }
.proof-grid strong { font: 700 29px/1 var(--font-display); letter-spacing: -.04em; }
.proof-grid span { color: #827c92; font-size: 11px; }

.section { padding-block: 132px; }
.section-heading { max-width: 690px; }
.section-heading.compact { max-width: 760px; }
.eyebrow { margin: 0 0 15px; color: var(--violet); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.section-heading h2, .final-cta h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -.055em; }
.section-heading > p:last-child { max-width: 570px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 56px; }
.feature { min-height: 330px; display: flex; flex-direction: column; align-items: flex-start; padding: 34px; position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); box-shadow: inset 0 1px rgba(255,255,255,.03); }
.feature-large { min-height: 390px; grid-column: 1 / -1; display: grid; grid-template-columns: .9fr 1.1fr; align-items: end; gap: 48px; }
.feature-number { position: absolute; top: 24px; right: 28px; color: rgba(255,255,255,.11); font: 700 42px/1 var(--font-display); }
.feature-tag { width: fit-content; margin-bottom: 20px; padding: 6px 9px; border-radius: 8px; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.feature-tag.violet { background: rgba(139,114,245,.13); color: #ac9bff; }
.feature-tag.blue { background: rgba(91,150,255,.12); color: #82b1ff; }
.feature-tag.cyan { background: rgba(71,216,240,.11); color: #6ce2f5; }
.feature h3 { max-width: 430px; font-size: clamp(27px, 3vw, 38px); line-height: 1.08; letter-spacing: -.045em; }
.feature p { max-width: 500px; margin: 16px 0 0; color: #9f98ae; font-size: 15px; line-height: 1.7; }
.verify-visual { display: grid; gap: 10px; width: 100%; }
.verify-visual div { min-height: 64px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: rgba(8,7,14,.38); }
.verify-visual span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: rgba(139,114,245,.11); color: #a18cf9; font: 600 18px/1 Georgia, serif; }
.verify-visual b { color: #d9d5e3; font-size: 12px; font-weight: 600; }
.verify-visual i { color: var(--green); font-size: 10px; font-style: normal; font-weight: 700; }

.courses-section { padding-block: 112px; border-block: 1px solid var(--border); background: linear-gradient(180deg, rgba(139,114,245,.035), rgba(91,150,255,.012)); }
.course-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 42px; }
.course-list span { padding: 12px 16px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.025); color: #c6c0d0; font-size: 13px; }

.final-cta { min-height: 570px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-block: 96px; padding: 68px 30px; position: relative; overflow: hidden; border: 1px solid rgba(139,114,245,.2); border-radius: 36px; background: radial-gradient(circle at 50% 15%, rgba(108,76,241,.22), transparent 45%), rgba(255,255,255,.025); text-align: center; }
.cta-glow { position: absolute; bottom: -210px; width: 500px; height: 350px; border-radius: 50%; background: rgba(91,150,255,.23); filter: blur(80px); }
.final-mark { width: 70px; height: 70px; display: block; margin-bottom: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; object-fit: cover; box-shadow: 0 24px 60px rgba(61,40,154,.3); }
.final-cta > p:not(.eyebrow) { margin: 17px 0 0; color: var(--muted); }
.store-actions.centered { justify-content: center; position: relative; z-index: 2; }

.site-footer { min-height: 130px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-top: 1px solid var(--border); }
.footer-brand .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: #918a9f; font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.site-footer > p { justify-self: end; color: #686273; font-size: 11px; }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 72px; }
  .hero-copy { text-align: center; }
  .pill, .store-actions, .micro-proof { margin-inline: auto; justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-visual { min-height: 610px; }
  .feature-large { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 640px) {
  .ambient { display: none; }
  .wrap { width: min(100% - 28px, 1160px); }
  .site-header { height: 78px; }
  .header-cta { padding: 9px 12px; }
  .hero { gap: 14px; padding-top: 58px; padding-bottom: 64px; }
  .hero h1 { font-size: clamp(48px, 15vw, 70px); }
  .hero-lead { font-size: 16px; }
  .store-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .store-button { width: 100%; justify-content: center; }
  .hero-visual {
    width: calc(100% + 28px);
    min-height: 530px;
    margin: -28px -14px;
    overflow: hidden;
    transform: scale(.88);
  }
  .orbit-one { width: 420px; height: 420px; }
  .orbit-two { width: 500px; height: 500px; }
  .float-xp { right: -4%; }
  .float-streak { left: -5%; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid div:nth-child(2) { border-right: 0; }
  .proof-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .section { padding-block: 88px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-large { grid-column: auto; }
  .feature { min-height: 300px; padding: 26px; }
  .courses-section { padding-block: 82px; }
  .final-cta { min-height: 580px; margin-block: 64px; padding-inline: 20px; }
  .site-footer { grid-template-columns: 1fr auto; padding-block: 32px; }
  .footer-links { order: 3; grid-column: 1 / -1; }
}

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

/* Legal and support pages share this file. */
body:not(.landing) { color-scheme: light dark; background: radial-gradient(circle at 20% 0%, rgba(108,76,241,.15), transparent 30rem), #f1edfe; color: #14131a; line-height: 1.65; }
body:not(.landing) .shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 64px; }
body:not(.landing) header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 48px; }
body:not(.landing) .brand { color: inherit; }
body:not(.landing) .mark { font-size: 34px; line-height: 1; color: #6c4cf1; }
body:not(.landing) .brand strong { display: block; font-size: 18px; }
body:not(.landing) .brand small { display: block; color: #605b73; font-size: 10px; letter-spacing: .12em; }
body:not(.landing) nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
body:not(.landing) nav a { color: #6c4cf1; font-size: 14px; font-weight: 650; text-decoration: none; }
body:not(.landing) main { padding: clamp(24px, 6vw, 52px); border: 1px solid #ddd7f3; border-radius: 28px; background: rgba(255,255,255,.78); box-shadow: 0 20px 60px rgba(31,20,72,.1); backdrop-filter: blur(18px); }
body:not(.landing) .eyebrow { color: #6c4cf1; }
body:not(.landing) h1 { margin: 0; font-size: clamp(38px, 8vw, 64px); line-height: 1.02; }
body:not(.landing) h2 { margin: 36px 0 8px; font-size: 22px; }
body:not(.landing) p, body:not(.landing) li { color: #605b73; }
body:not(.landing) .lead { max-width: 620px; margin: 18px 0 0; font-size: 18px; }
body:not(.landing) .meta { margin: 14px 0 32px; font-size: 13px; }
body:not(.landing) .cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 12px; margin-top: 32px; }
body:not(.landing) .card { padding: 18px; border: 1px solid #ddd7f3; border-radius: 18px; color: inherit; text-decoration: none; }
body:not(.landing) .card strong { display: block; margin-bottom: 4px; }
body:not(.landing) .card span { color: #605b73; font-size: 14px; }
body:not(.landing) .callout { margin-top: 28px; padding: 18px; border-left: 3px solid #6c4cf1; border-radius: 0 14px 14px 0; background: rgba(108,76,241,.08); }
body:not(.landing) footer { padding: 24px 4px 0; color: #605b73; font-size: 12px; text-align: center; }

@media (prefers-color-scheme: dark) {
  body:not(.landing) { background: radial-gradient(circle at 20% 0%, rgba(108,76,241,.15), transparent 30rem), #0e0d14; color: #f5f4fa; }
  body:not(.landing) main { border-color: #2a2836; background: rgba(23,22,31,.9); }
  body:not(.landing) p, body:not(.landing) li, body:not(.landing) .brand small, body:not(.landing) .card span, body:not(.landing) footer { color: #b4afc7; }
  body:not(.landing) .card { border-color: #2a2836; }
}

@media (max-width: 620px) {
  body:not(.landing) header { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
  body:not(.landing) nav { justify-content: flex-start; }
}
