/* Hero video — layout inspired by antigravity.google */

.hero-video-section {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  max-width: min(100%, 920px);
  line-height: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: clamp(18px, 3.2vw, 36px);
  background: #030308;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 32px 80px -28px rgba(0, 0, 0, 0.75);
  transform: translate3d(0, 28px, 0) scale(0.94);
  opacity: 0;
  transition:
    opacity 1s cubic-bezier(0.2, 0.85, 0.25, 1),
    transform 1.1s cubic-bezier(0.2, 0.85, 0.25, 1);
}

.hero-video-section.is-visible .hero-video-wrapper {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #030308;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-video.is-ready {
  opacity: 1;
}

/* Play hint (like Antigravity cursor chip) */
.hero-video-cursor {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(12, 14, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.2, 0.85, 0.25, 1);
}

.hero-video-wrapper.is-paused .hero-video-cursor,
.hero-video-wrapper:hover .hero-video-cursor {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hero-video-wrapper.is-playing .hero-video-cursor {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
}

.hero-video-cursor__icon {
  font-size: 1rem;
  line-height: 1;
  color: #a8b4ff;
}

@media (max-width: 720px) {
  .hero-video-wrapper {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-wrapper {
    transform: none;
    opacity: 1;
    transition: none;
  }

  .hero-video {
    opacity: 1;
  }

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