/* ============================================================
   Superseg — camada visual premium (portada da V5, enxuta)
   Carregada APENAS na home. Sem bibliotecas, sem imagens.
   Respeita prefers-reduced-motion e não afeta o layout base.
   ============================================================ */

.home-premium .hero {
  position: relative;
  overflow: hidden;
  --ambient-x: 0px;
  --ambient-y: 0px;
  --ambient-rotate: -5deg;
  --accent: #b8ff3d;
}

.home-premium .hero-inner { position: relative; z-index: 3; }
.home-premium .hero-inner > div:first-child { position: relative; z-index: 5; }

.home-premium .hero-right {
  position: static;
  min-height: 510px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ---------- cena 3D (CSS puro) ---------- */
.home-premium .security-visual {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 54%;
  width: min(62vw, 820px);
  aspect-ratio: 1 / 0.72;
  opacity: 0.42;
  pointer-events: none;
  transform:
    translate(calc(-50% + var(--ambient-x)), calc(-50% + var(--ambient-y)))
    rotateY(var(--ambient-rotate));
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.home-premium .security-visual::before {
  content: "";
  position: absolute;
  z-index: -5;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 224, 238, 0.13), rgba(14, 104, 122, 0.05) 42%, transparent 68%);
  filter: blur(10px);
}

.home-premium .ambient-shield {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 330px;
  height: 405px;
  overflow: hidden;
  border: 1px solid rgba(94, 226, 239, 0.17);
  clip-path: polygon(50% 0, 91% 14%, 86% 64%, 70% 84%, 50% 100%, 30% 84%, 14% 64%, 9% 14%);
  background:
    linear-gradient(145deg, rgba(73, 226, 239, 0.08), rgba(4, 24, 32, 0.08)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(73, 226, 239, 0.045) 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(73, 226, 239, 0.04) 32px);
  transform: translateX(-50%) translateZ(-90px) rotateY(-8deg);
  filter: drop-shadow(0 26px 55px rgba(0, 0, 0, 0.3));
}

.home-premium .ambient-shield::before {
  content: "";
  position: absolute;
  inset: 17px;
  border: 1px solid rgba(101, 235, 247, 0.1);
  clip-path: inherit;
}

.home-premium .ambient-shield span {
  position: absolute;
  top: 28%;
  left: 50%;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(111, 242, 253, 0.2);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: inset 0 0 28px rgba(71, 224, 238, 0.07), 0 0 26px rgba(71, 224, 238, 0.06);
}

.home-premium .ambient-circuit {
  position: absolute;
  z-index: -2;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(80, 228, 241, 0.42), transparent);
  transform-origin: left center;
}

.home-premium .ambient-circuit::before,
.home-premium .ambient-circuit::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(100, 239, 251, 0.55);
  border-radius: 50%;
  background: #09232d;
  box-shadow: 0 0 9px rgba(80, 228, 241, 0.38);
}

.home-premium .ambient-circuit::before { left: 18%; }
.home-premium .ambient-circuit::after { right: 13%; }

.home-premium .circuit-one { top: 31%; left: -9%; width: 118%; transform: rotate(-8deg) translateZ(-130px); }
.home-premium .circuit-two { right: -8%; bottom: 28%; width: 106%; transform: rotate(7deg) translateZ(-110px); }

.home-premium .ambient-panel {
  position: absolute;
  z-index: 2;
  min-width: 112px;
  padding: 0.56rem 0.68rem;
  display: grid;
  gap: 0.1rem;
  border: 1px solid rgba(119, 230, 240, 0.14);
  border-radius: 8px;
  color: #bed0d3;
  background: rgba(5, 20, 27, 0.7);
  backdrop-filter: blur(9px);
  text-transform: uppercase;
}

.home-premium .ambient-panel strong { color: rgba(106, 235, 247, 0.85); font-size: 0.58rem; letter-spacing: 0.11em; }
.home-premium .ambient-panel small { color: rgba(152, 177, 181, 0.7); font-size: 0.48rem; letter-spacing: 0.07em; }
.home-premium .panel-cftv { top: 14%; left: 3%; transform: translateZ(60px); }
.home-premium .panel-access { right: 1%; bottom: 20%; transform: translateZ(50px); }

.home-premium .visual-grid {
  position: absolute;
  z-index: -2;
  right: 1%;
  bottom: -3%;
  width: 96%;
  height: 62%;
  opacity: 0.72;
  border: 1px solid rgba(77, 231, 245, 0.14);
  border-radius: 26px;
  background-image:
    linear-gradient(rgba(77, 231, 245, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 231, 245, 0.13) 1px, transparent 1px);
  background-size: 32px 32px;
  transform: rotateX(66deg) rotateZ(-12deg) translateZ(-70px);
  transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(to top, black, transparent);
  mask-image: linear-gradient(to top, black, transparent);
}

