/* ========== FrameVivoAI — Estética IA: brilho, sombra, parallax, lightbox ========== */

html {
  scroll-behavior: smooth;
}

/* ---------- Orbs de fundo (hero) ---------- */
.hero-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orb-float 20s ease-in-out infinite;
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.25) 0%, transparent 70%);
  bottom: 10%;
  left: -100px;
  animation-delay: -7s;
}
.hero-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  top: 50%;
  left: 40%;
  animation-delay: -14s;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.98); }
}

/* ---------- Parallax hero background ---------- */
.parallax-hero-bg {
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: translateZ(-1px) scale(2);
  will-change: transform;
}
.hero-section {
  position: relative;
  z-index: 1;
}

/* ---------- Hero: alinhamento texto + vídeo (topo alinhado) ---------- */
.hero-content {
  display: grid;
  align-items: flex-start;
}
.hero-text {
  align-self: flex-start;
}

/* ---------- Hero vídeo: altura reduzida 20%, corte apenas na base ---------- */
.hero-video-wrapper {
  width: 100%;
  aspect-ratio: 9 / 14.08; /* ~10% mais alto que 9/12.8 (janela estendida para baixo) */
  max-height: 572px; /* 520 + 10% */
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}
.hero-video-wrapper video {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ---------- Hero: texto explicativo expandido ---------- */
.hero-description-expanded {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
}

@media (max-width: 768px) {
  .hero-video-wrapper {
    max-height: 418px; /* 380 + 10% */
  }
}

/* ---------- Header com brilho sutil ---------- */
.site-header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-header .text-electric {
  text-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

/* ---------- Botões: glow no hover ---------- */
.btn-glow:hover {
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.5), 0 0 60px rgba(14, 165, 233, 0.2);
}
.btn-ghost:hover {
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.3);
}

/* ---------- Cards: hover com borda e sombra ---------- */
.card-glow:hover {
  transform: translateY(-2px);
}

/* ---------- Módulos: cards com capa (premium) ---------- */
.modulo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.modulo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px -8px rgba(14, 165, 233, 0.4), 0 12px 24px -8px rgba(0, 0, 0, 0.4);
}
.modulo-card-bonus:hover {
  box-shadow: 0 0 30px -8px rgba(249, 115, 22, 0.4), 0 12px 24px -8px rgba(0, 0, 0, 0.4);
}
.modulo-cover-fallback {
  display: none;
}

/* ---------- Galeria: parallax bg ---------- */
.parallax-bg {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
}

/* ---------- Galeria: hover + overlay play ---------- */
.gallery-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.35), 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  border-color: rgba(14, 165, 233, 0.4) !important;
}
.gallery-item .gallery-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.gallery-item .gallery-play-overlay span {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.9);
  color: white;
  border-radius: 50%;
  font-size: 20px;
  padding-left: 4px;
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.6);
}
.gallery-item:hover .gallery-play-overlay {
  opacity: 1;
}

.gallery-item.placeholder-bg {
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #0ea5e9 100%);
  background-size: 200% 200%;
  animation: placeholder-shimmer 3s ease infinite;
}
@keyframes placeholder-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Video Lightbox ---------- */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.video-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}
.video-lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  z-index: 1;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.video-lightbox.is-open .video-lightbox-inner {
  transform: scale(1);
}
.video-lightbox-player {
  aspect-ratio: 2/3;
  max-height: 85vh;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.3), 0 25px 80px -20px rgba(14, 165, 233, 0.4), 0 0 100px rgba(0, 0, 0, 0.5);
}
.video-lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(51, 65, 85, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.video-lightbox-close:hover {
  background: rgba(248, 250, 252, 0.15);
  transform: scale(1.1);
}
#lightbox-video {
  background: #0f172a;
}

/* ---------- VSL Slider (Assista e entenda o método) ---------- */
.vsl-slider {
  --vsl-index: 0;
  overflow: hidden;
  width: 100%;
}
.vsl-slider-track {
  display: flex;
  width: 200%;
  transition: transform 0.35s ease-out;
  transform: translateX(calc(-50% * var(--vsl-index)));
}
.vsl-slider-track .vsl-slide {
  flex: 0 0 50%;
  width: 50%;
  min-width: 50%;
}
.vsl-slide-dot.active,
.vsl-slider[data-current="0"] .vsl-slide-dot[data-slide="0"],
.vsl-slider[data-current="1"] .vsl-slide-dot[data-slide="1"] {
  background: #0ea5e9;
  transform: scale(1.2);
}

/* ---------- Veja a transformação ao vivo: lista de benefícios em grid ---------- */
.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}
@media (max-width: 768px) {
  .features-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- RESULTS EXPAND: galeria — 12 visíveis, resto oculto até "Ver mais resultados" ---------- */
.gallery-item-more {
  display: none !important;
}
.galeria-section.gallery-section-expanded .gallery-item-more {
  display: block !important;
}
.galeria-section.gallery-section-expanded #gallery-expand-btn {
  display: none !important;
}

/* ---------- PRICING TABS ---------- */
.pricing-tab.active {
  background: rgba(14, 165, 233, 0.2);
  color: #0ea5e9;
  border: 1px solid rgba(14, 165, 233, 0.4);
}
.pricing-tab:not(.active) {
  color: #94a3b8;
}

/* ---------- Preços: botão WhatsApp ---------- */
.btn-whatsapp {
  background: #25D366;
  box-shadow: 0 0 20px -4px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover {
  background: #2ee66a;
  box-shadow: 0 0 28px -2px rgba(37, 211, 102, 0.5);
}

/* ---------- Preços: formulário de contato ---------- */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(14, 165, 233, 0.5);
}

/* ---------- Section reveal (scroll) ---------- */
.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- FAQ ---------- */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}
.faq-item {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item:hover {
  border-color: rgba(14, 165, 233, 0.3);
}

/* FAQ: duas colunas no desktop */
@media (min-width: 1024px) {
  .faq-grid-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
  }
}

/* ---------- Depoimentos: card hover ---------- */
.depoimento-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.depoimento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(14, 165, 233, 0.2);
  border-color: rgba(14, 165, 233, 0.25);
}

/* ---------- CTA final: pulse sutil ---------- */
main section:last-of-type a.cta-scroll {
  animation: cta-pulse 3s ease-in-out infinite;
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 40px -10px rgba(14, 165, 233, 0.4); }
  50% { box-shadow: 0 0 50px -5px rgba(14, 165, 233, 0.55); }
}
