/* ══════════════════════════════════════════
   TWIZE — PREMIUM WEBSITE DESIGN SYSTEM
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --clr-primary: #6124f2;
  --clr-secondary: #9240f4;
  --clr-primary-rgb: 97, 36, 242;
  --clr-secondary-rgb: 146, 64, 244;

  --brand-50: #f4f0ff;
  --brand-100: #e8e0ff;
  --brand-200: #d5c6ff;
  --brand-300: #b99eff;
  --brand-400: #9c75ff;
  --brand-500: var(--clr-secondary);
  --brand-600: var(--clr-primary);
  --brand-700: #4e17ce;
  --brand-800: #3d11a6;
  --brand-900: #2a0c74;

  /* Light Theme (Default) */
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --surface-bg: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --gradient-brand: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(var(--clr-primary-rgb), 0.08) 0%, transparent 60%);
  --nav-bg: rgba(248, 250, 252, 0.85);
  --nav-border: rgba(15, 23, 42, 0.06);
  --pain-card-bg: rgba(239, 68, 68, 0.03);
  --pain-card-border: rgba(239, 68, 68, 0.08);
  --glass-card-bg: rgba(255, 255, 255, 0.75);
  --glass-card-border: rgba(15, 23, 42, 0.06);
  --btn-secondary-bg: rgba(15, 23, 42, 0.04);
  --btn-secondary-border: rgba(15, 23, 42, 0.08);
  --btn-secondary-text: #0f172a;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg-color: #09090f;
  --card-bg: #13131d;
  --border-color: #1e1e2e;
  --surface-bg: #0d0d15;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gradient-brand: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(var(--clr-primary-rgb), 0.15) 0%, transparent 60%);
  --nav-bg: rgba(9, 9, 15, 0.85);
  --nav-border: rgba(255, 255, 255, 0.05);
  --pain-card-bg: rgba(239, 68, 68, 0.04);
  --pain-card-border: rgba(239, 68, 68, 0.1);
  --glass-card-bg: rgba(255, 255, 255, 0.03);
  --glass-card-border: rgba(255, 255, 255, 0.06);
  --btn-secondary-bg: rgba(255, 255, 255, 0.06);
  --btn-secondary-border: rgba(255, 255, 255, 0.1);
  --btn-secondary-text: #ffffff;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul,
