/* =====================================================
   AFX+ Premium Landing Page — Custom Styles
   Liquid glass, water-drop ripple, scroll reveal
   ===================================================== */

:root {
  --bg-dark: #0a0a0f;
  --bg-darker: #06060a;
  --accent-gold: #d4af37;
  --accent-amber: #f59e0b;
  --accent-amber-light: #fbbf24;
  --text-primary: #ffffff;
  --text-muted: #a1a1aa;
  --border-glass: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(0, 0, 0, 0.4);
  --glass-blur: 24px;
  --glass-border: rgba(255, 255, 255, 0.15);
}

/* Base */
html {
  scroll-behavior: smooth;
}

/* Section background: blurred image + gradient for readability (image subtle, not sharp) */
.section-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.section-bg-wrap .section-bg-img {
  position: absolute;
  inset: -15%;
  width: 130%;
  height: 130%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(20px);
}
.section-bg-wrap .section-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.97) 0%, rgba(10,10,15,0.88) 25%, rgba(10,10,15,0.82) 50%, rgba(10,10,15,0.88) 75%, rgba(10,10,15,0.97) 100%);
}

/* Navbar — Liquid Glass */
.afx-nav {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
}

.afx-nav.scrolled {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-amber), transparent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Language Dropdown */
.lang-dropdown {
  background: rgba(5, 5, 12, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.lang-dropdown .lang-option {
  color: rgba(255, 255, 255, 0.95);
}
.lang-dropdown .lang-option:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.lang-option.active {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber-light);
}

/* Mobile Menu */
.mobile-menu-backdrop {
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mobile-menu-panel {
  background: rgba(8, 8, 14, 0.98) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
}
.mobile-menu-panel .mobile-nav-link {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.mobile-menu-panel .mobile-nav-link:hover {
  color: #fff;
}

.mobile-menu-panel.open {
  transform: translateX(0);
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu.open .mobile-menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-nav-link:hover {
  color: white;
  padding-left: 8px;
}

/* Location Selector Banner — Amber/Gold Glass */
.location-banner {
  background: rgba(212, 175, 55, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Divider between Header 1 (location) and Header 2 (main nav) */
.header-divider {
  height: 1px;
  width: 100%;
  flex-shrink: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0.12) 80%, transparent 100%);
  border: none;
}

/* Header 2 (main nav) sits directly below Header 1 + divider (61px total) */
.location-banner-offset {
  top: 61px; /* 60px Header 1 + 1px divider */
}

body.location-banner-hidden .location-banner-offset {
  top: 0;
}

/* Index landing: start straight with hero — header transparent at top so hero is the first view */
body.index-landing .afx-nav:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
body.index-landing .afx-nav:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.85);
}
body.index-landing .afx-nav:not(.scrolled) .nav-link:hover {
  color: #fff;
}
body.index-landing main {
  margin-top: 0;
  padding-top: 0;
}

/* Mobile menu: below Header 2 (64px) or below Header 1 + divider + Header 2 (61 + 64 = 125px) */
.hero-mobile-menu-offset {
  top: 64px;
}
body:not(.location-banner-hidden) .hero-mobile-menu-offset {
  top: 125px; /* 61px (Header 1 + divider) + 64px (Header 2) */
}
@media (min-width: 1024px) {
  .hero-mobile-menu-offset {
    top: 80px;
  }
  body:not(.location-banner-hidden) .hero-mobile-menu-offset {
    top: 141px; /* 61 + 80 */
  }
}

.location-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  min-height: 0;
  overflow: hidden;
}

/* African Flags Marquee — fixed below header so it's visible */
.flags-marquee-wrap {
  position: fixed;
  left: 0;
  right: 0;
  top: 64px; /* below header when banner hidden */
  z-index: 45;
  height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
}

.flags-marquee-wrap.flags-marquee-below-hero {
  position: relative;
  top: auto;
}

/* When location banner is visible, push marquee down */
body:not(.location-banner-hidden) .flags-marquee-wrap {
  top: 125px; /* 61px (Header 1 + divider) + 64px Header 2 */
}

@media (min-width: 1024px) {
  .flags-marquee-wrap {
    top: 80px; /* lg header height */
    height: 44px;
  }
  body:not(.location-banner-hidden) .flags-marquee-wrap {
    top: 141px; /* 61 + 80 */
  }
}

.flags-marquee {
  display: flex;
  gap: 0;
  width: max-content;
  animation: flags-marquee-scroll 35s linear infinite;
}

.flags-marquee-inner {
  font-size: 0.875rem;
  white-space: nowrap;
  padding-right: 0; /* no gap — flags follow each other continuously, seamless loop */
}

@keyframes flags-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% / 3)); }
}

