/* Duolingo-inspired design tokens */
: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;
  --warning: #FFC800;
  --streak: #FF9600;
  --footer-soft: #D7FFB8;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --max: 988px;
  --wide: 1090px;
  --section-pad: 96px;
  --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);
}

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--duo-green);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: top 0.2s;
}

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

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

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

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

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--duo-green);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 var(--duo-green-shadow);
}

.logo-mark svg {
  width: 22px;
  height: 22px;
}

.header-cta {
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  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;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s, box-shadow 0.1s;
}

.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;
}

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

.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 {
  transform: translateY(4px);
  box-shadow: none;
}

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

.btn-lg {
  min-height: 54px;
  padding: 0 32px;
  font-size: 16px;
}

/* Hero */
.hero {
  padding: 48px 24px 64px;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.hero-illustration {
  position: relative;
  width: 100%;
  max-width: 424px;
}

.ticket-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.ticket-card {
  position: absolute;
  width: 72%;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 8px 24px rgba(4, 44, 96, 0.12);
}

.ticket-card--back {
  top: 8%;
  left: 5%;
  background: var(--wash-blue);
  transform: rotate(-8deg);
  border: 3px solid var(--link-blue);
}

.ticket-card--mid {
  top: 18%;
  left: 18%;
  background: var(--warning);
  transform: rotate(4deg);
  border: 3px solid #E6B400;
}

.ticket-card--front {
  top: 28%;
  left: 12%;
  background: var(--surface);
  transform: rotate(-2deg);
  border: 3px solid var(--duo-green);
  z-index: 2;
}

.ticket-perforation {
  position: absolute;
  right: 28%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--border) 0,
    var(--border) 6px,
    transparent 6px,
    transparent 12px
  );
}

.ticket-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.ticket-event {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 12px;
}

.ticket-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ticket-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: var(--duo-green);
  color: #fff;
}

.ticket-badge--blue {
  background: var(--link-blue);
}

.floating-coin {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--warning);
  border: 3px solid #E6B400;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink-strong);
  box-shadow: 0 4px 0 #E6B400;
  animation: float 3s ease-in-out infinite;
}

.floating-coin--1 {
  top: 0;
  right: 8%;
  animation-delay: 0s;
}

.floating-coin--2 {
  bottom: 12%;
  right: 0;
  width: 40px;
  height: 40px;
  font-size: 16px;
  animation-delay: 1s;
}

.floating-streak {
  position: absolute;
  bottom: 5%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 0 var(--border-strong);
  font-weight: 800;
  font-size: 14px;
  color: var(--streak);
  animation: float 3.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

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

.hero-copy {
  max-width: 480px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  background: var(--wash-blue);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--link-blue);
}

.hero-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--duo-green);
}

.hero-title span {
  display: block;
  color: var(--ink-strong);
  font-size: clamp(22px, 3vw, 28px);
  margin-top: 8px;
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 440px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hero-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted-light);
}

/* Category rail */
.category-rail {
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  background: var(--surface-alt);
  padding: 20px 0;
}

.category-rail-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-rail-inner::-webkit-scrollbar {
  display: none;
}

.rail-label {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-light);
  padding-right: 8px;
}

.category-chip {
  flex-shrink: 0;
  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: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.category-chip:hover {
  border-color: var(--link-blue);
  background: var(--wash-blue);
  color: var(--ink);
}

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

/* Benefits */
.benefits {
  padding: var(--section-pad) 24px;
}

.benefits-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-heading {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--duo-green);
  text-align: center;
}

.section-sub {
  margin: 0 auto 48px;
  max-width: 520px;
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--duo-green);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: var(--wash-blue);
  border: 3px solid var(--link-blue);
}

.benefit-icon--green {
  background: #E5FFCC;
  border-color: var(--duo-green);
}

.benefit-icon--gold {
  background: #FFF5CC;
  border-color: var(--warning);
}

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

.benefit-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* Feature sections */
.feature {
  padding: 64px 24px;
}

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

.feature-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature--reverse .feature-inner {
  direction: rtl;
}

.feature--reverse .feature-inner > * {
  direction: ltr;
}

.feature-text h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--duo-green);
}

.feature-text p {
  margin: 0 0 20px;
  max-width: 473px;
}

.feature-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 600;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--duo-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-card {
  width: 100%;
  max-width: 420px;
  padding: 28px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 0 var(--border-strong);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.progress-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink-strong);
}

.progress-xp {
  padding: 4px 12px;
  background: var(--warning);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-strong);
}

.progress-bar-track {
  height: 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-pill);
  border: 2px solid var(--border);
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar-fill {
  height: 100%;
  width: 72%;
  background: var(--duo-green);
  border-radius: var(--radius-pill);
  transition: width 1s ease;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.leaderboard-row--highlight {
  background: #E5FFCC;
  border: 2px solid var(--duo-green);
}

.leaderboard-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.leaderboard-row--highlight .leaderboard-rank {
  background: var(--duo-green);
  color: #fff;
}

.leaderboard-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--link-blue);
  display: grid;
  place-items: center;
  font-size: 16px;
}

.leaderboard-name {
  flex: 1;
  font-weight: 700;
  color: var(--ink-strong);
  font-size: 15px;
}

.leaderboard-score {
  font-weight: 800;
  color: var(--duo-green);
  font-size: 14px;
}

.call-card {
  text-align: center;
}

.call-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--duo-green);
  display: grid;
  place-items: center;
  font-size: 32px;
  box-shadow: 0 4px 0 var(--duo-green-shadow);
}

.call-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.call-card p {
  margin: 0 0 16px;
  font-size: 15px;
}

.call-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.call-tag {
  padding: 6px 12px;
  background: var(--wash-blue);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--link-blue);
  text-transform: uppercase;
}

/* Social proof */
.testimonials {
  padding: var(--section-pad) 24px;
  background: var(--super-navy);
  color: #fff;
}

.testimonials-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.testimonials .section-heading {
  color: #fff;
}

.testimonials .section-sub {
  color: rgba(255, 255, 255, 0.75);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.testimonial-stars {
  color: var(--warning);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-quote {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--footer-soft);
}

.trust-bar {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--duo-green);
  display: grid;
  place-items: center;
  font-size: 18px;
}

/* Final CTA */
.final-cta {
  padding: 80px 24px 0;
  background: linear-gradient(180deg, var(--canvas) 0%, #E5FFCC 40%, var(--duo-green) 100%);
}

.final-cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  padding-bottom: 64px;
}

.final-cta h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
}

.final-cta p {
  margin: 0 auto 32px;
  max-width: 520px;
  font-size: 18px;
  color: var(--ink);
}

.final-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Footer */
.site-footer {
  background: var(--duo-green);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.footer-brand p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--footer-soft);
  max-width: 320px;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--footer-soft);
  font-weight: 600;
  font-size: 15px;
}

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

.footer-bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--footer-soft);
}

.footer-bottom a {
  color: var(--footer-soft);
}

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

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

  .hero-visual {
    order: -1;
    min-height: 260px;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
  }

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

  .feature--reverse .feature-inner {
    direction: ltr;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-pad: 64px;
  }

  .site-header {
    height: auto;
    min-height: 64px;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .logo {
    font-size: 15px;
  }

  .header-cta .btn {
    min-height: 42px;
    padding: 0 16px;
    font-size: 13px;
  }

  .hero {
    padding: 32px 16px 48px;
  }

  .ticket-card {
    padding: 14px;
  }

  .ticket-event {
    font-size: 16px;
  }

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

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

  html {
    scroll-behavior: auto;
  }
}
