/* toque aconchegante/minimalista */
[x-cloak] {
  display: none !important;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.bg-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.10) 1px, transparent 0);
  background-size: 22px 22px;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.bg-pattern {
  background-image: radial-gradient(#0B4DA1 0.7px, transparent 0.7px);
  background-size: 30px 30px;
  opacity: 0.03;
}

.delay-200 { animation-delay: 2s; }
.delay-400 { animation-delay: 4s; }
.animation-delay-2000 { animation-delay: 2s; }

/* ============== VARS/BASE ============== */
:root {
  --lz-bg1: #1B334F;
  --lz-bg2: #212529;
  --lz-bg3: #1B324D;
  --lz-cyan: #19b5ef;
  --lz-stroke: rgba(255, 255, 255, .12);
}

/* container do bloco gráfico à direita */
.hero-graphic.layers-pack {
  position: relative;
  width: min(36vw, 460px);
  aspect-ratio: 1/1;
  --stroke: var(--lz-stroke);
  isolation: isolate;
}

/* cards (monitor, panes, phone) com glass */
.layers-pack .card {
  position: absolute;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  border: 1px solid var(--lz-stroke);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  will-change: transform, box-shadow;
}

/* ======= MONITOR PRINCIPAL ======= */
.layers-pack .monitor {
  width: 72%;
  height: 46%;
  left: 14%;
  top: 22%;
  animation: breathe 8s ease-in-out infinite;
}

.layers-pack .monitor .bar {
  height: 12px;
  background: linear-gradient(90deg, #00c2ff, var(--lz-cyan));
  opacity: .95;
  box-shadow: 0 0 14px rgba(25, 181, 239, .65);
}

.layers-pack .monitor .line {
  height: 10px;
  margin: 12px 14px;
  background: rgba(255, 255, 255, .14);
  border-radius: 6px;
}

.layers-pack .monitor .line.w80 { width: 80%; }
.layers-pack .monitor .line.w60 { width: 60%; }
.layers-pack .monitor .cta {
  width: 38%;
  height: 14px;
  margin: 10px 14px 0;
  border-radius: 8px;
  background: rgba(25, 181, 239, .30);
}

/* ======= PANES FLUTUANTES ======= */
.layers-pack .pane {
  width: 46%;
  height: 24%;
}

.layers-pack .pane .line {
  height: 9px;
  margin: 10px 12px;
  background: rgba(255, 255, 255, .14);
  border-radius: 6px;
}

.layers-pack .pane .line.w70 { width: 70%; }
.layers-pack .pane .line.w60 { width: 60%; }
.layers-pack .pane .line.w50 { width: 50%; }
.layers-pack .pane .line.w40 { width: 40%; }

.layers-pack .pane.p1 {
  left: -4%;
  top: 8%;
  animation: float1 6s ease-in-out infinite;
}

.layers-pack .pane.p2 {
  right: -4%;
  bottom: 12%;
  animation: float2 7s ease-in-out infinite;
}

/* ======= SMARTPHONE ======= */
.layers-pack .phone {
  width: 22%;
  height: 40%;
  right: 2%;
  top: 10%;
  border-radius: 24px;
  animation: float3 5s ease-in-out infinite;
}

.layers-pack .phone::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 18px;
  border: 1px solid var(--lz-stroke);
}

.layers-pack .phone .line {
  height: 8px;
  margin: 12px;
  background: rgba(255, 255, 255, .16);
  border-radius: 6px;
}

.layers-pack .phone .line.w70 { width: 70%; }
.layers-pack .phone .line.w40 { width: 40%; }

/* ============== ANIMAÇÕES ============== */
@keyframes breathe {
  0%, 100% { transform: translateZ(0) scale(1); }
  50% { transform: translateZ(0) scale(1.01); }
}

@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(0deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(12px) rotate(0deg); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ============== RESPONSIVO ============== */
@media (max-width: 768px) {
  .hero-graphic.layers-pack { width: min(78vw, 520px); margin-inline: auto; }
  .layers-pack .monitor { width: 84%; left: 8%; }
  .layers-pack .phone { right: 4%; top: 12%; }
}

/* ============== ACESSIBILIDADE (reduzir movimento) ============== */
@media (prefers-reduced-motion: reduce) {
  .layers-pack .card,
  .layers-pack .pane,
  .layers-pack .phone,
  .layers-pack .monitor {
    animation: none !important;
    transition: none !important;
  }
}

/* ============== LGPD CONSENT UI (fallback) ============== */
#lz-consent-banner,
#lz-consent-modal {
  z-index: 2147483647;
}

#lz-consent-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  left: 1rem;
}

@media (min-width: 640px) {
  #lz-consent-banner {
    left: auto;
    width: 380px;
  }
}

#lz-consent-modal {
  position: fixed;
  inset: 0;
}

#lz-consent-banner[aria-hidden="true"],
#lz-consent-modal[aria-hidden="true"] {
  display: none !important;
}

#lz-consent-banner[aria-hidden="false"] {
  display: block !important;
}

#lz-consent-modal[aria-hidden="false"] {
  display: block !important;
}