/* Hero Section - Carousel */
.hero-section {
  background-color: var(--bg-dark);
}

.hero-section-carousel {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 0.5s ease-out;
  filter: brightness(0.5);
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-slide {
    background-attachment: scroll;
  }
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.2s;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-dot.active {
  background: var(--accent-amber);
  transform: scale(1.25);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

/* Hero Next Arrow */
.hero-next-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}

.hero-next-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
  transform: scale(1.08);
}
.hero-section-carousel .hero-next-btn:hover {
  transform: translateY(-50%) scale(1.08);
}

.hero-next-btn:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 2px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 10, 0.72) 0%,
    rgba(5, 5, 10, 0.78) 20%,
    rgba(5, 5, 10, 0.85) 40%,
    rgba(5, 5, 10, 0.9) 60%,
    rgba(5, 5, 10, 0.94) 80%,
    rgba(5, 5, 10, 0.98) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(245, 158, 11, 0.15), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(212, 175, 55, 0.1), transparent),
    radial-gradient(2px 2px at 60% 20%, rgba(255, 255, 255, 0.08), transparent);
  background-size: 200% 200%;
  animation: particle-drift 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes particle-drift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

.hero-section h1 {
  text-shadow: 0 0 60px rgba(245, 158, 11, 0.15);
}

/* Hero content block (above overlay) */
.hero-section-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 640px) {
  .hero-section-content { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .hero-section-content { padding: 0 2rem; }
}

.hero-pill {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-amber);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-section-content .hero-slide-title {
  font-size: clamp(1.875rem, 4vw, 3.75rem);
}
@media (min-width: 1024px) {
  .hero-section-content .hero-slide-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
  }
}
@media (min-width: 1280px) {
  .hero-section-content .hero-slide-title {
    font-size: 3.75rem;
  }
}
.hero-section-content .hero-slide-title {
  font-weight: 700;
  color: white;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero-section-content .hero-slide-desc {
  font-size: 1.125rem;
}
@media (min-width: 640px) {
  .hero-section-content .hero-slide-desc {
    font-size: 1.25rem;
  }
}
.hero-section-content .hero-slide-desc {
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0;
}
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--accent-amber);
  color: black;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.hero-cta-primary:hover {
  background: #f59e0b;
  transform: translateY(-1px);
}
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.hero-dots {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Next arrow: right side of hero, vertically centered */
.hero-section-carousel .hero-next-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}
@media (min-width: 640px) {
  .hero-section-carousel .hero-next-btn {
    right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .hero-section-carousel .hero-next-btn {
    right: 2rem;
  }
}

/* ========== Splash / Streaming hero (reference layout) ========== */
.hero-splash {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Splash bg wrapper: desktop = single full-bleed, mobile = two images horizontal */
.hero-splash-bg-wrap {
  position: absolute;
  inset: 0;
}
.hero-splash-bg {
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(0.5);
}
.hero-splash-bg-1 {
  position: absolute;
  inset: 0;
  background-position: center;
}
.hero-splash-bg-2 {
  display: none;
}
@media (max-width: 767px) {
  .hero-splash-bg-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .hero-splash-bg-1,
  .hero-splash-bg-2 {
    position: relative;
    min-height: 100%;
    background-position: center;
  }
  .hero-splash-bg-1 {
    background-position: right center;
  }
  .hero-splash-bg-2 {
    display: block;
    background-position: left center;
  }
}

/* Legacy single full-bleed (e.g. index when not using wrap) */
.hero-splash .hero-splash-bg:only-child,
.hero-splash-bg:not(.hero-splash-bg-1):not(.hero-splash-bg-2) {
  position: absolute;
  inset: 0;
  background-position: center;
}

.hero-splash-posters {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.hero-splash-posters-inner {
  position: absolute;
  inset: -15%;
  width: 130%;
  height: 130%;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%) perspective(1200px) rotateX(14deg) scale(1.4);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 4px;
  grid-auto-flow: dense;
}

.hero-splash-poster {
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  min-height: 60px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-splash-poster.w2 { grid-column: span 2; }
.hero-splash-poster.h2 { grid-row: span 2; }
.hero-splash-poster.w2.h2 { grid-column: span 2; grid-row: span 2; }

.hero-splash-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.65) 25%,
    rgba(0,0,0,0.72) 50%,
    rgba(0,0,0,0.82) 75%,
    rgba(0,0,0,0.95) 100%);
  z-index: 1;
}

