
/* =====================================================
   DESIGN TOKENS - SYSTEMATIC VARIABLES
===================================================== */
:root {
  /* Core Brand Colors - Enterprise Trust Palette */
  --color-brand-50: #f0f9ff;
  --color-brand-100: #e0f2fe;
  --color-brand-200: #bae6fd;
  --color-brand-500: #0ea5e9;    /* Sky-500 - Primary */
  --color-brand-600: #0284c7;    /* Sky-600 - Hover */
  --color-brand-700: #0369a1;    /* Sky-700 - Active */
  --color-brand-900: #0c4a6e;    /* Sky-900 - Text */
  
  /* Secondary - Teal for Actions */
  --color-action-500: #14b8a6;   /* Teal-500 */
  --color-action-600: #0d9488;   /* Teal-600 */
  
  /* Neutral Scale - Precise Grays */
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  
  /* Semantic Colors */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  
  /* Backgrounds */
  --bg-default: #ffffff;
  --bg-subtle: var(--color-slate-50);
  --bg-elevated: #ffffff;
  --bg-brand: var(--color-brand-900);
  
  /* Text */
  --text-primary: var(--color-slate-900);
  --text-secondary: var(--color-slate-600);
  --text-muted: var(--color-slate-400);
  --text-inverse: #ffffff;
  --text-brand: var(--color-brand-600);
  
  /* Borders */
  --border-default: var(--color-slate-200);
  --border-focus: var(--color-brand-500);
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-full: 9999px;
  
  /* Shadows - Layered Depth System */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-brand: 0 10px 25px -5px rgb(14 165 233 / 0.3);
  
  /* Spacing - 8px Baseline Grid */
  --space-px: 1px;
  --space-0: 0;
  --space-0_5: 0.125rem;  /* 2px */
  --space-1: 0.25rem;     /* 4px */
  --space-1_5: 0.375rem;  /* 6px */
  --space-2: 0.5rem;      /* 8px */
  --space-2_5: 0.625rem;  /* 10px */
  --space-3: 0.75rem;     /* 12px */
  --space-3_5: 0.875rem;  /* 14px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-7: 1.75rem;     /* 28px */
  --space-8: 2rem;        /* 32px */
  --space-9: 2.25rem;     /* 36px */
  --space-10: 2.5rem;     /* 40px */
  --space-12: 3rem;       /* 48px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */
  --space-24: 6rem;       /* 96px */
  
  /* Typography Scale */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  
  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  
  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-banner: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

/* =====================================================
   GLOBAL RESET & BASE
===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  background-color: var(--bg-default);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* =====================================================
   TYPOGRAPHY SYSTEM
===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-extrabold);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

a {
  color: var(--text-brand);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-brand-700);
}

strong, b {
  font-weight: var(--font-weight-semibold);
}

/* =====================================================
   UTILITY CLASSES
===================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 1024px; }
.container-xl { max-width: 1280px; }

.section {
  padding-block: var(--space-16);
}

.section-sm { padding-block: var(--space-12); }
.section-lg { padding-block: var(--space-20); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-brand { color: var(--text-brand); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.text-inverse { color: var(--text-inverse); }

.bg-default { background-color: var(--bg-default); }
.bg-subtle { background-color: var(--bg-subtle); }
.bg-brand { background-color: var(--bg-brand); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* =====================================================
   BUTTON SYSTEM - ENTERPRISE GRADE
===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: all var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.btn:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary Button */
.btn-primary {
  background-color: var(--color-brand-600);
  color: var(--text-inverse);
  border-color: var(--color-brand-600);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-brand-700);
  border-color: var(--color-brand-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--bg-default);
  color: var(--text-primary);
  border-color: var(--border-default);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--color-slate-300);
  box-shadow: var(--shadow-sm);
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--color-brand-600);
  border-color: var(--color-brand-600);
}

.btn-outline:hover {
  background-color: var(--color-brand-50);
}

/* Ghost Button */
.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

