: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;
  --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;
  --max: 988px;
  --wide: 1090px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  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);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--link-blue);
  outline-offset: 2px;
}

.btn-primary:focus-visible {
  outline-color: var(--duo-green-dark);
}

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

.container--wide {
  width: min(100% - 32px, var(--wide));
}

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

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--duo-green);
  letter-spacing: -0.02em;
}

.logo svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted-light);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.lang-trigger:hover {
  color: var(--muted);
  background: var(--surface-alt);
}

.lang-trigger[aria-expanded="true"] {
  color: var(--ink);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 160px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: none;
}

.lang-menu.is-open {
  display: block;
}

.lang-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

.lang-menu a:hover,
.lang-menu a[aria-current="true"] {
  background: var(--wash-blue);
  color: var(--link-blue);
}

.header-lang {
  position: relative;
}

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

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

.btn--primary:hover {
  background: var(--duo-green-light);
  color: #fff;
}

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

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

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

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

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

.btn--super:hover {
  background: #f5f5ff;
  color: var(--super-navy);
}

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

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

.btn--lg {
  min-height: 56px;
  font-size: 16px;
}

/* Hero */
.hero {
  padding: 48px 0 32px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero__visual {
  order: 2;
  display: flex;
  justify-content: center;
}

.hero__copy {
  order: 1;
  text-align: center;
}

.hero__brand {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(2.75rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--duo-green);
  margin: 0 0 8px;
}

.hero__title {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-strong);
  margin: 0 0 16px;
  max-width: 480px;
  margin-inline: auto;
}

.hero__lead {
  margin: 0 auto 24px;
  max-width: 473px;
}

.hero__cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero__bonus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--wash-blue);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.hero__bonus strong {
  color: var(--duo-green-dark);
}

.hero-illustration {
  width: min(100%, 424px);
  height: auto;
  animation: float 4s ease-in-out infinite;
}

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

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 424px 1fr;
    gap: 48px;
  }

  .hero__visual {
    order: 1;
  }

  .hero__copy {
    order: 2;
    text-align: left;
  }

  .hero__title {
    margin-inline: 0;
  }

  .hero__cta-stack {
    align-items: flex-start;
  }
}

/* Game rail */
.game-rail {
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  padding: 16px 0;
  background: var(--canvas);
}

.game-rail__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-rail__scroll {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

.game-rail__scroll::-webkit-scrollbar {
  display: none;
}

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

.game-chip__icon {
  font-size: 20px;
  line-height: 1;
}

.rail-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: border-color 0.15s, background 0.15s;
}

.rail-arrow:hover {
  border-color: var(--link-blue);
  background: var(--wash-blue);
  color: var(--link-blue);
}

/* Features */
.section {
  padding: 64px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 96px 0;
  }
}

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.feature__title {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--duo-green);
  margin: 0 0 16px;
}

.feature__text {
  max-width: 503px;
  margin: 0 0 24px;
}

.feature__visual {
  display: flex;
  justify-content: center;
}

.feature-card {
  width: min(100%, 320px);
  padding: 24px;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
}

.progress-bar {
  height: 16px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar__fill {
  height: 100%;
  width: 72%;
  background: var(--duo-green);
  border-radius: var(--radius-pill);
}

.streak-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink);
}

.streak-flame {
  color: var(--streak);
  font-size: 28px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  color: var(--ink);
}

.leaderboard-item:last-child {
  border-bottom: none;
}

.leaderboard-item--you {
  color: var(--duo-green-dark);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wash-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
  }

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

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

/* App / atmosphere section */
.atmosphere {
  background: var(--wash-blue);
  padding: 64px 0;
  text-align: center;
}

.atmosphere__title {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--navy);
  margin: 0 0 16px;
}

.atmosphere__lead {
  max-width: 520px;
  margin: 0 auto 32px;
}

.device-cluster {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.phone-mock {
  width: 160px;
  padding: 12px;
  background: var(--ink);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(4, 44, 96, 0.15);
}

.phone-mock__screen {
  aspect-ratio: 9/16;
  background: linear-gradient(180deg, #1CB0F6 0%, #58CC02 100%);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 63px;
  padding: 9.5px 14px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  box-shadow: 0 4px 0 var(--border-strong);
}

.store-badge small {
  display: block;
  font-weight: 600;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

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

@media (min-width: 768px) {
  .super-promo {
    padding: 96px 0;
  }
}

.super-promo__badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--gems), var(--link-blue));
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.super-promo__title {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 16px;
  max-width: 640px;
  margin-inline: auto;
}

.super-promo__text {
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 32px;
}

.super-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.super-stat {
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  min-width: 140px;
}

.super-stat strong {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-size: 28px;
  color: var(--warning);
}

.super-stat span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

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

.final-cta__title {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--ink-strong);
  margin: 0 0 12px;
}

.final-cta__text {
  max-width: 480px;
  margin: 0 auto 24px;
}

.final-cta__decor {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 32px;
}

/* Footer */
.site-footer {
  background: var(--duo-green);
  color: #fff;
  padding: 48px 0 32px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  color: var(--footer-soft);
  font-weight: 600;
  font-size: 15px;
  display: block;
  padding: 6px 0;
}

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

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.footer-legal p {
  margin: 0 0 12px;
}

.footer-legal a {
  color: #fff;
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 16px;
  background: var(--duo-green);
  color: #fff;
  font-weight: 700;
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
