/* ============================================
   HERO 2.0 — hero-2.css
   ============================================ */

/* ============================================
   CAMADAS / Z-INDEX
   ============================================ */

.topo-do-site {
  isolation: isolate;
}

/* Canvas de partículas — Layer 3 (z:0 já definido no JS) */
.topo-do-site canvas {
  transition: opacity 0.1s linear;
  will-change: opacity;
}

/* Conteúdo — Layer 5 */
.topo-do-site .interface {
  position: relative;
  z-index: 5;
  will-change: transform, opacity;
  transform-origin: center top;
  transition:
    transform 0.05s linear,
    opacity 0.05s linear;
}

/* ============================================
   GLOW DA FOTO — Layer 4
   ============================================ */

.img-topo-site {
  will-change: transform;
  transition: transform 0.15s ease;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 85%;
  height: 85%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(152, 109, 255, 0.55) 0%,
    rgba(152, 109, 255, 0.2) 40%,
    transparent 70%
  );
  filter: blur(28px);
  opacity: 0.45;
  z-index: 1;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* ============================================
   MÉTRICAS — Layer 6
   ============================================ */

.hero-metrics {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  margin-top: clamp(28px, 4vw, 40px);
  position: relative;
  z-index: 5;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-value {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  font-family: "Epilogue", sans-serif;
  letter-spacing: -0.02em;
}

.metric-value span {
  color: #986dff;
}

.metric-label {
  font-size: clamp(0.7rem, 1.2vw, 0.8rem);
  color: #888;
  font-family: "Epilogue", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Divisor entre métricas */
.metric-divider {
  width: 1px;
  height: 36px;
  background: rgba(152, 109, 255, 0.2);
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media screen and (max-width: 768px) {
  .hero-metrics {
    gap: 0;
    margin-top: 24px;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
  }

  .metric-item {
    flex: 1;
    align-items: center;
  }

  .metric-divider {
    width: 1px;
    height: 28px;
    flex-shrink: 0;
    background: rgba(152, 109, 255, 0.2);
    align-self: center;
  }

  .metric-value {
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  }

  .metric-label {
    font-size: 0.62rem;
    text-align: center;
  }

  .hero-glow {
    width: 70%;
    height: 70%;
    filter: blur(20px);
  }
}

@media screen and (max-width: 380px) {
  .metric-value {
    font-size: 1rem;
  }

  .metric-label {
    font-size: 0.58rem;
  }
}
