/* ============================================
   CreditaJá — Design System (LIGHT THEME)
   Premium light theme with glassmorphism
   ============================================ */

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

/* ---------- CSS Variables ---------- */
:root {
  /* Colors - Light Trust Palette */
  --color-bg-deep: #ffffff;
  --color-bg-primary: #f8fafc;
  --color-bg-secondary: #f1f5f9;
  --color-bg-card: rgba(255, 255, 255, 0.9);
  --color-bg-glass: rgba(255, 255, 255, 0.7);
  --color-bg-glass-hover: rgba(255, 255, 255, 0.95);

  --color-primary: #2563eb;
  --color-primary-light: #3b82f6;
  --color-primary-dark: #1d4ed8;
  --color-primary-glow: rgba(37, 99, 235, 0.15);

  --color-accent: #f59e0b;
  --color-accent-light: #fbbf24;
  --color-accent-dark: #d97706;
  --color-accent-glow: rgba(245, 158, 11, 0.15);

  --color-success: #10b981;
  --color-success-light: #34d399;
  --color-danger: #ef4444;

  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  --color-text-dark: #1e293b;

  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 0, 0, 0.15);

  /* Surfaces */
  --surface-light: #ffffff;
  --surface-light-alt: #f1f5f9;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow-primary: 0 4px 20px var(--color-primary-glow);
  --shadow-glow-accent: 0 4px 20px var(--color-accent-glow);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
}

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

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

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

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

ul, ol {
  list-style: none;
}

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

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

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- TOP BAR ---------- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), #4f46e5);
  z-index: 1001;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.top-bar-track {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.top-bar-content {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  width: max-content;
}

.top-bar-item {
  color: white;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0 var(--space-lg);
}

.top-bar-divider {
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--fs-xs);
  padding: 0 var(--space-sm);
}

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

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border), var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
}

.logo-text span {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-base);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: var(--shadow-glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-primary-glow), var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: white;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-bg-primary);
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  box-shadow: var(--shadow-glow-accent);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-accent-glow), var(--shadow-lg);
}

.btn-sm {
  padding: 10px 20px;
  font-size: var(--fs-sm);
}

.btn-lg {
  padding: 18px 40px;
  font-size: var(--fs-md);
}

/* ---------- HERO SECTION ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-height) + 40px);
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 40%, #fef9ee 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(37, 99, 235, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
  z-index: 1;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: var(--space-4xl);
  position: relative;
  z-index: 2;
}

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

.hero-image {
  flex: 0 0 auto;
  position: relative;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

.hero-image img {
  width: 380px;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 4px solid white;
}

.hero-image-name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius-xl) + 4px);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  z-index: -1;
  opacity: 0.3;
}

.hero-image::after {
  content: '⚡ Especialista em CDC';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  color: #059669;
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-5xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-primary);
}

.hero-stat-label {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* ---------- VIDEO SECTION ---------- */
.video-section {
  background: var(--color-bg-primary);
  padding: var(--space-3xl) 0;
}

.video-wrapper {
  max-width: 400px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  position: relative;
  background: #000;
}

.video-wrapper video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: var(--radius-xl);
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg-primary));
  color: var(--color-text-secondary);
  gap: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.video-placeholder:hover {
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.video-play-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: var(--shadow-glow-primary);
  transition: transform var(--transition-base);
}

.video-placeholder:hover .video-play-icon {
  transform: scale(1.1);
}

.video-label {
  font-weight: 600;
  color: var(--color-text-primary);
}

/* ---------- PAIN POINTS SECTION ---------- */
.pain-section {
  background: var(--color-bg-deep);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.pain-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-danger), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.pain-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-lg);
}

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

.pain-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  background: rgba(239, 68, 68, 0.08);
}

.pain-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.pain-desc {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ---------- HOW IT WORKS SECTION ---------- */
.steps-section {
  background: var(--color-bg-primary);
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-success));
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: white;
  position: relative;
}

.step-card:nth-child(1) .step-number {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: var(--shadow-glow-primary);
}

.step-card:nth-child(2) .step-number {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  box-shadow: var(--shadow-glow-accent);
}