.home-premium .visual-orbit {
  position: absolute;
  border: 1px solid rgba(77, 231, 245, 0.18);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.home-premium .orbit-one {
  inset: 2% 7% 5%;
  opacity: 0.55;
  transform: rotateX(70deg) rotateZ(-18deg);
  animation: ssOrbitPulse 5s ease-in-out infinite;
}

.home-premium .orbit-two {
  inset: 17% 19% 20%;
  opacity: 0.34;
  border-style: dashed;
  transform: rotateY(65deg) rotateZ(16deg);
  animation: ssOrbitSpin 24s linear infinite;
}

.home-premium .camera-unit {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 310px;
  height: 235px;
  opacity: 0.72;
  transform: translateX(-50%) rotateY(-12deg) rotateX(5deg) translateZ(70px);
  transform-style: preserve-3d;
  filter: drop-shadow(0 38px 48px rgba(0, 0, 0, 0.45));
  animation: ssCameraFloat 5.4s ease-in-out infinite;
}

.home-premium .camera-arm {
  position: absolute;
  left: 112px;
  bottom: 0;
  width: 58px;
  height: 88px;
  opacity: 0.32;
  border-radius: 12px 12px 28px 28px;
  background: linear-gradient(90deg, #17303b, #2d4b57 42%, #0b202a);
  transform: translateZ(-18px);
}

.home-premium .camera-arm::after {
  content: "";
  position: absolute;
  left: -28px;
  bottom: -13px;
  width: 112px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(138, 220, 228, 0.18);
  background: linear-gradient(180deg, #1b3540, #08161d);
}

.home-premium .camera-body {
  position: absolute;
  inset: 0 6px 48px;
  overflow: hidden;
  border: 1px solid rgba(185, 241, 246, 0.2);
  border-radius: 90px 90px 60px 60px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(135deg, #274955 0%, #0b2631 48%, #061218 100%);
  box-shadow:
    inset -24px -20px 40px rgba(0, 0, 0, 0.38),
    inset 18px 12px 28px rgba(166, 238, 244, 0.08);
}

.home-premium .camera-body::before {
  content: "SUPERSEG / CFTV";
  position: absolute;
  top: 32px;
  left: 44px;
  color: rgba(205, 246, 249, 0.5);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.home-premium .camera-lens {
  position: absolute;
  right: 30px;
  bottom: 25px;
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border: 9px solid #1a3844;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #6cf5ff 0 3%, #174c5c 9%, #061116 25%, #020607 62%, #122934 64%);
  box-shadow: 0 0 0 5px #07181f, 0 0 42px rgba(77, 231, 245, 0.28);
}

.home-premium .camera-lens span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d9fcff, #20b9d0 18%, #073647 52%, #010304 70%);
  box-shadow: 0 0 20px rgba(77, 231, 245, 0.55);
}

.home-premium .camera-light {
  position: absolute;
  top: 44px;
  right: 46px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: ssStatusBlink 2s ease-in-out infinite;
}

.home-premium .scan-plane {
  position: absolute;
  z-index: -1;
  left: 12%;
  right: 4%;
  bottom: 2%;
  height: 48%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(77, 231, 245, 0.18), rgba(77, 231, 245, 0.02) 52%, transparent 70%);
  transform: rotateX(68deg) translateZ(-30px);
  filter: blur(2px);
}

.home-premium .status-chip {
  position: absolute;
  z-index: 3;
  padding: 0.65rem 0.85rem;
  opacity: 0.68;
  border: 1px solid rgba(162, 235, 242, 0.14);
  border-radius: 10px;
  color: #d6e7e9;
  background: rgba(7, 20, 28, 0.84);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-premium .status-online { top: 14%; right: 0; }
.home-premium .status-monitor { right: 5%; bottom: 18%; color: var(--primary); }

.home-premium .status-online span,
.home-premium .card-status span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(184, 255, 61, 0.7);
}

/* ---------- cartão de confiança sobre a cena ---------- */
.home-premium .hero-trust-card {
  position: relative;
  z-index: 6;
  width: min(100%, 410px);
  margin-top: -18px;
  border: 1px solid rgba(126, 235, 247, 0.16);
  backdrop-filter: blur(18px);
  transform: translateZ(0) rotateY(-2deg);
}

.home-premium .card-status {
  margin-bottom: 0.85rem;
  color: #9ab0b4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- animações ---------- */
@keyframes ssCameraFloat {
  0%, 100% { transform: translateX(-50%) rotateY(-12deg) rotateX(5deg) translateY(0) translateZ(70px); }
  50% { transform: translateX(-50%) rotateY(-7deg) rotateX(2deg) translateY(-12px) translateZ(78px); }
}
@keyframes ssOrbitPulse {
  0%, 100% { opacity: 0.55; transform: rotateX(70deg) rotateZ(-18deg) scale(0.97); }
  50% { opacity: 1; transform: rotateX(70deg) rotateZ(-18deg) scale(1.04); }
}
@keyframes ssOrbitSpin {
  to { transform: rotateY(65deg) rotateZ(376deg); }
}
@keyframes ssStatusBlink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .home-premium .hero-right { min-height: 350px; justify-content: center; }
  .home-premium .security-visual { top: 60%; left: 50%; width: min(94vw, 660px); opacity: 0.25; }
  .home-premium .hero-trust-card { width: min(92%, 520px); margin-top: 0; }
}

@media (max-width: 600px) {
  .home-premium .security-visual {
    top: 58%;
    width: 590px;
    opacity: 0.18;
    transform: translate(-50%, calc(-50% + var(--ambient-y))) rotateY(-4deg) scale(0.84);
  }
  .home-premium .ambient-panel,
  .home-premium .orbit-two,
  .home-premium .circuit-two { display: none; }
  .home-premium .hero-right { min-height: 320px; }
  .home-premium .hero-trust-card { width: 100%; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .home-premium .security-visual { transition: none; }
  .home-premium .camera-unit,
  .home-premium .orbit-one,
  .home-premium .orbit-two,
  .home-premium .camera-light { animation: none; }
}
