/* ============================================================
   G7 Elevadores — LP Isca Diagnóstico
   CSS abaixo da dobra (carregado de forma não bloqueante).
   O CSS crítico (header, hero, botões) está inline no <head>.
   Animações: apenas transform/opacity. Blur moderado.
   ============================================================ */

:root {
  --navy: #0e2437;
  --slate: #3c4449;
  --gray: #737373;
  --bg: #081722;
  --panel: #0f2a40;
  --cyan: #56c8e8;
  --cyan-soft: #7fdcf5;
  --cyan-strong: #2ea7cf;
  --orange: #f19b4c;
  --orange-strong: #e07f24;
  --text: #eaf2f8;
  --text-soft: #b9cad8;
  --text-muted: #8ea6b8;
  --radius: 1.2rem;
}

/* ---------- Spotlight que segue o cursor (injetado via JS) ---------- */
.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(86, 200, 232, 0.07), transparent 65%);
  mix-blend-mode: screen;
  will-change: transform;
}

/* ---------- Marquee infinito ----------
   4 grupos idênticos (largura igual) e deslocamento de exatamente
   1 grupo por ciclo: translateX(-25%) da trilha. ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
  padding-block: 1.1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: mq-scroll 32s linear infinite;
  will-change: transform;
}

.mq-group {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem;
}

.mq-group span {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.mq-group i {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--cyan);
  opacity: 0.7;
}

@keyframes mq-scroll {
  to { transform: translateX(-25%); }
}

/* ---------- Seções ---------- */
.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section-alt {
  background:
    radial-gradient(55% 45% at 15% 0%, rgba(86, 200, 232, 0.06), transparent 60%),
    linear-gradient(180deg, #0a1f31, var(--bg));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.eyebrow-center {
  justify-content: center;
}

.eyebrow-center::after {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(270deg, var(--cyan), transparent);
}

.section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 1.1rem;
}

.section-text {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 52ch;
}

.section-text strong {
  color: #fff;
  font-weight: 600;
}

.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head .eyebrow {
  justify-content: center;
}

.section-head .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(270deg, var(--cyan), transparent);
}

.section-head .section-text {
  margin-inline: auto;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* ---------- Layout em duas colunas ---------- */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.split-media {
  justify-self: center;
  width: min(100%, 400px);
}

@media (min-width: 820px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 4.5rem; }
}

/* ---------- Cards de mídia (borda em gradiente) ---------- */
.media-card {
  position: relative;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(160deg, rgba(86, 200, 232, 0.5), rgba(255, 255, 255, 0.07) 45%, rgba(241, 155, 76, 0.35));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: transform;
}

.media-card:hover {
  transform: translateY(-6px);
}

.media-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 1px);
}

