@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap');

:root {
  color-scheme: only light;
  --ink: #1e2925;
  --muted: #66716c;
  --paper: #ffffff;
  --paper-deep: #f5f1e8;
  --white: #ffffff;
  --soft: #fbf9f4;
  --saffron: #f2a900;
  --saffron-dark: #d78600;
  --coral: #e76142;
  --teal: #155b51;
  --line: rgba(30, 41, 37, 0.13);
  --shadow: 0 24px 70px rgba(50, 42, 25, 0.13);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: clip; background: #ffffff; }
body { margin: 0; background: #ffffff; color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; overflow-x: hidden; }
button, a { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(242, 169, 0, 0.45); outline-offset: 3px; }

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border-radius: 14px 14px 14px 4px;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 1.65rem;
  line-height: 1;
}
.brand strong { display: block; font-size: 1.08rem; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--muted); font-size: 0.72rem; margin-top: 1px; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 0.9rem; font-weight: 600; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.nav-cta):hover { color: var(--coral); }
.nav-cta { padding: 11px 17px; background: var(--ink); color: var(--white); border-radius: 999px; }

.section-shell { width: min(1180px, calc(100% - 44px)); margin: 0 auto; }
.hero { min-height: 710px; padding: 78px 0 86px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 80px; align-items: center; position: relative; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 430px;
  left: -280px;
  top: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 169, 0, 0.12), rgba(242, 169, 0, 0) 68%);
  animation: ambientDrift 9s ease-in-out infinite alternate;
}
.hero-copy > * { opacity: 0; animation: riseIn 700ms ease forwards; }
.hero-copy .eyebrow { animation-delay: 80ms; }
.hero-copy h1 { animation-delay: 160ms; }
.hero-copy .hero-lead { animation-delay: 240ms; }
.hero-copy .hero-actions { animation-delay: 320ms; }
.hero-copy .hero-proof { animation-delay: 400ms; }
.eyebrow, .kicker, .overline { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--teal); }
.eyebrow span { width: 31px; height: 2px; background: var(--saffron); }
.hero h1 { margin: 19px 0 24px; font-family: "Newsreader", Georgia, serif; font-weight: 600; font-size: clamp(3.8rem, 6.6vw, 6.8rem); line-height: 0.91; letter-spacing: -0.055em; max-width: 780px; }
.hero h1 em { color: var(--coral); font-weight: inherit; }
.hero-lead { color: var(--muted); font-size: 1.15rem; line-height: 1.75; max-width: 590px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button { min-height: 51px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; border: 0; border-radius: 999px; padding: 0 22px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); box-shadow: 0 12px 30px rgba(30, 41, 37, 0.18); }
.button-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button-secondary:hover { background: var(--white); }
.sound-icon { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron); font-size: 0.65rem; }
.hero-proof { display: flex; gap: 34px; margin-top: 45px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-proof strong, .hero-proof span { display: block; }
.hero-proof strong { font-family: "Newsreader", Georgia, serif; font-size: 1.35rem; }
.hero-proof span { color: var(--muted); font-size: 0.75rem; margin-top: 3px; }
.instructor-credit { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; }
.instructor-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: var(--white); font-family: "Newsreader", Georgia, serif; font-size: 1.15rem; font-weight: 600; box-shadow: 0 8px 20px rgba(231,97,66,0.2); }
.instructor-credit small, .instructor-credit strong { display: block; }
.instructor-credit small { color: var(--muted); font-size: 0.67rem; }
.instructor-credit strong { font-size: 0.88rem; margin-top: 1px; }