.step-card:nth-child(3) .step-number {
  background: linear-gradient(135deg, var(--color-success), #059669);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed;
  border-color: inherit;
  opacity: 0.2;
  animation: spin 20s linear infinite;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.step-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.step-desc {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ---------- LEGAL SECTION ---------- */
.legal-section {
  background: var(--color-bg-deep);
}

.legal-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.legal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-success));
}

.legal-icon {
  font-size: 3rem;
  margin-bottom: var(--space-xl);
}

.legal-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

.legal-text {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
}

.legal-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.legal-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-full);
  color: #059669;
  font-weight: 500;
  font-size: var(--fs-sm);
}

/* ---------- TESTIMONIALS SECTION ---------- */
.testimonials-section {
  background: var(--color-bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.testimonial-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-hover);
}

.testimonial-stars {
  color: var(--color-accent);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.testimonial-text::before {
  content: '"';
  font-size: 2rem;
  color: var(--color-primary);
  font-family: Georgia, serif;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 4px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: white;
}

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

.testimonial-location {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* ---------- DONT SECTION ---------- */
.dont-section {
  background: var(--color-bg-deep);
}

.dont-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.dont-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.dont-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dont-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.dont-title {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

.dont-desc {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ---------- FAQ SECTION ---------- */
.faq-section {
  background: var(--color-bg-primary);
}

.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow-primary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl);
  font-weight: 600;
  font-size: var(--fs-base);
  text-align: left;
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), background var(--transition-base);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--color-primary);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-answer-inner {
  padding: 0 var(--space-xl) var(--space-xl);
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: var(--fs-sm);
}

/* ---------- FINAL CTA SECTION ---------- */
.final-cta-section {
  background: var(--color-bg-deep);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.final-cta-card {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-xl);
  padding: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.final-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
}

.final-cta-title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  position: relative;
  color: white;
}

.final-cta-text {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
  position: relative;
}

.final-cta-card .btn-accent {
  position: relative;
  background: white;
  color: var(--color-primary);
}

.final-cta-card .btn-accent:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-cnpj {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
  display: inline-block;
  font-weight: 500;
}

.footer-links-group h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.footer-links-group a {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.footer-links-group a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copyright {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--color-primary);
}

/* ---------- WHATSAPP FLOATING BUTTON ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 998;
  transition: all var(--transition-base);
  animation: bounceIn 0.6s ease 1s forwards;
  opacity: 0;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.whatsapp-float .whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: whatsappPulse 2s infinite;
}

/* ---------- CHATBOT WIDGET ---------- */
.chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-full);
  padding: 14px 24px;
  box-shadow: 0 8px 30px var(--color-primary-glow), var(--shadow-lg);
  z-index: 999;
  transition: all var(--transition-base);
  animation: bounceIn 0.6s ease 0.8s forwards;
  opacity: 0;
  cursor: pointer;
  color: white;
  font-weight: 600;
  font-size: var(--fs-sm);
  font-family: var(--font-body);
}

.chatbot-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--color-primary-glow), var(--shadow-xl);
}

.chatbot-toggle .icon-chat {
  font-size: 1.3rem;
  transition: all var(--transition-base);
}

.chatbot-toggle .icon-close {
  position: absolute;
  left: 24px;
  font-size: 1.3rem;
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  transition: all var(--transition-base);
}

.chatbot-toggle .toggle-label {
  transition: all var(--transition-base);
}

.chatbot-toggle.active {
  padding: 14px 24px;
  border-radius: var(--radius-full);
}

.chatbot-toggle.active .icon-chat {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.chatbot-toggle.active .icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.chatbot-toggle.active .toggle-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.chatbot-notification {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: var(--color-danger);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  border: 2px solid white;
  animation: pulse 1.5s infinite;
}

/* Chatbot prompt bubble */
.chatbot-prompt {
  position: fixed;
  bottom: 76px;
  right: 24px;
  background: white;
  color: var(--color-text-primary);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  font-weight: 500;
  z-index: 998;
  animation: fadeInUp 0.5s ease 2s forwards;
  opacity: 0;
  max-width: 260px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-base);
}

