/* ============================================================
   nebula-hero.css — Canvas de partículas fixo (full-page)
   ============================================================ */

/* ── Canvas cobre toda a página, atrás de tudo ── */
#nebula-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Garante que o conteúdo do hero fica acima do canvas ── */
.hero-inner,
.scroll-indicator,
.hero-bg-orb,
nav,
main,
section,
footer {
  position: relative;
  z-index: 1;
}

/* ── Reduz o .particulas para não competir com o canvas 3D ── */
.particulas {
  opacity: 0.15;
  z-index: 0;
}

/* ── Fade do hero para a próxima seção ── */
.cabecalho::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--maisEscuro, #0a0f1c)
  );
  pointer-events: none;
  z-index: 2;
}

/* ── Animação de entrada do hero-text ── */
.hero-text.reveal-up.visible {
  animation: heroTextIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ── Card do hero flutua no carregamento ── */
.hero-card-wrap .card {
  animation: cardFloatIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

@keyframes cardFloatIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Mobile: canvas mais leve ── */
@media (max-width: 768px) {
  #nebula-canvas {
    opacity: 0.6;
  }

  .cabecalho::after {
    height: 100px;
  }
}

/* ── Usuários que preferem menos movimento ── */
@media (prefers-reduced-motion: reduce) {
  #nebula-canvas {
    display: none;
  }
}
