/* ==========================================================================
   CHAMPIONS OF LUNERARIA - STUDIO GRADE STYLESHEET (AAA Polish)
   Deep Dark Fantasy, Metallic Gradients, Micro-Interactions & URP Glow
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Typography & Fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Cinzel';
  src: url('../fonts/Cinzel-VF.ttf') format('truetype');
  font-weight: 400 900;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Cantarell';
  src: url('../fonts/Cantarell-VF.otf') format('opentype');
  font-weight: 400 800;
  font-display: swap;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   2. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Obsidian & Midnight Foundations */
  --bg-deep: #030508;
  --bg-surface: #080c14;
  --bg-card: rgba(13, 19, 32, 0.85);
  --bg-card-hover: rgba(20, 29, 48, 0.95);
  --bg-glass: rgba(10, 15, 26, 0.72);
  --bg-glass-heavy: rgba(6, 9, 16, 0.88);

  /* Borders & Highlights */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-glass: rgba(148, 163, 184, 0.14);
  --border-active: rgba(77, 226, 214, 0.5);
  --border-gold: rgba(251, 191, 36, 0.5);

  /* Palette - Lunar & Ember */
  --lunar-cyan: #38e8d8;
  --lunar-blue: #0ea5e9;
  --lunar-glow: rgba(56, 232, 216, 0.25);
  --ember-gold: #f59e0b;
  --ember-bright: #fbbf24;
  --ember-flame: #ea580c;
  --ember-glow: rgba(245, 158, 11, 0.25);
  --ancient-violet: #a855f7;

  /* Text & Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-gold: #fde68a;
  --font-display: 'Cinzel', Georgia, serif;
  --font-sans: 'Cantarell', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout & Radii */
  --container-max: 1320px;
  --header-height: 80px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Shadows & Depth */
  --shadow-ambient: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
  --shadow-cyan-glow: 0 0 35px rgba(56, 232, 216, 0.35);
  --shadow-gold-glow: 0 0 35px rgba(245, 158, 11, 0.35);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --------------------------------------------------------------------------
   3. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
  background-color: var(--bg-deep);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #030508;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-pill);
  border: 2px solid #030508;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--lunar-cyan);
}

/* Global Ambient Mouse Glow */
.cursor-ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(800px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(56, 232, 216, 0.04), transparent 50%);
  transition: opacity 0.5s var(--ease-out);
}

/* A11y Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--lunar-cyan);
  color: #030508;
  padding: 12px 24px;
  font-weight: 700;
  border-radius: var(--radius-xs);
  z-index: 100000;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 20px;
}

:focus-visible {
  outline: 2px solid var(--lunar-cyan);
  outline-offset: 4px;
  border-radius: var(--radius-xs);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* --------------------------------------------------------------------------
   4. Header & Navigation (Studio Grade Glassmorphism)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(3, 5, 8, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(3, 5, 8, 0.94);
  border-bottom: 1px solid rgba(56, 232, 216, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  position: relative;
  display: grid;
  place-items: center;
}

.brand-emblem-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(56, 232, 216, 0.6));
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

.brand-title span {
  color: var(--lunar-cyan);
}

.brand-tagline {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.2rem);
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s var(--ease-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--lunar-cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease-out);
  box-shadow: 0 0 8px var(--lunar-cyan);
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Audio Synthesizer Button */
.btn-audio-synth {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.btn-audio-synth:hover {
  background: rgba(56, 232, 216, 0.1);
  border-color: var(--lunar-cyan);
  color: #fff;
}

.btn-audio-synth.is-playing {
  color: var(--lunar-cyan);
  border-color: var(--lunar-cyan);
  box-shadow: 0 0 20px rgba(56, 232, 216, 0.3);
  background: rgba(56, 232, 216, 0.12);
}

.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.eq-bar {
  width: 2.5px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: height 0.2s var(--ease-out), background 0.2s;
}

.btn-audio-synth.is-playing .eq-bar {
  background: var(--lunar-cyan);
  animation: eq-bounce 1s infinite alternate ease-in-out;
}

.btn-audio-synth.is-playing .eq-bar:nth-child(1) { animation-delay: 0.1s; }
.btn-audio-synth.is-playing .eq-bar:nth-child(2) { animation-delay: 0.3s; }
.btn-audio-synth.is-playing .eq-bar:nth-child(3) { animation-delay: 0.2s; }
.btn-audio-synth.is-playing .eq-bar:nth-child(4) { animation-delay: 0.4s; }

@keyframes eq-bounce {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* Metallic Primary CTA Button */
.btn-gold-sheen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  background: linear-gradient(135deg, #d97706, #f59e0b 50%, #b45309);
  color: #030508;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(253, 230, 138, 0.6);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35), 0 0 15px rgba(245, 158, 11, 0.2);
  transition: all 0.25s var(--ease-out);
}

.btn-gold-sheen::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: rotate(25deg);
  transition: left 0.7s var(--ease-out);
}

.btn-gold-sheen:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.55), 0 0 25px rgba(251, 191, 36, 0.4);
  background: linear-gradient(135deg, #f59e0b, #fbbf24 50%, #d97706);
}

