/* Impede scroll horizontal. */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Conteúdo da página fica acima do vídeo de fundo. */
body > *:not(.bg-video):not(.bg-overlay):not(.spotlight) {
  position: relative;
  z-index: 1;
}

.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 39, 0.85) 0%,
    rgba(10, 14, 39, 0.75) 50%,
    rgba(10, 14, 39, 0.88) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(6, 182, 212, 0.08),
    transparent 40%
  );
  transition: background 0.3s ease;
}

.card-glow {
  position: relative;
  overflow: hidden;
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--card-x, 50%) var(--card-y, 50%),
    rgba(6, 182, 212, 0.15),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: inherit;
}

.card-glow:hover::before {
  opacity: 1;
}

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

@media (hover: none) {
  .spotlight {
    display: none;
  }
}