.chatbot-prompt:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.chatbot-prompt .prompt-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: var(--color-bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  cursor: pointer;
}

.chatbot-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 400px;
  height: 580px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  box-shadow: var(--shadow-xl);
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-spring);
  transform-origin: bottom right;
}

.chatbot-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chatbot-header {
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: white;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.chatbot-info h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: white;
}

.chatbot-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.8);
}

.chatbot-status .status-dot {
  width: 6px;
  height: 6px;
  background: var(--color-success-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  scroll-behavior: smooth;
  background: var(--color-bg-primary);
}

/* Custom scrollbar */
.chatbot-messages::-webkit-scrollbar {
  width: 4px;
}

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

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--color-border-hover);
  border-radius: 4px;
}

.chat-message {
  max-width: 85%;
  animation: messageIn 0.3s ease;
}

.chat-message.bot {
  align-self: flex-start;
}

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

.chat-bubble {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  line-height: 1.6;
  position: relative;
}

.chat-message.bot .chat-bubble {
  background: white;
  border: 1px solid var(--color-border);
  border-bottom-left-radius: var(--radius-sm);
  color: var(--color-text-primary);
}

.chat-message.user .chat-bubble {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-bottom-right-radius: var(--radius-sm);
  color: white;
}

.chat-time {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
  padding: 0 var(--space-sm);
}

.chat-message.user .chat-time {
  text-align: right;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: var(--space-md) var(--space-lg);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-sm);
  width: fit-content;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--color-text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Quick reply buttons */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.quick-reply-btn {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  color: var(--color-primary);
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
}

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

/* WhatsApp CTA in chat */
.chat-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  background: #25d366;
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-top: var(--space-sm);
  transition: all var(--transition-base);
  text-decoration: none;
}

.chat-whatsapp-btn:hover {
  background: #22c55e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Chat input area */
.chatbot-input-area {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  background: white;
}

.chatbot-input {
  flex: 1;
  padding: 10px 16px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

.chatbot-input::placeholder {
  color: var(--color-text-muted);
}

.chatbot-input:focus {
  border-color: var(--color-primary);
}

.chatbot-send {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.chatbot-send:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-primary);
}

.chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.chatbot-send svg {
  width: 18px;
  height: 18px;
  fill: white;
}

/* ---------- COUNTER ---------- */
.counter-section {
  background: var(--color-bg-primary);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.counter-item {
  padding: var(--space-lg);
}

.counter-value {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--color-primary);
}

.counter-label {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* ---------- KEYFRAMES ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-6px);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

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

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

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

  .hero-image img {
    width: 300px;
    height: 380px;
  }

  .hero-title {
    font-size: var(--fs-4xl);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .steps-grid::before {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-5xl: 2.5rem;
    --fs-4xl: 2rem;
    --fs-3xl: 1.75rem;
    --fs-2xl: 1.5rem;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Mobile nav overlay */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: calc(var(--header-height) + 40px);
    background: white;
    padding: var(--space-2xl);
    gap: var(--space-xl);
    z-index: 999;
    animation: fadeInUp 0.3s ease;
  }

  .nav-links.mobile-open a {
    font-size: var(--fs-lg);
    color: var(--color-text-primary);
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 40px + var(--space-2xl)) 0 var(--space-2xl);
  }

  .hero-image img {
    width: 260px;
    height: 320px;
  }

  .hero-stats {
    gap: var(--space-xl);
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .counter-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .legal-card {
    padding: var(--space-2xl);
  }

  .legal-badges {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
  }

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

  .final-cta-card {
    padding: var(--space-2xl);
  }

  /* Chatbot - fullscreen on mobile */
  .chatbot-window {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
  }

  .chatbot-window.open {
    transform: scale(1);
  }

  .chatbot-prompt {
    right: 16px;
    bottom: 68px;
  }

  .chatbot-toggle {
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float {
    bottom: 16px;
    left: 16px;
  }

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

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

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

  .video-wrapper {
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

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

  .hero-image img {
    width: 220px;
    height: 280px;
  }
}