/* Navigation Button */
.btn-nav {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  background-color: var(--color-brand-600);
  color: var(--text-inverse);
  border-radius: var(--border-radius-md);
  font-weight: var(--font-weight-medium);
}

.btn-nav:hover {
  background-color: var(--color-brand-700);
}

/* CTA Buttons */
.btn-cta-primary {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  background-color: var(--color-action-600);
  color: var(--text-inverse);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.btn-cta-primary:hover {
  background-color: var(--color-action-500);
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.btn-cta-secondary {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  background-color: transparent;
  color: var(--text-inverse);
  border: 2px solid var(--text-inverse);
  border-radius: var(--border-radius-lg);
}

.btn-cta-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* =====================================================
   NAVIGATION - MINIMAL FIXED HEADER
===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding-block: var(--space-4);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-default);
  transition: padding-block var(--duration-normal) var(--ease-standard),
              background-color var(--duration-normal) var(--ease-standard),
              box-shadow var(--duration-normal) var(--ease-standard);
}

.navbar.scrolled {
  padding-block: var(--space-3);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

.navbar-brand i {
  color: var(--color-brand-600);
  font-size: var(--text-2xl);
}

.navbar-brand span {
  color: var(--color-brand-600);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm);
  position: relative;
  transition: color var(--duration-fast) var(--ease-standard);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: var(--space-3);
  right: var(--space-3);
  height: 2px;
  background-color: var(--color-brand-600);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration-fast) var(--ease-standard);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-brand);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.navbar-toggler {
  display: none;
  padding: var(--space-2);
  background: none;
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.navbar-toggler:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* =====================================================
   HERO SECTION - ASYMMETRIC PRECISION
===================================================== */
.hero {
  position: relative;
  padding-block: var(--space-24) var(--space-20);
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-default) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(ellipse at center, var(--color-brand-100) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-16);
  }
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1_5);
  padding: var(--space-1_5) var(--space-3);
  background-color: var(--color-brand-50);
  color: var(--color-brand-700);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--border-radius-full);
  border: 1px solid var(--color-brand-200);
  margin-bottom: var(--space-5);
}

.hero-badge i {
  font-size: var(--text-sm);
}

.hero-title {
  margin-bottom: var(--space-6);
  line-height: var(--leading-snug);
}

.hero-title .highlight {
  position: relative;
  color: var(--color-brand-700);
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: -2px;
  right: -2px;
  height: 14px;
  background-color: var(--color-brand-100);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.7;
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-default);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.trust-item i {
  color: var(--color-success);
  font-size: var(--text-base);
}

/* Hero Visual Card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, var(--color-brand-500), var(--color-action-500));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
}

.hero-card:hover::before {
  opacity: 0.15;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-default);
}

.hero-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-600));
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-xl);
}

.hero-card-title {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.hero-stat-value {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-slate-300);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  animation: bounce var(--duration-slow) var(--ease-standard) infinite;
  cursor: pointer;
  transition: border-color var(--duration-fast), color var(--duration-fast);
}

.scroll-indicator:hover {
  border-color: var(--color-brand-500);
  color: var(--color-brand-600);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* =====================================================
   PROBLEM/SOLUTION - COMPARISON CARDS
===================================================== */
.problem-solution {
  background-color: var(--bg-subtle);
}

.ps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .ps-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
  }
}

.ps-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.ps-card:hover {
  border-color: var(--color-brand-300);
  box-shadow: var(--shadow-md);
}

.ps-card.problem {
  border-left: 4px solid var(--color-error);
}

.ps-card.solution {
  border-left: 4px solid var(--color-success);
}

.ps-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: var(--text-2xl);
}

.ps-card.problem .ps-icon {
  background-color: #fef2f2;
  color: var(--color-error);
}

.ps-card.solution .ps-icon {
  background-color: #f0fdf4;
  color: var(--color-success);
}

.ps-card h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

.ps-list {
  margin-top: var(--space-4);
}

.ps-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.ps-list i {
  margin-top: 3px;
  flex-shrink: 0;
  font-size: var(--text-xs);
}

