/* Camadas tecnológicas da seção Hero */
.hero { position: relative; overflow: hidden; }
.hero > * { position: relative; z-index: 1; }
.hero-tech {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-tech::before, .hero-tech::after { content: none !important; width: 0; height: 0; }
.ht-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('assets/herosection.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: blur(2px) brightness(0.92) contrast(1.04);
  opacity: 0.08;
  background-color: #F5F5F5;
}
.ht-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255,255,255,0.85);
}
.hero-tech .ht-cloud { z-index: 0; }
.ht-arch {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: none;
}
.ht-text-backdrop {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 52%;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.02) 40%, rgba(0,0,0,0) 100%);
}
.ht-cloud {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  filter: blur(18px);
  background:
    radial-gradient(1200px circle at 80% 30%, rgba(0,0,0,0.14), rgba(0,0,0,0) 60%),
    radial-gradient(900px circle at 20% 85%, rgba(95,111,214,0.08), rgba(95,111,214,0) 62%),
    radial-gradient(700px circle at 12% 24%, rgba(155,123,179,0.07), rgba(155,123,179,0) 62%),
    linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.06));
}
.hero-tech::before,
.hero-tech::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.06;
}
/* Glow dourado sutil (top-left) */
.hero-tech::before {
  width: 38vmax;
  height: 38vmax;
  left: -12vmax;
  top: -10vmax;
  background: radial-gradient(closest-side, rgba(198,167,94,0.20), rgba(198,167,94,0.00) 60%);
  animation: none;
}
/* Glow lilás sutil (bottom-right) */
.hero-tech::after {
  width: 32vmax;
  height: 32vmax;
  right: -10vmax;
  bottom: -8vmax;
  background: radial-gradient(closest-side, rgba(155,123,179,0.18), rgba(155,123,179,0.00) 60%);
  animation: none;
}
@keyframes glowPulse {
  0%   { transform: scale(1); opacity: 0.05; }
  100% { transform: scale(1.04); opacity: 0.08; }
}
/* Grid/Wireframe SVG */
.ht-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform: translate3d(0,0,0);
  z-index: 3;
}
.ht-grid line, .ht-grid path {
  stroke: rgba(0,0,0,0.06);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}
/* Canvas camadas: nós e partículas */
.ht-nodes, .ht-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translate3d(0,0,0);
  z-index: 4;
}
.ht-particles { z-index: 5; }
/* Título com gradiente metálico sutil e underline de varredura */
.hero h1 {
  color: #000000;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  text-fill-color: initial;
}
.hero h1::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(198,167,94,0.6) 50%, rgba(0,0,0,0) 100%);
  background-size: 200% 100%;
  animation: none;
}
@keyframes scan {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
/* Parallax controlado por variáveis CSS */
.ht-grid { will-change: transform; }
.ht-nodes { will-change: transform; }
.ht-particles { will-change: transform; }
.ht-grid { transform: translate3d(var(--htx,0), var(--hty,0), 0); }
.ht-nodes { transform: translate3d(calc(var(--htx,0) * 1.6), calc(var(--hty,0) * 1.6), 0); }
.ht-particles { transform: translate3d(calc(var(--htx,0) * 2.2), calc(var(--hty,0) * 2.2), 0); }
/* Acessibilidade: reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  .hero-tech::before, .hero-tech::after { animation: none; }
  .hero h1::after { animation: none; }
}
@media (max-width: 768px) {
  .hero-tech::before, .hero-tech::after { opacity: 0.05; filter: blur(14px); }
  .hero h1::after { margin-top: 8px; }
  .ht-bg { background-attachment: scroll; filter: blur(2px) brightness(0.95) contrast(1.02); opacity: 0.06; }
  .ht-overlay { background: rgba(255,255,255,0.80); }
  .ht-text-backdrop { width: 100%; background: linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0) 60%); }
}
