/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Fundo visível dentro do Herobanner */
#Herobanner .hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      100% 100% at 50% 50%,
      rgb(15 15 40 / 12%),
      #00000000 20%
    ),
    url(https://img.globaldata.pt/lp/2025/campanhas/black-month/bk-ground-bw.png)
      center center / cover no-repeat;
  z-index: 0;
  animation: bgPulse 12s ease-in-out infinite alternate;
}
@keyframes bgPulse {
  0% {
    transform: scale(1);
    filter: brightness(1) saturate(1);
  }
  100% {
    transform: scale(1.03);
    filter: brightness(1.05) saturate(1.08);
  }
}

/* Canvas do Eclipse — ocupa exactamente a section */
#glcanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  background: transparent;
}

/* HUD informativo */
#hud {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  border-radius: 8px;
  z-index: 2;
  pointer-events: none;
  top: 150px;
}

/* LOGO centrado no meio da section */
.hero-logo {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center; /* centra vertical + horizontal */
}

.hero-logo img:hover {
  transform: scale(1.03);
  opacity: 1;
}

*centroabsoluto: logo (em cima) + HUD (por baixo) * / .hero-center {
  position: absolute;
  inset: 0;
  z-index: 3; /* à frente do canvas */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centra vertical */
  gap: 16px; /* espaço entre logo e HUD */
  pointer-events: none; /* não bloquear cliques no banner */
}

/* HUD por baixo do logo, centrado */
#hud {
  position: relative; /* deixou de ser absolute */
  bottom: auto;
  left: auto; /* limpar offsets antigos */
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu,
    "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.2;
  border-radius: 10px;
  letter-spacing: 0.2px;
  pointer-events: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  text-align: center;
  min-width: 220px;
}

/* Um estilo giro para números do countdown (opcional) */
#hud strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
