/* 
  Solarenergy-ai.com - Design System v6
  "The Digital Helios" - Premium SaaS Dark Mode (Ultra Clean UI)
*/

:root {
  /* Colors - Solar Energy Tones */
  --primary: #f97316; /* Bright Orange */
  --primary-container: #ea580c; 
  --on-primary: #ffffff;
  
  --secondary: #fbbf24; 
  --secondary-container: #d97706;
  --on-secondary-container: #ffffff;

  /* Dark Backgrounds */
  --background: #020617; /* Slate 950 */
  --on-background: #ffffff; /* Brighter for readability */
  
  --surface: #020617;
  --surface-container-low: #0f172a; /* Slate 900 */
  --surface-container-alt: #162032; /* Distinct grayish tone for section backgrounds */
  --surface-container-lowest: #1e293b; /* Slate 800 */
  --surface-container-highest: #334155; /* Slate 700 */
  --on-surface: #f8fafc; 
  --on-surface-variant: #cbd5e1; /* Slate 300 - contrast */
  
  --outline: #475569;
  --outline-variant: #334155;
  --outline-variant-ghost: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-headline: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;

  /* Shadows */
  --shadow-ambient: 0 32px 64px rgba(0, 0, 0, 0.5); 
  --shadow-sm: 0 8px 16px rgba(0, 0, 0, 0.4);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--on-surface-variant);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--primary);
  color: var(--on-primary);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6, .font-headline {
  font-family: var(--font-headline);
  color: var(--on-background);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Utilities */
.container {
  width: 100%;
  max-width: 1440px; 
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.text-primary { color: var(--primary); }
.text-on-surface { color: var(--on-surface); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Flexbox Layouts */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }
.gap-16 { gap: var(--space-16); }

/* Grid Layouts */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .items-stretch { align-items: stretch; }
}

/* Massive Section Spacing (CRITICAL REQUIREMENT) */
.section-spacing {
  padding-top: 100px;
  padding-bottom: 100px;
}
@media (min-width: 1024px) {
  .section-spacing {
    padding-top: 140px;
    padding-bottom: 140px;
  }
}

.bg-surface-low { background-color: var(--surface-container-low); }

/* Alternating Grayish Section (Premium Block) */
.bg-section-alt {
  background-color: var(--surface-container-alt);
}

/* Premium Texture for grayish backgrounds */
.section-textured {
  position: relative;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.045) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(96, 165, 250, 0.035) 0%, transparent 45%),
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 20px 40px -20px rgba(0,0,0,0.5), inset 0 -20px 40px -20px rgba(0,0,0,0.5);
}

.section-header { max-width: 800px; margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: var(--space-4); color: var(--on-background); line-height: 1.15;}
.section-subtitle { font-size: 1.15rem; color: var(--on-surface-variant); max-width: 650px; line-height: 1.6;}
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--primary-container);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}
.btn-secondary {
  background-color: var(--surface-container-highest);
  color: var(--on-background);
  border: 1px solid var(--outline-variant);
  transition: all 0.2s;
}
.btn-secondary:hover {
  background-color: var(--outline-variant);
  border-color: var(--outline);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.is-visible {
  opacity: 1; transform: translateY(0);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; width: 100%; z-index: 50; height: 90px;
  background-color: rgba(2, 6, 23, 0.85); /* Slate 950 */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-variant-ghost);
}
.navbar .logo { font-size: 1.6rem !important; font-weight: 800; }
.navbar .logo .material-symbols-outlined { font-size: 32px; }
.navbar .nav-links { gap: var(--space-12); }
.navbar .nav-links a {
  font-weight: 600;
  color: var(--on-surface-variant);
  transition: color 0.2s;
  font-size: 1.15rem;
}
.navbar .nav-links a:hover { color: var(--on-background); }

/* Hero Section */
.hero-section {
  padding-top: calc(140px + 90px);
  padding-bottom: 140px;
  position: relative;
  overflow: hidden;
}
.hero-title {
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-10);
  line-height: 1.7;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 12px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--outline-variant);
  width: 100%;
}
.hero-glow {
  position: absolute;
  top: 10%; right: 0%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, rgba(2,6,23,0) 60%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* Hero Video */
.hero-video {
  width: 100%;
  height: 100%;
  aspect-ratio: 8/11;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 24px;
}
.hero-video:fullscreen,
.hero-video:-webkit-full-screen {
  object-fit: contain !important;
  border-radius: 0 !important;
  aspect-ratio: auto !important;
}

/* Trust Badges */
.trust-badges { opacity: 0.9; }
.trust-badge { color: var(--on-surface-variant); }

/* Features List */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-12); }
}
.feature-item { display: flex; gap: var(--space-5); align-items: flex-start; transition: transform 0.25s ease, box-shadow 0.25s ease; padding: var(--space-5); border-radius: 16px; }
.feature-item:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.feature-icon-wrapper {
  width: 56px; height: 56px; min-width: 56px;
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--primary);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.feature-icon-wrapper .material-symbols-outlined { font-size: 28px; }
.feature-item h3 { font-size: 1.35rem; margin-bottom: var(--space-2); color: var(--on-background); }
.feature-item p { color: var(--on-surface-variant); line-height: 1.6; font-size: 1rem; }

