/* ==========================================================================
   Design Tokens & Variables
   ========================================================================== */
:root {
  /* Color Palette - Navy & Green from Logo */
  --bg-primary: #050b14;
  --bg-secondary: #0c1626;
  --bg-card: #112035;
  --bg-logo-capsule: #ffffff;
  
  --primary: #4ba87b; /* Logo Green */
  --primary-hover: #3d8f68;
  --accent-cyan: #06b6d4; /* Electric Cyan */
  --accent-green: #10b981; /* WhatsApp Emerald */
  --accent-green-hover: #059669;
  
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  /* Borders and Shadow */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(75, 168, 123, 0.3);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 50px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.4);
  
  /* Typography */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

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

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

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

/* ==========================================================================
   Typography System
   ========================================================================== */
.highlight {
  color: var(--primary);
}

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

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  gap: 10px;
}

.btn-primary {
  background-color: var(--accent-green);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--accent-green-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary-accent {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--text-main);
}

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

.btn-nav {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-nav:hover {
  background-color: var(--primary);
  color: var(--bg-primary);
  border-color: var(--primary);
}

.btn-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition-fast);
  border-bottom: 1px dashed var(--text-muted);
}

.btn-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.w-full {
  width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  padding: 24px 0; /* More padding when on top */
  transition: padding var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.main-header.scrolled {
  background-color: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 12px 0; /* Thinner padding when scrolled */
}

.header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Transparent Logo Container */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: var(--transition-normal);
}

.logo-container:hover {
  transform: scale(1.02);
}

.header-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.site-logo {
  height: 52px; /* Increased height so it is clearly legible */
  width: auto;
  object-fit: contain;
}

.mobile-only-action {
  display: none; /* Hidden on desktop */
}

.mobile-menu-toggle {
  display: none; /* Hidden on desktop */
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

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

.nav-link:hover {
  color: var(--text-main);
}

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

/* ==========================================================================
   Hero Section (Asymmetric Typographic Narrative)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 75% 25%, rgba(75, 168, 123, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 15% 75%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(75, 168, 123, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-ring 1.8s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.hero-title {
  font-size: 3.5rem;
  max-width: 950px;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 44px;
  animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-cta {
  animation: fade-in-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ==========================================================================
   Solutions Section
   ========================================================================== */
.solutions-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  max-width: 700px;
  margin-bottom: 60px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.subtitle-badge {
  display: inline-block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.subtitle-badge.text-cyan {
  color: var(--accent-cyan);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.solution-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 40px 32px;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.solution-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 50px;
  height: 50px;
  color: var(--primary);
  margin-bottom: 28px;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Highlight card style for eSocial */
.highlighted-card {
  border: 1px solid var(--border-accent);
  box-shadow: 0 4px 20px rgba(75, 168, 123, 0.08);
}

.highlighted-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--primary));
}

.card-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background-color: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.pricing-bg-decor {
  position: absolute;
  top: 30%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.setup-zero-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: rgba(6, 182, 212, 0.03);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  max-width: 900px; /* Aligned with pricing-grid width */
  margin: 0 auto 40px auto; /* Centered with space below */
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.setup-zero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background-color: var(--accent-cyan);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.setup-zero-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.setup-zero-icon-box svg {
  width: 20px;
  height: 20px;
}

.setup-zero-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.setup-zero-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.setup-zero-info p strong {
  color: var(--accent-cyan);
}

/* Grid & Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
  padding-top: 20px;
}

.pricing-card {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 44px;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0.95;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

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

.plan-name {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 40px;
}

.price-container {
  display: flex;
  align-items: baseline;
  margin-bottom: 8px;
}

.currency {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-right: 4px;
}

.price-val {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-title);
  line-height: 1;
}

.period {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.annual-total-detail {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-body {
  flex-grow: 1;
  margin-bottom: 40px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.check-icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Featured annual plan */
.featured-pricing {
  background-color: rgba(75, 168, 123, 0.02);
  border: 1.5px solid var(--primary) !important;
  box-shadow: 0 12px 40px rgba(75, 168, 123, 0.1) !important;
  transform: scale(1.03);
  opacity: 1 !important; /* Never muted */
  z-index: 5;
}

.featured-pricing:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 16px 50px rgba(75, 168, 123, 0.2) !important;
}

