/* ============================================================
   COSMEX CRM — Folha de estilos principal
   Paleta: Roxo #5D36F4 → Azul #2A7BFA → Ciano #00D2FF
   Tipografia: Plus Jakarta Sans (display) + Inter (corpo)
   ============================================================ */

/* --- Variáveis CSS --- */
:root {
  --roxo: #5D36F4;
  --azul: #2A7BFA;
  --ciano: #00D2FF;
  --azul-medio: #008BFF;
  --escuro: #0F0A1F;
  --gradiente: linear-gradient(135deg, #5D36F4 0%, #2A7BFA 50%, #00D2FF 100%);
  --branco: #ffffff;
  --cinza-claro: #f4f4f7;
  --cinza-borda: #e2e2e8;
  --texto: #1a1a2e;
  --texto-suave: #6b6b80;
  --raio: 0.75rem;
  --raio-lg: 1.25rem;
  --raio-xl: 1.75rem;
  --sombra: 0 20px 60px -15px rgba(93, 54, 244, 0.25);
  --sombra-lg: 0 30px 80px -20px rgba(93, 54, 244, 0.35);
  --fonte-display: 'Plus Jakarta Sans', sans-serif;
  --fonte-corpo: 'Inter', sans-serif;
  --max-largura: 1280px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fonte-corpo);
  color: var(--texto);
  background: var(--branco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--fonte-display); font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-largura);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* --- Utilitários de gradiente --- */
.bg-gradiente { background: var(--gradiente); }
.texto-gradiente {
  background: var(--gradiente);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bg-escuro { background-color: var(--escuro); }

/* --- Botões --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--raio);
  font-family: var(--fonte-display);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-gradient {
  background: var(--gradiente);
  color: var(--branco);
  box-shadow: var(--sombra);
}
.btn-gradient:hover { opacity: 0.9; }
.btn-ghost { color: var(--texto); background: transparent; }
.btn-ghost:hover { background: rgba(0,0,0,0.05); }
.btn-outline {
  border: 1px solid var(--cinza-borda);
  color: var(--texto);
  background: transparent;
}
.btn-outline:hover { border-color: var(--roxo); color: var(--roxo); }
.btn-branco {
  background: var(--branco);
  color: var(--roxo);
  font-weight: 700;
}
.btn-branco:hover { opacity: 0.9; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; height: 3.25rem; }

/* --- Logotipo --- */
.cosmex-logo { display: inline-flex; align-items: center; gap: 0.625rem; }
.cosmex-logo-icon { flex-shrink: 0; }
.cosmex-wordmark {
  font-family: var(--fonte-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--logo-color, var(--texto));
  text-transform: lowercase;
  letter-spacing: -0.02em;
}
.cosmex-tm { font-size: 0.5em; opacity: 0.5; vertical-align: super; }

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 1rem 0;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  padding: 0.5rem 0;
}
.navbar.scrolled .nav-links a { color: var(--texto-suave); }
.navbar.scrolled .nav-links a:hover { color: var(--texto); }
.navbar.scrolled .cosmex-wordmark { color: var(--texto) !important; }
.navbar.scrolled .btn-ghost { color: var(--texto); }

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--branco); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-actions .btn-ghost { color: var(--branco); }
.nav-actions .btn-ghost:hover { background: rgba(255,255,255,0.1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--branco);
  transition: all 0.3s;
}
.navbar.scrolled .nav-toggle span { background: var(--texto); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--branco);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--texto-suave);
  padding: 0.5rem 0;
}
.nav-mobile .btn { width: 100%; margin-top: 0.5rem; }

@media (max-width: 1023px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
}