.hero-splash-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 40%, rgba(0,0,0,0.5) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-splash-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  padding-top: 6rem;
  padding-bottom: 8rem;
  text-align: center;
}

.hero-splash-headline {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin: 0 auto;
}

.hero-splash-subheadline {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  margin-top: 1rem;
}

.hero-splash-supporting {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.9);
  margin-top: 1.25rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-splash-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: stretch;
  max-width: 580px;
  margin: 1.5rem auto 0;
}

.hero-splash-email {
  flex: 1;
  min-width: 280px;
  height: 56px;
  padding: 0 1.25rem;
  padding-left: 3rem; /* when used with email icon */
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.hero-splash-email::placeholder {
  color: rgba(255,255,255,0.7);
}

.hero-splash-email:focus {
  border-color: rgba(245,158,11,0.6);
  background: rgba(0,0,0,0.55);
}

.hero-splash-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 56px;
  padding: 0 1.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  background: var(--accent-amber);
  color: #000;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.hero-splash-cta:hover {
  background: #fbbf24;
  transform: scale(1.02);
}

.hero-splash-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  z-index: 3;
  pointer-events: none;
  background: transparent;
}

.hero-splash-glow::before {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -2px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,158,11,0.15) 20%,
    rgba(245,158,11,0.35) 50%,
    rgba(245,158,11,0.15) 80%,
    transparent 100%);
  filter: blur(12px);
  box-shadow: 0 0 60px 20px rgba(245,158,11,0.2);
}

@media (max-width: 640px) {
  .hero-splash-form {
    flex-direction: column;
    min-width: 100%;
  }
  .hero-splash-email {
    min-width: 100%;
  }
  .hero-splash-posters-inner {
    transform: translate(-50%, -50%) perspective(1000px) rotateX(10deg) scale(1.6);
  }
}

/* Section padding */
.section-padding {
  padding: 6rem 0;
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 8rem 0;
  }
}

/* ========== Text animations (site-wide) ========== */

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered scroll-reveal delays (use with .scroll-reveal) */
.scroll-reveal.reveal-delay-1 { transition-delay: 0.1s; }
.scroll-reveal.reveal-delay-2 { transition-delay: 0.2s; }
.scroll-reveal.reveal-delay-3 { transition-delay: 0.3s; }
.scroll-reveal.reveal-delay-4 { transition-delay: 0.4s; }
.scroll-reveal.reveal-delay-5 { transition-delay: 0.5s; }
.scroll-reveal.reveal-delay-6 { transition-delay: 0.6s; }

