/* Duolingo-inspired design tokens for Eon landing page */
:root {
  --duo-green: #58CC02;
  --duo-green-light: #61E002;
  --duo-green-dark: #46A302;
  --duo-green-shadow: #58A700;
  --ink: #3C3C3C;
  --ink-strong: #4B4B4B;
  --muted: #777777;
  --muted-light: #AFAFAF;
  --canvas: #FFFFFF;
  --wash-blue: #DDF4FF;
  --surface: #FFFFFF;
  --surface-alt: #F7F7F7;
  --border: #E5E5E5;
  --border-strong: #DADADA;
  --link-blue: #1CB0F6;
  --link-blue-dark: #1B99D6;
  --navy: #042C60;
  --super-navy: #100F3E;
  --super-ink: #000437;
  --footer-soft: #D7FFB8;
  --warning: #FFC800;
  --error: #FF4B4B;
  --streak: #FF9600;
  --gems: #CE82FF;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 48px;
  --space-section: 96px;
  --max-width: 988px;
  --wide-width: 1090px;
  --font-display: "Nunito", "Varela Round", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  color: var(--muted);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link-blue);
  text-decoration: none;
}

a:hover {
  color: var(--link-blue-dark);
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

.container-wide {
  width: min(100%, var(--wide-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 1000;
  padding: var(--space-xs) var(--space-sm);
  background: var(--duo-green);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-strong);
  font-weight: 800;
  font-size: 22px;
}

.logo:hover {
  color: var(--ink-strong);
}

.logo-mark {
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 var(--space-sm);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.1s ease;
  text-align: center;
}

.btn-wide {
  width: 100%;
  max-width: 330px;
}

.btn-sm {
  min-height: 44px;
  padding: 0 20px;
}

.btn-primary {
  background: var(--duo-green);
  color: #fff;
  box-shadow: 0 4px 0 var(--duo-green-shadow);
}

.btn-primary:hover {
  background: var(--duo-green-light);
  color: #fff;
  box-shadow: 0 4px 0 var(--duo-green-shadow);
}

.btn-primary:active,
.btn-primary.is-pressed {
  background: var(--duo-green-dark);
  color: #fff;
  transform: translateY(4px);
  box-shadow: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--link-blue);
  border: 2px solid var(--border);
  box-shadow: 0 4px 0 var(--border-strong);
}

.btn-secondary:hover {
  background: var(--wash-blue);
  color: var(--link-blue-dark);
  border-color: var(--link-blue);
}

.btn-secondary:active,
.btn-secondary.is-pressed {
  transform: translateY(4px);
  box-shadow: none;
}

.btn-super {
  background: #fff;
  color: var(--super-ink);
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.25);
}

.btn-super:hover {
  background: #f0f0ff;
  color: var(--super-ink);
}

.btn-super:active,
.btn-super.is-pressed {
  transform: translateY(4px);
  box-shadow: none;
}

/* Hero */
.hero {
  padding: var(--space-xl) 0 var(--space-section);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  min-height: 420px;
}

.hero-visual {
  order: 1;
}

.hero-copy {
  order: 2;
}

.hero-eyebrow {
  margin: 0 0 var(--space-xs);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link-blue);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--duo-green);
}

.hero-subtitle {
  margin: var(--space-xs) 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-strong);
}

.hero-body {
  margin: 0 0 var(--space-md);
  max-width: 473px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

.hero-illustration {
  width: 100%;
  max-width: 424px;
  margin-inline: auto;
}

.hero-svg {
  width: 100%;
  height: auto;
}

.float-slow {
  animation: float 4s ease-in-out infinite;
}

.float-fast {
  animation: float 3s ease-in-out infinite reverse;
}

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

/* Chip rail */
.chip-rail {
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  padding: var(--space-sm) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chip-track {
  display: flex;
  gap: var(--space-sm);
  padding: 0 var(--space-sm);
  min-width: max-content;
  justify-content: center;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.chip-icon {
  font-size: 18px;
}

/* Benefits */
.benefits {
  padding: var(--space-section) 0;
}

.section-title {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: var(--duo-green);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.benefit-card {
  padding: var(--space-md);
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-xs);
  background: var(--duo-green);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 16px;
}

.benefit-card h3 {
  margin: 0 0 var(--space-xs);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-strong);
}

.benefit-card p {
  margin: 0;
}

/* Features */
.feature {
  padding: var(--space-section) 0;
}

.feature-alt {
  background: var(--surface-alt);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.feature-reverse .feature-visual {
  order: 2;
}

.feature-reverse .feature-copy {
  order: 1;
}

.feature-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--duo-green);
}

.feature-body {
  margin: 0 0 var(--space-sm);
  max-width: 503px;
}

.feature-copy .btn {
  margin-top: var(--space-sm);
}

.feature-svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
}

/* Trust */
.trust {
  padding: var(--space-section) 0;
  text-align: center;
}

.trust-lead {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  font-size: 18px;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.stat-card {
  padding: var(--space-md);
  background: var(--wash-blue);
  border-radius: var(--radius-lg);
  border: 2px solid var(--link-blue);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: var(--space-xs);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.testimonial {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  border-left: 6px solid var(--duo-green);
}

.testimonial p {
  margin: 0;
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
}

/* Super promo */
.super-promo {
  padding: 120px 0;
  background: var(--super-navy);
  text-align: center;
}

.super-title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.super-body {
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
}

/* Final CTA */
.final-cta {
  padding: var(--space-section) 0;
  background: linear-gradient(180deg, var(--canvas) 0%, #e8f9d4 100%);
  text-align: center;
}

.final-inner {
  position: relative;
}

.final-decor {
  position: relative;
  height: 48px;
  margin-bottom: var(--space-sm);
}

.reward-badge,
.reward-coin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
}

.reward-badge {
  left: calc(50% - 60px);
  background: var(--duo-green);
  color: #fff;
}

.reward-coin {
  left: calc(50% + 12px);
  background: var(--warning);
  color: var(--ink);
}

.final-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink-strong);
}

.final-body {
  max-width: 520px;
  margin: 0 auto var(--space-md);
}

.final-inner .btn {
  margin-inline: auto;
}

/* Footer */
.site-footer {
  background: var(--duo-green);
  color: #fff;
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
}

.footer-tagline {
  margin: var(--space-xs) 0 0;
  color: var(--footer-soft);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  justify-content: flex-end;
  align-items: start;
}

.footer-nav a {
  color: var(--footer-soft);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: var(--footer-soft);
}

.footer-bottom a {
  color: #fff;
  font-weight: 700;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: 1;
  }

  .hero-copy {
    order: 2;
    text-align: center;
  }

  .hero-body {
    margin-inline: auto;
  }

  .hero-actions {
    align-items: center;
  }

  .feature-reverse .feature-visual,
  .feature-reverse .feature-copy {
    order: unset;
  }

  .feature-copy {
    text-align: center;
  }

  .feature-body {
    margin-inline: auto;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .trust-stats {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: var(--space-md);
  }

  .chip-track {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .header-cta {
    font-size: 13px;
    padding: 0 12px;
    min-height: 40px;
  }
}

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

  .float-slow,
  .float-fast {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
