/* Landing page — CEFR Prep */

.landing-page {
  --landing-accent: #ff7e5f;
  --landing-mesh-green: rgba(76, 185, 68, 0.14);
  --landing-mesh-gold: rgba(242, 182, 0, 0.1);
  --landing-mesh-purple: rgba(206, 130, 255, 0.12);
  --landing-glass: rgba(21, 37, 53, 0.72);
  --landing-glass-border: rgba(255, 255, 255, 0.1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Global polish */
.landing-grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.landing-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 40% at 0% 30%, rgba(76, 185, 68, 0.06), transparent 50%),
    radial-gradient(ellipse 45% 35% at 100% 60%, rgba(61, 169, 252, 0.05), transparent 50%);
  pointer-events: none;
}

.landing-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.landing-glass-pill {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--landing-glass-border);
  background: var(--landing-glass);
  backdrop-filter: blur(10px);
}

.landing-eyebrow--green { color: #4cb944; border-color: rgba(76, 185, 68, 0.35); background: rgba(76, 185, 68, 0.08); }
.landing-eyebrow--blue { color: #3da9fc; border-color: rgba(61, 169, 252, 0.35); background: rgba(61, 169, 252, 0.08); }
.landing-eyebrow--gold { color: #f2b600; border-color: rgba(242, 182, 0, 0.35); background: rgba(242, 182, 0, 0.08); }

.landing-section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(21, 37, 53, 0.35) 50%, transparent 100%);
}

.landing-section-glow {
  position: absolute;
  width: 70%;
  height: 60%;
  left: 15%;
  top: 10%;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.5;
}

.landing-section-glow--green { background: rgba(76, 185, 68, 0.12); }
.landing-section-glow--blue { background: rgba(61, 169, 252, 0.1); }

.landing-glass-stat {
  padding: 1.25rem 1rem;
  border-radius: 1rem;
  text-align: center;
  background: var(--landing-glass);
  border: 1px solid var(--landing-glass-border);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.landing-glass-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.landing-glass-stat__value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.landing-glass-stat__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(143, 163, 181, 0.95);
}

.landing-glass-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--landing-glass);
  border: 1px solid var(--landing-glass-border);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.landing-glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.landing-glass-card__icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  border: 1px solid;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.landing-glass-card:hover .landing-glass-card__icon {
  transform: scale(1.08) rotate(-3deg);
}

.landing-stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--stagger-i, 0) * 0.08s);
}

.landing-reveal.is-visible .landing-stagger-item {
  opacity: 1;
  transform: translateY(0);
}

.landing-quote-mark {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
}

.landing-verified-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(76, 185, 68, 0.2);
  border: 1px solid rgba(76, 185, 68, 0.45);
  color: #4cb944;
}

.landing-showcase-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.landing-showcase-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4cb944, #3da9fc, #ce82ff);
  box-shadow: 0 0 12px rgba(76, 185, 68, 0.5);
}

.landing-showcase-progress__bar.is-running {
  animation: landingShowcaseProgress var(--showcase-duration, 5s) linear forwards;
}

@keyframes landingShowcaseProgress {
  from { width: 0%; }
  to { width: 100%; }
}

/* ---- Cinematic hero ---- */
.landing-hero-cinematic {
  isolation: isolate;
}

.landing-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, var(--landing-mesh-green), transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 15%, var(--landing-mesh-purple), transparent 50%),
    radial-gradient(ellipse 70% 55% at 70% 90%, var(--landing-mesh-gold), transparent 55%),
    linear-gradient(180deg, #0b1620 0%, #0d1a26 45%, #0b1620 100%);
  pointer-events: none;
}

.landing-mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: landingOrbDrift 18s ease-in-out infinite;
}

.landing-mesh-orb--green { width: 280px; height: 280px; top: 10%; left: 5%; background: rgba(76, 185, 68, 0.2); }
.landing-mesh-orb--gold { width: 220px; height: 220px; bottom: 15%; right: 10%; background: rgba(242, 182, 0, 0.15); animation-delay: -6s; }
.landing-mesh-orb--purple { width: 200px; height: 200px; top: 40%; right: 25%; background: rgba(206, 130, 255, 0.12); animation-delay: -12s; }
.landing-mesh-orb--coral { width: 160px; height: 160px; bottom: 30%; left: 30%; background: rgba(255, 126, 95, 0.1); animation-delay: -3s; }

