/* vrc.dj  Hero: homepage hero + carousel */
/* --- Hero */
.hero            { position: relative; flex: 1; display: flex; align-items: center; overflow: hidden; }
.hero-glow       { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-glow::before {
  content: '';
  position: absolute;
  width: 70vmax; height: 70vmax; border-radius: 50%;
  top: -25vmax; left: -15vmax;
  background: radial-gradient(circle, rgba(124,58,237,.14) 0%, transparent 65%);
  animation: glowDrift 10s ease-in-out infinite alternate;
}
.hero-glow::after {
  content: '';
  position: absolute;
  width: 55vmax; height: 55vmax; border-radius: 50%;
  bottom: -15vmax; right: -10vmax;
  background: radial-gradient(circle, rgba(14,165,233,.09) 0%, transparent 65%);
  animation: glowDrift 14s ease-in-out infinite alternate-reverse;
}
@keyframes glowDrift { from { transform: translate(0,0) scale(1); } to { transform: translate(3%,4%) scale(1.1); } }
.hero-content  { position: relative; z-index: 1; text-align: center; padding: 2rem 0 4rem; width: 100%; }
.hero-title    { font-size: clamp(2.5rem,8vw,5.5rem); font-weight: 900; letter-spacing: -.035em; line-height: 1; color: var(--white); margin-bottom: 1.25rem; }
.hero-sub      { font-size: clamp(1rem,2.5vw,1.2rem); color: var(--text-secondary); max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-actions  { display: flex; align-items: center; justify-content: center; gap: .875rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat-num { display: block; font-size: 1.75rem; font-weight: 800; color: var(--white); letter-spacing: -.02em; }
.hero-stat-lbl { display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-top: 2px; }

/* --- Hero carousel */
@keyframes hero-dot-pop {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
/* Slide layout */
.hero-slide { display: flex; align-items: center; width: 100%; }
.hero--carousel {
  min-height: clamp(440px, 65vh, 720px);
}
.hero--carousel .hero-slide {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero--carousel .hero-slide.is-active { pointer-events: auto; }

/* Background layers (sit between glow and slide content in DOM order) */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
/* Only overlay when there's an actual background image (inline style present) */
.hero-bg-layer[style]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.42);
}
.hero-bg-layer.is-active { opacity: 1; }

/* Per-element enter/exit animations */
.hero--carousel .hero-slide [data-hero-el] {
  opacity: 0;
  transform: translateX(28px);
}
.hero--carousel .hero-slide.is-active [data-hero-el] {
  opacity: 1;
  transform: translateX(0);
  transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1);
}
.hero--carousel .hero-slide.is-active [data-hero-el="pill"]    { transition-delay:   0ms; }
.hero--carousel .hero-slide.is-active [data-hero-el="title"]   { transition-delay:  65ms; }
.hero--carousel .hero-slide.is-active [data-hero-el="sub"]     { transition-delay: 130ms; }
.hero--carousel .hero-slide.is-active [data-hero-el="actions"] { transition-delay: 195ms; }
.hero--carousel .hero-slide.is-active [data-hero-el="stats"]   { transition-delay: 260ms; }
.hero--carousel .hero-slide.is-exiting [data-hero-el] {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .4s cubic-bezier(.4,0,.2,1), transform .4s cubic-bezier(.4,0,.2,1);
  transition-delay: 0ms !important;
}

/* Progress bar */
.hero-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.10); z-index: 5; }
.hero-progress-fill { height: 100%; width: 0; background: var(--accent-2-base); will-change: width; }

/* Navigation dots */
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 6;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s ease, transform .25s ease;
  opacity: 0;
  animation: hero-dot-pop .35s cubic-bezier(.34,1.56,.64,1) forwards;
}
.hero-dot:nth-child(1) { animation-delay: .40s; }
.hero-dot:nth-child(2) { animation-delay: .48s; }
.hero-dot:nth-child(3) { animation-delay: .56s; }
.hero-dot.is-active         { background: var(--accent-2-base); transform: scale(1.25); }
.hero-dot:hover             { background: rgba(255,255,255,.5); }
.hero-dot.is-active:hover   { background: var(--accent-2-base); }

/* Press-and-hold pause state */
.hero--carousel.carousel-held { user-select: none; }
.hero--carousel.carousel-held .hero-progress-fill { opacity: .5; }

/* Light-mode hero: white-alpha dots/bar become invisible - swap to dark-alpha equivalents */
[data-theme="light"] .hero {
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent-base) 6%, var(--bg-base)) 0%, var(--bg-base) 60%);
}
[data-theme="light"] .hero-progress                   { background: rgba(0,0,0,.10); }
[data-theme="light"] .hero-dot                         { background: rgba(0,0,0,.18); }
[data-theme="light"] .hero-dot:hover                   { background: rgba(0,0,0,.38); }
[data-theme="light"] .hero-dot.is-active               { background: var(--accent-2-base); }
[data-theme="light"] .hero-dot.is-active:hover         { background: var(--accent-2-base); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero {
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent-base) 6%, var(--bg-base)) 0%, var(--bg-base) 60%);
  }
  :root:not([data-theme="dark"]) .hero-progress               { background: rgba(0,0,0,.10); }
  :root:not([data-theme="dark"]) .hero-dot                    { background: rgba(0,0,0,.18); }
  :root:not([data-theme="dark"]) .hero-dot:hover              { background: rgba(0,0,0,.38); }
  :root:not([data-theme="dark"]) .hero-dot.is-active          { background: var(--accent-2-base); }
  :root:not([data-theme="dark"]) .hero-dot.is-active:hover    { background: var(--accent-2-base); }
}

/* FotW pill variant - color driven by --fotw-color set inline on the slide */
.hero-pill--fotw {
  background: color-mix(in srgb, var(--fotw-color, #0ea5e9) 14%, transparent);
  border-color: color-mix(in srgb, var(--fotw-color, #0ea5e9) 40%, transparent);
  color: color-mix(in srgb, var(--fotw-color, #38bdf8) 30%, #fff);
}

/* FotW slide: scoped overrides for title gradient + buttons */
[data-slide="1"] .fotw-gradient-text {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--fotw-color, #0ea5e9) 80%, #fff) 0%,
    color-mix(in srgb, var(--fotw-color, #0ea5e9) 35%, #fff) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-slide="1"] .btn-accent {
  background: color-mix(in srgb, var(--fotw-color, #0ea5e9) 22%, transparent);
  border-color: color-mix(in srgb, var(--fotw-color, #0ea5e9) 50%, transparent);
  color: color-mix(in srgb, var(--fotw-color, #0ea5e9) 30%, #fff);
}
[data-slide="1"] .btn-accent:hover,
[data-slide="1"] .btn-accent:focus-visible {
  background: color-mix(in srgb, var(--fotw-color, #0ea5e9) 80%, transparent);
  border-color: var(--fotw-color, #0ea5e9);
  color: #fff;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--fotw-color, #0ea5e9) 45%, transparent);
}
[data-slide="1"] .btn-ghost:hover,
[data-slide="1"] .btn-ghost:focus-visible {
  border-color: color-mix(in srgb, var(--fotw-color, #0ea5e9) 40%, transparent);
  color: color-mix(in srgb, var(--fotw-color, #0ea5e9) 40%, #fff);
}

