:root {
  --ink: #2d2149;
  --ink-soft: #6f6381;
  --paper: #fffaf2;
  --paper-blue: #eff8ff;
  --purple: #734dcc;
  --purple-dark: #3a216a;
  --night: #21163e;
  --gold: #ffd76e;
  --white: #ffffff;
  --page-width: 1240px;
  --shadow: 0 28px 78px rgb(45 33 73 / 18%);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--night);
  color: var(--white);
  font-weight: 850;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(var(--page-width), calc(100% - 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transform: translateX(-50%);
}

.brand {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 8px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 22px;
  background: rgb(255 255 255 / 88%);
  color: var(--ink);
  box-shadow: 0 14px 36px rgb(38 52 102 / 18%);
  text-decoration: none;
}

.brand img {
  width: 43px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgb(45 33 73 / 18%));
}

.brand span { display: grid; }
.brand strong { font-size: 0.98rem; font-weight: 950; line-height: 1.05; }
.brand small { margin-top: 3px; color: var(--ink-soft); font-size: 0.73rem; font-weight: 780; }

.header-store {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 999px;
  background: var(--night);
  color: var(--white);
  box-shadow: 0 14px 34px rgb(31 24 62 / 26%);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.header-store:hover,
.header-store:focus-visible { background: var(--purple-dark); }

.hero {
  position: relative;
  min-height: max(760px, 100svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #1883e9;
}

.hero-background,
.hero-background img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-background { z-index: -3; }
.hero-background img { object-fit: cover; object-position: center; }

.hero-shade {
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 58%, rgb(29 39 110 / 62%) 0%, rgb(29 39 110 / 25%) 29%, transparent 52%),
    linear-gradient(0deg, rgb(33 22 62 / 18%) 0%, transparent 42%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 104px;
  color: var(--white);
  text-align: center;
  text-shadow: 0 3px 22px rgb(14 43 98 / 30%);
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  background: rgb(27 51 116 / 26%);
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: clamp(3.8rem, 6.3vw, 6.5rem);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-lead {
  max-width: 570px;
  margin: 25px auto 0;
  font-size: clamp(1.04rem, 1.55vw, 1.28rem);
  font-weight: 720;
  line-height: 1.52;
}

.store-button {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-width: 190px;
  margin-top: 28px;
  padding: 10px 24px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgb(33 22 62 / 23%);
  line-height: 1.04;
  text-decoration: none;
}

.store-button span { font-size: 0.7rem; font-weight: 750; }
.store-button strong { margin-top: 3px; font-size: 1.05rem; font-weight: 950; }
.store-button-light { background: var(--white); color: var(--night); text-shadow: none; }
.store-button-gold { background: var(--gold); color: var(--night); }
.store-button:hover,
.store-button:focus-visible { outline: 3px solid rgb(255 255 255 / 65%); outline-offset: 4px; }

.trust-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 13px;
  margin: 19px 0 0;
  font-size: 0.78rem;
  font-weight: 850;
  justify-content: center;
}

.trust-line span { display: inline-flex; align-items: center; }
.trust-line span:not(:last-child)::after { content: "•"; margin-left: 13px; color: var(--gold); }

.hero-rocket {
  position: absolute;
  z-index: 1;
  right: 7%;
  bottom: 5%;
  width: clamp(105px, 10vw, 168px);
  height: auto;
  filter: drop-shadow(0 22px 24px rgb(57 35 96 / 30%));
  animation: rocket-arrive 1250ms cubic-bezier(0.16, 0.84, 0.3, 1) 180ms both;
}

@keyframes rocket-arrive {
  0% { opacity: 0; transform: translate(-46vw, 30vh) rotate(-12deg) scale(0.68); }
  42% { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
}

.learning-section {
  width: min(var(--page-width), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(86px, 10vw, 142px) 0;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto clamp(38px, 5vw, 64px);
  text-align: center;
}

.section-kicker { color: var(--purple); }

.section-heading h2,
.proof-copy h2,
.privacy-copy h2,
.final-action h2 {
  margin: 13px 0 0;
  font-size: clamp(2.7rem, 5.4vw, 5.2rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.3vw, 30px);
}

.learning-world {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(26px, 3vw, 42px);
  background: #ddecff;
  box-shadow: var(--shadow);
}

.learning-world::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(0deg, rgb(28 20 61 / 76%) 0%, transparent 100%);
  pointer-events: none;
}

.learning-world img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.learning-world figcaption {
  position: absolute;
  z-index: 1;
  right: 30px;
  bottom: 26px;
  left: 30px;
  color: var(--white);
  font-size: clamp(1.45rem, 2.5vw, 2.45rem);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 1;
  text-shadow: 0 4px 18px rgb(22 15 50 / 42%);
}

.proof-section {
  width: min(var(--page-width), calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
  margin: 0 auto clamp(86px, 10vw, 142px);
  padding: clamp(34px, 5vw, 70px);
  overflow: hidden;
  border: 1px solid rgb(89 69 135 / 9%);
  border-radius: clamp(34px, 5vw, 58px);
  background:
    radial-gradient(circle at 90% 8%, rgb(112 207 255 / 38%), transparent 32%),
    linear-gradient(145deg, #f3ecff 0%, #fffaf2 68%);
}

.proof-copy .section-kicker { color: #6250b0; }
.proof-copy h2 { max-width: 450px; font-size: clamp(3rem, 5.2vw, 5.4rem); }
.proof-copy > p:last-child { max-width: 440px; margin: 22px 0 0; color: var(--ink-soft); font-size: 1.08rem; font-weight: 720; line-height: 1.58; }

.proof-visual {
  display: block;
  overflow: hidden;
  border: 8px solid var(--white);
  border-radius: 30px;
  background: #8ed8f5;
  box-shadow: 0 30px 70px rgb(63 42 105 / 24%);
}

.proof-visual img { width: 100%; height: auto; }

.trust-section {
  position: relative;
  width: min(var(--page-width), calc(100% - 48px));
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(250px, 0.75fr);
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  margin: 0 auto 46px;
  padding: clamp(38px, 5vw, 66px);
  overflow: hidden;
  border-radius: clamp(34px, 5vw, 58px);
  background:
    radial-gradient(circle at 14% 18%, rgb(126 87 218 / 48%), transparent 30%),
    radial-gradient(circle at 88% 90%, rgb(37 139 224 / 28%), transparent 33%),
    var(--night);
  color: var(--white);
  box-shadow: 0 28px 80px rgb(35 22 66 / 24%);
}

.trust-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: radial-gradient(circle, rgb(255 215 110 / 76%) 0 1px, transparent 1.5px);
  background-size: 56px 56px;
  pointer-events: none;
}

.trust-section > * { position: relative; z-index: 1; }
.trust-rocket { width: 132px; height: auto; filter: drop-shadow(0 20px 20px rgb(0 0 0 / 30%)); }
.trust-section .section-kicker { color: var(--gold); }
.privacy-copy h2 { font-size: clamp(2.8rem, 4.8vw, 4.7rem); }
.privacy-copy > p:not(.section-kicker) { max-width: 570px; margin: 20px 0 0; color: rgb(255 255 255 / 82%); font-size: 1rem; font-weight: 680; line-height: 1.6; }

.privacy-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 900;
  text-underline-offset: 4px;
}

.final-action {
  padding-left: clamp(24px, 3.5vw, 48px);
  border-left: 1px solid rgb(255 255 255 / 18%);
}

.final-action h2 { font-size: clamp(2.2rem, 3.6vw, 3.7rem); }
.final-action p { margin: 13px 0 0; color: rgb(255 255 255 / 76%); font-weight: 750; }
.final-action .store-button { margin-top: 22px; }

.site-footer {
  width: min(var(--page-width), calc(100% - 48px));
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 780;
}

.footer-brand { color: var(--ink); font-weight: 900; text-decoration: none; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { text-underline-offset: 4px; }

a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

@media (max-width: 900px) {
  .hero-copy { width: min(560px, calc(100% - 40px)); }
  .hero h1 { font-size: clamp(3.8rem, 8.8vw, 5.7rem); }
  .proof-section { grid-template-columns: 1fr; text-align: center; }
  .proof-copy h2,
  .proof-copy > p:last-child { margin-right: auto; margin-left: auto; }
  .proof-visual { max-width: 760px; margin: 0 auto; }
  .trust-section { grid-template-columns: 110px minmax(0, 1fr); }
  .final-action { grid-column: 1 / -1; padding: 28px 0 0; border-top: 1px solid rgb(255 255 255 / 18%); border-left: 0; text-align: center; }
}

@media (min-width: 601px) and (max-width: 900px) and (orientation: portrait) {
  .hero {
    min-height: 820px;
    background: linear-gradient(180deg, #1694ee 0%, #a892df 58%, #ffc882 100%);
  }
  .hero-background img {
    object-fit: contain;
    object-position: center 58%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 100%);
  }
  .hero-shade {
    background: radial-gradient(ellipse at 50% 50%, rgb(29 39 110 / 66%) 0%, rgb(29 39 110 / 24%) 32%, transparent 56%);
  }
}

@media (max-width: 700px), (orientation: portrait) and (max-width: 900px) {
  .site-header { top: 12px; width: calc(100% - 24px); }
  .brand { min-height: 56px; padding: 4px 11px 4px 6px; border-radius: 18px; }
  .brand img { width: 38px; height: 44px; }
  .brand strong { font-size: 0.78rem; }
  .brand small { font-size: 0.62rem; }
  .header-store { min-height: 46px; padding: 0 17px; font-size: 0.78rem; }

  .hero { min-height: max(820px, 100svh); align-items: flex-start; }
  .hero-background img { object-position: center bottom; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgb(8 50 127 / 78%) 0%, rgb(15 82 158 / 52%) 28%, transparent 53%),
      linear-gradient(0deg, rgb(33 22 62 / 16%), transparent 32%);
  }
  .hero-copy { width: calc(100% - 36px); margin: 0 auto; padding-top: 92px; text-align: center; }
  .eyebrow { min-height: 30px; font-size: 0.68rem; }
  .hero h1 { margin-top: 16px; font-size: clamp(3rem, 13vw, 4.35rem); line-height: 0.88; }
  .hero-lead { max-width: 500px; margin: 17px auto 0; font-size: 0.94rem; line-height: 1.42; }
  .store-button { min-height: 54px; min-width: 178px; margin-top: 18px; padding: 8px 21px; border-radius: 16px; }
  .store-button strong { font-size: 0.98rem; }
  .trust-line { justify-content: center; margin-top: 14px; font-size: 0.68rem; }
  .hero-rocket { right: 4%; bottom: 4%; width: 94px; }

  .learning-section,
  .proof-section,
  .trust-section,
  .site-footer { width: calc(100% - 28px); }
  .learning-section { padding: 78px 0; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: clamp(2.65rem, 12vw, 4rem); }
  .learning-grid { grid-template-columns: 1fr; gap: 16px; }
  .learning-world { border-radius: 28px; }
  .learning-world figcaption { right: 22px; bottom: 21px; left: 22px; font-size: clamp(1.55rem, 7vw, 2.2rem); }

  .proof-section { margin-bottom: 78px; padding: 30px 20px 20px; border-radius: 34px; }
  .proof-copy h2 { font-size: clamp(2.8rem, 12vw, 4.4rem); }
  .proof-copy > p:last-child { margin-top: 17px; font-size: 0.96rem; }
  .proof-visual { width: min(390px, 100%); border-width: 6px; border-radius: 25px; }

  .trust-section { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; padding: 34px 24px; border-radius: 34px; text-align: center; }
  .trust-rocket { width: 90px; margin: 0 auto; }
  .privacy-copy > p:not(.section-kicker) { margin-right: auto; margin-left: auto; }
  .final-action { grid-column: auto; }
  .final-action .store-button { width: min(260px, 100%); }
  .site-footer { min-height: 120px; flex-direction: column; justify-content: center; text-align: center; }
  .site-footer nav { justify-content: center; }
}

@media (max-width: 380px) {
  .brand span { display: none; }
  .brand { width: 52px; padding: 4px 6px; justify-content: center; }
  .trust-line { gap: 6px 9px; }
  .trust-line span:not(:last-child)::after { margin-left: 9px; }
  .hero-copy { width: calc(100% - 22px); }
  .hero h1 { font-size: 2.45rem; letter-spacing: -0.055em; }
  .hero-lead { font-size: 0.82rem; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .site-header { top: 8px; }
  .brand { min-height: 46px; padding-top: 2px; padding-bottom: 2px; }
  .brand img { width: 32px; height: 37px; }
  .header-store { min-height: 42px; }
  .hero { min-height: 100svh; }
  .hero-copy { width: min(680px, calc(100% - 44px)); padding-top: 62px; }
  .eyebrow { min-height: 27px; font-size: 0.64rem; }
  .hero h1 { margin-top: 8px; font-size: clamp(2.45rem, 5.1vw, 3.2rem); line-height: 0.84; }
  .hero-lead { max-width: 620px; margin-top: 8px; font-size: 0.75rem; line-height: 1.3; }
  .store-button { min-height: 44px; min-width: 162px; margin-top: 10px; padding: 5px 18px; }
  .store-button span { font-size: 0.58rem; }
  .store-button strong { font-size: 0.9rem; }
  .trust-line { display: inline-flex; margin: 10px 0 0 13px; font-size: 0.59rem; vertical-align: middle; }
  .hero-rocket { width: 84px; }
}

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

@media (prefers-contrast: more) {
  .brand,
  .learning-world,
  .proof-section,
  .proof-visual,
  .trust-section { border: 2px solid currentColor; }
  .hero-shade { background: linear-gradient(90deg, rgb(11 36 91 / 90%) 0%, rgb(11 36 91 / 55%) 42%, transparent 64%); }
}