.btn-gold-sheen:hover::after {
  left: 120%;
}

/* --------------------------------------------------------------------------
   5. Hero Section (Cinematic Triple-A Quality)
   -------------------------------------------------------------------------- */
.hero-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: contrast(1.15) brightness(0.85);
  transform: scale(1.03);
}

.hero-vignette-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(3, 5, 8, 0.2) 0%, rgba(3, 5, 8, 0.85) 65%, #030508 100%),
    linear-gradient(180deg, rgba(3, 5, 8, 0.4) 0%, transparent 30%, transparent 60%, #030508 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.hero-inner-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 960px;
  margin-inline: auto;
}

.studio-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px;
  background: rgba(14, 23, 42, 0.7);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lunar-cyan);
  box-shadow: 0 0 25px rgba(56, 232, 216, 0.2);
  margin-bottom: 1.8rem;
  backdrop-filter: blur(12px);
}

.kicker-live-dot {
  width: 7px;
  height: 7px;
  background: var(--lunar-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--lunar-cyan);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-epic-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.8vw, 5.4rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.05;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.4rem;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 60px rgba(56, 232, 216, 0.25);
}

.hero-epic-headline .gradient-accent {
  background: linear-gradient(135deg, #ffffff 15%, var(--lunar-cyan) 65%, #0284c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-lead-paragraph {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 780px;
  margin-inline: auto;
  line-height: 1.65;
  margin-bottom: 2.8rem;
}

.hero-lead-paragraph strong {
  color: #fff;
  font-weight: 600;
}

.hero-actions-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn-cyan-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 30px;
  background: rgba(13, 20, 36, 0.7);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xs);
  backdrop-filter: blur(10px);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.btn-cyan-ghost:hover {
  background: rgba(56, 232, 216, 0.12);
  border-color: var(--lunar-cyan);
  color: var(--lunar-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(56, 232, 216, 0.25);
}

.hero-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px 32px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-ambient);
}

@media (max-width: 768px) {
  .hero-kpi-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 16px;
    gap: 14px;
  }
}

.kpi-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.kpi-metric {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.kpi-metric .kpi-highlight {
  color: var(--lunar-cyan);
}

.kpi-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. Global Section Foundations
   -------------------------------------------------------------------------- */
.section-boundary {
  padding-block: clamp(5rem, 10vw, 8.5rem);
  position: relative;
}

.section-boundary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 800px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 232, 216, 0.25), transparent);
}

.heading-block {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.eyebrow-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-bright);
  margin-bottom: 0.9rem;
}

.main-section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.1rem;
}

.section-body-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   7. Tactical Radar 3-Lane Map Visualizer
   -------------------------------------------------------------------------- */
.tactical-radar-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-ambient);
  position: relative;
}

@media (max-width: 1024px) {
  .tactical-radar-wrapper {
    grid-template-columns: 1fr;
  }
}

.radar-screen-viewport {
  position: relative;
  background: #04070d;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-hud-svg {
  width: 100%;
  height: 100%;
  max-height: 540px;
}