/* ==================== HERO ==================== */
.hero {
  background: var(--escuro);
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 { top: -5rem; left: -5rem; width: 500px; height: 500px; background: var(--gradiente); opacity: 0.2; }
.hero-orb-2 { top: 33%; right: 0; width: 400px; height: 400px; background: var(--azul); opacity: 0.15; }
.hero-orb-3 { bottom: 0; left: 33%; width: 300px; height: 300px; background: var(--ciano); opacity: 0.1; }

.hero-grid {
  position: relative;
  z-index: 1;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-content { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero h1 {
  font-size: 2.25rem;
  color: var(--branco);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.5rem; } }

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  max-width: 36rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-cta .btn-outline {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  color: var(--branco);
  backdrop-filter: blur(10px);
}
.hero-cta .btn-outline:hover { background: rgba(255,255,255,0.1); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.hero-trust span { display: flex; align-items: center; gap: 0.375rem; }
.hero-trust svg { color: var(--ciano); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-visual img {
  border-radius: var(--raio-lg);
  box-shadow: var(--sombra-lg);
  border: 1px solid rgba(255,255,255,0.1);
  width: 100%;
}

.hero-float-card {
  position: absolute;
  background: var(--branco);
  border-radius: var(--raio);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-float-card-1 { top: -1.5rem; left: -1.5rem; }
.hero-float-card-2 { bottom: -1.5rem; right: -1.5rem; }
.hero-float-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--raio);
  display: flex; align-items: center; justify-content: center;
}
.hero-float-icon-green { background: #dcfce7; color: #16a34a; }
.hero-float-icon-grad { background: var(--gradiente); color: var(--branco); }
.hero-float-card p { font-size: 0.75rem; color: var(--texto-suave); }
.hero-float-card strong { font-size: 1.125rem; color: var(--texto); font-family: var(--fonte-display); }
@media (max-width: 1023px) { .hero-float-card { display: none; } }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 2;
}
@media (min-width: 1024px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  font-family: var(--fonte-display);
}
.hero-stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-top: 0.25rem; }

/* ==================== DIVISOR DE ONDA ==================== */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg {
  width: 100%;
  height: 40px;
  display: block;
}
@media (min-width: 768px) { .wave-divider svg { height: 60px; } }

/* ==================== SEÇÕES GENÉRICAS ==================== */
.section { padding: 5rem 0; }
@media (min-width: 1024px) { .section { padding: 8rem 0; } }
.section-light { background: var(--branco); }
.section-gray { background: var(--cinza-claro); }
.section-dark { background: var(--escuro); position: relative; overflow: hidden; }

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}
.section-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: rgba(93,54,244,0.1);
  color: var(--roxo);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-dark .section-badge { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.section-header h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}
@media (min-width: 1024px) { .section-header h2 { font-size: 3rem; } }
.section-header p {
  font-size: 1.125rem;
  color: var(--texto-suave);
}
.section-dark .section-header p { color: rgba(255,255,255,0.6); }

/* ==================== FUNCIONALIDADES ==================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-radius: var(--raio-lg);
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  border-color: rgba(93,54,244,0.3);
  box-shadow: var(--sombra);
  transform: translateY(-4px);
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 5rem; height: 5rem;
  background: var(--gradiente);
  opacity: 0;
  border-radius: 0 0 0 100%;
  transition: opacity 0.3s;
}
.feature-card:hover::after { opacity: 0.1; }
.feature-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--raio);
  background: var(--gradiente);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: var(--sombra);
  color: var(--branco);
  transition: transform 0.3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--texto-suave); line-height: 1.6; }

/* ==================== COMO FUNCIONA ==================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

.step-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.step-icon {
  width: 4rem; height: 4rem;
  border-radius: var(--raio-lg);
  background: var(--gradiente);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sombra);
  color: var(--branco);
  flex-shrink: 0;
}
.step-number { font-size: 3rem; font-weight: 700; color: rgba(93,54,244,0.15); font-family: var(--fonte-display); }
.step h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.step p { color: var(--texto-suave); margin-bottom: 1.25rem; font-size: 0.9375rem; }
.step-points { display: flex; flex-direction: column; gap: 0.5rem; }
.step-points li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: rgba(26,26,46,0.8);
}
.step-points li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradiente);
  flex-shrink: 0;
}

/* ==================== SEGMENTOS ==================== */
.segments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) { .segments-grid { grid-template-columns: repeat(2, 1fr); } }