ol {
  list-style: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--brand-700);
  border-radius: 3px;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.heading-xl {
  font-size: clamp(2rem, 4.5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.heading-lg {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-md {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.heading-sm {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.text-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-body-lg {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-small {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-brand {
  background: rgba(var(--clr-primary-rgb), 0.12);
  color: var(--brand-400);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.2);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 4px 24px rgba(var(--clr-primary-rgb), 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--clr-primary-rgb), 0.5);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(var(--clr-primary-rgb), 0.08);
  border-color: var(--brand-400);
  color: var(--brand-600);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-secondary:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1rem;
  border-radius: 16px;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ── Brands Section Marquee ── */
.brands-section {
  padding: 60px 0;
  background: var(--body-bg);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.brands-marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.brands-marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.brand-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 150px;
  flex-shrink: 0;
}

.brand-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(0.3) contrast(1.4) opacity(0.6);
  transition: all 0.35s var(--ease-out);
}

[data-theme="dark"] .brand-logo-item img {
  filter: grayscale(1) brightness(2.2) contrast(1.3) opacity(0.6);
}

.brand-logo-item img:hover {
  filter: grayscale(0) brightness(0.2) contrast(1.5) opacity(0.95);
  transform: scale(1.05);
}

[data-theme="dark"] .brand-logo-item img:hover {
  filter: grayscale(0) brightness(1.1) opacity(1);
  transform: scale(1.05);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ── Cards ── */
.glass-card {
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-card-border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .glass-card {
  box-shadow: none;
}

.glass-card:hover {
  background: var(--glass-card-bg);
  border-color: rgba(var(--clr-primary-rgb), 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(var(--clr-primary-rgb), 0.08);
}

.feature-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--clr-primary-rgb), 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
  background: rgba(var(--clr-primary-rgb), 0.1);
  color: var(--brand-400);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.15);
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--nav-border);
  padding: 10px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 32px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  color: var(--text-primary);
  font-size: 1.125rem;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.mobile-toggle:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: white;
  transform: translateY(-2px);
}

/* Esconde o hambúrguer enquanto o menu mobile está aberto */
body:has(.mobile-menu.open) .mobile-toggle {
  display: none;
}

/* Afasta o theme-toggle do botão de fechar do menu aberto */
body:has(.mobile-menu.open) .theme-toggle {
  margin-right: 52px;
}

/* Com o menu aberto, o navbar (z-index maior) fica por cima do botão de
   fechar e intercepta o clique. Desativa o ponteiro no navbar e reativa
   só no theme-toggle, que deve continuar clicável sobre o menu. */
body:has(.mobile-menu.open) .navbar {
  pointer-events: none;
}

body:has(.mobile-menu.open) .navbar .theme-toggle {
  pointer-events: auto;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-description {
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image {
  max-width: 600px;
  width: 100%;
  border-radius: 20px;
  position: relative;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--clr-primary-rgb), 0.2), transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: pulse-glow 4s ease-in-out infinite;
}

/* ── Sections ── */
.section {
  padding: 120px 0;
  position: relative;
}

.section-dark {
  background: var(--surface-bg);
}

.section-header {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-header .badge {
  margin-bottom: 20px;
}

.section-header .heading-lg {
  margin-bottom: 16px;
}

/* ── Pain Points ── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.pain-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--pain-card-bg);
  border: 1px solid var(--pain-card-border);
  transition: all 0.3s;
}

.pain-card:hover {
  background: rgba(239, 68, 68, 0.06);
  transform: translateY(-2px);
}

.pain-icon {
  color: #ef4444;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.pain-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pain-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Split Sections ── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-section.reverse {
  direction: rtl;
}

.split-section.reverse>* {
  direction: ltr;
}

.split-image {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.split-image img {
  width: 100%;
  border-radius: 20px;
}

/* ── Modules / Platform ── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.module-card {
  padding: 24px;
  text-align: center;
  border-radius: 16px;
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-card-border);
  transition: all 0.4s var(--ease-out);
}

.module-card:hover {
  background: rgba(var(--clr-primary-rgb), 0.08);
  border-color: rgba(var(--clr-primary-rgb), 0.2);
  transform: translateY(-4px);
}

.module-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--brand-400);
}

.module-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.module-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Stats Bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(var(--clr-primary-rgb), 0.08), rgba(var(--clr-secondary-rgb), 0.04));
  border: 1px solid rgba(var(--clr-primary-rgb), 0.12);
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Integrations ── */
.integrations-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.integration-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .integration-badge {
  box-shadow: none;
}

.integration-badge:hover {
  background: rgba(var(--clr-primary-rgb), 0.08);
  border-color: rgba(var(--clr-primary-rgb), 0.2);
  color: var(--text-primary);
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
  border-radius: 20px;
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-card-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .testimonial-card {
  box-shadow: none;
}

.testimonial-stars {
  color: #fbbf24;
  margin-bottom: 16px;
  font-size: 0.875rem;
}

.testimonial-text {
  font-size: 1.0rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Depoimento em vídeo (destaque) ── */
.testimonial-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  border-radius: 20px;
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-card-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

[data-theme="dark"] .testimonial-featured {
  box-shadow: none;
}

.testimonial-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.testimonial-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.testimonial-featured-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Foto real no lugar das iniciais */
.testimonial-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Selo de origem (WhatsApp, Instagram, Google...) */
.testimonial-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Card de depoimento em print (imagem) */
.testimonial-print-link {
  display: block;
  margin-bottom: 20px;
  cursor: zoom-in;
}

.testimonial-print-img {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--glass-card-border);
}

/* Showcase: print grande à esquerda + grid 2x2 de cards à direita */
.testimonials-showcase {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: stretch;
}

.testimonials-showcase-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}

/* Cards menores (metade da altura do print): menos padding e
   conteúdo distribuído de cima a baixo */
.testimonials-showcase-cards .testimonial-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.testimonials-showcase-cards .testimonial-text {
  margin-bottom: auto;
}

.testimonials-showcase-cards .testimonial-author {
  margin-top: 20px;
}

@media (max-width: 992px) {
  .testimonials-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .testimonials-showcase-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .testimonial-featured {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── CTA Section ── */
.cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(var(--clr-primary-rgb), 0.15), transparent 70%);
}

.cta-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-box .heading-lg {
  margin-bottom: 20px;
}

.cta-box .text-body-lg {
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ── Footer ── */
.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--brand-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8725rem;
  color: var(--text-muted);
}

/* ── Animations ── */
@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes count-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 {
  transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
  transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
  transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
  transition-delay: 0.4s;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* ── Particle BG Canvas ── */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
}

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-color);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-section.reverse {
    direction: ltr;
  }

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

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

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

/* Navbar entra no modo mobile a partir de 1000px */
@media (max-width: 1000px) {
  .navbar-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
  }

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

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

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

  .stats-bar {
    grid-template-columns: 1fr;
    padding: 32px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .section {
    padding: 60px 0;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 0.9375rem;
  }

  .navbar-cta .btn {
    display: none;
  }

  /* Brands Marquee Mobile */
  .brands-marquee-track {
    gap: 32px;
  }
  .brand-logo-item {
    width: 110px;
    height: 40px;
  }

  /* Comparison Table Mobile */
  .comparison-cell {
    padding: 10px 8px;
    font-size: 0.75rem;
  }
  .comparison-row.header {
    font-size: 0.75rem;
  }

  /* FAQ Chat Mobile */
  .chat-messages {
    padding: 16px 12px;
    height: 340px;
  }
  .chat-bubble {
    max-width: 88%;
  }
  .chat-bubble-content {
    padding: 12px 16px;
    font-size: 0.875rem;
  }
  .chat-input-form {
    padding: 12px 16px;
  }
  .chat-suggestions {
    padding: 0 16px 12px;
  }
  .chat-suggest-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .hero-actions,
  .cta-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .heading-lg {
    font-size: 1.75rem;
  }

  .heading-md {
    font-size: 1.35rem;
  }

  .container {
    padding: 0 16px;
  }
}

/* ── Typing Effect ── */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--brand-500);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ── Comparison Table ── */
.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1px;
  background: var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2px;
}

.comparison-row.header {
  background: rgba(var(--clr-primary-rgb), 0.1);
  font-weight: 700;
  font-size: 0.875rem;
}

.comparison-cell {
  padding: 14px 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--card-bg);
}

.comparison-cell:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.comparison-check {
  color: #22c55e;
}

.comparison-x {
  color: #ef4444;
}

/* ── Theme Toggle Button ── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  color: var(--text-primary);
  font-size: 1.125rem;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: white;
  transform: translateY(-2px);
}

/* ── Logo adaptivity ── */
.logo-img {
  filter: none;
  transition: filter 0.3s;
}

[data-theme="dark"] .logo-img {
  filter: brightness(0) invert(1);
}

/* ── Text highlight helpers ── */
.text-highlight {
  color: var(--text-primary) !important;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 15, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  width: 90%;
  max-width: 480px;
  padding: 40px;
  position: relative;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e2e8f0;
  backdrop-filter: blur(16px);
  transform: translateY(24px);
  transition: transform 0.4s var(--ease-spring), opacity 0.35s var(--ease-out);
  box-shadow: 0 24px 60px rgba(9, 9, 15, 0.15);
  overflow: hidden;
}

[data-theme="dark"] .modal-container {
  background: rgba(17, 17, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s;
}

[data-theme="dark"] .modal-close-btn {
  color: #94a3b8;
}

.modal-close-btn:hover {
  color: var(--brand-500);
}

.modal-header {
  margin-bottom: 24px;
  text-align: center;
}

.modal-header p {
  color: #475569;
  margin-top: 8px;
}

[data-theme="dark"] .modal-header p {
  color: #94a3b8;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

[data-theme="dark"] .form-group label {
  color: #cbd5e1;
}

.form-group input {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.9375rem;
  font-family: var(--font-main);
  transition: all 0.3s var(--ease-out);
}

.form-group input::placeholder {
  color: #94a3b8;
}

[data-theme="dark"] .form-group input {
  background: #1a1a26;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

[data-theme="dark"] .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand-500);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(var(--clr-primary-rgb), 0.15);
}

[data-theme="dark"] .form-group input:focus {
  background: #1e1e2d;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(var(--clr-primary-rgb), 0.25);
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

/* Success Screen */
.modal-success {
  text-align: center;
  padding: 20px 0 10px;
}

.success-icon {
  font-size: 3.5rem;
  color: #22c55e;
  margin-bottom: 20px;
  animation: scale-up 0.5s var(--ease-spring);
}

@keyframes scale-up {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.modal-success h4 {
  margin-bottom: 12px;
}

.modal-success p {
  color: #475569;
  margin-bottom: 24px;
  line-height: 1.6;
}

[data-theme="dark"] .modal-success p {
  color: #94a3b8;
}

/* ── FAQ Chat Section ── */
.faq-chat-section {
  padding: 100px 0;
  background: var(--body-bg);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
}

.chat-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.chat-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(9, 9, 15, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

[data-theme="dark"] .chat-card {
  background: rgba(17, 17, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

/* Header */
.chat-header {
  padding: 20px 28px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .chat-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-agent-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.chat-agent-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid white;
}

[data-theme="dark"] .chat-agent-status {
  border-color: #11111a;
}

.chat-agent-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 1rem;
}

[data-theme="dark"] .chat-agent-name {
  color: #ffffff;
}

.chat-agent-subtitle {
  font-size: 0.75rem;
  color: #64748b;
}

[data-theme="dark"] .chat-agent-subtitle {
  color: #94a3b8;
}

.chat-clear-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.chat-clear-btn:hover {
  background: #f1f5f9;
  color: #ef4444;
}

[data-theme="dark"] .chat-clear-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Messages Area */
.chat-messages {
  padding: 28px;
  height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

[data-theme="dark"] .chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

.chat-bubble {
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: message-fade 0.3s var(--ease-out);
}

@keyframes message-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-bubble.assistant {
  align-self: flex-start;
}

.chat-bubble.user {
  align-self: flex-end;
}

.chat-bubble-content {
  padding: 16px 20px;
  border-radius: 18px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.chat-bubble.assistant .chat-bubble-content {
  background: #f1f5f9;
  color: #1e293b;
  border-top-left-radius: 4px;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .chat-bubble.assistant .chat-bubble-content {
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.06);
}

.chat-bubble.user .chat-bubble-content {
  background: var(--brand-500);
  color: white;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(var(--clr-primary-rgb), 0.15);
}

.chat-bubble-time {
  font-size: 0.7rem;
  color: #94a3b8;
  padding: 0 4px;
}

.chat-bubble.user .chat-bubble-time {
  align-self: flex-end;
}

/* Typing Indicator */
.chat-typing-indicator {
  display: flex;
  gap: 4px;
  padding: 16px 20px;
  background: #f1f5f9;
  border-radius: 18px;
  border-top-left-radius: 4px;
  width: max-content;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .chat-typing-indicator {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

.chat-typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  animation: typing-dot 1.4s infinite ease-in-out both;
}

.chat-typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.chat-typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing-dot {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* Quick replies chips */
.chat-suggestions {
  display: flex;
  gap: 10px;
  padding: 0 28px 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.chat-suggestions::-webkit-scrollbar {
  display: none;
}

.chat-suggest-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease-out);
}

[data-theme="dark"] .chat-suggest-btn {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.chat-suggest-btn:hover {
  background: var(--brand-50);
  border-color: var(--brand-500);
  color: var(--brand-600);
}

[data-theme="dark"] .chat-suggest-btn:hover {
  background: rgba(var(--clr-primary-rgb), 0.1);
  border-color: var(--brand-400);
  color: #ffffff;
}

/* Input Form */
.chat-input-form {
  padding: 20px 28px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
}

[data-theme="dark"] .chat-input-form {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-input-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.9375rem;
  font-family: var(--font-main);
  transition: all 0.3s;
}

[data-theme="dark"] .chat-input-form input {
  background: #1a1a26;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.chat-input-form input:focus {
  outline: none;
  border-color: var(--brand-500);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(var(--clr-primary-rgb), 0.15);
}

[data-theme="dark"] .chat-input-form input:focus {
  background: #1e1e2d;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(var(--clr-primary-rgb), 0.25);
}

.chat-send-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-500);
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
}

.chat-send-btn:hover {
  background: var(--brand-600);
  transform: scale(1.05);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

/* ── Image Disclaimer Overlay ── */
.image-disclaimer {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(9, 9, 15, 0.75);
  backdrop-filter: blur(8px);
  color: rgba(248, 250, 252, 0.85);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s var(--ease-out);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 5;
}

[data-theme="light"] .image-disclaimer {
  background: rgba(255, 255, 255, 0.85);
  color: rgba(15, 23, 42, 0.85);
  border-color: rgba(15, 23, 42, 0.08);
}

.split-image:hover .image-disclaimer,
.hero-visual:hover .image-disclaimer,
.split-image.show-disclaimer .image-disclaimer,
.hero-visual.show-disclaimer .image-disclaimer {
  opacity: 1;
  transform: translateY(0);
}

.chat-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chat-cta-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.chat-cta-btn:hover { opacity: 0.9; }
.chat-cta-btn:active { transform: scale(0.97); }

/* Botão WhatsApp */
.chat-cta-whatsapp {
  background-color: #25D366;
  color: #fff;
}

/* Botão Demonstração */
.chat-cta-demo {
  background-color: #4F46E5; /* ajuste para a cor primária da Twize */
  color: #fff;
}

/* Botões de CTA dentro do balão da resposta */
.chat-cta-actions {
  display: flex;
  flex-direction: row; /* empilhados, abaixo do texto */
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  width: 100%;
}

.chat-cta-btn:hover  { opacity: 0.9; }
.chat-cta-btn:active { transform: scale(0.98); }

.chat-cta-whatsapp { background-color: #25D366; color: #fff; }
.chat-cta-demo     { background-color: var(--brand-500, #6124F2); color: #fff; }

.chat-cta-mw48 { max-width: 48px; }