/* ========================================
   VARIÁVEIS & RESET
======================================== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #7c3aed;
  --accent: #f59e0b;
  --dark: #0f172a;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-primary: 0 0 15px rgba(37, 99, 235, 0.5);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.preload * { transition: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--primary); }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ========================================
   TIPOGRAFIA & UTILITÁRIOS
======================================== */
h1, h2, h3, h4, .logo-text { font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.25; }
.text-gradient { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge { background: #e0e7ff; color: var(--primary); padding: 0.35rem 1.1rem; border-radius: 9999px; display: inline-block; margin-bottom: 1rem; font-weight: 600; font-size: 0.85rem; }
.section-title { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-bottom: 0.5rem; }

/* ========================================
   BOTÕES (Touch Friendly)
======================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 9999px; font-weight: 600; transition: var(--transition); padding: 0.8rem 1.6rem; font-size: 1rem; border: none; white-space: nowrap; min-height: 48px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-xl { padding: 1.1rem 2.2rem; font-size: 1.15rem; }
.btn-full { width: 100%; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-hero { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white); box-shadow: var(--shadow-lg); }
.btn-hero:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--glow-primary), var(--shadow-lg); }

/* ========================================
   HEADER & NAV (MOBILE-FIRST)
======================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04); padding: 0.75rem 1rem;
}
.header.scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-icon { width: 2.2rem; height: 2.2rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: var(--radius-sm); display: grid; place-items: center; font-size: 0.9rem; color: white; font-weight: 800; }
.logo-text { font-size: 1.15rem; font-weight: 700; color: var(--dark); }
.logo-text span { color: var(--primary); }

.nav-desktop, .header-ctas { display: none; }

.mobile-menu-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--dark); border-radius: var(--radius-sm); transition: background 0.2s; }
.mobile-menu-btn:hover { background: rgba(0,0,0,0.04); }

.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 85%; max-width: 320px; height: 100vh;
  background: var(--white); padding: 5rem 1.5rem 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  box-shadow: -8px 0 30px rgba(0,0,0,0.1);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999;
}
.mobile-menu.active { right: 0; }
.mobile-menu[aria-hidden="true"] { visibility: hidden; }
.mobile-menu[aria-hidden="false"] { visibility: visible; }
.mobile-link { font-size: 1.1rem; font-weight: 500; color: var(--dark); padding: 0.75rem 0; border-bottom: 1px solid #f1f5f9; text-decoration: none; transition: color 0.2s; min-height: 44px; display: flex; align-items: center; }
.mobile-link:hover { color: var(--primary); }
.mobile-cta { margin-top: 0.5rem; border-radius: var(--radius-md); }

.whatsapp-float {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 998;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* ========================================
   HERO
======================================== */
.hero { position: relative; padding: 7rem 0 4rem; background: linear-gradient(180deg, #f0f9ff 0%, var(--white) 100%); text-align: center; overflow: hidden; }
.hero-content { position: relative; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(4px); padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.9rem; color: var(--gray); margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.hero-title { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; margin-bottom: 1.25rem; line-height: 1.15; }
.hero-subtitle { font-size: 1.1rem; color: var(--gray); max-width: 700px; margin: 0 auto 2rem; }
.hero-benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-bottom: 2rem; }
.hero-benefit { display: flex; align-items: center; gap: 0.5rem; background: var(--white); padding: 0.5rem 0.9rem; border-radius: 9999px; box-shadow: var(--shadow-sm); color: var(--dark); font-weight: 500; font-size: 0.95rem; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 600px; margin: 0 auto; text-align: center; }
.hero-stat-value { font-size: 1.8rem; font-weight: 800; display: block; margin-bottom: 0.2rem; }
.hero-stat-label { font-size: 0.85rem; color: var(--gray); }

/* ========================================
   SEÇÕES & GRIDS
======================================== */
section { padding: 4rem 0; }
.how-it-works { background: var(--white); }
.why-use { background: var(--light); }
.success-cases { background: var(--dark); color: var(--white); padding: 4rem 0; }
.final-cta { background: linear-gradient(135deg, #f8fafc, #e2e8f0); text-align: center; position: relative; overflow: hidden; }

.steps-grid, .benefits-grid, .audience-grid, .pricing-grid, .success-grid {
  display: grid; max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; gap: 1.5rem;
}
.steps-grid { grid-template-columns: 1fr; text-align: center; }
.benefits-grid { grid-template-columns: 1fr; }
.audience-grid { grid-template-columns: repeat(2, 1fr); text-align: center; }
.pricing-grid { grid-template-columns: 1fr; align-items: stretch; }
.success-grid { grid-template-columns: 1fr; justify-items: center; }

.step-card, .benefit-card, .audience-card, .pricing-card, .success-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,0.04); transition: var(--transition);
}
.step-card:hover, .benefit-card:hover, .audience-card:hover, .pricing-card:hover, .success-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(37, 99, 235, 0.2); }
.step-number { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; display: block; }
.step-icon { font-size: 2.2rem; margin-bottom: 0.8rem; display: block; }
.step-title { margin-bottom: 0.4rem; font-size: 1.2rem; }
.step-description { color: var(--gray); font-size: 0.95rem; }
.benefit-icon { font-size: 1.6rem; color: var(--primary); margin-bottom: 0.6rem; display: block; }
.audience-icon { font-size: 1.8rem; display: block; margin-bottom: 0.4rem; }
.audience-card span { font-weight: 500; display: block; font-size: 0.95rem; }

/* Pricing */
.pricing-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 460px; }
.pricing-card.featured { border: 2px solid var(--primary); position: relative; box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15); }
.pricing-card.featured::before {
  content: 'MAIS POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; font-size: 0.7rem; font-weight: 700;
  padding: 4px 16px; border-radius: 20px; letter-spacing: 0.5px; white-space: nowrap; z-index: 10;
}
.plan-header { text-align: center; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e2e8f0; margin-top: 0.5rem; }
.plan-tag { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; color: white; margin-bottom: 0.8rem; }
.plan-tag.starter { background: var(--secondary); }
.plan-tag.profissional { background: var(--primary); }
.plan-tag.empresarial { background: var(--accent); color: #1e293b; }
.plan-price { font-size: 2.2rem; font-weight: 800; color: var(--dark); line-height: 1; margin-bottom: 0.4rem; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--gray); }
.plan-subtitle { color: var(--gray); font-size: 0.9rem; }
.pricing-cta { margin: 1.2rem 0; }
.pricing-cta .btn { width: 100%; justify-content: center; }
.plan-features { list-style: none; padding: 0; margin: 0; margin-top: auto; }
.plan-feature { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }
.plan-feature:last-child { border: none; }
.plan-feature strong { color: var(--dark); font-weight: 600; }

/* Success Cases */
.success-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--white); text-align: center; }
.success-card:hover { border-color: rgba(245,158,11,0.4); }
.success-position { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.8rem; }
.position-number { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.position-type { background: rgba(245,158,11,0.15); color: var(--accent); padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); font-size: 0.75rem; }
.success-content { margin: 0.8rem 0; }
.success-keyword { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--white); }
.success-link { color: #60a5fa; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.success-link:hover { color: var(--accent); }
.success-ads-info { text-align: left; color: #94a3b8; font-size: 0.85rem; display: flex; flex-direction: column; gap: 0.2rem; margin-top: 0.8rem; }
.ads-value { color: var(--white); font-weight: 600; }
.cta-card-content { padding: 1.2rem; }
.cta-card-icon { font-size: 2.2rem; display: block; margin-bottom: 0.8rem; }
.cta-card-title { font-size: 1.2rem; margin-bottom: 0.6rem; color: var(--white); }
.cta-card-text { color: #cbd5e1; margin-bottom: 1.2rem; font-size: 0.9rem; }
.success-footer { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.success-footer p { margin-bottom: 1.2rem; color: #cbd5e1; font-size: 1rem; }
.success-footer .btn { min-width: 240px; }

/* Final CTA & Footer */
.final-cta-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.final-cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem; }

.footer { background: var(--dark); color: var(--white); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-brand { font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.footer-brand span { color: var(--primary); }
.footer-tagline { color: #94a3b8; font-size: 0.85rem; }
.footer-links h4 { margin-bottom: 0.8rem; font-size: 1rem; font-weight: 600; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #cbd5e1; font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); transform: translateX(3px); display: inline-block; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); color: #64748b; font-size: 0.8rem; }

/* Pricing Footer Fix */
.pricing-footer {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-footer p { color: var(--gray); font-size: 1.05rem; margin-bottom: 1.5rem; }
.pricing-footer .btn { min-width: 280px; margin: 0 auto; }

/* ========================================
   DESKTOP ENHANCEMENTS (min-width: 768px)
======================================== */
@media (min-width: 768px) {
  .header { padding: 1rem 2rem; }
  .mobile-menu-btn { display: none; }
  .mobile-menu { display: none; }
  .nav-desktop { display: flex; gap: 2rem; }
  .header-ctas { display: block; }
  .whatsapp-float { display: none; }
  
  .hero { padding: 9rem 0 6rem; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  
  .steps-grid, .benefits-grid, .audience-grid, .pricing-grid, .success-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .audience-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  
  section { padding: 5rem 0; }
  .pricing-card { min-height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}