.hero-section {
  isolation: isolate;
  background: #05090d;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #05090d url("/assets/videos/vendor-hero-01.jpg") center / cover no-repeat;
  pointer-events: none;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(2px) saturate(0.82) contrast(1.04) brightness(0.68);
  transform: scale(1.05);
}

.hero-media__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 8, 12, 0.9) 0%, rgba(4, 8, 12, 0.6) 28%, rgba(4, 8, 12, 0.7) 66%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 44%, rgba(4, 8, 12, 0.58) 0%, rgba(4, 8, 12, 0.12) 48%, rgba(4, 8, 12, 0.62) 100%),
    linear-gradient(90deg, rgba(4, 8, 12, 0.68) 0%, transparent 28%, transparent 72%, rgba(4, 8, 12, 0.68) 100%),
    radial-gradient(circle at 50% 36%, rgba(77, 134, 147, 0.18), transparent 42%),
    radial-gradient(circle at 50% 70%, rgba(121, 66, 158, 0.14), transparent 48%);
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 9, 13, 0.42);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(107, 163, 176, 0.12), 0 0 14px rgba(107, 163, 176, 0.5);
}

.hero-title-sub {
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.42);
}

.hero-text {
  color: rgba(255, 255, 255, 0.76);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-orb-wrap {
  filter: drop-shadow(0 0 42px rgba(77, 134, 147, 0.24));
}

.hero-scroll-indicator {
  bottom: 2rem;
  z-index: 3;
  opacity: 0.82;
}

.hero-video-toggle {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(5, 9, 13, 0.5);
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-video-toggle[hidden] {
  display: none;
}

.hero-video-toggle:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(5, 9, 13, 0.72);
  color: #fff;
  transform: translateY(-1px);
}

.hero-video-toggle:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

.hero-video-toggle__play {
  display: none;
}

.hero-video-toggle[data-playing="false"] .hero-video-toggle__pause {
  display: none;
}

.hero-video-toggle[data-playing="false"] .hero-video-toggle__play {
  display: block;
  margin-left: 2px;
}

@media (max-width: 768px), (max-height: 960px) {
  .hero-scroll-indicator {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-video {
    filter: blur(1.5px) saturate(0.8) contrast(1.05) brightness(0.62);
  }

  .hero-media__scrim {
    background:
      linear-gradient(180deg, rgba(4, 8, 12, 0.92) 0%, rgba(4, 8, 12, 0.66) 30%, rgba(4, 8, 12, 0.76) 68%, var(--bg) 100%),
      radial-gradient(ellipse at 50% 44%, rgba(4, 8, 12, 0.62) 0%, rgba(4, 8, 12, 0.14) 50%, rgba(4, 8, 12, 0.66) 100%),
      linear-gradient(90deg, rgba(4, 8, 12, 0.72) 0%, transparent 30%, transparent 70%, rgba(4, 8, 12, 0.72) 100%),
      radial-gradient(circle at 50% 36%, rgba(77, 134, 147, 0.16), transparent 46%),
      radial-gradient(circle at 50% 70%, rgba(121, 66, 158, 0.12), transparent 52%);
  }

  .hero-badge {
    margin-bottom: 1.1rem;
    padding: 0.42rem 0.8rem;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
  }

  .hero-video-toggle {
    right: 1rem;
    bottom: 1rem;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    max-width: calc(100vw - 2rem);
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .hero-video-toggle {
    display: none;
  }

  .hero-media {
    background-image: url("/assets/videos/vendor-hero-01.jpg");
  }
}
