/* CallFlow Pro - Landing Page */
/* Profissional, minimalista, moderna */

:root {
  --bg-dark: #0a0b0f;
  --bg-card: #12141a;
  --bg-elevated: #1a1d26;
  --border: rgba(255, 255, 255, 0.06);
  --text: #f0f2f5;
  --text-muted: #8b8f9a;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.25);
  --accent: #60a5fa;
  --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: rgba(10, 11, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.header.scrolled {
  background: rgba(10, 11, 15, 0.95);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-icon {
  color: var(--primary);
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--primary);
  color: white;
}

.btn--primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 24px var(--primary-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 8rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.12);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
  perspective: 1200px;
}

.hero-img-wrap--1 {
  animation: float3d 6s ease-in-out infinite;
}

.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, var(--primary-glow) 0%, transparent 70%);
  opacity: 0.4;
  filter: blur(40px);
  z-index: -1;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: block;
}

@keyframes float3d {
  0%, 100% { transform: perspective(1200px) rotateY(-2deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(1200px) rotateY(2deg) rotateX(-2deg) translateY(-12px); }
}

/* VSL (player estilo Paradise — mesmo padrão da LP principal) */
.vsl-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

/* VSL logo abaixo do header fixo (primeiro bloco da página) */
.vsl-section--first {
  padding-top: max(6.5rem, calc(5.25rem + env(safe-area-inset-top)));
}

.vsl-section .section-desc {
  margin-bottom: 2rem;
}

.vsl-section .lead-step__video-wrap {
  max-width: 900px;
  margin: 0 auto;
}

/* Buffer inicial do VSL (preload + decode) */
.vsl-video-shell {
  position: relative;
}

.vsl-video-shell--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  z-index: 22;
  animation: vsl-spin 0.75s linear infinite;
  pointer-events: none;
}

.vsl-video-shell--loading #paradisePlayer_callflowVsl {
  opacity: 0.45;
}

@keyframes vsl-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Fallback quando o vídeo não carrega (rede, DNS, arquivo) */
.vsl-video-error {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  background: rgba(10, 11, 15, 0.92);
  border-radius: 12px;
  color: var(--text);
}

.vsl-video-error[hidden] {
  display: none !important;
}

.vsl-video-error p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.vsl-video-error__hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.vsl-video-error__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.vsl-video-error__link:hover {
  background: var(--primary-hover);
}

/* Stats */
.stats {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Section titles */
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 4rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Features */
.features {
  padding: 6rem 0;
}

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-card--reverse .feature-content {
  order: 2;
}

.feature-card--reverse .feature-visual {
  order: 1;
}

.feature-content h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.feature-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.feature-visual {
  position: relative;
}

.img-3d {
  position: relative;
  perspective: 1500px;
  transform-style: preserve-3d;
}

.img-3d img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: block;
}

.img-3d:hover img {
  transform: perspective(1500px) rotateY(-5deg) rotateX(3deg) scale(1.02);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 40px var(--primary-glow);
}

/* Scroll-in animation for feature cards */
.feature-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Showcase */
.showcase {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.03) 50%, transparent 100%);
}

.showcase-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.showcase-item {
  text-align: center;
}

.showcase-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
  margin-bottom: 1rem;
}

.showcase-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.showcase-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-item:hover .showcase-img-wrap img {
  transform: scale(1.03) translateZ(20px);
}

.showcase-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* CTA */
.cta {
  padding: 6rem 0;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
}

.cta-actions .btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 6rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    min-height: 320px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card,
  .feature-card--reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-card--reverse .feature-content,
  .feature-card--reverse .feature-visual {
    order: unset;
  }

  .feature-content {
    text-align: center;
  }

  .showcase-gallery {
    grid-template-columns: 1fr;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .hero-img-wrap--1 {
    animation: float3d-mobile 6s ease-in-out infinite;
  }

  @keyframes float3d-mobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-box {
    padding: 2.5rem 1.5rem;
  }
}

/* Mobile - Otimizações específicas */
@media (max-width: 480px) {
  :root {
    --radius: 10px;
    --radius-lg: 16px;
  }

  .container {
    padding: 0 1rem;
  }

  /* Header */
  .header {
    padding: 0.75rem 1rem;
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }

  .logo {
    font-size: 1.1rem;
  }

  .nav-links .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .vsl-section--first {
    padding-top: calc(4.75rem + env(safe-area-inset-top));
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: calc(5rem + env(safe-area-inset-top)) 1rem 3rem;
    gap: 2rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .hero-title {
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    min-height: 48px;
    padding: 0.875rem 1.25rem;
  }

  .hero-visual {
    min-height: 260px;
  }

  .hero-img-wrap {
    max-width: 100%;
  }

  /* Stats */
  .stats {
    padding: 2.5rem 0;
  }

  .stats-grid {
    gap: 1rem;
  }

  .stat {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  /* Sections */
  .section-title {
    font-size: 1.6rem;
    padding: 0 0.5rem;
  }

  .section-desc {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
  }

  /* Features */
  .features {
    padding: 3rem 0;
  }

  .feature-grid {
    gap: 3rem;
  }

  .feature-card,
  .feature-card--reverse {
    gap: 1.5rem;
  }

  .feature-content h3 {
    font-size: 1.35rem;
  }

  .feature-content p {
    font-size: 0.95rem;
  }

  /* Showcase */
  .showcase {
    padding: 3rem 0;
  }

  .showcase-gallery {
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .showcase-label {
    font-size: 0.9rem;
  }

  /* CTA */
  .cta {
    padding: 3rem 0;
    padding-bottom: max(3rem, env(safe-area-inset-bottom));
  }

  .cta-box {
    padding: 2rem 1.25rem;
  }

  .cta-box h2 {
    font-size: 1.5rem;
  }

  .cta-box p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .cta-actions .btn {
    min-height: 48px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  /* Footer */
  .footer {
    padding: 1.5rem 0;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-copy {
    font-size: 0.8rem;
    text-align: center;
  }
}

/* Reduzir animações em dispositivos que preferem */
@media (prefers-reduced-motion: reduce) {
  .hero-img-wrap--1,
  .hero-img-wrap {
    animation: none;
  }

  .feature-card {
    transition: none;
  }

  .img-3d:hover img,
  .showcase-item:hover .showcase-img-wrap img {
    transform: none;
  }
}