@keyframes landingOrbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -16px) scale(1.05); }
  66% { transform: translate(-16px, 20px) scale(0.95); }
}

.landing-gradient-hero {
  background: linear-gradient(120deg, #4cb944 0%, #3da9fc 45%, #ce82ff 75%, #f2b600 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: landingGradientShift 8s ease infinite;
}

@keyframes landingGradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.landing-hero-enter {
  animation: landingHeroEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing-hero-enter--2 { animation-delay: 0.08s; }
.landing-hero-enter--3 { animation-delay: 0.16s; }
.landing-hero-enter--4 { animation-delay: 0.24s; }
.landing-hero-enter--5 { animation-delay: 0.32s; }

@keyframes landingHeroEnter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-ping {
  animation: landingPing 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes landingPing {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* Hero copy — center on mobile, left on desktop */
.landing-hero-copy {
  width: 100%;
}

.landing-hero-headline {
  text-align: center;
}

@media (min-width: 1024px) {
  .landing-hero-headline {
    text-align: left;
  }
}

/* Word rotator */
.landing-hero-via-line {
  max-width: 100%;
}

.landing-word-rotator-shell {
  display: inline-grid;
  vertical-align: baseline;
  line-height: 1.15;
  min-width: min(10.5em, 100%);
  max-width: 100%;
}

.landing-word-rotator-sizer {
  grid-area: 1 / 1;
  visibility: hidden;
  white-space: nowrap;
  font: inherit;
  pointer-events: none;
  user-select: none;
}

.landing-word-rotator {
  grid-area: 1 / 1;
  position: relative;
  overflow: hidden;
  height: 1.15em;
  min-width: 100%;
  line-height: 1.15;
}

.landing-word-rotator-item {
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  top: auto;
  white-space: nowrap;
  line-height: inherit;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-word-rotator-item.is-active {
  opacity: 1;
  transform: translateY(0);
  z-index: 1;
}

.landing-word-rotator-item.is-exit {
  opacity: 0;
  transform: translateY(-100%);
}

.landing-cta-shine {
  position: relative;
  overflow: hidden;
}

.landing-cta-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: landingShine 3s ease-in-out infinite;
}

@keyframes landingShine {
  0%, 100% { left: -100%; }
  50% { left: 120%; }
}

/* Product stack */
.landing-product-glow {
  position: absolute;
  inset: -15% -10%;
  background: radial-gradient(circle at 55% 45%, rgba(76, 185, 68, 0.14), transparent 58%);
  pointer-events: none;
}

.landing-product-orbit {
  position: relative;
  margin-inline: auto;
}

.landing-product-stage {
  position: relative;
  width: 100%;
  padding: clamp(4rem, 9vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 6vw, 3.75rem);
}

.landing-product-frame {
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: min(100%, 34rem);
  margin-inline: auto;
}

.landing-product-stack:hover .landing-product-frame {
  transform: translateY(-4px);
}

.landing-speaking-anchor {
  pointer-events: auto;
}

.landing-float-card--demo .landing-float-card-inner {
  animation-delay: -1s;
}

.landing-float-card--demo {
  bottom: 2.25rem;
  right: 0;
  left: auto;
  width: min(11.5rem, 42%);
  z-index: 45;
}

.landing-float-card {
  position: absolute;
  z-index: 40;
  pointer-events: none;
}

.landing-float-card-inner {
  pointer-events: auto;
  animation: landingFloatCard 6s ease-in-out infinite;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.landing-product-stack:hover .landing-float-card-inner {
  animation-play-state: paused;
}

/* Углы вокруг скриншота — снаружи рамки, не поверх изображения */
.landing-float-card--ai .landing-float-card-inner {
  animation-delay: 0s;
}

.landing-float-card--streak .landing-float-card-inner {
  animation-delay: -2s;
}

.landing-float-card--xp .landing-float-card-inner {
  animation-delay: -4s;
}

.landing-float-card--ai {
  top: 0.5rem;
  left: 0;
  width: min(16rem, calc(100% - 6rem));
}

.landing-float-card--streak {
  top: 0.25rem;
  right: 0;
  left: auto;
  width: min(11rem, 40%);
}

.landing-float-card--xp {
  bottom: 1.5rem;
  left: 0;
  right: auto;
  width: min(10rem, 36%);
}

@keyframes landingFloatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (min-width: 1024px) {
  .landing-product-stage {
    padding: clamp(3.5rem, 5vw, 4.75rem) clamp(2rem, 4vw, 3rem) clamp(3.25rem, 4vw, 4rem);
  }

  .landing-float-card--ai {
    top: 0.75rem;
    left: -1.75rem;
    width: min(16.5rem, 46%);
  }

  .landing-float-card--streak {
    top: 0.5rem;
    right: -1.5rem;
    width: min(11.5rem, 34%);
  }

  .landing-float-card--xp {
    bottom: 2rem;
    left: -1.25rem;
    width: min(10.5rem, 32%);
  }

  .landing-float-card--demo {
    bottom: 2.5rem;
    right: -1.75rem;
    width: min(12rem, 34%);
  }
}

@media (max-width: 639px) {
  .landing-eyebrow {
    font-size: 0.625rem;
    padding: 0.35rem 0.75rem;
    max-width: calc(100vw - 2rem);
    text-wrap: balance;
  }

  .landing-hero-cinematic {
    min-height: auto;
  }

  .landing-hero-cta {
    font-size: 0.75rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 12px !important;
    border-bottom-width: 3px !important;
    letter-spacing: 0.04em;
    min-height: 2.25rem;
    gap: 0.375rem;
  }

  .landing-hero-cta i {
    font-size: 0.875rem !important;
  }

  .landing-hero-cinematic .max-w-7xl {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  #landing-cta .btn-duo-green {
    width: 100%;
    max-width: 18rem;
    justify-content: center;
    padding: 0.625rem 1rem !important;
    font-size: 0.75rem !important;
    border-radius: 12px !important;
    border-bottom-width: 3px !important;
  }

  .landing-showcase-tab {
    padding: 0.35rem 0.55rem;
    font-size: 0.6875rem;
    gap: 0.25rem;
    flex-shrink: 0;
  }

  .landing-showcase-tab i {
    font-size: 0.875rem;
  }

  .landing-browser-chrome {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  #landing-showcase .max-w-7xl {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .landing-product-stage {
    padding-top: 8.5rem;
    padding-bottom: 2.75rem;
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .landing-float-card--ai {
    top: 0.25rem;
    left: 0;
    width: min(15rem, calc(100% - 7rem));
  }

  .landing-float-card--streak {
    top: 0;
    right: 0;
    width: min(9.5rem, 42%);
  }

  .landing-float-card--xp {
    bottom: 1rem;
    left: 0;
  }

  .landing-float-card--demo {
    bottom: 0.75rem;
    right: 0;
    left: auto;
    width: min(10.5rem, 46%);
  }
}

@media (max-width: 359px) {
  .landing-showcase-tab span {
    display: none;
  }

  .landing-showcase-tab {
    padding: 0.4rem 0.5rem;
  }

  .landing-hero-via-line {
    font-size: 1.125rem !important;
  }

  .landing-word-rotator-shell {
    max-width: calc(100vw - 5rem);
  }
}

@media (max-width: 420px) {
  .landing-product-stage {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
  }

  .landing-float-card {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    pointer-events: auto;
  }

  .landing-float-card-inner {
    animation: none;
    box-shadow: none;
  }

  .landing-float-card--ai { order: 1; }
  .landing-float-card--streak { order: 2; }
  .landing-float-card--xp { order: 3; }
  .landing-product-frame { order: 4; width: 100%; }
  .landing-float-card--demo { order: 5; width: 100% !important; }
}

.landing-product-screen {
  transition: box-shadow 0.4s ease;
}

.landing-product-frame:hover .landing-product-screen {
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.landing-progress-shine {
  position: relative;
  overflow: hidden;
}

.landing-progress-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: landingProgressShine 2.5s ease-in-out infinite;
}

@keyframes landingProgressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.landing-scroll-hint {
  animation: landingFadeIn 1s ease 1s both;
}

.landing-scroll-bounce {
  animation: landingScrollBounce 2s ease-in-out infinite;
}

@keyframes landingScrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Marquee */
.landing-marquee-section {
  background: rgba(21, 37, 53, 0.5);
}

.landing-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.landing-marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: landingMarquee 35s linear infinite;
}

.landing-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.landing-marquee-item i {
  font-size: 1.125rem;
}

@keyframes landingMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Showcase browser */
.landing-showcase-bg {
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(61, 169, 252, 0.08), transparent 60%);
}

.landing-showcase-shade {
  background:
    linear-gradient(90deg, rgba(10, 18, 22, 0.55) 0%, rgba(10, 18, 22, 0.2) 45%, transparent 72%),
    linear-gradient(0deg, rgba(10, 18, 22, 0.85) 0%, rgba(10, 18, 22, 0.25) 42%, transparent 68%);
}

.landing-browser {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(61, 169, 252, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

.landing-browser::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 40%, transparent 60%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
  z-index: 5;
}

.landing-showcase-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--duo-text-muted, #8fa3b5);
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.landing-showcase-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.landing-showcase-tab.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.landing-showcase-tab.is-active[data-accent='blue'] { border-color: rgba(61, 169, 252, 0.5); color: #3da9fc; }
.landing-showcase-tab.is-active[data-accent='green'] { border-color: rgba(76, 185, 68, 0.5); color: #4cb944; }
.landing-showcase-tab.is-active[data-accent='purple'] { border-color: rgba(206, 130, 255, 0.5); color: #ce82ff; }
.landing-showcase-tab.is-active[data-accent='gold'] { border-color: rgba(242, 182, 0, 0.5); color: #f2b600; }

.landing-showcase-img {
  opacity: 0;
  transition: opacity 0.5s ease;
  transform: none;
}

.landing-showcase-img.is-active {
  opacity: 1;
}

.landing-showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s ease, transform 0.3s ease;
}

.landing-showcase-dot.is-active {
  background: #4cb944;
  transform: scale(1.25);
}

/* Testimonials */
.landing-testimonial {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.landing-testimonial:hover {
  transform: translateY(-4px);
}

.landing-testimonial--featured {
  box-shadow: 0 24px 60px rgba(76, 185, 68, 0.15);
}

/* Legacy gradients */
.landing-gradient-green {
  background: linear-gradient(to right, #4cb944, #3a9436);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-gradient-blue {
  background: linear-gradient(to right, #1cb0f6, #1899d6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-gradient-gold {
  background: linear-gradient(to right, #ffc800, #e5b400);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-gradient-purple {
  background: linear-gradient(to right, #ce82ff, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero-title {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.landing-blob { border-radius: 50%; }

.landing-deco-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
}

.landing-cta-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(76, 185, 68, 0.1) 0%, transparent 68%);
  pointer-events: none;
}

.landing-cta-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 1rem;
  border: 2px solid rgba(76, 185, 68, 0.4);
  animation: landingCtaRing 2s ease-out infinite;
  pointer-events: none;
}

@keyframes landingCtaRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 0; }
}

.landing-stagger-1 { animation-delay: 0.1s; }
.landing-stagger-2 { animation-delay: 0.2s; }
.landing-stagger-3 { animation-delay: 0.3s; }
.landing-stagger-4 { animation-delay: 0.4s; }

.landing-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.landing-cefr-pill {
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.landing-cefr-pill[aria-pressed='true'] {
  background: rgba(76, 185, 68, 0.15);
  border-color: rgba(76, 185, 68, 0.45);
  color: #4cb944;
}

.landing-journey-step { transition: border-color 0.2s ease, background 0.2s ease; }

.landing-journey-step[aria-selected='true'] {
  border-color: rgba(76, 185, 68, 0.5);
  background: rgba(76, 185, 68, 0.08);
}

.landing-journey-panel {
  animation: landingFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes landingFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Skill cards — portrait ratio, tips outside clipped media */
.landing-skill-card {
  position: relative;
  overflow: visible;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-skill-card:hover { transform: translateY(-6px); }

.landing-skill-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 2;
}

.landing-skill-card:hover .landing-skill-card__media::after {
  transform: translateX(100%);
}

.landing-skill-card.is-tip-open {
  z-index: 30;
}

.landing-skill-card__media {
  position: relative;
  border-radius: 1.25rem;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

/* Glow stays inside rounded media; wrapper keeps tips/hotspot visible */
.landing-skill-card__media.landing-glow-card {
  overflow: hidden;
}

.landing-skill-card__media.card-duo:hover {
  transform: none;
}

.landing-skill-card--blue:hover .landing-skill-card__media {
  border-color: rgba(61, 169, 252, 0.45);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.landing-skill-card--green:hover .landing-skill-card__media {
  border-color: rgba(76, 185, 68, 0.45);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.landing-skill-card--purple:hover .landing-skill-card__media {
  border-color: rgba(206, 130, 255, 0.45);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.landing-skill-card--gold:hover .landing-skill-card__media {
  border-color: rgba(242, 182, 0, 0.45);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.landing-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 36rem;
  margin-inline: auto;
  padding-block: 0.5rem;
}

@media (min-width: 640px) {
  .landing-skills-grid {
    gap: 1.5rem;
    max-width: 44rem;
  }
}

@media (min-width: 1024px) {
  .landing-skills-grid {
    max-width: 56rem;
    gap: 2rem;
  }
}

@media (min-width: 1280px) {
  .landing-skills-grid {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    max-width: 72rem;
  }
}

.landing-skill-card__ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-width: 320px;
  margin-inline: auto;
}

@media (min-width: 1280px) {
  .landing-skill-card__ratio {
    max-width: none;
  }
}

.landing-skill-card h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.15;
}

.landing-skill-card__hotspot {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 15;
}

.landing-hotspot {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(11, 22, 32, 0.92);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.landing-skill-card--blue .landing-hotspot:hover,
.landing-skill-card--blue .landing-hotspot[aria-expanded='true'] {
  border-color: #3da9fc;
  background: rgba(61, 169, 252, 0.25);
}

.landing-skill-card--green .landing-hotspot:hover,
.landing-skill-card--green .landing-hotspot[aria-expanded='true'] {
  border-color: #4cb944;
  background: rgba(76, 185, 68, 0.25);
}

.landing-skill-card--purple .landing-hotspot:hover,
.landing-skill-card--purple .landing-hotspot[aria-expanded='true'] {
  border-color: #ce82ff;
  background: rgba(206, 130, 255, 0.25);
}

.landing-skill-card--gold .landing-hotspot:hover,
.landing-skill-card--gold .landing-hotspot[aria-expanded='true'] {
  border-color: #f2b600;
  background: rgba(242, 182, 0, 0.25);
}

.landing-hotspot[aria-expanded='true'] {
  transform: scale(1.08);
}

.landing-skill-card__tip {
  position: absolute;
  top: 3.25rem;
  left: 0;
  right: 0;
  z-index: 25;
  margin: 0;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  background: rgba(21, 37, 53, 0.98);
  border-width: 1px;
  border-style: solid;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.22s;
  pointer-events: none;
}

.landing-hotspot-tip.is-open,
.landing-skill-card__tip.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.landing-skill-card__tip::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 1.125rem;
  width: 12px;
  height: 12px;
  background: rgba(21, 37, 53, 0.98);
  transform: rotate(45deg);
}

.landing-skill-card--blue .landing-skill-card__tip::before { border-top: 1px solid rgba(61, 169, 252, 0.35); border-left: 1px solid rgba(61, 169, 252, 0.35); }
.landing-skill-card--green .landing-skill-card__tip::before { border-top: 1px solid rgba(76, 185, 68, 0.35); border-left: 1px solid rgba(76, 185, 68, 0.35); }
.landing-skill-card--purple .landing-skill-card__tip::before { border-top: 1px solid rgba(206, 130, 255, 0.35); border-left: 1px solid rgba(206, 130, 255, 0.35); }
.landing-skill-card--gold .landing-skill-card__tip::before { border-top: 1px solid rgba(242, 182, 0, 0.35); border-left: 1px solid rgba(242, 182, 0, 0.35); }

.landing-arcade-tile {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.landing-arcade-tile:hover { transform: translateY(-5px); }

.landing-arcade-tile--video:hover { border-color: rgba(255, 75, 75, 0.45); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), 0 0 24px rgba(255, 75, 75, 0.12); }
.landing-arcade-tile--quiz:hover { border-color: rgba(242, 182, 0, 0.4); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), 0 0 24px rgba(242, 182, 0, 0.12); }
.landing-arcade-tile--stories:hover { border-color: rgba(61, 169, 252, 0.45); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), 0 0 24px rgba(61, 169, 252, 0.12); }
.landing-arcade-tile--vocab:hover { border-color: rgba(76, 185, 68, 0.45); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), 0 0 24px rgba(76, 185, 68, 0.12); }

.landing-quiz-opt {
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.landing-quiz-opt:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(76, 185, 68, 0.35);
}

.landing-quiz-opt.is-correct {
  border-color: #4cb944 !important;
  background: rgba(76, 185, 68, 0.12) !important;
}

.landing-quiz-opt.is-wrong {
  border-color: #ff4b4b !important;
  background: rgba(255, 75, 75, 0.1) !important;
}

.landing-flip-scene {
  perspective: 1000px;
  position: relative;
  width: 100%;
  height: 148px;
  min-height: 148px;
}

/* Wrapper + faces use .card-duo globally, but hover translateY fights 3D flip — keep still */
.card-duo:has(.landing-flip-scene):hover {
  transform: none;
}

.landing-flip-scene .card-duo {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-flip-scene .landing-flip-face.card-duo:hover {
  transform: none;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.landing-flip-scene .landing-flip-back.card-duo:hover {
  transform: rotateY(180deg);
}

.landing-flip-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  will-change: transform;
}

.landing-flip-card.is-flipped {
  transform: rotateY(180deg);
}

.landing-flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 1rem;
  overflow: hidden;
}

.landing-flip-back {
  transform: rotateY(180deg);
}

/* Premium Card Hover Glow effect */
.landing-glow-card {
  position: relative;
  overflow: hidden;
}

.landing-glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.04),
    transparent 55%
  );
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.landing-glow-card:hover::before {
  opacity: 1;
}

.landing-glow-card--blue::before {
  background: radial-gradient(
    280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(61, 169, 252, 0.12),
    transparent 55%
  );
}

.landing-glow-card--green::before {
  background: radial-gradient(
    280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(76, 185, 68, 0.12),
    transparent 55%
  );
}

.landing-glow-card--purple::before {
  background: radial-gradient(
    280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(206, 130, 255, 0.12),
    transparent 55%
  );
}

.landing-glow-card--gold::before {
  background: radial-gradient(
    280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(242, 182, 0, 0.12),
    transparent 55%
  );
}

/* Equalizer Bars animation */
@keyframes eqBarGrow {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

.animate-eq-bar {
  animation: eqBarGrow 0.8s ease-in-out infinite;
  transform-origin: bottom;
  animation-delay: var(--eq-delay, 0s);
}

/* CEFR level selector buttons style */
.landing-cefr-selector-btn {
  background: rgba(21, 37, 53, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-cefr-selector-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-0.5px);
}

.landing-cefr-selector-btn.is-active {
  background: rgba(206, 130, 255, 0.15) !important;
  border-color: rgba(206, 130, 255, 0.5) !important;
  color: #ce82ff !important;
  box-shadow: 0 0 16px rgba(206, 130, 255, 0.25);
  transform: translateY(-1px);
}

/* Mini quiz error shake */
@keyframes quizShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.animate-quiz-shake {
  animation: quizShake 0.4s ease-in-out;
}

/* Confetti falls */
.confetti-piece {
  position: absolute;
  width: 7px;
  height: 7px;
  top: -10px;
  border-radius: 2px;
  opacity: 0.9;
  pointer-events: none;
  animation: confettiFall var(--confetti-dur, 1.8s) cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(300px) rotate(450deg) translateX(var(--confetti-drift, 20px));
    opacity: 0;
  }
}

/* Blurb fade and transition styles */
#landing-cefr-blurb {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#landing-cefr-blurb.is-transitioning {
  opacity: 0;
  transform: translateY(4px);
}

/* Timed progress line for Journey steps auto-play */
.journey-step-progress-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: #4cb944;
  width: 0%;
  transition: width 6s linear;
}

@media (prefers-reduced-motion: reduce) {
  .landing-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .landing-mesh-orb,
  .landing-marquee-track,
  .landing-float-card-inner,
  .landing-gradient-hero,
  .landing-cta-shine::after,
  .landing-progress-shine::after,
  .landing-scroll-bounce,
  .landing-ping,
  .landing-cta-pulse-ring,
  .landing-hotspot,
  .landing-hero-enter {
    animation: none !important;
  }

  .landing-word-rotator-item {
    position: relative;
    opacity: 1;
    transform: none;
  }

  .landing-word-rotator-item:not(.is-active) {
    display: none;
  }

  .landing-flip-card { transition: none; }
  .animate-float,
  .animate-float-delayed { animation: none !important; }
  .landing-product-screen { transform: none; }
}
