/* ── Landing Page Styles ── */

/* Smooth scroll for anchor links */
html:has(#landing-root) {
  scroll-behavior: smooth;
}

/* Scroll reveal */
.landing-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.landing-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.landing-reveal-delay-1 { transition-delay: 0.1s; }
.landing-reveal-delay-2 { transition-delay: 0.2s; }

/* Feature number label */
.landing-feature-num {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--color-primary-600);
}

/* Device frame for GIFs */
.landing-device-frame {
  background: #f8fafc;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  position: relative;
}
.landing-device-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary) 15%, transparent), transparent);
}
.landing-device-frame img {
  width: 100%;
  display: block;
}

/* Dark theme device frame */
[data-landing-theme="dark"] .landing-device-frame {
  background: #131c30;
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 120px color-mix(in srgb, var(--color-primary) 8%, transparent);
}
[data-landing-theme="dark"] .landing-device-frame::before {
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary) 30%, transparent), transparent);
}

/* CTA shimmer */
.landing-cta-btn {
  position: relative;
  overflow: hidden;
}
.landing-cta-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: landing-shimmer 3s ease-in-out infinite;
}
@keyframes landing-shimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

/* Float badge */
@keyframes landing-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.landing-float { animation: landing-float 3s ease-in-out infinite; }

/* Section spacing for CTA areas */
.landing-cta-actions {
  margin-top: 2.75rem;
}

@media (min-width: 640px) {
  .landing-cta-actions {
    gap: 1.25rem;
  }

  .landing-cta-link {
    min-width: 12rem;
  }
}

/* Feature rows with GIF + text */
.landing-feature-row {
  gap: 3rem;
}
.landing-feature-row--wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem 3.5rem;
}

/* SPORTS cards */
.landing-sports-grid {
  column-gap: 1.25rem;
}

@media (min-width: 1024px) {
  .landing-cta-actions {
    gap: 1.5rem;
  }

  .landing-cta-link {
    min-width: 13.5rem;
    padding-inline: 3rem;
  }

  .landing-feature-row {
    gap: 5rem;
  }

  .landing-feature-row--wide {
    gap: 5rem 5.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-sports-grid {
    column-gap: 1.5rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .landing-reveal,
  .landing-reveal * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
