/* Football Quiz UK — Landing Page Styles */

:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(23, 32, 52, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #f9fafb;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-green: #22c55e;
  --accent-green-dark: #16a34a;
  --accent-emerald: #10b981;
  --accent-gold: #fbbf24;
  --gradient-primary: linear-gradient(135deg, #22c55e 0%, #10b981 50%, #059669 100%);
  --gradient-text: linear-gradient(135deg, #4ade80 0%, #22d3ee 100%);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(34, 197, 94, 0.15), transparent);
  --shadow-glow: 0 0 60px rgba(34, 197, 94, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

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

button, input {
  font: inherit;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 720px;
}

/* Background effects */
.bg-pattern {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(34, 197, 94, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.bg-glow--hero {
  top: -200px;
  right: -100px;
  background: rgba(34, 197, 94, 0.12);
}

/* Typography */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.btn--xl {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 6px 28px rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn--outline:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.header__cta--link {
  display: none;
  text-decoration: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.logo__icon {
  width: 32px;
  height: 32px;
  color: var(--accent-green);
}

.nav {
  display: none;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--text-primary);
}

.header__cta {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav:not([hidden]) {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  z-index: 99;
}

.waitlist-dropdown {
  position: relative;
  display: none;
}

.waitlist-dropdown__panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: min(320px, calc(100vw - 2.5rem));
  padding: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.waitlist-dropdown__title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.875rem;
}

.waitlist-dropdown__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.waitlist-dropdown__form input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.waitlist-dropdown__form input:focus {
  outline: none;
  border-color: var(--accent-green);
}

.mobile-nav a {
  font-size: 1.1rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.mobile-nav .btn {
  margin-top: 0.5rem;
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-height) + 3rem) 0 4rem;
  background: var(--gradient-hero);
}

.hero__grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.hero__content {
  text-align: center;
  max-width: 560px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-green);
  margin-bottom: 1.5rem;
}

.badge__dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero__title {
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 3vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.waitlist-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.waitlist-form input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--accent-green);
}

.waitlist-form input::placeholder {
  color: var(--text-muted);
}

.waitlist-form__note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Phone mockup */
.hero__mockup {
  width: 100%;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
}

.phone__frame {
  position: relative;
  width: min(280px, 75vw);
  background: #1a1f2e;
  border-radius: 40px;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #1a1f2e;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone__screen {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9 / 19;
}

.phone__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
  z-index: -1;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.app-preview {
  padding: 3rem 1.25rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app-preview__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.app-preview__greeting {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.app-preview__score {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-green);
}

.app-preview__progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.app-preview__progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: progress-grow 2s ease-out;
}

@keyframes progress-grow {
  from { width: 0 !important; }
}

.app-preview__label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.app-preview__question {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.app-preview__options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.app-preview__option {
  padding: 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  transition: var(--transition);
}

.app-preview__option--selected {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.app-preview__timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 600;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.section--alt {
  background: rgba(17, 24, 39, 0.4);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  color: var(--accent-green);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.25rem;
}

.step__content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.step__content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.step-connector {
  width: 2px;
  height: 32px;
  background: linear-gradient(180deg, var(--accent-green), transparent);
  margin-left: 23px;
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.category-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cat-accent, var(--gradient-primary));
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

a.category-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.category-card--pl { --cat-accent: linear-gradient(90deg, #3b0764, #7c3aed); }
.category-card--ch { --cat-accent: linear-gradient(90deg, #1e3a5f, #2563eb); }
.category-card--fac { --cat-accent: linear-gradient(90deg, #7f1d1d, #dc2626); }
.category-card--eng { --cat-accent: linear-gradient(90deg, #1e3a5f, #ffffff); }
.category-card--leg { --cat-accent: linear-gradient(90deg, #78350f, #fbbf24); }
.category-card--hist { --cat-accent: linear-gradient(90deg, #14532d, #22c55e); }

.category-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.category-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.category-card__count {
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 500;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
  color: var(--accent-gold);
  font-size: 1rem;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-style: normal;
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.testimonial-card cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-card footer span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Leaderboard */
.leaderboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  max-width: 520px;
  margin: 0 auto;
}

.leaderboard-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.leaderboard-card__header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.leaderboard-card__badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-green);
  border-radius: 999px;
  animation: pulse 2s ease-in-out infinite;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 32px 36px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.leaderboard-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.leaderboard-item--gold .leaderboard-item__rank { color: #fbbf24; }
.leaderboard-item--silver .leaderboard-item__rank { color: #94a3b8; }
.leaderboard-item--bronze .leaderboard-item__rank { color: #d97706; }

.leaderboard-item__rank {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.leaderboard-item__avatar {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
}

.leaderboard-item__name {
  font-size: 0.875rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-item__score {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-green);
}

.leaderboard-card__you {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.leaderboard-card__you strong {
  color: var(--text-primary);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent-green);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent-green);
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  padding-bottom: 6rem;
}

.cta-card {
  position: relative;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta-card__glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  position: relative;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.cta-card p {
  position: relative;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-card .btn {
  position: relative;
}

.app-store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

.app-store-badge span {
  display: block;
  font-size: 0.7rem;
}

.app-store-badge strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.875rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-green);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 200;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-glow);
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

/* Animations */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.7s ease forwards;
}

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

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Tablet */
@media (min-width: 640px) {
  .waitlist-form__row {
    flex-direction: row;
  }

  .waitlist-form input {
    flex: 1;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 2;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .header__cta {
    display: block;
  }

  .waitlist-dropdown:hover .waitlist-dropdown__panel,
  .waitlist-dropdown:focus-within .waitlist-dropdown__panel,
  .waitlist-dropdown.is-open .waitlist-dropdown__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-nav {
    display: none !important;
  }

  .menu-toggle {
    display: none;
  }

  .hero__grid {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .hero__content {
    text-align: left;
    flex: 1;
  }

  .hero__stats {
    justify-content: flex-start;
  }

  .hero__mockup {
    flex: 0 0 auto;
  }

  .phone__frame {
    width: 300px;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    flex-direction: row;
    max-width: none;
    gap: 1rem;
    align-items: flex-start;
  }

  .step {
    flex: 1;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .step-connector {
    width: 60px;
    height: 2px;
    margin: 24px 0 0;
    background: linear-gradient(90deg, var(--accent-green), transparent);
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid .testimonial-card:last-child {
    grid-column: auto;
  }

  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }

  .footer__copy {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: 6rem;
  }

  .section {
    padding: 6rem 0;
  }
}

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

/* Quiz page */
.page-quiz {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-quiz .bg-pattern {
  opacity: 0.6;
}

.header--minimal {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

.header--minimal .header__inner {
  justify-content: space-between;
}

.quiz-back-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #e2e8f0;
  transition: color var(--transition);
}

.quiz-back-link:hover {
  color: #ffffff;
}

.header--minimal .logo {
  color: #ffffff;
}

.quiz-layout {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  padding: 1.5rem 1.25rem 2.5rem;
}

.quiz-page-season {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4ade80;
  margin-bottom: 0.875rem;
  text-align: center;
}

.quiz-season-tag {
  font-weight: 700;
  color: #1f2937;
  justify-self: center;
}

#quiz-progress-label {
  justify-self: start;
  color: #374151;
  font-weight: 600;
}

#quiz-score-live {
  justify-self: end;
  color: #111827;
  font-weight: 700;
}

.quiz-panel {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.quiz-view[hidden] {
  display: none;
}

.quiz-view {
  text-align: center;
}

.quiz-panel__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #15803d;
  margin-bottom: 0.75rem;
}

.quiz-panel__title {
  font-size: clamp(1.625rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.quiz-panel__desc {
  color: #334155;
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.quiz-panel__cta {
  width: 100%;
}

.quiz-status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: #475569;
}

.quiz-progress {
  height: 5px;
  background: #e2e8f0;
  border-radius: 999px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.quiz-progress__bar {
  height: 100%;
  background: var(--accent-green);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.quiz-panel__question {
  font-size: clamp(1.2rem, 4.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quiz-option {
  width: 100%;
  padding: 1rem 1.125rem;
  text-align: center;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.quiz-option:hover:not(:disabled) {
  border-color: #64748b;
  background: #f1f5f9;
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-option--correct {
  border-color: #15803d !important;
  background: #dcfce7 !important;
  color: #14532d !important;
  font-weight: 700;
}

.quiz-option--wrong {
  border-color: #dc2626 !important;
  background: #fee2e2 !important;
  color: #7f1d1d !important;
  font-weight: 700;
}

.quiz-feedback {
  font-size: 1rem;
  line-height: 1.65;
  color: #334155;
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0.875rem 1rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

.quiz-feedback--correct {
  color: #14532d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.quiz-panel__score {
  font-size: clamp(2.75rem, 10vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 0.625rem;
}

.quiz-panel__meta {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #475569;
  margin-bottom: 2rem;
}

.quiz-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.quiz-panel__actions .btn {
  width: 100%;
}

.quiz-panel .btn--outline {
  color: #0f172a;
  border: 1.5px solid #94a3b8;
  font-weight: 600;
}

.quiz-panel .btn--outline:hover {
  border-color: var(--accent-green-dark);
  color: var(--accent-green-dark);
  background: #f0fdf4;
}

.page-quiz .quiz-hub .quiz-panel__label {
  color: #4ade80;
  font-size: 0.875rem;
}

.quiz-hub__title {
  font-size: clamp(1.625rem, 5vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.625rem;
}

.quiz-hub__desc {
  color: #e2e8f0;
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.quiz-hub__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-hub__card {
  display: block;
  text-align: left;
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-lg);
  padding: 1.375rem 1.5rem;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.quiz-hub__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.quiz-hub__season {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-green-dark);
  margin-bottom: 0.375rem;
}

.quiz-hub__name {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  margin-bottom: 0.375rem;
}

.quiz-hub__meta {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #475569;
}

.category-card__cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-green);
}

.home-quiz-cta {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.home-quiz-cta__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.home-quiz-cta__content h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.625rem;
}

.home-quiz-cta__content p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto;
}

.home-quiz-cta__btn {
  width: 100%;
  max-width: 320px;
}

@media (min-width: 768px) {
  .home-quiz-cta__card {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 2.5rem;
  }

  .home-quiz-cta__content p {
    margin: 0;
  }

  .home-quiz-cta__btn {
    flex-shrink: 0;
    width: auto;
    max-width: none;
  }
}

@media (min-width: 768px) {
  .header__cta--link {
    display: inline-flex;
  }

  .quiz-panel__actions {
    flex-direction: row;
  }

  .quiz-panel__actions .btn {
    flex: 1;
  }
}

/* Top 10 Challenge */
.top10-panel {
  text-align: left;
}

.top10-panel .quiz-panel__title,
.top10-panel .quiz-panel__desc {
  text-align: center;
}

.top10-lives {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
  padding: 0.625rem 1rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
}

#lives-count {
  color: #dc2626;
  font-weight: 800;
  font-size: 1.125rem;
}

.top10-slots {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.top10-slot {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  min-height: 3rem;
}

.top10-slot--filled {
  background: #f0fdf4;
  border-style: solid;
  border-color: #86efac;
}

.top10-slot__rank {
  flex-shrink: 0;
  width: 1.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: #64748b;
}

.top10-slot--filled .top10-slot__rank {
  color: #15803d;
}

.top10-slot__answer {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
}

.top10-slot--filled .top10-slot__answer {
  color: #0f172a;
}

.top10-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.top10-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: #0f172a;
  font-size: 1rem;
  font-weight: 500;
}

.top10-input:focus {
  outline: none;
  border-color: var(--accent-green-dark);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.top10-input::placeholder {
  color: #94a3b8;
}

.top10-submit {
  width: 100%;
}

.top10-lives--empty #lives-count {
  color: #991b1b;
}

.top10-panel--won .top10-lives {
  border-color: #86efac;
  background: #f0fdf4;
}

.top10-panel--lost .top10-lives {
  border-color: #fca5a5;
  background: #fef2f2;
}

.top10-slot--revealed:not(.top10-slot--filled) {
  background: #fef2f2;
  border-style: solid;
  border-color: #fca5a5;
}

.top10-slot--revealed:not(.top10-slot--filled) .top10-slot__answer {
  color: #991b1b;
}

.quiz-feedback--error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.top10-panel .quiz-feedback {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .top10-form {
    flex-direction: row;
  }

  .top10-input {
    flex: 1;
  }

  .top10-submit {
    width: auto;
    min-width: 140px;
  }
}