.media-chip {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(8, 23, 34, 0.82);
  border: 1px solid rgba(86, 200, 232, 0.3);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- Colagem de imagens ---------- */
.collage {
  position: relative;
  padding-bottom: 3.5rem;
  padding-right: 2.5rem;
}

.collage-b {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  transform: rotate(-3deg);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.collage-b:hover {
  transform: rotate(0deg) translateY(-4px);
}

/* ---------- Estatísticas / contadores ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 559.98px) {
  .stats { grid-template-columns: 1fr; gap: 1.2rem; }
}

.stat-num {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(95deg, #8ae2f8, #2ea7cf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 20ch;
}

/* ---------- Grid de benefícios (3 → 2 → 1, colunas iguais) ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

@media (min-width: 640px) {
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
}

.benefit-card {
  position: relative;
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)) padding-box,
    linear-gradient(160deg, rgba(86, 200, 232, 0.35), rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.1)) border-box;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: transform;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(60% 45% at 50% 0%, rgba(86, 200, 232, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.benefit-card:hover::after {
  opacity: 1;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 0.8rem;
  color: var(--cyan-soft);
  background: rgba(86, 200, 232, 0.1);
  border: 1px solid rgba(86, 200, 232, 0.25);
  margin-bottom: 1.1rem;
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 0.45rem;
}

.benefit-card p {
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* ---------- Lista com checks ---------- */
.check-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.check-list li {
  position: relative;
  padding-left: 2.3rem;
  color: var(--text-soft);
  font-size: 1rem;
}

.check-list li strong {
  color: #fff;
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0.45rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 7.2 2.8 2.8L11 4.5' fill='none' stroke='%23081722' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.85rem no-repeat,
    linear-gradient(135deg, var(--cyan), var(--cyan-strong));
}

/* ---------- Botões (complemento do crítico) ---------- */
.btn-secondary {
  background: linear-gradient(135deg, var(--orange), var(--orange-strong));
  color: #221204;
  box-shadow: 0 10px 30px rgba(241, 155, 76, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-lg {
  padding: 1.15rem 2.6rem;
  font-size: 1rem;
}

/* ---------- CTA final (painel escuro, brilho sutil, borda em gradiente) ---------- */
.cta-final {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4.5rem, 9vw, 7rem);
}

.cta-panel {
  position: relative;
  text-align: center;
  overflow: hidden;
  border-radius: 1.6rem;
  padding: clamp(2.8rem, 6vw, 4.5rem) 1.5rem;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, var(--panel), #0a1e2f) padding-box,
    linear-gradient(160deg, rgba(86, 200, 232, 0.45), rgba(255, 255, 255, 0.06) 45%, rgba(241, 155, 76, 0.4)) border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.cta-panel::before {
  content: "";
  position: absolute;
  top: -45%;
  left: 50%;
  width: 72%;
  height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(86, 200, 232, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-title {
  position: relative;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.cta-text {
  position: relative;
  margin: 1.1rem auto 2.2rem;
  color: var(--text-soft);
  max-width: 52ch;
}

.cta-note {
  position: relative;
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Popup de captura ---------- */
.lead-modal {
  width: min(92vw, 480px);
  margin: auto;
  border: 1px solid transparent;
  border-radius: 1.2rem;
  padding: 2rem 1.5rem 1.7rem;
  color: var(--text);
  background:
    linear-gradient(170deg, #12304a, #0a1e2f) padding-box,
    linear-gradient(160deg, rgba(86, 200, 232, 0.5), rgba(255, 255, 255, 0.08) 45%, rgba(241, 155, 76, 0.4)) border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

@media (min-width: 680px) {
  .lead-modal { padding: 2.4rem 2.2rem 2rem; }
}

.lead-modal::backdrop {
  background: rgba(4, 12, 19, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.lead-modal[open] {
  animation: modal-in 0.3s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: rotate(90deg);
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  padding-right: 2rem;
}

.modal-sub {
  margin: 0.5rem 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* ---------- Formulário ---------- */
.form-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.3rem;
  text-align: left;
}

.form-field label {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}

.form-field input {
  width: 100%;
  font: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.6rem;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input::placeholder { color: rgba(234, 242, 248, 0.35); }

.form-field input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(86, 200, 232, 0.2);
}

.form-field input.invalid {
  border-color: #e5695f;
  box-shadow: 0 0 0 3px rgba(229, 105, 95, 0.2);
}

.btn-form { width: 100%; }

.form-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.form-success {
  margin-top: 1.1rem;
  font-weight: 600;
  color: #7ddfa8;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #060f18;
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}

.footer-site {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cyan);
  text-decoration: none;
}

.footer-site:hover { text-decoration: underline; }

.footer-inner p {
  font-size: 0.8rem;
  color: var(--gray);
}

@media (min-width: 820px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---------- Revelação ao rolar (apenas abaixo da 1ª dobra) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--d, 0s);
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .btn, .media-card, .benefit-card, .collage-b, .modal-close { transition: none; }
  .lead-modal[open] { animation: none; }
  .spotlight { display: none; }
}
