/* ════════════════════════════════════════════════════════════════
                            Hero
════════════════════════════════════════════════════════════════ */

/* Wrapper da seção */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(100vh, 860px);
  display: flex;
  flex-direction: column;
}

/* Imagem de fundo */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center top;
}

/* Overlay escuro para legibilidade do texto */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(4, 18, 43, 0.92) 0%,
    rgba(10, 31, 74, 0.85) 45%,
    rgba(13, 39, 96, 0.62) 100%
  );
}

/* Grade decorativa sutil */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(auto, 550px) 1fr;
  align-items: center;
  gap: 3rem;
  padding-top: clamp(2rem, 8vw, 7rem);
  padding-bottom: clamp(1.5rem, 5vw, 4rem);
  width: 100%;
  max-width: 1200px;
  margin: 0;
  padding-left: clamp(1.5rem, 5%, 4rem);
  padding-right: 1.5rem;
}

.hero__title {
  color: var(--white);
  margin-bottom: 1.2rem;
  max-width: 550px;
}

.hero__title--accent {
  color: var(--cyan);
}

/* Subtítulo */
.hero__sub {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 44ch;
  margin-bottom: 2rem;
}

/* Linha de botões */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Canvas da animação de fibra óptica */
#fiber-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.55;
}

/* Glassmorphism */
.speed-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    var(--shadow-glow),
    0 0 0 1px rgba(0, 198, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Stats */
.stat strong {
  background: linear-gradient(135deg, var(--white), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Slider */
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.hero__slide.is-active {
  opacity: 1;
}

/* Botões de navegação do slider */
.hero__slider-nav {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.5rem;
}

.hero__slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.hero__slider-dot.is-active {
  background: var(--cyan);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(0, 198, 255, 0.7);
}

/* TypeWriter */
.hero__title--accent.typewriter::after {
  content: "|";
  color: var(--cyan);
  animation: tw-blink 0.7s step-end infinite;
  margin-left: 2px;
}

@keyframes tw-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
