/* ==================== CSS VARIABLES ==================== */
:root {
  /* Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --success: #10b981;
  --success-dark: #059669;
  --success-light: #34d399;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --bg: #f6f8fb;
  --bg-white: #ffffff;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  
  /* Typography with clamp() for responsive sizing */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.6rem + 1.375vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.9rem + 1.75vw, 3rem);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 2.5rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: all 0.15s ease;
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Z-index scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  text-rendering: optimizeLegibility;
  line-height: 1.2;
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

:target {
  scroll-margin-top: 76px;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ==================== UTILITIES ==================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

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

.section-alt {
  background: var(--bg-white);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==================== LANDING PAGE BUTTON SYSTEM ==================== */

/* Reset default button styles for landing page */
.hero .btn,
.sticky-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.025em;
}

/* Primary CTA - High contrast white button */
.hero .btn-primary,
.sticky-cta .btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #1e293b;
  box-shadow: 
    0 4px 14px rgba(255, 255, 255, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero .btn-primary:hover,
.sticky-cta .btn-primary:hover {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(255, 255, 255, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #ffffff;
}

/* Secondary CTA - Subtle glass effect */
.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

/* Ghost button for header */
.header .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #6366f1;
  border: 1.5px solid rgba(99, 102, 241, 0.8);
  backdrop-filter: blur(10px);
}

.header .btn-ghost:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-1px);
  border-color: #6366f1;
}

/* Button text emphasis */
.hero .btn strong {
  font-weight: 800;
}

/* Pricing section button */
.pricing-btn {
  background: var(--gradient-primary) !important;
  color: white !important;
  box-shadow: var(--shadow-md) !important;
  padding: 0.875rem 1.75rem !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.pricing-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .hero .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    min-width: 200px;
  }
}

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: var(--z-fixed);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.98);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm);
  min-height: 64px;
}

.logo {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  z-index: var(--z-fixed);
}

/* Added inline calendar SVG icon */
.logo-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

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

.nav-desktop a {
  color: var(--text);
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a:focus {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

/* Mobile menu */
.nav-links {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  transform: translateX(-100%);
  transition: var(--transition);
  z-index: var(--z-modal);
}

.nav-links.active {
  transform: translateX(0);
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: var(--text-xl);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  transition: var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: var(--text-xl);
  color: var(--text);
  border-radius: var(--radius);
  transition: var(--transition);
  z-index: var(--z-fixed);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: calc(var(--z-modal) - 1);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  padding: calc(80px + var(--space-xl)) 0 var(--space-3xl);
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-xl);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 auto var(--space-lg);
  max-width: fit-content;
  color: white;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: var(--text-lg);
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
}

.hero-visual {
  margin-top: var(--space-xl);
  position: relative;
}

.hero-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-visual picture {
  position: relative;
  z-index: 1;
}

/* ==================== STEPS SECTION ==================== */
.steps {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.step {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.step-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.step-description {
  color: var(--text-light);
  line-height: 1.6;
}

/* ==================== RESULTS SECTION ==================== */
.results {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.result-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.result-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.result-description {
  color: var(--text-light);
  line-height: 1.6;
}

/* ==================== FEATURES SECTION ==================== */
.features {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
}

.feature-content h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.feature-content p {
  color: var(--text-light);
  line-height: 1.6;
}

/* ==================== PRICING TEASER ==================== */
.pricing-teaser {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-xl);
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.pricing-teaser h3 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.pricing-teaser p {
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.promo-ribbon {
  display: inline-block;
  background: linear-gradient(135deg, var(--success), var(--success-light));
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: 50px;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: var(--space-md);
}

/* ==================== HELP SECTION ==================== */
.help-section {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.help-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.help-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.help-button:hover,
.help-button:focus {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
  transform: translateY(-2px);
}

.help-button.whatsapp {
  border-color: #25d366;
  color: #25d366;
}

.help-button.whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
  border-color: #25d366;
}

/* ==================== FAQ ==================== */
.faq {
  padding: var(--space-3xl) 0;
}

.faq h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-2xl);
  color: var(--text);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  padding: var(--space-lg);
  background: none;
  border: none;
  text-align: left;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  min-height: 44px;
}

.faq-question:hover,
.faq-question:focus {
  color: var(--primary);
  background: var(--bg);
}

.faq-question::after {
  content: "+";
  font-size: var(--text-xl);
  font-weight: 300;
  transition: var(--transition);
  color: var(--primary);
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-light);
  line-height: 1.6;
  display: none;
}

.faq-answer.active {
  display: block;
}



/* ==================== FOOTER ==================== */
.footer {
  background: var(--text);
  color: white;
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-contact {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
}

/* ==================== STICKY CTA ==================== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: var(--space-sm);
  padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
  z-index: var(--z-sticky);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta .btn {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .results {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .help-buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .sticky-cta {
    display: none;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .section {
    padding: var(--space-3xl) 0;
  }
  
  .nav-desktop {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    align-items: center;
  }
  
  .hero-cta {
    flex-direction: row;
    justify-content: flex-start;
  }
  
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-lg);
  }
  
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}
