:root {
  --ink: #0a110d;
  --ink-soft: #4f5852;
  --paper: #f6f7f3;
  --white: #ffffff;
  --green: #23d86b;
  --green-deep: #0a6b35;
  --mint: #dff8e8;
  --line: rgba(10, 17, 13, 0.13);
  --page: min(100% - 36px, 1180px);
  --radius-lg: 34px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; min-width: 320px; overflow-x: clip; background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #147a42; outline-offset: 4px; }

.site-header {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--page);
  margin: 0 auto;
  padding: 18px 0 8px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 720; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.section-shell { width: var(--page); margin-inline: auto; }
.eyebrow, .section-number {
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  min-height: 780px;
  padding: 68px 18px 0;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 24% -35% -12% -35%;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(circle at 50% 30%, #d8f9e4 0, #eaf8ed 38%, transparent 72%);
}
.hero-copy { position: relative; z-index: 3; width: min(100%, 700px); margin: 0 auto; text-align: center; }
.hero h1 {
  max-width: 760px;
  margin: 18px auto 22px;
  font-size: clamp(48px, 13.5vw, 96px);
  font-weight: 590;
  letter-spacing: -0.065em;
  line-height: 0.93;
}
.hero h1 em { color: var(--green-deep); font-style: normal; }
.lede { max-width: 640px; margin: 0 auto; color: var(--ink-soft); font-size: 18px; line-height: 1.55; }
.play-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin-top: 28px;
  padding: 10px 22px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 14px 36px rgba(10, 17, 13, 0.15);
  font-size: 20px;
  font-weight: 730;
  line-height: 1.05;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.play-button:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(10, 17, 13, 0.2); }
.play-button small { display: block; margin-bottom: 3px; font-size: 9px; font-weight: 650; letter-spacing: 0.14em; }
.play-symbol { color: var(--green); font-size: 22px; }
.hero-visual { position: relative; width: min(92vw, 420px); height: 510px; margin: 56px auto 0; }
.phone-shot { position: relative; z-index: 2; width: 100%; filter: drop-shadow(0 28px 34px rgba(8, 21, 13, 0.2)); }
.hero-phone { width: 310px; margin: 0 auto; transform: rotate(-4deg); transform-origin: 50% 70%; }
.hero-orbit { position: absolute; z-index: -1; border: 1px solid rgba(10, 107, 53, 0.22); border-radius: 50%; }
.orbit-one { width: 430px; height: 250px; left: 50%; top: 110px; transform: translateX(-50%) rotate(-11deg); }
.orbit-two { width: 350px; height: 390px; left: 50%; top: 30px; transform: translateX(-50%) rotate(18deg); }
.quality-note {
  position: absolute;
  z-index: 4;
  right: 0;
  top: 110px;
  display: grid;
  gap: 2px;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 15px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 12px 34px rgba(10, 17, 13, 0.12);
  backdrop-filter: blur(14px);
}
.quality-note strong { font-size: 12px; }
.quality-note span { color: var(--ink-soft); font-size: 10px; }

.opening-statement { padding-block: 110px 120px; }
.opening-statement h2, .section-heading h2, .feature-text h2, .final-content h2 {
  margin-top: 14px;
  font-size: clamp(42px, 11vw, 84px);
  font-weight: 580;
  letter-spacing: -0.06em;
  line-height: 0.98;
}
.opening-statement h2 span { color: var(--green-deep); }
.opening-statement > p:last-child, .section-heading > p:last-of-type { max-width: 610px; margin-top: 22px; color: var(--ink-soft); font-size: 18px; line-height: 1.55; }

.rail-section { position: relative; padding-block: 92px 110px; overflow: hidden; }
.grid-styles { background: var(--white); }
.section-heading { margin-bottom: 42px; }
.section-heading h2 { max-width: 850px; }
.swipe-hint { display: block; margin-top: 24px; color: var(--green-deep); font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.card-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82vw, 360px);
  gap: 18px;
  padding: 18px max(18px, calc((100vw - 1180px) / 2)) 34px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 17, 13, 0.25) transparent;
}
.card-rail::-webkit-scrollbar { height: 6px; }
.card-rail::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(10, 17, 13, 0.22); }
.rail-card {
  position: relative;
  display: grid;
  min-height: 590px;
  padding: 24px 22px 26px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #eef8f1;
  scroll-snap-align: start;
  box-shadow: 0 22px 50px rgba(10, 17, 13, 0.08);
}
.rail-card:nth-child(even) { background: #eef0fb; }
.rail-image { position: relative; height: 410px; }
.rail-image img { width: 205px; margin: -28px auto 0; filter: drop-shadow(0 22px 24px rgba(0,0,0,0.18)); }
.tilt-left .rail-image img { transform: rotate(-3.5deg); }
.tilt-right .rail-image img { transform: rotate(3deg); }
.rail-copy { align-self: end; position: relative; z-index: 3; }
.rail-copy span { color: var(--green-deep); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; }
.rail-copy h3 { margin-top: 3px; font-size: 32px; font-weight: 650; letter-spacing: -0.04em; }
.rail-copy p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }

.dark-section { background: #0b110e; color: var(--white); }
.dark-section .section-number { color: #53ea8d; }
.dark-section .section-heading > p:last-of-type { color: #b7c0bb; }
.dark-section .swipe-hint { color: #53ea8d; }
.dark-section .card-rail { scrollbar-color: rgba(255,255,255,0.28) transparent; }
.dark-section .card-rail::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.28); }
.extra-regions { padding-bottom: 128px; }
.extra-regions .rail-card { background: #151f1a; color: var(--white); box-shadow: none; }
.extra-regions .rail-copy p { color: #b9c3bd; }
.extra-regions .rail-copy span { color: #6af09d; }
.extra-regions .rail-image::before {
  content: "";
  position: absolute;
  inset: 35px 10px 50px;
  border-radius: 50%;
  background: rgba(73, 130, 255, 0.18);
  filter: blur(18px);
}
.extra-regions .accent-indigo .rail-image::before { background: rgba(114, 92, 255, 0.2); }
.extra-regions .accent-yellow .rail-image::before { background: rgba(255, 211, 67, 0.17); }
.extra-regions .accent-mint .rail-image::before { background: rgba(59, 229, 148, 0.18); }
.extra-regions .accent-orange .rail-image::before { background: rgba(255, 143, 72, 0.18); }
.extra-regions .accent-pink .rail-image::before { background: rgba(255, 91, 153, 0.18); }

.feature-split { display: grid; gap: 56px; padding-block: 108px; }
.feature-text { position: relative; z-index: 5; }
.feature-text h2 { margin-bottom: 24px; }
.feature-text > p:not(.section-number):not(.mega-stat):not(.feature-lede):not(.continuity-signoff) { color: var(--ink-soft); font-size: 17px; line-height: 1.58; }
.feature-lede { margin-bottom: 14px; font-size: 20px; font-weight: 650; line-height: 1.4; letter-spacing: -0.02em; }
.mega-stat { margin: 14px 0 -4px; font-size: clamp(86px, 24vw, 180px); font-weight: 720; letter-spacing: -0.08em; line-height: 0.9; }
.mega-stat span { color: var(--green); }
.scale-story h2 { max-width: 680px; font-size: clamp(36px, 9vw, 66px); }
.feature-art { position: relative; width: min(100%, 410px); min-height: 550px; margin-inline: auto; }
.feature-art .phone-shot { width: 270px; margin-inline: auto; }
.scale-art { display: grid; align-items: center; min-height: 590px; border-radius: var(--radius-lg); background: var(--mint); overflow: hidden; }
.scale-art .phone-shot { transform: rotate(4deg) translateY(28px); }
.soft-shape { position: absolute; width: 290px; height: 290px; border: 58px solid rgba(35, 216, 107, 0.2); border-radius: 42% 58% 55% 45%; transform: rotate(22deg); }

.classics-story { padding-block: 110px; overflow: hidden; background: #e9e1d1; }
.classics-inner, .tutorial-inner, .continuity-inner { display: grid; gap: 60px; }
.classics-story .section-number { color: #70582e; }
.classics-story .feature-text > p:last-child { color: #514a3d; }
.classics-art { min-height: 590px; }
.classics-art::before { content: ""; position: absolute; inset: 28px 0 45px; border: 1px solid rgba(74,59,36,0.25); border-radius: 50% 50% 42% 58%; transform: rotate(-8deg); }
.classics-art .phone-shot { transform: rotate(-4deg); }
.archive-label { position: absolute; z-index: 4; right: 2px; top: 105px; padding: 12px 15px; border: 1px solid rgba(74,59,36,0.34); background: rgba(245,239,225,0.9); color: #5c4829; font-size: 10px; font-weight: 800; letter-spacing: 0.16em; line-height: 1.5; transform: rotate(5deg); }

.help-story { background: #effbf2; }
.help-art { min-height: 610px; padding-top: 20px; }
.help-art .phone-shot { transform: rotate(3.5deg); }
.logic-line { position: absolute; z-index: 3; border: 2px solid rgba(9,107,52,0.26); border-radius: 24px; }
.line-one { width: 140px; height: 140px; left: 10px; top: 120px; transform: rotate(16deg); }
.line-two { width: 190px; height: 86px; right: 0; top: 330px; transform: rotate(-12deg); }

.tutorial-story { padding-block: 110px; overflow: hidden; }
.tutorial-story .feature-text > p:last-child { color: #fdf5f0; font-size: 17px; line-height: 1.58; }
.tutorial-art { min-height: 620px; }
.tutorial-art .phone-shot { transform: rotate(-3.5deg); }
.lesson-card { position: absolute; z-index: 4; padding: 12px 15px; border: 1px solid rgba(255,255,255,0.18); border-radius: 13px; background: rgba(32,45,38,0.88); color: #e6eee9; font-size: 11px; font-weight: 700; backdrop-filter: blur(10px); }
.lesson-one { left: 0; top: 130px; transform: rotate(-5deg); }
.lesson-two { right: 0; top: 375px; transform: rotate(4deg); }

.themes-section { background: #f2f1ee; }
.theme-rail { grid-auto-columns: min(72vw, 300px); }
.theme-card { min-height: 520px; padding: 24px 18px 20px; border-radius: var(--radius-lg); background: #e7e8e4; scroll-snap-align: start; overflow: hidden; }
.theme-card h3 { margin-top: 10px; font-size: 25px; font-weight: 650; letter-spacing: -0.04em; }
.theme-image { height: 430px; }
.theme-image img { width: 210px; margin: -23px auto 0; filter: drop-shadow(0 20px 22px rgba(0,0,0,0.15)); }
.theme-card:nth-child(odd) .theme-image img { transform: rotate(-3deg); }
.theme-card:nth-child(even) .theme-image img { transform: rotate(3deg); }
.theme-red { background: #f8dfdf; }
.theme-green { background: #dff4e3; }
.theme-blue { background: #e0e8f8; }

.handwriting-story { background: var(--white); }
.handwriting-art { min-height: 620px; }
.handwriting-art .phone-shot { transform: rotate(3deg); }
.drawn-stroke { position: absolute; z-index: 4; width: 92px; height: 170px; left: 25px; top: 170px; border-right: 7px solid var(--green); border-bottom: 7px solid var(--green); border-radius: 48% 38% 55% 42%; transform: rotate(35deg); opacity: 0.75; }

.continuity-story { padding-block: 110px; overflow: hidden; background: linear-gradient(150deg, #dff8e8 0%, #f7faf7 65%); }
.continuity-art { min-height: 620px; }
.continuity-art .phone-shot { transform: rotate(-3deg); }
.years-badge { position: absolute; z-index: 4; right: -2px; top: 135px; display: grid; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(5deg); }
.years-badge strong { color: var(--green); font-size: 30px; letter-spacing: -0.04em; line-height: 1; }
.continuity-signoff { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 700; line-height: 1.4; }

.final-cta { position: relative; display: grid; min-height: 760px; padding: 110px 18px; overflow: hidden; place-items: center; background: #07100b; color: var(--white); text-align: center; }
.final-pattern { position: absolute; display: grid; grid-template-columns: repeat(3, 150px); transform: rotate(-9deg); opacity: 0.14; }
.final-pattern span { display: grid; aspect-ratio: 1; border: 1px solid #c9d8ce; place-items: center; font-size: 68px; font-weight: 300; }
.final-content { position: relative; z-index: 3; }
.final-content > img { margin: 0 auto 26px; border-radius: 18px; }
.final-content .eyebrow { color: var(--green); }
.final-content h2 { max-width: 790px; margin-inline: auto; }
.final-content > p:not(.eyebrow) { max-width: 540px; margin: 22px auto 0; color: #bec8c1; font-size: 18px; line-height: 1.55; }
.play-button-light { background: var(--white); color: var(--ink); }

.site-footer { display: grid; gap: 22px; justify-items: start; padding: 40px max(18px, calc((100vw - 1180px) / 2)); background: #07100b; color: #aeb8b1; font-size: 13px; }
.site-footer .brand { color: var(--white); }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 720px) {
  :root { --page: min(100% - 80px, 1180px); }
  .site-header { padding-top: 22px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr); align-items: center; min-height: 800px; padding: 60px max(40px, calc((100vw - 1180px) / 2)) 0; }
  .hero-copy { margin: 0; text-align: left; }
  .hero h1 { margin-inline: 0; }
  .lede { margin-inline: 0; }
  .hero-visual { width: 420px; margin-top: 80px; }
  .hero-phone { width: 345px; }
  .opening-statement { padding-block: 150px; }
  .section-heading { margin-bottom: 54px; }
  .card-rail { grid-auto-columns: min(42vw, 390px); gap: 26px; scroll-padding-inline: 40px; }
  .rail-card { min-height: 650px; padding: 30px; }
  .rail-image { height: 465px; }
  .rail-image img { width: 230px; }
  .theme-rail { grid-auto-columns: min(32vw, 320px); }
  .feature-split, .classics-inner, .tutorial-inner, .continuity-inner { grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr); align-items: center; gap: 8vw; padding-block: 150px; }
  .classics-story, .tutorial-story, .continuity-story { padding-block: 0; }
  .feature-art { width: 410px; }
  .feature-art .phone-shot { width: 300px; }
  .site-footer { grid-template-columns: 1fr auto auto; align-items: center; justify-items: start; gap: 34px; }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: 92px; }
  .card-rail { grid-auto-columns: 390px; }
  .theme-rail { grid-auto-columns: 310px; }
  .section-heading > p:last-of-type, .opening-statement > p:last-child { font-size: 20px; }
}

@media (max-width: 370px) {
  :root { --page: calc(100% - 28px); }
  .hero { padding-inline: 14px; }
  .hero h1 { font-size: 44px; }
  .lede { font-size: 16px; }
  .hero-visual { width: 100%; }
  .hero-phone { width: 280px; }
  .quality-note { right: -4px; }
  .card-rail { grid-auto-columns: 84vw; padding-inline: 14px; }
  .feature-text h2, .opening-statement h2, .section-heading h2, .final-content h2 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal, .js .reveal.is-visible { opacity: 1; transform: none; }
  .phone-shot, .rail-image img, .theme-image img, .lesson-card, .archive-label, .years-badge { transform: none !important; }
}
