/* ============================================================
   VSL LANDING PAGE — ESTILO MODERNO
   Paleta inspirada na identidade GRE: azul marinho profundo,
   azul elétrico, verde e dourado, com glassmorphism e glow.
   ============================================================ */

:root {
  --bg-deep: #060b18;
  --bg-navy: #0a1530;
  --bg-navy-2: #0f1f42;
  --blue-electric: #2f6fed;
  --blue-glow: #4f8cff;
  --green: #16d68c;
  --green-glow: #34f0a8;
  --gold: #f5b53d;
  --gold-2: #ffd873;
  --white: #f5f8ff;
  --muted: #9db0d6;
  --danger: #ff4d5e;
  --card-bg: rgba(16, 27, 56, 0.65);
  --card-border: rgba(120, 160, 255, 0.18);
  --shadow-glow: 0 0 60px rgba(47, 111, 237, 0.25);
  --font-main: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(ellipse at top, #0d1a3a 0%, #060b18 55%, #020610 100%);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Fundo decorativo ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-glow::before,
.bg-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.bg-glow::before {
  width: 500px;
  height: 500px;
  background: var(--blue-electric);
  top: -150px;
  left: -100px;
  animation: floatGlow 14s ease-in-out infinite alternate;
}

.bg-glow::after {
  width: 450px;
  height: 450px;
  background: var(--green);
  bottom: -120px;
  right: -100px;
  animation: floatGlow 16s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 40px) scale(1.15); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

/* ---------- Container principal ---------- */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 80px;
}

/* ---------- Header / Selo de confiança ---------- */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 214, 140, 0.1);
  border: 1px solid rgba(22, 214, 140, 0.35);
  color: var(--green-glow);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  text-transform: uppercase;
  animation: fadeInDown 0.8s ease both;
}

.trust-badge i { font-size: 11px; }

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-glow);
  box-shadow: 0 0 0 0 rgba(52, 240, 168, 0.7);
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(52, 240, 168, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(52, 240, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 240, 168, 0); }
}

/* ---------- Headline ---------- */
.headline-section {
  max-width: 820px;
  text-align: center;
  margin-bottom: 22px;
  animation: fadeInDown 0.9s ease both;
}

.headline-top {
  font-size: clamp(12px, 1.8vw, 15px);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 6px;
  opacity: 0.92;
}

.headline {
  font-size: clamp(30px, 6.5vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(79, 140, 255, 0.2);
}

.headline .highlight {
  background: linear-gradient(95deg, var(--green-glow) 0%, var(--blue-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.subheadline {
  font-size: clamp(14.5px, 2.2vw, 18px);
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto;
}

.subheadline strong {
  color: var(--green-glow);
  font-weight: 700;
}

/* ---------- Video container ---------- */
.video-section {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin-bottom: 28px;
  animation: fadeInUp 1s ease both;
}

/* ---------- Setas indicativas laterais ---------- */
.side-hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.35;
  text-align: center;
  width: 130px;
  z-index: 3;
}

.side-hint-left {
  left: -150px;
  color: var(--green-glow);
}

.side-hint-right {
  right: -150px;
  color: var(--gold);
}

.hint-arrow {
  font-size: 22px;
  animation: hintBounceRight 1.6s ease-in-out infinite;
}

.side-hint-right .hint-arrow {
  animation: hintBounceLeft 1.6s ease-in-out infinite;
}

@keyframes hintBounceRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

@keyframes hintBounceLeft {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-8px); }
}

@media (min-width: 1200px) {
  .side-hint { display: flex; }
}

.video-frame {
  position: relative;
  width: 100%;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(135deg, var(--blue-electric), var(--green), var(--gold));
  box-shadow: var(--shadow-glow), 0 25px 60px rgba(0,0,0,0.55);
  animation: borderGlow 6s ease-in-out infinite;
  overflow: hidden;
}

@keyframes borderGlow {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(15deg) brightness(1.08); }
}

