/* ============================================================
   Hero — Rolamento 3D "Antigravidade"
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 94, 184, 0.18), transparent 55%),
    linear-gradient(180deg, #060F1C 0%, #051425 55%, #071E33 100%);
  overflow: hidden;
  padding-top: 40px;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  border-radius: 50%;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(0, 94, 184, 0.35) 0%, rgba(0, 94, 184, 0) 65%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.hero-copy {
  max-width: 640px;
  padding-top: 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  background: rgba(46, 134, 222, 0.12);
  border: 1px solid rgba(46, 134, 222, 0.35);
  color: #7EB6EF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3DDC84; box-shadow: 0 0 0 4px rgba(61,220,132,0.18);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5.6vw, 70px);
  line-height: 1.04;
  color: #EAF2FA;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero-title .accent {
  background: linear-gradient(100deg, #2E86DE, #6FC1FF 45%, #2E86DE);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-light-muted);
  max-width: 480px;
  margin: 0 0 36px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-ctas .btn { height: 52px; padding: 0 28px; }

.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat b {
  font-family: var(--font-display);
  font-size: 24px;
  color: #fff;
  letter-spacing: -0.01em;
}
.hero-stat span { font-size: 12px; color: var(--text-light-muted); letter-spacing: 0.03em; }

/* ---- Palco 3D — antigravidade ---- */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.95) brightness(0.95);
  transition: opacity 1.1s ease;
  pointer-events: none;
}
.hero-bg-video.is-ready { opacity: 0.55; }

/* Véu escuro por cima do vídeo — mais forte à esquerda (onde fica o texto
   do Hero, garante legibilidade), mais leve à direita, para o vídeo
   continuar visível quando o mouse "revela" os frames. */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,15,28,0.92) 0%, rgba(5,15,28,0.72) 32%, rgba(5,15,28,0.4) 58%, rgba(5,15,28,0.55) 100%),
    linear-gradient(180deg, rgba(5,15,28,0.35) 0%, rgba(5,15,28,0.15) 30%, rgba(5,15,28,0.55) 100%);
  pointer-events: none;
}
/* Rolamento real (foto de produto) — substitui o antigo canvas Three.js.
   perspective no wrap habilita profundidade real para os transforms 3D
   (rotateX/Y/Z) aplicados via GSAP em antigravity.js. */
.bearing-3d-wrap {
  position: absolute;
  right: 4%;
  top: 50%;
  width: min(42vw, 520px);
  transform: translateY(-50%);
  pointer-events: auto;
  perspective: 1400px;
}
.bearing-3d-img {
  display: block;
  width: 100%;
  height: auto;
  transform-style: preserve-3d;
  will-change: transform;
  filter: drop-shadow(0 40px 90px rgba(0,10,25,.6)) drop-shadow(0 0 60px rgba(46,134,222,.18));
}

.hero-hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(46, 134, 222, 0.25);
  border: 1px solid rgba(126, 182, 239, 0.8);
  cursor: pointer;
  pointer-events: auto;
  display: none;
  transform: translate(-50%, -50%);
}
.hotspot::before {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(126, 182, 239, 0.35);
  animation: hotspot-pulse 2.4s ease-out infinite;
}
@keyframes hotspot-pulse {
  0% { transform: scale(0.6); opacity: .9; }
  100% { transform: scale(1.9); opacity: 0; }
}
.hotspot-tip {
  position: absolute;
  left: 26px; top: -14px;
  width: 220px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(7, 20, 37, 0.92);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 5;
}
.hotspot:hover .hotspot-tip, .hotspot:focus .hotspot-tip, .hotspot.is-active .hotspot-tip {
  opacity: 1; visibility: visible; transform: translateX(0);
}
.hotspot-tip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #7EB6EF;
  margin-bottom: 6px;
}
.hotspot-tip p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-light-muted); }

.hero-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}
.hero-scroll-cue .line {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.6), transparent);
  overflow: hidden;
}
.hero-scroll-cue .line::after {
  content: ''; display: block; width: 100%; height: 40%;
  background: #fff;
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

@media (max-width: 1100px) {
  .hero { padding-top: 20px; }
  .hero-copy { padding-top: 200px; text-align: left; }
  .hero-stats { gap: 22px; }
}
@media (max-width: 720px) {
  .hero { padding-top: 0; flex-direction: column; }
  .hero-stage {
    position: relative;
    inset: auto;
    order: 1;
    padding-top: 32px;
    display: flex;
    justify-content: center;
  }
  .bearing-3d-wrap {
    position: relative;
    width: min(72vw, 320px);
    right: auto; top: auto; transform: none;
  }
  .hero-hotspots { display: none; }
  .hero-inner { order: 2; padding-bottom: 48px; }
  .hero-copy { padding-top: 24px; }
  .hero-bg-video { display: none; }
}
@media (max-width: 560px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}