.radar-side-console {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}

.radar-target-dossier {
  background: rgba(6, 10, 18, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dossier-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dossier-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--lunar-cyan);
}

.dossier-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(56, 232, 216, 0.12);
  color: var(--lunar-cyan);
  border: 1px solid rgba(56, 232, 216, 0.3);
}

.dossier-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-block: 10px;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.dossier-stat-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dossier-stat-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.dossier-stat-val {
  color: #fff;
  font-weight: 600;
}

.dossier-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.radar-selector-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radar-zone-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.radar-zone-btn:hover,
.radar-zone-btn.is-active {
  background: rgba(56, 232, 216, 0.09);
  border-color: var(--lunar-cyan);
  color: #fff;
  transform: translateX(4px);
}

.radar-zone-btn .btn-side-pill {
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.radar-zone-btn.is-active .btn-side-pill {
  background: rgba(56, 232, 216, 0.2);
  color: var(--lunar-cyan);
}

/* --------------------------------------------------------------------------
   8. Interactive Battle Flow / Scrollytelling
   -------------------------------------------------------------------------- */
.flow-interactive-wrapper {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(20px);
}

@media (max-width: 992px) {
  .flow-interactive-wrapper {
    grid-template-columns: 1fr;
  }
}

.flow-step-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-step-btn {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.flow-step-btn:hover,
.flow-step-btn.is-active {
  background: rgba(56, 232, 216, 0.08);
  border-color: var(--lunar-cyan);
  transform: translateX(6px);
}

.step-num-badge {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-muted);
  line-height: 1;
}

.flow-step-btn.is-active .step-num-badge {
  color: var(--lunar-cyan);
}

.step-btn-content h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.step-btn-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.flow-stage-display {
  background: #04060a;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.flow-stage-image-box {
  width: 100%;
  height: 380px;
  overflow: hidden;
  position: relative;
}

.flow-stage-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.flow-stage-text-box {
  padding: 26px 30px;
  background: rgba(8, 12, 20, 0.95);
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flow-stage-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.flow-stage-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   9. Champion Roster Showcase (Riot / Dota Style)
   -------------------------------------------------------------------------- */
.roster-card-container {
  background: radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.12) 0%, rgba(13, 19, 32, 0.95) 75%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow-cyan-glow);
}

.roster-tab-row {
  display: flex;
  gap: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
  margin-bottom: 2.5rem;
  overflow-x: auto;
}

.roster-tab-btn {
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--ease-out);
}

.roster-tab-btn:hover,
.roster-tab-btn.is-active {
  color: var(--lunar-cyan);
  background: rgba(56, 232, 216, 0.1);
  border-color: var(--lunar-cyan);
}

.roster-stage-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 992px) {
  .roster-stage-grid {
    grid-template-columns: 1fr;
  }
}

.roster-portrait-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(56, 232, 216, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  background: #04060a;
}

.roster-portrait-frame img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.roster-portrait-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(180deg, transparent, rgba(3, 5, 8, 0.95));
}

.roster-hero-quote {
  font-style: italic;
  color: #e2e8f0;
  font-size: 0.95rem;
  border-left: 3px solid var(--lunar-cyan);
  padding-left: 14px;
}

.roster-details-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.roster-class-tag {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lunar-cyan);
}

.roster-hero-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.hero-abilities-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.hero-ability-card {
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: border-color 0.2s var(--ease-out);
}

.hero-ability-card:hover {
  border-color: rgba(56, 232, 216, 0.4);
}

.ability-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ability-title {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.ability-key-pill {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: rgba(56, 232, 216, 0.15);
  color: var(--lunar-cyan);
}

.ability-description-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   10. Glutpakt Army Showcase
   -------------------------------------------------------------------------- */
.army-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.army-filter-btn {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.army-filter-btn:hover,
.army-filter-btn.is-active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--ember-bright);
  color: var(--ember-bright);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.army-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
}

.unit-inspected-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.unit-inspected-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold-glow);
}

.unit-render-holder {
  width: 100%;
  height: 230px;
  background: #05080e;
  position: relative;
  overflow: hidden;
}