.segment-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--raio-lg);
  padding: 2rem;
  transition: all 0.3s;
}
.segment-card:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
}
.segment-card-inner { display: flex; gap: 1.25rem; }
.segment-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: var(--raio-lg);
  background: var(--gradiente);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sombra);
  color: var(--branco);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.segment-card:hover .segment-icon { transform: scale(1.1); }
.segment-card h3 { color: var(--branco); font-size: 1.25rem; margin-bottom: 0.5rem; }
.segment-card p { color: rgba(255,255,255,0.6); font-size: 0.9375rem; margin-bottom: 1rem; }
.segment-highlight {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; font-weight: 600;
  color: var(--ciano) !important;
}
.segment-highlight::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ciano);
}

/* ==================== IA ==================== */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .ai-grid { grid-template-columns: 1fr 1fr; } }

.ai-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--gradiente);
  color: var(--branco);
  font-size: 0.875rem; font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: var(--sombra);
}
.ai-features { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.ai-feature { display: flex; gap: 1rem; align-items: flex-start; }
.ai-feature-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--raio);
  background: var(--gradiente);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sombra);
  color: var(--branco);
  flex-shrink: 0;
}
.ai-feature h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.ai-feature p { font-size: 0.875rem; color: var(--texto-suave); }

.ai-mockup {
  background: var(--escuro);
  border-radius: var(--raio-xl);
  padding: 2rem;
  box-shadow: var(--sombra-lg);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.ai-mockup-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--raio-lg);
  padding: 1rem;
  margin-bottom: 1rem;
}
.ai-mockup-card:last-child { margin-bottom: 0; }
.ai-mockup-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.ai-mockup-avatar {
  width: 2rem; height: 2rem;
  border-radius: var(--raio);
  background: var(--gradiente);
  display: flex; align-items: center; justify-content: center;
  color: var(--branco);
}
.ai-mockup-header span { font-size: 0.875rem; font-weight: 600; color: var(--branco); }
.ai-mockup-card p { font-size: 0.8125rem; color: rgba(255,255,255,0.7); line-height: 1.6; }
.ai-mockup-wave { display: flex; align-items: center; gap: 2px; margin: 0.5rem 0; }
.ai-mockup-wave span {
  width: 3px; border-radius: 999px;
  background: var(--gradiente);
  display: inline-block;
}
.ai-mockup-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.ai-mockup-tag { font-size: 0.75rem; color: var(--ciano); font-weight: 600; }

/* ==================== RESULTADOS ==================== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) { .results-grid { grid-template-columns: repeat(4, 1fr); } }

.result-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--raio-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}
.result-card:hover { border-color: rgba(255,255,255,0.2); }
.result-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--raio);
  background: var(--gradiente);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--sombra);
  color: var(--branco);
  transition: transform 0.3s;
}
.result-card:hover .result-icon { transform: scale(1.1); }
.result-value { font-size: 1.875rem; font-weight: 700; font-family: var(--fonte-display); margin-bottom: 0.5rem; }
.result-label { font-size: 0.875rem; font-weight: 600; color: var(--branco); margin-bottom: 0.5rem; }
.result-desc { font-size: 0.75rem; color: rgba(255,255,255,0.5); line-height: 1.5; }

/* ==================== APP & SUPORTE ==================== */
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .app-grid { grid-template-columns: 1fr 1fr; } }

.app-visual { position: relative; max-width: 24rem; margin: 0 auto; }
.app-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradiente);
  border-radius: var(--raio-xl);
  filter: blur(60px);
  opacity: 0.2;
  transform: scale(0.9);
}
.app-visual img {
  position: relative;
  border-radius: var(--raio-xl);
  box-shadow: var(--sombra-lg);
  border: 1px solid var(--cinza-borda);
}

.app-features { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .app-features { grid-template-columns: repeat(2, 1fr); } }
.app-feature { display: flex; gap: 0.75rem; align-items: flex-start; }
.app-feature-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--raio);
  background: var(--gradiente);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sombra);
  color: var(--branco);
  flex-shrink: 0;
}
.app-feature h3 { font-size: 0.875rem; margin-bottom: 0.25rem; }
.app-feature p { font-size: 0.75rem; color: var(--texto-suave); }

