/* =========================================================
   hero.css — Seção hero (acima da dobra)
   ========================================================= */

/* Animação de pulso que preserva a centralização */
@keyframes pulse-center {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.18);
    opacity: 0.65;
  }
}

/* ── Container principal ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5% 40px;
  position: relative;
  overflow: hidden;
}

/* ── Glows decorativos ── */
.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 158, 255, 0.14) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse-center 5s ease-in-out infinite;
  z-index: 0;
}

.hero-glow2 {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  top: 15%;
  right: 2%;
  pointer-events: none;
  animation: pulse 6s ease-in-out 1s infinite;
  z-index: 0;
}

.hero-glow3 {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.08) 0%, transparent 70%);
  bottom: 10%;
  left: 5%;
  pointer-events: none;
  animation: pulse 7s ease-in-out 2s infinite;
  z-index: 0;
}

/* ── Figurinhas flutuantes (cantos da tela, longe do texto) ── */
.floater {
  position: absolute;
  pointer-events: none;
  animation: float 7s ease-in-out infinite;
  opacity: 0.45;
  z-index: 1;
}

.floater img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5)) blur(0.5px);
}

/* Posicionados nos CANTOS extremos para não sobrepor o texto */
.floater:nth-child(1) {
  top: 8%;
  left: 2%;
  animation-delay: 0s;
}

.floater:nth-child(2) {
  top: 10%;
  right: 2%;
  animation-delay: 1.5s;
}

.floater:nth-child(3) {
  bottom: 14%;
  left: 2%;
  animation-delay: 3s;
}

.floater:nth-child(4) {
  bottom: 12%;
  right: 2%;
  animation-delay: 0.8s;
}

/* ── Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 158, 255, 0.1);
  border: 1px solid rgba(59, 158, 255, 0.28);
  border-radius: var(--pill-radius);
  padding: 7px 20px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
  animation: fadeDown 0.8s var(--ease) both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Título H1 ── */
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(58px, 11vw, 118px);
  line-height: 0.93;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
  animation: fadeDown 0.9s var(--ease) 0.1s both;
}

.hero h1 .line1 {
  display: block;
  color: var(--white);
}

/* Shimmer animado no gradiente */
.hero h1 .line2 {
  display: block;
  background: linear-gradient(90deg, #3b9eff 0%, #a855f7 40%, #3b9eff 60%, #a855f7 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s linear infinite;
}

/* ── Subtítulo ── */
.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: rgba(255, 255, 255, 0.68);
  max-width: 580px;
  line-height: 1.68;
  margin: 24px auto 40px;
  font-weight: 600;
  position: relative;
  z-index: 2;
  animation: fadeDown 1s var(--ease) 0.2s both;
}

.hero-sub strong {
  color: var(--white);
  font-weight: 800;
}

/* ── Botões CTA ── */
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
  animation: fadeDown 1s var(--ease) 0.3s both;
}

/* ── Stats bar ── */
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 64px;
  position: relative;
  z-index: 2;
  animation: fadeDown 1s var(--ease) 0.45s both;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 46px;
  letter-spacing: 1px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  min-width: 4ch;
  display: inline-block;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 5px;
  max-width: 110px;
}

/* ── Separador dos stats ── */
.hero-stats .stat+.stat {
  padding-left: 0;
}

/* Linha divisória entre stats no desktop */
@media (min-width: 501px) {
  .hero-stats {
    position: relative;
  }

  .stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -24px;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border);
  }

  .stat {
    position: relative;
  }
}

/* ── Phone mockups ── */
.phones-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  padding: 8px 5% 56px;
  /* overflow: visible para o telefone central não ser cortado */
  overflow: visible;
  position: relative;
}

.phone-wrap {
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.phone-wrap img {
  width: 165px;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

.phone-wrap.center img {
  width: 210px;
  transform: translateY(-28px);
  box-shadow:
    0 36px 90px rgba(59, 158, 255, 0.28),
    0 0 0 1px rgba(59, 158, 255, 0.22);
}

.phone-wrap.side {
  opacity: 0.65;
  transform: scale(0.9);
}

/* ── Responsividade ── */
@media (max-width: 768px) {
  .hero-stats {
    gap: 24px;
  }

  .stat-num {
    font-size: 38px;
  }

  .stat-label {
    font-size: 11px;
  }
}

@media (max-width: 500px) {
  .hero {
    padding: 100px 5% 32px;
  }

  .hero-stats {
    gap: 18px;
  }

  .stat-num {
    font-size: 34px;
  }

  .floater {
    display: none;
  }

  .phones-row {
    justify-content: flex-start;
    align-items: stretch;
    gap: 12px;
    padding: 8px 5% 40px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .phones-row::-webkit-scrollbar {
    display: none;
  }

  .phone-wrap,
  .phone-wrap.side,
  .phone-wrap.center {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
    opacity: 1;
    transform: none;
  }

  .phone-wrap img,
  .phone-wrap.center img {
    width: min(72vw, 250px);
    transform: none;
  }
}