/* ===================================================================
   HERO — Full-screen video hero with YouTube trailer — Sci-Fi style
   =================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--space-lg) var(--space-xl);
  overflow: hidden;
}

/* --- Video container --- */
.hero-video-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100vh;
  min-width: 177.78vh; /* 100 * 16/9 */
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* --- Poster fallback (shown while video loads, and on mobile) --- */
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.hero-poster.hidden {
  opacity: 0;
  pointer-events: none;
}

/* --- Gradient overlay with radial vignette --- */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, var(--color-bg) 100%),
    linear-gradient(
      to top,
      var(--color-bg) 0%,
      var(--color-overlay-medium) 40%,
      rgba(6, 8, 14, 0.3) 100%
    );
  z-index: 2;
}

/* --- Content --- */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
}

/* Decorative corner brackets */
.hero-content::before,
.hero-content::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border-hover);
  pointer-events: none;
  opacity: 0.4;
}

.hero-content::before {
  top: -24px;
  left: -24px;
  border-right: none;
  border-bottom: none;
}

.hero-content::after {
  bottom: -24px;
  right: -24px;
  border-left: none;
  border-top: none;
}

.hero-content .label {
  margin-bottom: var(--space-sm);
}

.hero-content .heading-xl {
  margin-bottom: var(--space-md);
}

.hero-content .heading-xl em {
  font-style: italic;
  color: var(--color-cyan);
  text-shadow: 0 0 30px var(--color-cyan-shadow);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--color-text-dim);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* --- Actions --- */
.hero-actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
}

/* --- Mute toggle --- */
.hero-mute-toggle {
  position: absolute;
  bottom: 2rem;
  right: calc(var(--space-lg) + 80px);
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  background: rgba(6, 8, 14, 0.5);
  backdrop-filter: blur(8px);
  transition: all var(--ease-base);
}

.hero-mute-toggle:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 0 12px var(--color-cyan-glow);
}

.hero-mute-toggle svg {
  width: 18px;
  height: 18px;
}

/* --- Scroll indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  right: var(--space-lg);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-cyan), transparent);
  animation: scrollPulse 2s infinite;
}
