/* ================================================================
   APOLLO GROUP TV — HERO v5  (Cinematic + WOW Mobile)
================================================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(245,158,11,.09), transparent 55%),
    radial-gradient(ellipse 60% 70% at 85% 75%, rgba(14,165,233,.08), transparent 55%),
    #070707;
}

/* Background image */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  will-change: transform;
  transition: transform 8s ease;
}
.hero-section:hover .hero-bg img { transform: scale(1.02); }

/* Overlay */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg,
    rgba(0,0,0,.45) 0%,
    rgba(0,0,0,.62) 50%,
    rgba(0,0,0,.90) 100%);
}

/* Animated glow orb */
.hero-section::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  top: -280px; right: -200px;
  background: radial-gradient(circle, rgba(245,158,11,.14), transparent 60%);
  filter: blur(90px);
  opacity: .8; z-index: 0;
  pointer-events: none;
  animation: heroOrb 7s ease-in-out infinite;
}
@keyframes heroOrb {
  0%,100% { opacity: .7; transform: translateY(0) scale(1); }
  50%      { opacity: 1;  transform: translateY(18px) scale(1.06); }
}

/* Bottom vignette for smooth blend */
.hero-section::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent, #070707);
  z-index: 2;
}

/* Content */
.hero-content {
  position: relative; z-index: 3;
  max-width: 860px;
  text-align: center;
  padding: 2rem 1.5rem;
}

/* Tagline pill */
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.6rem;
  animation: fadeDown .7s ease both;
}

/* Title */
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.06;
  margin-bottom: 1.4rem;
  letter-spacing: -.035em;
  background: linear-gradient(90deg,
    #ffffff 0%,
    rgba(245,158,11,.95) 38%,
    #ffffff 62%,
    rgba(56,189,248,.9) 100%);
  background-size: 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeDown .7s ease .1s both, shimmer 6s linear 1s infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% }
  100% { background-position: 200% }
}

/* Description */
.hero-description {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  max-width: 58ch;
  margin: 0 auto 2.5rem;
  line-height: 1.72;
  animation: fadeDown .7s ease .2s both;
}

/* ── CTA BUTTONS ─────────────────────────────────── */
.hero-cta {
  display: flex;
  flex-direction: row;   /* ALWAYS horizontal */
  justify-content: center;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;       /* wraps only when truly no room */
  animation: fadeDown .7s ease .3s both;
}

/* Shared button */
.hero-cta .btn {
  flex: 0 0 auto;       /* don't grow/shrink, stay natural size */
  white-space: nowrap;
  position: relative;
  min-height: 50px;
  padding: .9rem 1.6rem;
  border-radius: 13px;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .01em;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform .32s cubic-bezier(.22,.68,0,1.3),
    box-shadow .3s ease,
    filter .25s ease;
}

/* Liquid shimmer layer on each button */
.hero-cta .btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(255,255,255,.18) 50%,
    transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
  pointer-events: none;
}
.hero-cta .btn:hover::before { transform: translateX(100%); }

/* Primary — gold/amber luxury */
.hero-cta .btn-primary {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 45%, #fde68a 100%);
  color: #0a0a0a;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow:
    0 6px 20px rgba(245,158,11,.35),
    inset 0 1px 0 rgba(255,255,255,.25);
}
.hero-cta .btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 16px 40px rgba(245,158,11,.5),
    inset 0 1px 0 rgba(255,255,255,.3);
  filter: brightness(1.08);
}

/* Ghost — glass */
.hero-cta .btn-ghost {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
}
.hero-cta .btn-ghost:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.38);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Outline — cyan */
.hero-cta .btn-outline {
  background: rgba(14,165,233,.07);
  border: 1px solid rgba(14,165,233,.32);
  color: rgba(255,255,255,.82);
  backdrop-filter: blur(8px);
}
.hero-cta .btn-outline:hover {
  background: rgba(14,165,233,.15);
  border-color: rgba(14,165,233,.6);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(14,165,233,.22);
}

/* Active state feedback */
.hero-cta .btn:active { transform: translateY(-1px) scale(.98); }

/* Focus */
.hero-cta a:focus-visible {
  outline: 2px solid rgba(245,158,11,.75);
  outline-offset: 4px;
}

/* ── Hero badges — glassmorphism pills ── */
.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
  animation: fadeDown .7s ease .5s both;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.72);
  letter-spacing: .015em;
  transition: background .2s, border-color .2s;
}
.hero-badge:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(74,222,128,.3);
}
.hero-badge svg { flex-shrink: 0; opacity: .9; }
/* no separators — pills handle spacing */
.hero-badge__sep { display: none; }
@media (max-width: 480px) {
  .hero-badges { gap: .4rem; }
  .hero-badge { font-size: .74rem; padding: .38rem .75rem; }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.25);
  animation: fadeIn 1s ease 1s both;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.3), transparent);
  animation: scrollPulse 2.2s ease infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .25; transform: scaleY(.5) translateY(-8px); }
  55%     { opacity: 1;   transform: scaleY(1)   translateY(0);    }
}

/* ── FADE-DOWN KEYFRAMES ──────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0);      }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══ MOBILE HERO — redesigned for maximum impact ══ */
@media (max-width: 768px) {
  .hero-section { min-height: 100svh; padding-top: 64px; }
  .hero-content { padding: 2.5rem 1.2rem 2rem; text-align: left; max-width: 100%; }
  .hero-tagline { font-size: .68rem; padding: .25rem .7rem; margin-bottom: 1.1rem; }
  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3rem);
    margin-bottom: .9rem;
    letter-spacing: -.04em;
    line-height: 1.08;
    background: linear-gradient(135deg, #fff 40%, rgba(245,158,11,.95) 70%, #fff 100%);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: none;
  }
  .hero-description {
    font-size: .92rem;
    line-height: 1.62;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-cta {
    flex-direction: column !important;
    align-items: stretch;
    gap: .6rem;
    padding: 0;
    margin-bottom: 1.5rem;
  }
  .hero-cta .btn-primary {
    width: 100% !important;
    flex: none !important;
    min-height: 56px;
    font-size: .95rem;
    border-radius: 14px;
    justify-content: center;
  }
  .hero-cta .btn-ghost,
  .hero-cta .btn-outline { display: none; }
  .hero-badges { justify-content: flex-start; margin-top: 0; gap: .35rem; }
  .hero-badge { font-size: .73rem; padding: .35rem .72rem; }
  .hero-scroll { display: none; }
}
@media (max-width: 390px) {
  .hero-title { font-size: clamp(1.9rem, 9.5vw, 2.4rem); }
  .hero-content { padding: 2rem 1rem 1.5rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .hero-section::after  { animation: none; }
  .hero-title           { animation: none; }
  .hero-tagline,
  .hero-description,
  .hero-cta,
  .hero-note            { animation: none; opacity: 1; }
  .hero-cta .btn::before { display: none; }
}