.hero-demo { position: relative; min-height: 530px; display: grid; place-items: center; }
.sun-shape { position: absolute; width: 450px; aspect-ratio: 1; border-radius: 50%; background: var(--saffron); box-shadow: inset 0 0 0 28px rgba(255, 255, 255, 0.16); animation: sunBreathe 6s ease-in-out infinite alternate; }
.sun-shape::before, .sun-shape::after { content: ""; position: absolute; border: 1px solid rgba(30, 41, 37, 0.18); border-radius: 50%; inset: -26px; }
.sun-shape::after { inset: -52px; border-style: dashed; animation: ringTurn 28s linear infinite; }
.demo-card { position: relative; z-index: 2; width: min(390px, 86%); min-height: 420px; background: var(--white); border: 1px solid rgba(30, 41, 37, 0.12); border-radius: 28px; padding: 27px 30px; box-shadow: var(--shadow); transform: rotate(-2deg); text-align: center; animation: cardFloat 5.5s ease-in-out infinite; }
.demo-topline { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.level-pill { color: var(--teal); background: rgba(21, 91, 81, 0.09); border-radius: 999px; padding: 6px 10px; }
.demo-context { color: var(--muted); font-size: 0.8rem; margin: 45px 0 12px; }
.demo-phrase { font-family: Georgia, serif; font-size: 4.5rem; line-height: 1; color: var(--teal); }
.demo-roman { font-weight: 700; font-size: 1.28rem; margin-top: 15px; }
.demo-meaning { color: var(--muted); margin-top: 5px; }
.demo-play { margin: 34px auto 0; border: 0; border-radius: 999px; padding: 12px 19px; background: var(--ink); color: var(--white); font-weight: 700; cursor: pointer; }
.demo-play span { color: var(--saffron); margin-right: 7px; }
.waveform { height: 33px; margin-top: 23px; display: flex; justify-content: center; align-items: center; gap: 4px; }
.waveform i { display: block; width: 3px; height: 9px; border-radius: 3px; background: var(--coral); animation: idleWave 1.9s ease-in-out infinite alternate; }
.waveform i:nth-child(3n) { height: 27px; }
.waveform i:nth-child(2n) { height: 17px; }
.waveform i:nth-child(2n) { animation-delay: -0.55s; }
.waveform i:nth-child(3n) { animation-delay: -1.1s; }
.is-speaking .waveform i { animation: wave 0.7s ease-in-out infinite alternate; }
.is-speaking .waveform i:nth-child(2n) { animation-delay: 0.15s; }
.floating-note { position: absolute; z-index: 3; background: var(--teal); color: var(--white); padding: 13px 18px; border-radius: 14px; font-family: "Newsreader", Georgia, serif; font-size: 1.35rem; box-shadow: var(--shadow); }
.floating-note small { display: block; font-family: "DM Sans", sans-serif; font-size: 0.67rem; opacity: 0.75; margin-top: 3px; }
.note-one { left: -3px; bottom: 62px; transform: rotate(4deg); animation: noteFloatOne 4.8s ease-in-out infinite alternate; }
.note-two { right: -10px; top: 58px; background: var(--coral); transform: rotate(3deg); animation: noteFloatTwo 5.4s ease-in-out infinite alternate; }

.marquee { overflow: hidden; background: var(--ink); color: var(--white); padding: 15px 0; white-space: nowrap; }
.marquee div { width: max-content; font-size: 0.76rem; letter-spacing: 0.17em; font-weight: 700; animation: scrollText 25s linear infinite; }
.marquee span { color: var(--saffron); margin: 0 26px; }

.method, .curriculum { padding-top: 105px; padding-bottom: 115px; }
.method { background: linear-gradient(180deg, #ffffff 0%, var(--soft) 48%, #ffffff 100%); max-width: none; width: 100%; padding-left: max(22px, calc((100vw - 1180px) / 2)); padding-right: max(22px, calc((100vw - 1180px) / 2)); }
.section-heading { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 80px; align-items: end; margin-bottom: 48px; }
.section-heading h2, .final-cta h2, .continue-inner h2 { margin: 9px 0 0; font-family: "Newsreader", Georgia, serif; font-size: clamp(2.5rem, 4.5vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; }
.section-heading p { color: var(--muted); line-height: 1.7; margin: 0; }
.kicker { color: var(--coral); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, 0.9); box-shadow: 0 20px 60px rgba(50, 42, 25, 0.05); }
.method-grid article { min-height: 310px; padding: 30px; position: relative; border-right: 1px solid var(--line); }
.method-grid article:last-child { border-right: 0; }
.step-number { position: absolute; top: 28px; right: 28px; color: var(--muted); font-size: 0.72rem; }
.method-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px 18px 18px 5px; background: var(--saffron); color: var(--ink); font-family: Georgia, serif; font-size: 2rem; margin: 36px 0 30px; transition: transform 220ms ease, border-radius 220ms ease; }
.method-grid article:hover .method-icon { transform: translateY(-7px) rotate(-4deg); border-radius: 50%; }
.icon-play { background: var(--coral); color: white; font-family: inherit; font-size: 1rem; }
.icon-game { background: var(--teal); color: white; font-family: inherit; font-size: 1.3rem; }
.method-grid h3 { margin: 0; font-family: "Newsreader", Georgia, serif; font-size: 1.55rem; }
.method-grid p { color: var(--muted); line-height: 1.65; font-size: 0.9rem; }

.continue-section { background: var(--teal); color: white; }
.continue-inner { padding-top: 52px; padding-bottom: 52px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.continue-inner h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.continue-inner p { opacity: 0.72; margin-bottom: 0; }
.button-light { background: var(--white); color: var(--ink); white-space: nowrap; }

.curriculum { border-bottom: 1px solid var(--line); }
.curriculum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.module-card { min-height: 250px; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); display: flex; flex-direction: column; transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.module-card:hover { transform: translateY(-5px); background: var(--white); box-shadow: 0 18px 45px rgba(50, 42, 25, 0.08); }
.module-card-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.module-index { color: var(--coral); font-weight: 700; }
.module-card h3 { margin: 28px 0 10px; font-family: "Newsreader", Georgia, serif; font-size: 1.65rem; line-height: 1.1; }
.module-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.84rem; }
.module-card-footer { margin-top: auto; padding-top: 25px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
.module-card-footer span { color: var(--muted); font-size: 0.75rem; }
.module-card-footer a { width: 37px; height: 37px; display: grid; place-items: center; background: var(--ink); color: white; border-radius: 50%; text-decoration: none; transition: transform 200ms ease, background 200ms ease; }
.module-card:hover .module-card-footer a { transform: rotate(-8deg) scale(1.08); background: var(--coral); }
.module-card.completed { border-color: rgba(21, 91, 81, 0.45); }
.module-card.completed .module-index { color: var(--teal); }

.final-cta { min-height: 440px; padding: 80px clamp(22px, 8vw, 130px); background: var(--coral); color: var(--white); display: grid; grid-template-columns: 0.45fr 1fr auto; gap: 70px; align-items: center; overflow: hidden; }
.final-script { font-family: Georgia, serif; font-size: clamp(5rem, 12vw, 10rem); color: var(--saffron); transform: rotate(-6deg); }
.final-cta .kicker { color: var(--ink); }
.final-cta p { opacity: 0.78; }
.site-footer { min-height: 130px; padding: 28px clamp(22px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--ink); color: var(--white); }
.footer-brand .brand-mark { background: var(--saffron); color: var(--ink); }
.footer-brand small, .site-footer p { color: rgba(255, 255, 255, 0.58); }
.site-footer p strong { color: var(--white); }
.site-footer > a:last-child { font-size: 0.8rem; text-decoration: none; }

.reveal-item { opacity: 0; transform: translateY(30px); }
.reveal-item.in-view { opacity: 1; transform: translateY(0); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1); }
.module-card.reveal-item.in-view { transition-delay: var(--reveal-delay, 0ms); }

@keyframes wave { to { height: 30px; } }
@keyframes scrollText { to { transform: translateX(-50%); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardFloat { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-12px); } }
@keyframes sunBreathe { from { transform: scale(0.97); } to { transform: scale(1.025); } }
@keyframes ringTurn { to { transform: rotate(360deg); } }
@keyframes noteFloatOne { from { transform: rotate(4deg) translateY(0); } to { transform: rotate(1deg) translateY(-11px); } }
@keyframes noteFloatTwo { from { transform: rotate(3deg) translateY(0); } to { transform: rotate(6deg) translateY(9px); } }
@keyframes idleWave { from { transform: scaleY(0.72); opacity: 0.62; } to { transform: scaleY(1.05); opacity: 1; } }
@keyframes ambientDrift { to { transform: translate(45px, 30px) scale(1.08); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 60px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-proof { justify-content: center; }
  .hero-demo { width: min(620px, 100%); margin: 0 auto; }
  .curriculum-grid { grid-template-columns: repeat(2, 1fr); }
  .final-cta { grid-template-columns: 0.45fr 1fr; }
  .final-cta .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 720px) {
  .site-header { min-height: 70px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .brand small { display: none; }
  .section-shell { width: min(100% - 30px, 1180px); }
  .hero { min-height: auto; padding: 52px 0 62px; }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 5.2rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-proof { width: 100%; gap: 10px; justify-content: space-between; }
  .instructor-credit { align-self: flex-start; }
  .hero-proof div { flex: 1; }
  .hero-demo { min-height: 470px; }
  .hero-demo { overflow: clip; border-radius: 28px; }
  .sun-shape { width: min(85vw, 390px); }
  .demo-card { padding: 24px 20px; min-height: 380px; }
  .demo-phrase { font-size: 3.8rem; }
  .floating-note { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .method, .curriculum { padding-top: 75px; padding-bottom: 80px; }
  .method-grid, .curriculum-grid { grid-template-columns: 1fr; }
  .method-grid article { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .method-grid article:last-child { border-bottom: 0; }
  .continue-inner { align-items: flex-start; flex-direction: column; }
  .final-cta { grid-template-columns: 1fr; gap: 25px; padding: 62px 22px; }
  .final-script { font-size: 6rem; }
  .final-cta .button { grid-column: auto; justify-self: start; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer p { display: none; }
}

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