.featured-pricing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
}

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), var(--accent-green));
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

/* ==========================================================================
   Differentiators Section
   ========================================================================== */
.diferenciais-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.diferencial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 36px 30px;
  transition: var(--transition-normal);
}

.diferencial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.02);
}

.dif-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dif-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.dif-content {
  width: 100%;
}

.dif-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.dif-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   Footer Section (Premium Multicolumn Redesign)
   ========================================================================== */
.main-footer {
  background-color: var(--bg-primary);
  padding: 80px 0 0 0; /* Padding bottom is 0 because of bottom bar */
  border-top: 1px solid var(--border-color);
  position: relative;
}

.footer-container-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.brand-col {
  max-width: 420px;
}

.footer-logo {
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  margin-bottom: 24px;
}

.footer-nav-list,
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--primary);
  transform: translateX(2px);
  display: inline-block;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-contact-list li a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-contact-list li a:hover {
  color: var(--primary);
}

.contact-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  border-top: 1px solid var(--border-color);
  padding: 28px 0;
  background-color: rgba(5, 11, 20, 0.5);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.copyright-text,
.cnpj-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom-links .divider {
  color: rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.footer-privacy-btn {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-privacy-btn:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Responsive query overrides for footer */
@media (max-width: 991px) {
  .footer-container-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }
  
  .brand-col {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .footer-bottom-links {
    flex-direction: column;
    gap: 8px;
  }
  
  .footer-bottom-links .divider {
    display: none;
  }
}

/* ==========================================================================
   Floating WhatsApp Widget
   ========================================================================== */
.floating-whatsapp-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-tooltip {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}

.floating-whatsapp-container:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-floating-btn {
  width: 60px;
  height: 60px;
  background-color: var(--accent-green);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-floating-btn:hover {
  transform: scale(1.1) rotate(5deg);
}

.whatsapp-icon-float {
  width: 30px;
  height: 30px;
}

.ping-wave {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--accent-green);
  border-radius: 50%;
  opacity: 0.4;
  z-index: -1;
  animation: ping 2s infinite cubic-bezier(0, 0, 0.2, 1);
}

@keyframes ping {
  75%, 100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ==========================================================================
   LGPD Modal Overlay
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 11, 20, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.25rem;
}

.btn-close-modal {
  font-size: 1.75rem;
  color: var(--text-muted);
  line-height: 1;
  transition: var(--transition-fast);
}

.btn-close-modal:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-body h4 {
  color: var(--text-main);
  margin: 20px 0 8px 0;
  font-size: 1rem;
}

.modal-body ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 16px;
}

.modal-body li {
  margin-bottom: 8px;
}

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   Animations & Transitions (Scroll Reveal Triggers)
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints (Mobile First)
   ========================================================================== */

/* Up to 1024px */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  /* Make eSocial full width on medium screens */
  .solutions-grid .solution-card:nth-child(3) {
    grid-column: span 2;
  }
}