/* Demo section: Native WhatsApp Mockup & Pattern */
.demo-section {
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.03) 0%, transparent 40%),
    linear-gradient(to right, rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  background-color: var(--background);
}
.phone-mockup {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 40px;
  background-color: #0b141a; 
  border: 12px solid #1f2937; 
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
  height: 700px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.phone-mockup:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.7);
}
.phone-header {
  background-color: #202c33;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  color: #e9edef;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.phone-header .avatar {
  width: 44px; height: 44px; border-radius: 50%; background-color: #cfd8dc;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.phone-header .contact-info h4 { font-size: 1.1rem; margin: 0; font-weight: 600; font-family: 'Inter', sans-serif; color: #e9edef;}
.phone-header .contact-info p { font-size: 0.85rem; margin: 0; color: #8696a0; }

.phone-body {
  flex: 1; overflow-y: auto; padding: 24px 20px;
  background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
  background-color: #0b141a; background-blend-mode: overlay; opacity: 0.9;
  display: flex; flex-direction: column; gap: 14px;
}
.phone-body::-webkit-scrollbar { width: 4px; }
.phone-body::-webkit-scrollbar-thumb { background: #374151; border-radius: 10px; }

.msg-bubble {
  max-width: 85%; padding: 10px 12px 10px 14px; border-radius: 10px;
  font-size: 0.95rem; line-height: 1.45; position: relative;
  color: #e9edef; font-family: 'Inter', sans-serif; word-wrap: break-word;
}
.msg-bubble .time { font-size: 0.7rem; color: #8696a0; float: right; margin-left: 12px; margin-top: 12px; }
.msg-received { background-color: #202c33; align-self: flex-start; border-top-left-radius: 0; }
.msg-sent { background-color: #005c4b; align-self: flex-end; border-top-right-radius: 0; }

/* Dashboard Iframe */
.dashboard-wrapper {
  border-radius: 20px; border: 1px solid var(--outline-variant); box-shadow: var(--shadow-ambient);
  overflow: hidden; background-color: var(--surface-container-low); width: 100%;
  max-width: 1536px; margin: 0 auto;
}
.iframe-container { width: 100%; height: 900px; display: block; }
.dashboard-iframe { width: 100%; height: 100%; border: none; }

/* Case Study AISA (Clean Image Linkable) */
.aisa-image-wrapper {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  border: 1px solid var(--outline-variant);
  transition: transform 0.3s ease, border-color 0.3s ease;
  background-color: transparent;
}
.aisa-image-wrapper:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 24px 64px rgba(249, 115, 22, 0.15);
}
.aisa-image-wrapper a {
  display: block; width: 100%; height: auto;
}
.aisa-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.aisa-image-wrapper:hover img {
  transform: scale(1.02);
}
.metrics-grid { display: flex; flex-direction: column; gap: var(--space-4); }
.metric-card {
  padding: var(--space-4) var(--space-6); border-radius: 16px;
  background-color: var(--surface-container-low); border: 1px solid var(--outline-variant-ghost);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.metric-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.metric-card-highlight {
  background-color: var(--surface-container-lowest); border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.1); position: relative; overflow: hidden;
}
.metric-card-highlight::before { content: ''; position: absolute; top:0; left:0; width: 4px; height: 100%; background-color: #22c55e;}
.metric-header { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-1); }
.metric-value { font-size: 2.8rem; font-weight: 800; font-family: var(--font-headline); color: var(--on-background); line-height: 1; }
.metric-value-green { color: #4ade80; }
.metric-badge { background-color: rgba(34, 197, 94, 0.15); color: #4ade80; padding: 4px 8px; border-radius: 8px; display: flex; align-items: center;}
.metric-label { font-size: 1rem; font-weight: 600; color: var(--on-surface-variant); text-transform: uppercase; letter-spacing: 0.05em; }

/* Final CTA Premium */
.cta-premium {
  text-align: center;
  border-radius: 32px;
  padding: var(--space-20) var(--space-8);
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(249, 115, 22, 0.4);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(249, 115, 22, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.08); /* Top glass highlight */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cta-premium:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 0 150px rgba(249, 115, 22, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.15);
}
.cta-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(249, 115, 22, 0.1) 60deg,
    transparent 120deg,
    rgba(249, 115, 22, 0.03) 180deg,
    transparent 240deg,
    rgba(249, 115, 22, 0.1) 300deg,
    transparent 360deg
  );
  animation: cta-rotate 8s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes cta-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.cta-premium > * {
  position: relative;
  z-index: 1;
}
.cta-premium h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: var(--space-4); }
.cta-premium p { color: var(--on-surface-variant); font-size: 1.25rem; margin-bottom: var(--space-10); max-width: 600px; margin-left: auto; margin-right: auto; }

/* Hero CTA Button (enhanced) */
.btn-cta-hero {
  font-size: 1.2rem;
  padding: var(--space-5) var(--space-10);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.35), 0 0 60px rgba(249, 115, 22, 0.1);
  background: linear-gradient(135deg, var(--primary) 0%, #fb923c 100%);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-cta-hero:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.5), 0 0 80px rgba(249, 115, 22, 0.15);
  background: linear-gradient(135deg, #fb923c 0%, var(--primary) 100%);
}
.btn-cta-hero .material-symbols-outlined {
  font-size: 22px;
}

/* Flawless WhatsApp Widget from Scratch */
.wa-floating-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 64px;
  height: 64px;
  background-color: #25d366; 
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  outline: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
  padding: 0;
  margin: 0;
}
.wa-floating-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}
.wa-floating-btn {
  animation: wa-pulse 3s ease-in-out infinite;
}
.wa-floating-btn svg {
  width: 34px;
  height: 34px;
  fill: #ffffff;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

/* Hidden utilities */
.hidden { display: none; }
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}

/* ========================================
   Comparativa Visual (Inversión Section)
   ======================================== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}
@media (min-width: 768px) {
  .compare-grid { grid-template-columns: repeat(2, 1fr); }
}

.compare-card {
  border-radius: 24px;
  padding: var(--space-8);
  border: 1px solid var(--outline-variant-ghost);
  background-color: var(--surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.compare-card:hover {
  transform: translateY(-4px);
}

.compare-card--traditional {
  border-color: rgba(239, 68, 68, 0.2);
}
.compare-card--traditional:hover {
  box-shadow: 0 16px 48px rgba(239, 68, 68, 0.08);
}
.compare-card--ai {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(34, 197, 94, 0.03) 100%);
}
.compare-card--ai:hover {
  box-shadow: 0 16px 48px rgba(34, 197, 94, 0.1);
}

.compare-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--outline-variant-ghost);
}
.compare-card__header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--on-background);
  margin: 0;
}
.compare-card__header--red .material-symbols-outlined { color: #ef4444; }
.compare-card__header--green .material-symbols-outlined { color: #22c55e; }

.compare-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compare-badge--red {
  background-color: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.compare-badge--green {
  background-color: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--on-surface-variant);
}
.compare-list li strong {
  color: var(--on-background);
}
.compare-icon--red {
  color: #ef4444;
  font-size: 22px !important;
  min-width: 22px;
  margin-top: 2px;
}
.compare-icon--green {
  color: #22c55e;
  font-size: 22px !important;
  min-width: 22px;
  margin-top: 2px;
}

.compare-total {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--outline-variant-ghost);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}
.compare-total span {
  color: var(--on-surface-variant);
  font-weight: 600;
}
.compare-total--red strong {
  color: #f87171;
  font-size: 1.35rem;
}
.compare-total--green strong {
  color: #4ade80;
  font-size: 1.35rem;
}

/* ========================================
   Pricing Cards
   ======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-16);
}
@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.pricing-card {
  background-color: var(--surface);
  border: 1px solid var(--outline-variant-ghost);
  border-radius: 24px;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
  border-color: rgba(249, 115, 22, 0.3);
}

.pricing-card--highlight {
  border-color: rgba(249, 115, 22, 0.5);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(249, 115, 22, 0.04) 100%);
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.1);
}
.pricing-card--highlight:hover {
  box-shadow: 0 20px 48px rgba(249, 115, 22, 0.18);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  color: var(--on-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pricing-card__icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pricing-card__icon-wrapper .material-symbols-outlined { font-size: 28px; }

.pricing-card__name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--on-background);
  margin: 0;
}
.pricing-card__desc {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}
.pricing-card__subdesc {
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin: 0;
  min-height: 44px;
}

.pricing-card__prices {
  width: 100%;
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.pricing-card__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
}
.pricing-card__price-row span { color: var(--on-surface-variant); }
.pricing-card__price-row strong {
  color: var(--on-background);
  font-size: 1.1rem;
}
.pricing-card__price-row strong small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--on-surface-variant);
}
.pricing-card__price-row--main {
  background-color: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.15);
}
.pricing-card__price-row--main strong {
  color: var(--primary);
  font-size: 1.3rem;
}

/* ========================================
   FAQ Accordion
   ======================================== */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--outline-variant-ghost);
}
.faq-item:first-child {
  border-top: 1px solid var(--outline-variant-ghost);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) var(--space-4);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--on-background);
  text-align: left;
  gap: var(--space-4);
  transition: color 0.2s ease;
}
.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 24px !important;
  color: var(--primary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.faq-item.is-active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 var(--space-4);
}
.faq-item.is-active .faq-answer {
  max-height: 500px;
  padding: 0 var(--space-4) var(--space-6);
}
.faq-answer p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--on-surface-variant);
}