.video-inner {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

/* Quando o vídeo ainda não foi configurado ou usamos um player que exige
   dimensão fixa via CSS (mp4/YouTube/Vimeo/iframe genérico), aplicamos
   aspect-ratio 16:9. O Web Component <vturb-smartplayer> gerencia sua
   própria altura internamente (via padding-top no placeholder), então
   não forçamos aspect-ratio quando ele está presente. */
.video-inner.fixed-ratio {
  aspect-ratio: 16 / 9;
}

.video-inner video,
.video-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-inner vturb-smartplayer {
  display: block;
  width: 100%;
}

/* ---------- Placeholder aviso config ---------- */
.config-warning {
  max-width: 860px;
  width: 100%;
  background: rgba(255, 77, 94, 0.1);
  border: 1px solid rgba(255, 77, 94, 0.4);
  color: #ffb3ba;
  font-size: 13.5px;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 22px;
  text-align: center;
  line-height: 1.5;
}

/* ---------- CTA button ---------- */
.cta-section {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 10px;
}

.cta-button-wrapper {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.6s ease, transform 0.6s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-button-wrapper.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  max-height: 400px;
  margin-top: 8px;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  font-size: clamp(15px, 2.4vw, 19px);
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #06110b;
  background: linear-gradient(95deg, var(--green-glow), var(--green) 55%, #0ecb85 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(52, 240, 168, 0.55), 0 18px 45px rgba(22, 214, 140, 0.35);
  animation: pulseCta 1.8s infinite;
  transition: transform 0.2s ease;
}

.cta-button:hover { transform: translateY(-3px) scale(1.02); }

.cta-button i { font-size: 20px; }

@keyframes pulseCta {
  0% { box-shadow: 0 0 0 0 rgba(52, 240, 168, 0.55), 0 18px 45px rgba(22, 214, 140, 0.35); }
  70% { box-shadow: 0 0 0 16px rgba(52, 240, 168, 0), 0 18px 45px rgba(22, 214, 140, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(52, 240, 168, 0), 0 18px 45px rgba(22, 214, 140, 0.35); }
}

/* Efeito "piscando forte" ao ser revelado (chama muita atenção nos
   primeiros segundos, depois volta ao pulso normal) */
.cta-button.flash-strong {
  animation: flashStrong 0.55s ease-in-out 10, pulseCta 1.8s infinite;
}

@keyframes flashStrong {
  0%, 100% {
    background: linear-gradient(95deg, var(--green-glow), var(--green) 55%, #0ecb85 100%);
    box-shadow: 0 0 30px 6px rgba(52, 240, 168, 0.65), 0 18px 45px rgba(22, 214, 140, 0.35);
    transform: scale(1);
  }
  50% {
    background: linear-gradient(95deg, var(--gold-2), var(--gold) 55%, #ffb300 100%);
    box-shadow: 0 0 55px 16px rgba(255, 216, 115, 0.85), 0 18px 45px rgba(245, 181, 61, 0.5);
    transform: scale(1.045);
  }
}

.cta-microtext {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Timer / countdown até liberar botão ---------- */
.timer-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.timer-hint.visible { opacity: 1; }

.timer-hint .timer-badge {
  background: rgba(79, 140, 255, 0.12);
  border: 1px solid rgba(79, 140, 255, 0.35);
  color: var(--blue-glow);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.progress-track {
  width: 100%;
  max-width: 340px;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-electric), var(--green));
  border-radius: 999px;
  transition: width 0.5s linear;
}

/* ---------- Prova social (toasts) ---------- */
#social-proof-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
  pointer-events: none;
}

.proof-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(12, 22, 48, 0.9);
  border: 1px solid rgba(120, 160, 255, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  animation: proofIn 0.5s ease forwards, proofOut 0.5s ease forwards;
  animation-delay: 0s, 6.5s;
  max-width: 340px;
}

.proof-avatar {
  min-width: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-electric), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}

.proof-text {
  font-size: 12.8px;
  line-height: 1.4;
  color: var(--white);
}

.proof-text strong {
  color: var(--green-glow);
}

.proof-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.proof-meta i { font-size: 10px; }

.proof-verified {
  color: var(--blue-glow);
  font-size: 13px;
  flex-shrink: 0;
}

@keyframes proofIn {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes proofOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-40px); display: none; }
}

/* Contador ao vivo no topo (aparece junto com prova social) */
.live-counter {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 22, 48, 0.85);
  border: 1px solid rgba(120, 160, 255, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--white);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.live-counter.visible {
  opacity: 1;
  transform: translateY(0);
}

.live-counter .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  animation: pulseDot 1.4s infinite;
}

.live-counter .dot.green { background: var(--green-glow); }

/* ---------- Footer ---------- */
.page-footer {
  margin-top: 40px;
  text-align: center;
  color: rgba(157, 176, 214, 0.6);
  font-size: 12px;
  max-width: 620px;
  line-height: 1.6;
}

/* ---------- Animations base ---------- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  #social-proof-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  .proof-toast { max-width: 100%; }
  .live-counter { top: 12px; right: 12px; font-size: 11.5px; padding: 7px 12px; }
  .cta-button { padding: 18px 26px; width: 100%; justify-content: center; }
  .video-section, .cta-section, .config-warning { max-width: 100%; }
}