/* Up to 768px */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  /* Body scroll lock when menu open */
  body.menu-open {
    overflow: hidden;
  }

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

  .main-header {
    padding: 16px 0; /* Keep uniform spacing */
    background-color: transparent;
    border-bottom: 1px solid transparent;
  }
  
  .main-header.scrolled {
    background-color: rgba(5, 11, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
  }

  .header-action {
    display: none; /* Hide desktop action button on mobile */
  }

  /* Scale up mobile logo */
  .site-logo {
    height: 48px; /* Slightly larger as requested */
  }

  /* Fullscreen mobile menu overlay */
  .main-nav {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 11, 20, 0.98);
    backdrop-filter: blur(16px);
    z-index: 990;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }

  .main-nav ul li {
    width: 100%;
    text-align: center;
  }

  .main-nav .nav-link {
    font-size: 1.6rem; /* Large font on fullscreen */
    font-weight: 600;
    color: var(--text-main);
  }

  .mobile-only-action {
    display: block; /* Show inside mobile menu overlay */
    margin-top: 16px;
  }

  /* Hamburger Toggle Styles */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1001; /* Must sit above mobile nav overlay */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .mobile-menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-section {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  
  .hero-title {
    font-size: 2.25rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 32px;
  }

  .hero-cta .btn {
    padding: 14px 20px;
    font-size: 0.88rem;
    white-space: nowrap;
    max-width: 100%;
  }
  
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .solutions-grid .solution-card:nth-child(3) {
    grid-column: span 1;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 10px;
  }
  
  .pricing-card {
    padding: 28px;
    opacity: 1; /* Reset opacity on mobile so both are fully legible */
  }

  .featured-pricing {
    transform: none !important; /* Disable scale on mobile */
  }

  .featured-pricing:hover {
    transform: translateY(-4px) !important; /* Standard translate on hover for mobile */
  }
  
  .diferenciais-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .diferencial-card {
    gap: 16px;
    padding: 28px 24px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 32px;
  }
  
  .floating-whatsapp-container {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-tooltip {
    display: none; /* Tooltip doesn't work well on touch mobile */
  }
}

/* ==========================================================================
   Hero Background Image (Discrete Subtle Overlay)
   ========================================================================== */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.12; /* Very subtle and discrete */
  filter: grayscale(40%) contrast(110%);
  mix-blend-mode: luminosity; /* Blends beautifully with the dark navy background */
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.how-it-works-section {
  padding: 110px 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.how-it-works-section .section-header {
  margin-bottom: 64px;
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
}

.step-card {
  flex: 1;
  max-width: 260px;
  text-align: center;
  padding: 40px 24px 32px;
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  color: var(--bg-primary);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(75, 168, 123, 0.35);
  z-index: 2;
}

.step-icon-wrapper {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: rgba(75, 168, 123, 0.08);
  border: 1px solid rgba(75, 168, 123, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition-fast);
}

.step-card:hover .step-icon-wrapper {
  background-color: rgba(75, 168, 123, 0.15);
  border-color: rgba(75, 168, 123, 0.3);
  transform: scale(1.08);
}

.step-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  color: var(--border-accent);
  padding-top: 52px;
}

.step-connector svg {
  width: 22px;
  height: 22px;
  opacity: 0.5;
}

.steps-cta-wrapper {
  text-align: center;
  margin-top: 56px;
}

.steps-cta-wrapper .btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* Mobile: How It Works */
@media (max-width: 991px) {
  .steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .step-card {
    max-width: 420px;
    width: 100%;
  }

  .step-connector {
    padding-top: 0;
    transform: rotate(90deg);
    width: auto;
    height: 32px;
  }
}

@media (max-width: 768px) {
  .how-it-works-section {
    padding: 70px 0;
  }

  .how-it-works-section .section-header {
    margin-bottom: 48px;
  }

  .steps-cta-wrapper .btn-lg {
    padding: 14px 24px;
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 100px 0 110px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  position: relative;
}

.faq-section .section-header {
  margin-bottom: 56px;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(75, 168, 123, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color var(--transition-fast);
}

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

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color var(--transition-fast);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 28px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 28px 24px;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 70px 0;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 20px;
  }
}

/* ==========================================================================
   Scroll Down Indicator
   ========================================================================== */
.scroll-down-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.scroll-down-indicator.fade-in-up {
  opacity: 0;
  transform: translate(-50%, 30px);
}

.scroll-down-indicator.fade-in-up.revealed {
  opacity: 1;
  transform: translate(-50%, 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mouse-wheel-icon {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.wheel-dot {
  width: 4px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheel-scroll 1.6s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wheel-scroll {
  0% {
    top: 6px;
    opacity: 1;
    height: 6px;
  }
  50% {
    top: 18px;
    opacity: 0.2;
    height: 10px;
  }
  100% {
    top: 6px;
    opacity: 1;
    height: 6px;
  }
}

.scroll-text {
  opacity: 0.7;
}

/* Hide scroll indicator on smaller screens to avoid overlap */
@media (max-height: 700px) {
  .scroll-down-indicator {
    display: none;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 420px) {
  .hero-cta .btn {
    padding: 12px 14px;
    font-size: 0.82rem;
    gap: 6px;
  }
}