/* ========================================
   Mobile Menu Overlay
   ======================================== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  background-color: var(--surface);
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mobile-menu-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-12);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: 0 var(--space-2);
}
.mobile-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.mobile-link:hover, .mobile-link:active {
  color: var(--on-background);
  transform: translateX(8px);
}
.mobile-menu-footer {
  margin-top: auto;
  padding-bottom: 2rem;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

/* ========================================
   Mobile Optimization Overrides
   ======================================== */
@media (max-width: 768px) {
  /* Layout Spacing */
  :root {
    --space-20: 3rem;  /* Reduce giant paddings */
    --space-16: 2.5rem;
    --space-12: 2rem;
  }
  .section-spacing {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
  
  /* Hero Section */
  .hero-section {
    padding-top: calc(90px + 2rem);
    padding-bottom: var(--space-12);
    text-align: center;
  }
  .hero-title {
    font-size: 2.3rem;
    line-height: 1.25;
    margin-bottom: var(--space-6);
  }
  .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.5;
  }
  .hero-content .flex-row {
     flex-direction: column !important;
  }
  .hero-content .btn {
    width: 100%;
    margin-bottom: var(--space-3);
    min-height: 48px;
    justify-content: center;
  }

  /* Reduce Navbar sizes */
  .navbar .logo svg { width: 32px !important; height: 32px !important; }
  .navbar .logo span.text-on-background { font-size: 1.1rem !important; }
  .navbar .logo span.uppercase { font-size: 0.55rem !important; }
  .navbar .btn-primary { 
    padding: 8px 12px; 
    font-size: 0.9rem; 
    min-height: 44px; /* Accessible tap target */
  }

  /* Grids and Cards */
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
  .metric-card {
    padding: var(--space-4);
  }
  .metric-value {
    font-size: 2rem;
  }
  
  .compare-total {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
  .compare-card {
    padding: var(--space-5);
  }
  
  .pricing-card__subdesc { min-height: auto; }
  .pricing-card {
    padding: var(--space-8) var(--space-4);
  }
  
  /* Final CTA Box */
  .cta-premium {
    padding: var(--space-10) var(--space-4);
    border-radius: 20px;
  }
  .cta-premium h2 { 
    font-size: 1.8rem; 
  }
  .btn-cta-hero {
    width: 100%;
    min-height: 54px;
    display: flex;
    justify-content: center;
  }

  /* FAQ Accessibility */
  .faq-question { 
    font-size: 1.05rem; 
    padding: var(--space-5) var(--space-2); 
    align-items: flex-start;
  }
  .faq-icon {
    margin-top: 2px;
  }
  .faq-answer { padding-left: var(--space-2); padding-right: var(--space-2); }

  /* Floating WhatsApp */
  .wa-floating-btn {
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
  }
  
  /* Footer Contact Row wrapping to prevent scroll */
  .contact-container { width: 100% !important; align-items: center !important; }
  .contact-row { flex-direction: column !important; align-items: center !important; }
  .contact-row .contact-label { width: auto !important; margin-right: 0 !important; margin-bottom: 4px; text-align: center !important; }
  .contact-row .material-symbols-outlined { margin-right: 0 !important; margin-bottom: 8px; }
  .contact-row a { white-space: normal !important; word-break: break-word; text-align: center !important; }
}

/* ========================================
   Gradient Text
   ======================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

/* ========================================
   Hero Badge
   ======================================== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  margin-bottom: var(--space-6);
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

/* ========================================
   Hero Stats Bar
   ======================================== */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--outline-variant-ghost);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat-value {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--on-background);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--on-surface-variant);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--outline-variant-ghost);
}
@media (max-width: 768px) {
  .hero-stats {
    justify-content: center;
    gap: var(--space-4);
  }
  .hero-stat-value { font-size: 1.3rem; }
  .hero-stat-label { font-size: 0.7rem; }
  .hero-badge { font-size: 0.78rem; }
}