/* ==================== PLANOS ==================== */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.pricing-toggle-label { font-size: 0.875rem; font-weight: 500; color: var(--texto-suave); }
.pricing-toggle-label.active { color: var(--texto); }
.pricing-switch {
  position: relative;
  width: 3.5rem; height: 1.75rem;
  border-radius: 999px;
  background: rgba(93,54,244,0.2);
  cursor: pointer;
  transition: background 0.3s;
}
.pricing-switch-thumb {
  position: absolute;
  top: 0.25rem; left: 0.25rem;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--gradiente);
  transition: left 0.3s;
}
.pricing-switch.annual .pricing-switch-thumb { left: 2rem; }
.pricing-save {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.75rem;
  font-weight: 700;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}
@media (min-width: 1024px) { .plans-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.plan-card {
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-radius: var(--raio-xl);
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradiente);
  opacity: 0.5;
}
.plan-card.featured {
  background: var(--escuro);
  color: var(--branco);
  border: 2px solid rgba(93,54,244,0.4);
  box-shadow: var(--sombra-lg);
}
@media (min-width: 1024px) { .plan-card.featured { transform: scale(1.05); } }
.plan-card.featured::before { display: none; }

.plan-badge {
  position: absolute;
  top: -1rem; left: 50%;
  transform: translateX(-50%);
  background: var(--gradiente);
  color: var(--branco);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  box-shadow: var(--sombra);
}

.plan-icon {
  width: 3rem; height: 3rem;
  border-radius: var(--raio);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.plan-card:not(.featured) .plan-icon { background: rgba(93,54,244,0.1); color: var(--roxo); }
.plan-card.featured .plan-icon { background: var(--gradiente); color: var(--branco); }

.plan-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.plan-desc { font-size: 0.875rem; color: var(--texto-suave); margin-bottom: 1.5rem; }
.plan-card.featured .plan-desc { color: rgba(255,255,255,0.6); }

.plan-price { margin-bottom: 1.5rem; }
.plan-price-value { font-size: 2.5rem; font-weight: 700; font-family: var(--fonte-display); }
.plan-price-period { font-size: 0.875rem; color: var(--texto-suave); }
.plan-card.featured .plan-price-period { color: rgba(255,255,255,0.6); }
.plan-price-note { font-size: 0.75rem; color: var(--roxo); margin-top: 0.25rem; }
.plan-card.featured .plan-price-note { color: var(--ciano); }

.plan-cta { width: 100%; margin-bottom: 1.5rem; }
.plan-card:not(.featured) .plan-cta { background: var(--texto); color: var(--branco); }
.plan-card:not(.featured) .plan-cta:hover { opacity: 0.9; }

.plan-features { display: flex; flex-direction: column; gap: 0.75rem; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 0.625rem;
  font-size: 0.875rem;
}
.plan-check {
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.plan-card:not(.featured) .plan-check { background: rgba(93,54,244,0.1); color: var(--roxo); }
.plan-card.featured .plan-check { background: var(--gradiente); color: var(--branco); }
.plan-card:not(.featured) .plan-features li { color: rgba(26,26,46,0.8); }
.plan-card.featured .plan-features li { color: rgba(255,255,255,0.8); }

.pricing-note { text-align: center; font-size: 0.875rem; color: var(--texto-suave); margin-top: 2.5rem; }
.pricing-note a { color: var(--roxo); font-weight: 600; }

/* ==================== FAQ ==================== */
.faq-list { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-radius: var(--raio-lg);
  padding: 0 1.5rem;
  transition: all 0.2s;
}
.faq-item:hover { border-color: rgba(93,54,244,0.3); }
.faq-item.open { border-color: rgba(93,54,244,0.4); box-shadow: var(--sombra); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0;
  font-family: var(--fonte-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
}
.faq-arrow { transition: transform 0.2s; flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--texto-suave);
  line-height: 1.7;
}

.faq-cta {
  max-width: 48rem;
  margin: 3rem auto 0;
  background: var(--escuro);
  border-radius: var(--raio-xl);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.faq-cta-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: var(--raio-lg);
  background: var(--gradiente);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--sombra);
  color: var(--branco);
}
.faq-cta h3 { color: var(--branco); font-size: 1.5rem; margin-bottom: 0.5rem; }
.faq-cta p { color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }
.faq-cta-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.faq-cta .btn-outline {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  color: var(--branco);
}

/* ==================== CTA FINAL ==================== */
.cta-banner {
  background: var(--gradiente);
  border-radius: var(--raio-xl);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sombra-lg);
}
.cta-banner h2 { color: var(--branco); font-size: 1.875rem; margin-bottom: 1rem; }
@media (min-width: 1024px) { .cta-banner h2 { font-size: 3rem; } }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.125rem; margin-bottom: 2rem; max-width: 42rem; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2rem; }
.cta-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.cta-trust span { display: flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: rgba(255,255,255,0.8); }

