:root {
  font-family: Inter, ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #183421;
  background: #f6fbef;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
  user-select: none;
}

a {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.site {
  min-height: 100vh;
  background: #f7fbef;
  overflow-x: clip;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
}

.hero-bg,
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg {
  z-index: -3;
  background-image: url("./assets/forest-path.png");
  background-size: cover;
  background-position: center bottom;
  transform: scale(1.03);
  will-change: transform;
}

.hero::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(15, 65, 38, .92) 0%, rgba(15, 65, 38, .73) 38%, rgba(15, 65, 38, .2) 72%),
    linear-gradient(180deg, rgba(10, 32, 20, .35) 0%, rgba(10, 32, 20, 0) 30%, rgba(10, 32, 20, .3) 100%);
}

.hero::after {
  display: none;
}

.scroll-orbs {
  display: none;
}

.scroll-orbs span {
  position: absolute;
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 22px 48px rgba(7, 42, 19, .14);
  backdrop-filter: blur(14px);
  animation: driftCard 8s ease-in-out infinite;
}

.scroll-orbs span:nth-child(1) {
  top: 22%;
  left: 47%;
  transform: rotate(12deg);
}

.scroll-orbs span:nth-child(2) {
  right: 7%;
  top: 18%;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  animation-delay: 1.2s;
}

.scroll-orbs span:nth-child(3) {
  right: 18%;
  bottom: 18%;
  width: 110px;
  height: 110px;
  animation-delay: 2.4s;
}

.topbar {
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 40;
  width: min(1180px, calc(100% - 40px));
  margin: 0;
  padding: max(34px, calc(env(safe-area-inset-top) + 18px)) 0 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  transform: translateX(-50%);
  pointer-events: none;
  transition: padding .35s cubic-bezier(.18, .9, .2, 1);
}

body.is-scrolled .topbar {
  padding-top: 0;
}

.brand-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0);
  border-radius: 999px;
  background: rgba(255,255,255,0);
  box-shadow: 0 18px 44px rgba(5, 35, 17, 0);
  backdrop-filter: blur(0);
  pointer-events: auto;
  transition:
    padding .42s cubic-bezier(.18, .9, .2, 1),
    background .42s ease,
    border-color .42s ease,
    box-shadow .42s ease,
    gap .42s cubic-bezier(.18, .9, .2, 1),
    border-radius .42s cubic-bezier(.18, .9, .2, 1);
  will-change: padding, background, border-radius;
}

body.is-scrolled .brand-pill {
  gap: 10px;
  padding: 11px 12px 12px 12px;
  border-radius: 0 0 18px 18px;
  border-color: rgba(218,226,214,.9);
  border-top-color: rgba(255,255,255,.96);
  background: rgba(255,255,255,.96);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: #ffffff;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 8px 22px rgba(7, 39, 20, .32);
  transform: translate3d(0, 0, 0);
  transition:
    color .42s ease,
    text-shadow .42s ease,
    transform .42s cubic-bezier(.18, .9, .2, 1);
}

body.is-scrolled .brand {
  color: #173421;
  text-shadow: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #13884a;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(9, 51, 25, .24);
  font-size: 24px;
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  transform: translate3d(5px, 0, 0);
  transition: transform .42s cubic-bezier(.18, .9, .2, 1);
}

body.is-scrolled .language-switcher {
  transform: translate3d(0, 0, 0);
}

.language-button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255,255,255,.14);
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  transition:
    color .35s ease,
    background .35s ease,
    border-color .35s ease,
    transform .22s ease;
}

.language-button:hover {
  transform: translateY(-1px);
}

body.is-scrolled .language-button {
  color: #173421;
  border-color: rgba(19, 136, 74, .18);
  background: #edf8e8;
}

.language-flag {
  width: 30px;
  height: 30px;
  display: inline-block;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  box-shadow: none;
}

.flag-tj {
  background-image: url("./assets/flag-tj.png");
}

.flag-ru {
  background-image: url("./assets/flag-ru.png");
}

.flag-en {
  background-image: url("./assets/flag-en.png");
}