/* Reveal children: parent gets .revealed, then children animate in with stagger */
.reveal-child {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-children.revealed .reveal-child { opacity: 1; transform: translateY(0); }
.reveal-children.revealed .reveal-child:nth-child(1) { transition-delay: 0s; }
.reveal-children.revealed .reveal-child:nth-child(2) { transition-delay: 0.08s; }
.reveal-children.revealed .reveal-child:nth-child(3) { transition-delay: 0.16s; }
.reveal-children.revealed .reveal-child:nth-child(4) { transition-delay: 0.24s; }
.reveal-children.revealed .reveal-child:nth-child(5) { transition-delay: 0.32s; }
.reveal-children.revealed .reveal-child:nth-child(6) { transition-delay: 0.4s; }
.reveal-children.revealed .reveal-child:nth-child(7) { transition-delay: 0.48s; }
.reveal-children.revealed .reveal-child:nth-child(8) { transition-delay: 0.56s; }
.reveal-children.revealed .reveal-child:nth-child(9) { transition-delay: 0.64s; }
.reveal-children.revealed .reveal-child:nth-child(10) { transition-delay: 0.72s; }

/* Fade-in variants */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fade-in-right {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-up {
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.animate-fade-in {
  animation: fade-in 0.7s ease forwards;
}
.animate-fade-in-left {
  animation: fade-in-left 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.animate-fade-in-right {
  animation: fade-in-right 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Hero entrance: staggered fade-up on load */
.hero-section-content .hero-pill {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
.hero-section-content .hero-slide-title {
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
.hero-section-content .hero-slide-desc {
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}
.hero-section-content .hero-cta-row {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}
.hero-section-content .hero-carousel-controls {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

/* Splash / index hero text entrance */
.hero-splash-content .hero-pill,
.splash-hero .hero-pill {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.hero-splash-content .hero-slide-title,
.splash-hero .hero-slide-title {
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
.hero-splash-content .hero-slide-desc,
.splash-hero .hero-slide-desc {
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
.hero-splash-content .hero-cta-row,
.splash-hero .hero-cta-row,
.hero-splash-content .hero-cta-row form,
.splash-hero form.hero-cta-row {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

/* Index/splash page hero text (headline, subheadline, form) */
.hero-splash-content .hero-splash-headline {
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.hero-splash-content .hero-splash-subheadline {
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
.hero-splash-content .hero-splash-supporting {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
.hero-splash-content .hero-splash-form {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

/* =====================================================
   Ecosystem Capsules — Liquid Glass + Water-Drop Ripple
   ===================================================== */

.capsule {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}

.capsule-featured {
  min-height: 420px;
}

/* Ecosystem mobile: 2-column grid, capsules fit well */
@media (max-width: 767px) {
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .ecosystem-grid .capsule {
    min-height: 160px;
    aspect-ratio: 1;
    min-height: 0;
  }
  .ecosystem-grid .capsule-featured {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
    min-height: 0;
  }
  .ecosystem-grid .capsule-content {
    padding: 1rem;
  }
  .ecosystem-grid .capsule-title {
    font-size: 0.95rem;
    line-height: 1.2;
  }
  .ecosystem-grid .capsule-desc {
    font-size: 0.75rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ecosystem-grid .capsule-cta {
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
  }
  .ecosystem-grid .capsule-featured .capsule-content {
    padding: 1.25rem;
  }
  .ecosystem-grid .capsule-featured .capsule-title {
    font-size: 1.25rem;
  }
  .ecosystem-grid .capsule-featured .capsule-desc {
    -webkit-line-clamp: 3;
    font-size: 0.8rem;
  }
}

.capsule:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 40px -10px rgba(245, 158, 11, 0.2);
}

/* Background image */
.capsule-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 767px) {
  .ecosystem-grid .capsule-bg {
    background-size: cover;
    background-position: center;
  }
}

.capsule:hover .capsule-bg {
  transform: scale(1.05);
}

/* Dark overlay */
.capsule-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

/* Liquid glass layer */
.capsule-glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

/* Glossy reflection streak */
.capsule-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 60%,
    transparent 100%
  );
  animation: glass-shimmer 8s ease-in-out infinite;
  pointer-events: none;
}

.capsule:hover .capsule-glass::before {
  animation-duration: 4s;
}

@keyframes glass-shimmer {
  0%, 100% { transform: translateX(0) skewX(-15deg); opacity: 0.6; }
  50% { transform: translateX(200%) skewX(-15deg); opacity: 1; }
}

/* Water-drop / refraction ripple */
.capsule-ripple {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}

.capsule-ripple::before,
.capsule-ripple::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 30%,
    transparent 70%
  );
  filter: blur(20px);
  animation: ripple-refract 12s ease-in-out infinite;
}

.capsule-ripple::before {
  width: 200px;
  height: 200px;
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.capsule-ripple::after {
  width: 150px;
  height: 150px;
  bottom: 25%;
  right: 25%;
  animation-delay: -4s;
}

.capsule:hover .capsule-ripple::before,
.capsule:hover .capsule-ripple::after {
  animation-duration: 6s;
  opacity: 0.9;
}

@keyframes ripple-refract {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.5;
  }
  25% {
    transform: scale(1.2) translate(10px, -15px);
    opacity: 0.8;
  }
  50% {
    transform: scale(0.9) translate(-5px, 10px);
    opacity: 0.6;
  }
  75% {
    transform: scale(1.1) translate(15px, 5px);
    opacity: 0.7;
  }
}

/* Capsule content */
.capsule-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  width: 100%;
}

.capsule-featured .capsule-content {
  padding: 2.5rem;
}

.capsule-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.capsule-featured .capsule-title {
  font-size: 2rem;
}

.capsule-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  max-width: 36ch;
}

.capsule-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0a0a0f;
  background: linear-gradient(135deg, var(--accent-amber-light), var(--accent-amber));
  border: none;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.capsule-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.capsule-cta::after {
  content: '→';
  font-weight: 600;
}

/* =====================================================
   How the Ecosystem Works — Step Cards
   ===================================================== */

.how-steps {
  position: relative;
}

.step-card {
  position: relative;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  text-align: center;
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.step-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.15);
  border-radius: 0.75rem;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.step-connector {
  flex: 0 0 40px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(245, 158, 11, 0.3),
    rgba(245, 158, 11, 0.1)
  );
}

/* Mobile: vertical layout for steps */
@media (max-width: 1023px) {
  .how-steps {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .step-card {
    max-width: 100%;
    width: 100%;
  }

  .step-connector {
    width: 2px;
    height: 24px;
    flex: none;
    background: linear-gradient(
      180deg,
      rgba(245, 158, 11, 0.3),
      rgba(245, 158, 11, 0.1)
    );
  }
}

/* =====================================================
   Vision Section
   ===================================================== */

.vision-stat {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.vision-stat:hover {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.vision-visual {
  min-height: 400px;
}

.vision-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    rgba(245, 158, 11, 0.08) 0%,
    transparent 70%
  );
  animation: vision-glow-pulse 8s ease-in-out infinite;
}

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

.vision-mesh {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
    linear-gradient(225deg, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
}

.vision-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

/* =====================================================
   Final CTA Panel
   ===================================================== */

.cta-panel {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(
    ellipse 60% 60% at 50% 50%,
    rgba(245, 158, 11, 0.1) 0%,
    transparent 60%
  );
  animation: cta-glow-shift 10s ease-in-out infinite;
}

@keyframes cta-glow-shift {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.1) rotate(5deg); opacity: 0.8; }
}

/* =====================================================
   Media Discovery Section (Apple-style carousel)
   ===================================================== */

.media-discovery {
  background: #08080c;
}

.media-carousel-outer {
  overflow: hidden;
  width: 100%;
}

.media-carousel-wrapper {
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 520px;
  padding: 1rem 0 0 0;
}

@media (min-width: 768px) {
  .media-carousel-wrapper {
    min-height: 580px;
  }
}

@media (min-width: 1024px) {
  .media-carousel-wrapper {
    min-height: 640px;
  }
}

.media-carousel-track {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .media-carousel-track {
    gap: 1.5rem;
  }
}

.media-hero-card {
  flex-shrink: 0;
  width: calc(50% - 0.5rem);
  max-width: 600px;
  min-width: 320px;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease,
    box-shadow 0.5s ease;
  opacity: 0.85;
  transform: scale(0.95);
}

@media (min-width: 768px) {
  .media-hero-card {
    max-width: 700px;
  }
}

@media (min-width: 1024px) {
  .media-hero-card {
    width: calc(50% - 0.75rem);
    max-width: 780px;
  }
}

.media-hero-card.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.media-hero-card-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
}

.media-hero-card:hover .media-hero-card-inner {
  transform: scale(1.05);
}

.media-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.media-hero-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.media-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.75rem;
}

.media-hero-genre {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
}

.media-hero-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.media-hero-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
  max-width: 28ch;
}

.media-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: #d4af37;
  color: #1a1a1a;
  border-radius: 9999px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.media-hero-cta:hover {
  background: #e5c048;
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Bottom tiles - 6 static tiles in single horizontal row */
.media-tiles-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 2.8cm auto 0;
  padding: 0 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.media-tiles-wrapper::-webkit-scrollbar {
  display: none;
}

.media-tiles-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
}

.media-tile {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 16/10.5;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.media-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
}

.media-tile .media-tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.media-tile:hover .media-tile-bg {
  transform: scale(1.08);
}

.media-tile .media-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.media-tile .media-tile-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 0.25rem;
}

.media-tile .media-tile-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
}

.media-tile .media-tile-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.media-tile .media-tile-category {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.5rem;
}

.media-tile .media-tile-cta {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: #d4af37;
  color: #1a1a1a;
  border-radius: 9999px;
  transition: background 0.2s, transform 0.2s;
}

.media-tile .media-tile-cta:hover {
  background: #e5c048;
  transform: scale(1.02);
}

/* Media dots */
.media-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.media-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.media-dot.active {
  background: #d4af37;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Desktop: full-screen cards (no overrides needed) */


/* =====================================================
   Entertainment Showcase (double carousel)
   ===================================================== */

#entertainment-showcase .bottom-carousel-track::-webkit-scrollbar {
  display: none;
}

#entertainment-showcase .ent-indicator.bg-amber-400 {
  background-color: var(--accent-amber);
}

/* AWOF category carousels: hide scrollbar, strong enclosure */
.awof-cat-carousel-enclosure .awof-cat-carousel::-webkit-scrollbar {
  display: none;
}

/* Explore Entertainment: hide horizontal scrollbars */
.explore-trending::-webkit-scrollbar,
.explore-featured-track::-webkit-scrollbar {
  display: none;
}

/* Store: hide horizontal scrollbars on carousels and category strip */
.scrollbar-hide {
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* =====================================================
   Footer
   ===================================================== */

footer {
  background: rgba(0, 0, 0, 0.6);
}

/* Accessibility: Focus states */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 2px;
}

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