.unit-render-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.unit-inspected-card:hover .unit-render-holder img {
  transform: scale(1.07);
}

.unit-tier-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(3, 5, 8, 0.88);
  border: 1px solid var(--border-gold);
  color: var(--ember-bright);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.unit-crest-token {
  position: absolute;
  bottom: -18px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ember-bright);
  overflow: hidden;
  background: #080c14;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
  z-index: 5;
}

.unit-crest-token img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.unit-body-details {
  padding: 30px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.unit-headline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.unit-subtype-tag {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ember-bright);
  letter-spacing: 0.05em;
}

.unit-summary-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: auto;
}

.unit-parameters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.param-pill {
  display: flex;
  align-items: center;
  gap: 6px;
}

.param-pill img {
  width: 17px;
  height: 17px;
}

/* --------------------------------------------------------------------------
   11. Studio Video Showcase
   -------------------------------------------------------------------------- */
.cinema-theater-box {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.cinema-theater-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.cinema-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: rgba(8, 12, 20, 0.98);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.cinema-title-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.cinema-scene-picker {
  display: flex;
  gap: 10px;
}

.scene-btn {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.scene-btn:hover,
.scene-btn.is-active {
  background: rgba(56, 232, 216, 0.15);
  border-color: var(--lunar-cyan);
  color: #fff;
}

/* --------------------------------------------------------------------------
   12. Gallery Lightbox & Modal
   -------------------------------------------------------------------------- */
.gallery-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.mosaic-shot-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: #04060a;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.mosaic-shot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.mosaic-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(3, 5, 8, 0.92) 100%);
  display: flex;
  align-items: flex-end;
  padding: 22px;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}

.mosaic-shot-card:hover .mosaic-hover-overlay {
  opacity: 1;
}

.mosaic-shot-card:hover img {
  transform: scale(1.06);
}

.mosaic-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

/* Lightbox Dialog */
.studio-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.96);
  backdrop-filter: blur(24px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}

.studio-lightbox-modal.is-open {
  display: flex;
}

.lightbox-frame {
  max-width: 1180px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lightbox-viewport {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  background: #000;
}

.lightbox-viewport img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}

.lightbox-close-trigger {
  position: absolute;
  top: -48px;
  right: 0;
  font-size: 2.2rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close-trigger:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   13. Platform Download & Requirements
   -------------------------------------------------------------------------- */
.download-fortress-box {
  background: linear-gradient(135deg, rgba(13, 19, 32, 0.92), rgba(6, 9, 16, 0.98));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  box-shadow: var(--shadow-ambient);
}

.platform-switch-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.platform-select-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.platform-select-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.platform-select-btn:hover,
.platform-select-btn.is-active {
  background: rgba(56, 232, 216, 0.12);
  border-color: var(--lunar-cyan);
  color: #fff;
  transform: translateY(-2px);
}

.spec-and-cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

@media (max-width: 860px) {
  spec-and-cta-grid {
    grid-template-columns: 1fr;
  }
}

.spec-breakdown-card {
  background: rgba(4, 7, 12, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 28px;
}

.spec-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-label {
  color: var(--text-muted);
}

.spec-value {
  color: #fff;
  font-weight: 600;
}

.cta-package-card {
  background: rgba(4, 7, 12, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

/* --------------------------------------------------------------------------
   14. Studio Footer
   -------------------------------------------------------------------------- */
.studio-footer {
  background: #020306;
  border-top: 1px solid var(--border-subtle);
  padding-block: 4.5rem 2.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-up-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-up-arrow:hover {
  color: var(--lunar-cyan);
}

/* --------------------------------------------------------------------------
   15. Scroll-Driven Animations & Performance
   -------------------------------------------------------------------------- */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .animate-on-scroll {
      animation: fadeInScale auto linear backwards;
      animation-timeline: view();
      animation-range: entry 10% entry 75%;
    }
  }
}

/* Fallback class for IntersectionObserver */
.animate-on-scroll.is-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-bg-video {
    display: none;
  }
  .cursor-ambient-glow {
    display: none;
  }
}