.text-swap-out {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  filter: blur(6px);
  transition: opacity .16s ease, transform .16s ease, filter .16s ease;
}

.text-swap-in {
  animation: textSwapIn .34s cubic-bezier(.18, .9, .2, 1) both;
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 150px;
  padding: 7px;
  border: 1px solid rgba(218,226,214,.92);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 54px rgba(5, 35, 17, .2);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translate3d(0, -8px, 0) scale(.98);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.language-switcher.is-open .language-menu {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.language-menu button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  color: #173421;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
}

.language-menu button:hover,
.language-menu button.is-active {
  background: #edf8e8;
}

.hero-layout {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100svh - 96px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 500px);
  align-items: start;
  gap: clamp(34px, 5vw, 72px);
  padding: 26px 0 60px;
}

.hero-copy {
  padding-top: 132px;
  padding-bottom: 32px;
}

.hero-copy.is-visible .eyebrow {
  animation: popIn .72s cubic-bezier(.18, .9, .2, 1.15) both .1s;
}

.hero-copy.is-visible h1 {
  animation: titleRise .9s cubic-bezier(.18, .9, .2, 1) both .2s;
}

.hero-copy.is-visible .lead {
  animation: titleRise .9s cubic-bezier(.18, .9, .2, 1) both .34s;
}

.hero-copy.is-visible .store-button {
  animation: storeArrive .82s cubic-bezier(.18, .9, .2, 1.12) both;
}

.hero-copy.is-visible .store-button:nth-child(1) {
  animation-delay: .48s;
}

.hero-copy.is-visible .store-button:nth-child(2) {
  animation-delay: .6s;
}

.eyebrow,
.section-kicker {
  width: fit-content;
  margin: 0 0 18px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
}

.eyebrow {
  color: #174326;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 30px rgba(9, 44, 21, .18);
}

h1,
h2,
h3,
p {
  margin-top: 0;
  cursor: default;
}

h1 {
  max-width: 660px;
  margin-bottom: 22px;
  font-size: clamp(48px, 6.4vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 15px 35px rgba(5, 37, 18, .28);
}

.lead {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255,255,255,.93);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.48;
  font-weight: 700;
  text-shadow: 0 10px 26px rgba(4, 34, 15, .28);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.mobile-store-buttons {
  display: none;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 196px;
  min-height: 66px;
  padding: 11px 18px;
  border-radius: 18px;
  color: #f8fff6;
  background: #121815;
  box-shadow: 0 22px 48px rgba(4, 34, 16, .28), inset 0 1px 0 rgba(255,255,255,.12);
  font-size: 21px;
  font-weight: 950;
  transition: transform .22s ease, box-shadow .22s ease;
}

.store-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px rgba(4, 34, 16, .34), inset 0 1px 0 rgba(255,255,255,.12);
}

.store-button small {
  display: block;
  color: rgba(248,255,246,.62);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.12;
}

.store-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 25px;
  line-height: 1;
  background: rgba(255,255,255,.1);
}

.store-icon.play {
  font-size: 19px;
  color: #58d379;
}

.showcase {
  position: relative;
  min-height: calc(100svh - 126px);
  display: grid;
  place-items: start center;
  padding-top: 0;
  margin-top: 18px;
  margin-left: 34px;
}

.phone {
  position: relative;
  z-index: 2;
  width: clamp(340px, 38.6svh, 398px);
  height: auto;
  aspect-ratio: 1206 / 2622;
  padding: 0;
  border: 8px solid #101612;
  border-radius: 46px;
  background: #101612;
  overflow: visible;
  box-shadow:
    0 42px 90px rgba(8, 35, 17, .42),
    inset 0 0 0 1px rgba(255,255,255,.32);
  transform: none;
}

.phone::before {
  display: none;
}

.phone::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: -8px;
  border: 8px solid #101612;
  border-radius: 46px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}

.phone-screen {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  object-fit: cover;
  object-position: center top;
}

.phone-button {
  position: absolute;
  z-index: 0;
  display: block;
  width: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #070a08 0%, #202923 45%, #0b100d 100%);
  box-shadow: inset 1px 0 0 rgba(255,255,255,.22), inset -1px 0 0 rgba(0,0,0,.7), 0 10px 16px rgba(0,0,0,.22);
}