/* ========================================
   Trust Bar
   ======================================== */
.trust-bar {
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--outline-variant-ghost);
  background: var(--surface);
}
.trust-bar-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-6);
  opacity: 0.6;
}
.trust-bar-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}
.trust-logo-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.trust-logo-item:hover {
  opacity: 1;
}
@media (max-width: 768px) {
  .trust-bar-logos {
    gap: var(--space-6);
  }
  .trust-logo-item {
    font-size: 0.8rem;
  }
}

/* ========================================
   Section Eyebrow
   ======================================== */
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  position: relative;
  padding-bottom: var(--space-3);
}
.section-eyebrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.demo-content .section-eyebrow::after {
  left: 0;
  transform: none;
}

/* ========================================
   Steps / How It Works
   ======================================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: flex-start;
    gap: var(--space-6);
  }
}
.step-card {
  text-align: center;
  padding: var(--space-8);
  border-radius: 24px;
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant-ghost);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
  border-color: rgba(249, 115, 22, 0.3);
}
.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: white;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.step-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  border-radius: 20px;
  background: rgba(249, 115, 22, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon-wrapper .material-symbols-outlined {
  font-size: 32px;
}
.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
  color: var(--on-background);
}
.step-card p {
  font-size: 0.95rem;
  color: var(--on-surface-variant);
  line-height: 1.6;
}
.step-connector {
  display: none;
}
@media (min-width: 768px) {
  .step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--space-12);
    color: var(--outline);
  }
  .step-connector .material-symbols-outlined {
    font-size: 28px;
    opacity: 0.4;
  }
}

/* ========================================
   Trust Badges Grid (Pricing)
   ======================================== */