.ps-card.problem .ps-list i { color: var(--color-error); }
.ps-card.solution .ps-list i { color: var(--color-success); }

.ps-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-500);
  font-size: var(--text-3xl);
  padding: var(--space-4) 0;
}

@media (max-width: 767px) {
  .ps-arrow { transform: rotate(90deg); }
}

/* =====================================================
   FEATURES - GRID WITH ACCENT BORDERS
===================================================== */
.features {
  background-color: var(--bg-default);
}

.features-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.features-header .section-subtitle {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-brand-600);
  margin-bottom: var(--space-3);
}

.features-header h2 {
  margin-bottom: var(--space-4);
}

.features-header p {
  font-size: var(--text-lg);
  margin-bottom: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-brand-500), var(--color-action-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-standard);
}

.feature-card:hover {
  border-color: var(--color-brand-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-600));
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: white;
  font-size: var(--text-xl);
}

.feature-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: var(--text-sm);
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* =====================================================
   HOW IT WORKS - NUMBERED PROCESS
===================================================== */
.how-it-works {
  background-color: var(--bg-subtle);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  counter-reset: step;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border-default);
  z-index: 0;
}

@media (max-width: 767px) {
  .steps-grid::before { display: none; }
}

.step-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8) var(--space-4) var(--space-4);
}

.step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-brand-600), var(--color-brand-700));
  color: white;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  box-shadow: var(--shadow-md);
}

.step-card h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
}

.step-card p {
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* =====================================================
   BENEFITS - DARK SECTION WITH METRICS
===================================================== */
.benefits {
  background: linear-gradient(135deg, var(--bg-brand) 0%, var(--color-slate-800) 100%);
  color: var(--text-inverse);
}

.benefits .section-subtitle {
  color: var(--color-brand-200);
}

.benefits .section-title p {
  color: rgba(255, 255, 255, 0.8);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.benefit-item {
  text-align: center;
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  transition: background var(--duration-fast);
}

.benefit-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.benefit-item i {
  font-size: var(--text-3xl);
  color: var(--color-brand-300);
  margin-bottom: var(--space-4);
}

.benefit-item h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0;
  color: white;
  line-height: var(--leading-snug);
}

/* =====================================================
   TESTIMONIALS - CLEAN QUOTE CARDS
===================================================== */
.testimonials {
  background-color: var(--bg-default);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--duration-fast);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-rating {
  color: var(--color-warning);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.testimonial-card blockquote {
  font-size: var(--text-base);
  font-style: italic;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  position: relative;
  padding-left: var(--space-4);
}

.testimonial-card blockquote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -12px;
  font-size: var(--text-4xl);
  color: var(--color-brand-100);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-600));
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-semibold);
  color: white;
  font-size: var(--text-base);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* =====================================================
   TRUST BADGES - SIMPLE ICON GRID
===================================================== */
.trust {
  background-color: var(--bg-subtle);
  border-block: 1px solid var(--border-default);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  text-align: center;
}

.trust-item i {
  font-size: var(--text-3xl);
  color: var(--color-brand-600);
  margin-bottom: var(--space-3);
}

.trust-item h4 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.trust-item p {
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* =====================================================
   FINAL CTA - CENTERED BANNER
===================================================== */
.final-cta {
  background: linear-gradient(135deg, var(--bg-brand) 0%, var(--color-slate-800) 100%);
  color: var(--text-inverse);
  text-align: center;
}

.final-cta .section-subtitle {
  color: var(--color-brand-200);
}

.final-cta h2 {
  color: white;
  margin-bottom: var(--space-4);
}

.final-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.final-cta .btn {
  margin: var(--space-2);
}

.closing-line {
  margin-top: var(--space-8);
  font-style: italic;
  opacity: 0.9;
  font-size: var(--text-sm);
}

/* =====================================================
   FOOTER - CLEAN MULTI-COLUMN
===================================================== */
.footer {
  background-color: var(--bg-brand);
  color: rgba(255, 255, 255, 0.8);
  padding-block: var(--space-16) var(--space-8);
}

.footer-tagline {
  text-align: center;
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-12);
}