.phone-button-mute {
  left: -10px;
  top: 96px;
  height: 34px;
}

.phone-button-volume {
  left: -10px;
  top: 148px;
  height: 82px;
}

.phone-button-power {
  right: -10px;
  top: 164px;
  height: 106px;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  margin: 36px 8px 20px;
}

.phone-status span {
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
}

.phone-status span:nth-child(1) {
  width: 54px;
}

.phone-status span:nth-child(2) {
  width: 28px;
}

.phone-status span:nth-child(3) {
  width: 44px;
}

.app-card {
  margin: 0 2px 26px;
  padding: 18px 18px;
  border-radius: 24px;
  color: #15411f;
  background: rgba(255,255,255,.93);
  box-shadow: 0 18px 35px rgba(11, 56, 25, .2), inset 0 -3px 0 rgba(39, 160, 70, .08);
}

.app-card strong {
  display: block;
  font-size: 25px;
  line-height: 1.05;
}

.app-card span {
  display: block;
  margin-top: 7px;
  color: #597462;
  font-size: 14px;
  font-weight: 850;
}

.lesson-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 56px;
  padding: 18px 18px 12px;
}

.stone {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  justify-self: start;
  color: #607062;
  background:
    radial-gradient(circle at 35% 28%, #ffffff 0 8%, transparent 9%),
    linear-gradient(145deg, #f3f0df, #c9c8b5);
  box-shadow: 0 14px 0 #9da18c, 0 24px 32px rgba(44, 61, 38, .32);
  font-size: 28px;
  font-weight: 950;
}

.stone:nth-child(even) {
  justify-self: end;
}

.stone.done,
.stone.active {
  color: #ffffff;
  background:
    radial-gradient(circle at 34% 26%, rgba(255,255,255,.85) 0 8%, transparent 9%),
    linear-gradient(145deg, #8cee45, #18a954);
  box-shadow: 0 14px 0 #0e7a3e, 0 24px 36px rgba(8, 87, 37, .34);
}

.stone.active {
  animation: activePulse 1.7s ease-in-out infinite;
}

.reward-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 92px;
}

.reward-row span {
  min-width: 66px;
  padding: 10px 12px;
  border-radius: 18px;
  color: #173421;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 26px rgba(17, 69, 31, .18);
  font-size: 16px;
  font-weight: 950;
  text-align: center;
}

.einstein {
  position: absolute;
  z-index: 3;
  right: min(-46px, -3vw);
  bottom: -42px;
  width: min(300px, 48vw);
  filter: drop-shadow(0 28px 34px rgba(8, 38, 19, .34));
  transform: translate3d(0, var(--einstein-shift, 0px), 0);
  transition: transform .18s linear;
  will-change: transform;
  animation: einsteinArrive 1s cubic-bezier(.18, .9, .2, 1.12) both .35s;
}

.math-float {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 92px;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  color: #15411f;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 34px rgba(8, 38, 19, .18);
  font-size: 18px;
  font-weight: 950;
  backdrop-filter: blur(12px);
  animation: floatFormula 4.6s ease-in-out infinite, formulaArrive .8s cubic-bezier(.18, .9, .2, 1.12) both .7s;
}

.float-one {
  top: 78px;
  left: -58px;
}

.float-two {
  top: 220px;
  right: -78px;
  animation-delay: .8s;
}

.float-three {
  left: -70px;
  bottom: 164px;
  animation-delay: 1.5s;
}

.features,
.courses {
  position: relative;
  padding: clamp(70px, 9vw, 116px) max(20px, calc((100vw - 1180px) / 2));
}

.features {
  background:
    linear-gradient(180deg, #f7fbef 0%, #ffffff 100%);
}

.features::before,
.courses::before {
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .38;
}

.features::before {
  right: -44px;
  top: 26px;
  width: 420px;
  height: 170px;
  background-image: url("./assets/bottom-branch-right.png");
}

.courses::before {
  left: -48px;
  top: -42px;
  width: 440px;
  height: 180px;
  background-image: url("./assets/bottom-branch.png");
}

.section-head {
  width: min(850px, 100%);
  margin-bottom: 34px;
}

.section-head.compact {
  margin-bottom: 28px;
}

.section-kicker {
  color: #168148;
  background: #e6f8dd;
}

h2 {
  max-width: 830px;
  margin-bottom: 0;
  color: #14271a;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid rgba(21, 65, 31, .08);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(31, 66, 37, .08);
  transition: transform .35s ease, box-shadow .35s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 70px rgba(31, 66, 37, .13);
}

.feature-card.green {
  background: linear-gradient(180deg, #ffffff, #edfbdf);
}

.feature-card.blue {
  background: linear-gradient(180deg, #ffffff, #e9f5ff);
}

.feature-card.yellow {
  background: linear-gradient(180deg, #ffffff, #fff5d4);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 18px;
  color: #ffffff;
  background: #159451;
  box-shadow: 0 14px 26px rgba(15, 128, 66, .22);
  font-size: 24px;
  font-weight: 950;
}

.blue .feature-icon {
  background: #2078e5;
  box-shadow: 0 14px 26px rgba(32, 120, 229, .22);
}

.yellow .feature-icon {
  color: #553f08;
  background: #ffd54b;
  box-shadow: 0 14px 26px rgba(219, 157, 0, .18);
}

.feature-card h3 {
  margin-bottom: 12px;
  color: #14271a;
  font-size: 25px;
  line-height: 1.1;
}

.feature-card p {
  margin-bottom: 0;
  color: #5a6d60;
  font-size: 17px;
  line-height: 1.52;
  font-weight: 650;
}

.courses {
  background: #ffffff;
}

.course-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.course-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  min-height: 106px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(21, 65, 31, .08);
  background: #f8fbf5;
  transition: transform .35s ease, background .35s ease, box-shadow .35s ease;
}

.course-list article:hover {
  transform: translateY(-5px);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(31, 66, 37, .08);
}

.course-list span {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: #1d9b55;
  font-size: 16px;
  font-weight: 950;
}

.course-list strong {
  color: #18281d;
  font-size: 17px;
  line-height: 1.2;
}

.course-list small {
  color: #607064;
  font-size: 13px;
  font-weight: 850;
}

.footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(20px, calc((100vw - 1180px) / 2));
  color: #ffffff;
  background: #13241a;
  overflow: hidden;
}

.footer::before,
.footer::after {
  content: "";
  position: absolute;
  bottom: -34px;
  width: 360px;
  height: 150px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .42;
  pointer-events: none;
}

.footer::before {
  left: -74px;
  background-image: url("./assets/bottom-branch.png");
}

.footer::after {
  right: -74px;
  background-image: url("./assets/bottom-branch-right.png");
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

.footer p {
  margin-bottom: 0;
  color: rgba(255,255,255,.7);
  font-weight: 650;
}

@keyframes activePulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 14px 0 #0e7a3e, 0 24px 36px rgba(8, 87, 37, .34), 0 0 0 0 rgba(255,255,255,.55);
  }
  50% {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 0 #0e7a3e, 0 34px 46px rgba(8, 87, 37, .3), 0 0 0 14px rgba(255,255,255,0);
  }
}

@keyframes driftCard {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 0 -34px;
    rotate: 7deg;
  }
}

@keyframes floatFormula {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }
  50% {
    transform: translate3d(0, -14px, 0) rotate(2deg);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(.86);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes titleRise {
  from {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes textSwapIn {
  from {
    opacity: 0;
    transform: translate3d(0, -8px, 0);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes storeArrive {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(.92);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes formulaArrive {
  from {
    opacity: 0;
    scale: .72;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translate3d(0, var(--phone-shift, 0px), 0) rotateY(-7deg) rotateX(2deg);
  }
  50% {
    transform: translate3d(0, calc(var(--phone-shift, 0px) - 10px), 0) rotateY(-5deg) rotateX(3deg);
  }
}

@keyframes einsteinArrive {
  from {
    opacity: 0;
    transform: translate3d(34px, 32px, 0) scale(.88);
  }
  to {
    opacity: 1;
    transform: translate3d(0, var(--einstein-shift, 0px), 0) scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 76px, 0) scale(.96);
  filter: blur(16px);
  transition:
    opacity 1.05s cubic-bezier(.18, .9, .2, 1),
    transform 1.05s cubic-bezier(.18, .9, .2, 1),
    filter 1.05s cubic-bezier(.18, .9, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.phone-reveal {
  transform: translate3d(44px, 58px, 0) rotate(4deg) scale(.94);
}

.phone-reveal.is-visible {
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
}

.feature-grid .reveal:nth-child(2),
.course-list .reveal:nth-child(2) {
  --reveal-delay: 90ms;
}

.feature-grid .reveal:nth-child(3),
.course-list .reveal:nth-child(3) {
  --reveal-delay: 180ms;
}

.course-list .reveal:nth-child(4) {
  --reveal-delay: 60ms;
}

.course-list .reveal:nth-child(5) {
  --reveal-delay: 150ms;
}

.course-list .reveal:nth-child(6) {
  --reveal-delay: 240ms;
}

@media (max-width: 920px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 18px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(13, 64, 33, .9) 0%, rgba(13, 64, 33, .64) 54%, rgba(13, 64, 33, .32) 100%);
  }

  .showcase {
    min-height: 620px;
    padding-top: 0;
    margin-left: 0;
    margin-top: -58px;
  }

  .phone {
    width: clamp(302px, 35svh, 340px);
    transform: none;
  }

  .einstein {
    right: 4vw;
    bottom: -42px;
    width: min(230px, 44vw);
  }

  .feature-grid,
  .course-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar,
  .hero-layout {
    width: min(100% - 32px, 1180px);
  }

  .topbar {
    gap: 10px;
  }

  .brand-pill {
    gap: 10px;
    max-width: 100%;
  }

  body.is-scrolled .brand-pill {
    padding: 9px 10px 10px;
  }

  .brand {
    gap: 10px;
    font-size: 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    font-size: 22px;
  }

  .language-button {
    height: 38px;
    padding: 0 10px;
    border-radius: 13px;
    font-size: 12px;
  }

  .language-menu {
    left: auto;
    right: 0;
    min-width: 142px;
  }

  .hero-copy {
    padding-top: 108px;
    padding-bottom: 0;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .lead {
    font-size: 17px;
  }

  .hero-copy > .store-buttons {
    display: none;
  }

  .mobile-store-buttons {
    display: grid;
    width: 100%;
    margin: 40px auto 0;
  }

  .store-button {
    width: 100%;
  }

  .showcase {
    min-height: 800px;
    margin-top: 24px;
  }

  .phone {
    width: min(314px, 77vw);
    border-width: 8px;
    border-radius: 46px;
  }

  .phone::after {
    border-radius: 46px;
  }

  .phone-screen {
    border-radius: 38px;
  }

  .app-card strong {
    font-size: 21px;
  }

  .lesson-path {
    gap: 20px 36px;
    padding-inline: 10px;
  }

  .stone {
    width: 62px;
    height: 62px;
    font-size: 22px;
    box-shadow: 0 10px 0 #9da18c, 0 18px 26px rgba(44, 61, 38, .28);
  }

  .stone.done,
  .stone.active {
    box-shadow: 0 10px 0 #0e7a3e, 0 18px 28px rgba(8, 87, 37, .32);
  }

  .reward-row {
    margin-top: 26px;
  }

  .einstein {
    width: min(205px, 48vw);
    right: -8px;
    bottom: 122px;
  }

  .math-float {
    display: none;
  }

  .float-one {
    left: 4px;
    top: 22px;
  }

  .float-two {
    right: 2px;
    top: 122px;
  }

  .features::before,
  .courses::before {
    width: 250px;
    height: 110px;
  }

  .float-three {
    display: none;
  }

  .features,
  .courses {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .feature-card {
    min-height: 220px;
    padding: 24px;
    border-radius: 24px;
  }

  .footer {
    display: grid;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