.trust-badges-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-12);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .trust-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.trust-badge-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--outline-variant-ghost);
  transition: border-color 0.3s ease;
}
.trust-badge-item:hover {
  border-color: rgba(249, 115, 22, 0.2);
}
.trust-badge-item .material-symbols-outlined {
  font-size: 28px;
  color: var(--primary);
  min-width: 28px;
  margin-top: 2px;
}
.trust-badge-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--on-background);
  margin-bottom: 2px;
}
.trust-badge-item p {
  font-size: 0.85rem;
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin: 0;
}

/* ========================================
   Professional Footer
   ======================================== */
.footer {
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid var(--outline-variant-ghost);
  background: var(--surface-container-low);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-8);
  }
}
.footer-brand p {
  margin: 0;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col h4 {
  font-family: var(--font-headline);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--on-background);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--on-background);
}
.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--outline-variant-ghost);
  display: flex;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--on-surface-variant);
  opacity: 0.7;
}

/* ========================================
   Staggered Feature Animations
   ======================================== */
.feature-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.features-grid.is-visible .feature-item {
  opacity: 1;
  transform: translateY(0);
}
.features-grid.is-visible .feature-item:nth-child(1) { transition-delay: 0s; }
.features-grid.is-visible .feature-item:nth-child(2) { transition-delay: 0.1s; }
.features-grid.is-visible .feature-item:nth-child(3) { transition-delay: 0.2s; }
.features-grid.is-visible .feature-item:nth-child(4) { transition-delay: 0.3s; }
.features-grid.is-visible .feature-item:nth-child(5) { transition-delay: 0.4s; }
.features-grid.is-visible .feature-item:nth-child(6) { transition-delay: 0.5s; }

/* Staggered Step Animations */
.step-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.steps-grid.is-visible .step-card {
  opacity: 1;
  transform: translateY(0);
}
.steps-grid.is-visible .step-card:nth-child(1) { transition-delay: 0s; }
.steps-grid.is-visible .step-card:nth-child(3) { transition-delay: 0.2s; }
.steps-grid.is-visible .step-card:nth-child(5) { transition-delay: 0.4s; }

/* Counter animation */
.metric-value[data-count] {
  transition: color 0.3s ease;
}

/* ========================================
   Enhanced Navbar active link
   ======================================== */
.navbar .nav-links a.is-active {
  color: var(--primary);
}

/* Fix sm:inline-flex for hero buttons */
@media (min-width: 640px) {
  .sm\:inline-flex { display: inline-flex !important; }
  .sm\:flex-row { flex-direction: row !important; }
}

/* Footer Defaults (legacy compat) */
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--on-background); }