.footer-tagline h3 {
  color: white;
  font-size: var(--text-xl);
  margin-bottom: 0;
}

.footer-tagline span {
  color: var(--color-brand-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
}

.footer h4 {
  color: white;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  transition: color var(--duration-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-links a:hover {
  color: var(--color-brand-300);
}

.footer-links i {
  width: 16px;
  text-align: center;
  font-size: var(--text-xs);
}

.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--duration-fast);
}

.social-links a:hover {
  background: var(--color-brand-600);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-8);
  margin-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* =====================================================
   SCROLL TO TOP BUTTON
===================================================== */
.scroll-top {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  background: var(--color-brand-600);
  color: white;
  border: none;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-standard);
  z-index: var(--z-popover);
  box-shadow: var(--shadow-lg);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-brand-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.scroll-top:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* =====================================================
   ANIMATIONS - SUBTLE & PURPOSEFUL
===================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

[data-aos="fade-up"] {
  animation: fadeInUp var(--duration-normal) var(--ease-enter) forwards;
  opacity: 0;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
}

/* =====================================================
   RESPONSIVE DESIGN - MOBILE FIRST
===================================================== */

/* Tablet */
@media (max-width: 991px) {
  .hero {
    text-align: center;
  }
  
  .hero-content {
    margin-inline: auto;
  }
  
  .hero-description {
    margin-inline: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-trust {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .steps-grid::before {
    display: none;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .container {
    padding-inline: var(--space-4);
  }
  
  .section {
    padding-block: var(--space-12);
  }
  
  .section-lg {
    padding-block: var(--space-16);
  }
  
  h1 {
    font-size: var(--text-3xl);
  }
  
  h2 {
    font-size: var(--text-2xl);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-actions .btn {
    max-width: 320px;
    margin-inline: auto;
  }
  
  .final-cta .btn {
    display: block;
    max-width: 320px;
    margin-inline: auto;
  }
  
  .feature-card,
  .ps-card,
  .testimonial-card {
    padding: var(--space-5);
  }
  
  .footer {
    text-align: center;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .navbar-toggler {
    display: flex;
  }
  
  .navbar-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-default);
    box-shadow: var(--shadow-md);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-normal) var(--ease-standard);
  }
  
  .navbar-nav.show {
    max-height: 400px;
  }
  
  .nav-link {
    padding: var(--space-3) var(--space-4);
    width: 100%;
    text-align: left;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .navbar-actions {
    position: fixed;
    bottom: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
    justify-content: center;
    background: white;
    padding: var(--space-3);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-2xl);
  }
  
  .hero-description {
    font-size: var(--text-base);
  }
  
  .hero-card {
    padding: var(--space-5);
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .benefit-item {
    padding: var(--space-5);
  }
}

/* =====================================================
   ACCESSIBILITY & PREFERENCES
===================================================== */

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .scroll-indicator {
    animation: none;
  }
}

/* High Contrast */
@media (prefers-contrast: high) {
  .feature-card,
  .ps-card,
  .testimonial-card {
    border-width: 2px;
  }
  
  .btn {
    border-width: 2px;
  }
}

/* Print */
@media print {
  .navbar,
  .hero-actions,
  .scroll-indicator,
  .scroll-top,
  .footer {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
}

/* Dark Mode Support (Optional - enable via JS toggle) */
/*
@media (prefers-color-scheme: dark) {
  :root {
    --bg-default: var(--color-slate-900);
    --bg-subtle: var(--color-slate-800);
    --bg-elevated: var(--color-slate-800);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-default: var(--color-slate-700);
  }
  
  .navbar {
    background-color: rgba(15, 23, 42, 0.8);
  }
  
  .navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
  }
  
  .feature-card,
  .ps-card,
  .testimonial-card {
    background: var(--color-slate-800);
  }
}
*/