/* ==================== FOOTER ==================== */
.footer {
  background: var(--escuro);
  color: var(--branco);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer-brand .cosmex-wordmark { color: var(--branco); }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 0.875rem; margin: 1rem 0 1.5rem; max-width: 16rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--raio);
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--branco);
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--gradiente); }
.footer-col h4 { font-size: 0.875rem; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col a:hover { color: var(--branco); }

.footer-contact {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  padding-top: 2rem; margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem; color: rgba(255,255,255,0.6);
}
.footer-contact span { display: flex; align-items: center; gap: 0.75rem; }

.footer-bottom {
  display: flex; flex-direction: column; gap: 1rem;
  padding-top: 2rem; margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem; color: rgba(255,255,255,0.4);
  text-align: center;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ==================== LOGIN ==================== */
.login-page { min-height: 100vh; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .login-page { flex-direction: row; } }

.login-brand {
  background: var(--escuro);
  padding: 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
@media (min-width: 1024px) { .login-brand { width: 50%; padding: 3rem; } }
.login-brand-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.login-back { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.login-back:hover { color: var(--branco); }
.login-brand-content { position: relative; z-index: 1; max-width: 28rem; }
.login-brand-content h1 { color: var(--branco); font-size: 1.875rem; margin: 2rem 0 1rem; }
@media (min-width: 1024px) { .login-brand-content h1 { font-size: 2.25rem; } }
.login-brand-content p { color: rgba(255,255,255,0.6); }
.login-brand-footer { position: relative; z-index: 1; color: rgba(255,255,255,0.4); font-size: 0.75rem; }

.login-form-side {
  background: var(--branco);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
@media (min-width: 1024px) { .login-form-side { width: 50%; padding: 3rem; } }
.login-form { width: 100%; max-width: 28rem; }
.login-form h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.login-form > p { color: var(--texto-suave); margin-bottom: 2rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; }
.form-group label a { float: right; color: var(--roxo); font-weight: 500; font-size: 0.75rem; }
.form-input-wrapper { position: relative; }
.form-input-wrapper svg { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--texto-suave); }
.form-input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 1px solid var(--cinza-borda);
  border-radius: var(--raio);
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--roxo); }
.form-input.error { border-color: #ef4444; }
.form-error { font-size: 0.75rem; color: #ef4444; margin-top: 0.25rem; display: flex; align-items: center; gap: 0.25rem; }
.form-checkbox { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-checkbox label { font-size: 0.875rem; color: var(--texto-suave); cursor: pointer; }
.login-submit { width: 100%; height: 3rem; margin-bottom: 1.5rem; }
.login-divider { text-align: center; margin: 1.5rem 0; position: relative; }
.login-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--cinza-borda); }
.login-divider span { background: var(--branco); padding: 0 1rem; font-size: 0.75rem; color: var(--texto-suave); text-transform: uppercase; position: relative; }
.login-social { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
.login-social .btn-outline { justify-content: center; height: 2.75rem; }
.login-signup { text-align: center; font-size: 0.875rem; color: var(--texto-suave); }
.login-signup a { color: var(--roxo); font-weight: 600; }

/* ==================== ORBS DECORATIVOS (seções escuras) ==================== */
.section-dark .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
