/* Solvaya Design System */

/* ========== CSS Custom Properties ========== */
:root {
  /* Brand Colors */
  --color-primary: #3b6cf5;
  --color-primary-hover: #2d5ad4;
  --color-primary-light: #e8edfe;
  --color-primary-dark: #1e3a8a;

  /* Semantic Colors */
  --color-success: #16a34a;
  --color-success-light: #dcfce7;
  --color-success-dark: #15803d;
  --color-danger: #e74c3c;
  --color-danger-light: #fde8e8;
  --color-danger-dark: #c0392b;

  /* Neutral Palette - Light Mode */
  --bg-base: #fdfaf6;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f7f4ef;
  --bg-elevated: #ffffff;
  --border-subtle: #e8e2d9;
  --border-default: #d6cec3;

  /* Text - Light Mode */
  --text-primary: #1a1612;
  --text-secondary: #5c5347;
  --text-muted: #8a8078;
  --text-inverse: #ffffff;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 22, 18, 0.05);
  --shadow-md: 0 4px 12px rgba(26, 22, 18, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 22, 18, 0.1);
  --shadow-xl: 0 20px 48px rgba(26, 22, 18, 0.12);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --section-gap: 120px;
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 800px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ========== Dark Mode ========== */
.dark {
  --bg-base: #0c1222;
  --bg-surface: #131b2e;
  --bg-surface-alt: #1a2440;
  --bg-elevated: #1e2d4a;
  --border-subtle: #1e2d4a;
  --border-default: #2a3a5c;

  --text-primary: #f0ece6;
  --text-secondary: #a8a098;
  --text-muted: #6e665e;
  --text-inverse: #0c1222;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.5);

  --color-primary-light: #1e2d4a;
  --color-success-light: #0d3320;
  --color-danger-light: #3d1515;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  transition: background-color var(--transition-base), color var(--transition-base);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

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

/* ========== Layout ========== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: var(--container-wide);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ========== Header / Navigation ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 250, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.dark .site-header {
  background: rgba(12, 18, 34, 0.85);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--color-primary);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 108, 245, 0.3);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-base);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  display: block;
  padding: 16px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mobile-menu a:hover {
  background: var(--bg-surface-alt);
}

.mobile-menu .nav-cta {
  margin-top: 16px;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ========== Theme Toggle ========== */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  width: 38px;
  height: 38px;
}

.theme-toggle:hover {
  border-color: var(--border-default);
  color: var(--text-primary);
  background: var(--bg-surface-alt);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* ========== Buttons ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-primary);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  line-height: 1.4;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 108, 245, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-surface-alt);
  border-color: var(--border-default);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 18px;
  border-radius: var(--radius-lg);
}

/* ========== Section Spacing ========== */
.section {
  padding: 100px 0;
}

.section-lg {
  padding: 140px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
  .section-lg {
    padding: 80px 0;
  }
}

/* ========== Hero Section ========== */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero {
    min-height: auto;
    padding-top: 100px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 108, 245, 0.15) 0%, transparent 60%);
  border-radius: var(--radius-xl);
}

@media (max-width: 968px) {
  .hero-image-wrapper {
    order: -1;
    aspect-ratio: 16/10;
  }
}

/* ========== Calculator ========== */
.calculator {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.calculator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-success));
}

.calculator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.calculator-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.property-counter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.property-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.property-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.property-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-alt);
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.property-btn:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.property-count {
  width: 48px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: none;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  height: 36px;
}

.revenue-input-group {
  margin-bottom: 32px;
}

.revenue-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.revenue-input-wrapper {
  position: relative;
}

.revenue-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
}

.revenue-input {
  width: 100%;
  padding: 16px 16px 16px 36px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface-alt);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color var(--transition-fast);
  font-variant-numeric: tabular-nums;
}

.revenue-input:focus {
  border-color: var(--color-primary);
}

.revenue-slider {
  width: 100%;
  margin-top: 12px;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--bg-surface-alt);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.revenue-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg-surface);
  box-shadow: 0 2px 8px rgba(59, 108, 245, 0.3);
  transition: transform var(--transition-fast);
}

.revenue-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.revenue-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg-surface);
  box-shadow: 0 2px 8px rgba(59, 108, 245, 0.3);
}

.revenue-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Calculator Results */
.calc-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius-md);
}

.calc-row-label {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-row-value {
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.calc-row--ota {
  background: var(--color-danger-light);
}

.calc-row--ota .calc-row-label {
  color: var(--color-danger-dark);
}

.calc-row--ota .calc-row-value {
  color: var(--color-danger);
}

.dark .calc-row--ota {
  background: var(--color-danger-light);
}

.dark .calc-row--ota .calc-row-label {
  color: #fca5a5;
}

.dark .calc-row--ota .calc-row-value {
  color: #f87171;
}

.calc-row--solvaya {
  background: var(--bg-surface-alt);
}

.calc-row--solvaya .calc-row-value {
  color: var(--text-secondary);
}

.calc-row--savings {
  background: var(--color-success-light);
  border: 2px solid var(--color-success);
}

.calc-row--savings .calc-row-label {
  color: var(--color-success-dark);
  font-weight: 600;
}

.calc-row--savings .calc-row-value {
  color: var(--color-success);
  font-size: 28px;
}

.dark .calc-row--savings {
  background: var(--color-success-light);
  border-color: var(--color-success);
}

.dark .calc-row--savings .calc-row-label {
  color: #86efac;
}

.dark .calc-row--savings .calc-row-value {
  color: #4ade80;
}

.calc-cta {
  margin-top: 8px;
  width: 100%;
}

/* ========== Trust Bar ========== */
.trust-bar {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.trust-bar-title {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
}

.trust-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}

.trust-logo:hover {
  opacity: 0.8;
}

/* ========== Testimonial ========== */
.testimonial-section {
  padding: 80px 0;
}

.testimonial-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 28px;
  font-style: italic;
  position: relative;
}

.testimonial-quote::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: 0 auto 28px;
}

.testimonial-author {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========== Features Page - Freedom Stack ========== */
.freedom-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
}

.freedom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.freedom-grid--reverse {
  direction: rtl;
}

.freedom-grid--reverse > * {
  direction: ltr;
}

@media (max-width: 968px) {
  .freedom-panel {
    min-height: auto;
    padding: 64px 0;
  }
  .freedom-grid,
  .freedom-grid--reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }
}

.freedom-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.freedom-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.freedom-pain {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--color-danger);
}

.freedom-solution {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.freedom-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.freedom-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.freedom-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Side progress indicator */
.freedom-progress {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 50;
}

@media (max-width: 968px) {
  .freedom-progress {
    display: none;
  }
}

.freedom-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-default);
  transition: all var(--transition-base);
  cursor: pointer;
}

.freedom-progress-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* Features CTA Banner */
.features-cta {
  background: var(--color-primary);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.features-cta-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  color: white;
}

.features-cta-text {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.features-cta .btn-primary {
  background: white;
  color: var(--color-primary);
}

.features-cta .btn-primary:hover {
  background: var(--bg-surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ========== Pricing Page ========== */
.pricing-hero {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
}

.pricing-amount {
  font-size: clamp(64px, 10vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pricing-currency {
  font-size: 0.5em;
  vertical-align: super;
  font-weight: 700;
}

.pricing-period {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.pricing-note {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto 48px;
  text-align: left;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--color-success-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.pricing-feature-icon svg {
  width: 14px;
  height: 14px;
  color: var(--color-success);
}

.pricing-cta-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

.faq-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-primary);
}

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

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

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

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

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-base);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.is-open .faq-answer {
  max-height: 200px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ========== Contact Page ========== */
.contact-hero {
  padding-top: 140px;
  padding-bottom: 60px;
  text-align: center;
}

.contact-form-wrapper {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-surface-alt);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-error {
  font-size: 13px;
  color: var(--color-danger);
  margin-top: 6px;
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: var(--color-danger);
}

.form-group.has-error .form-error {
  display: block;
}

.form-success {
  text-align: center;
  padding: 40px;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: var(--color-success-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-success);
}

.form-success h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-success p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px;
  background: var(--bg-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  max-width: 280px;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer-brand-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ========== Animations ========== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========== Utility ========== */
.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;
}

.text-balance {
  text-wrap: balance;
}

/* Tabular nums for calculator */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* ========== How It Works Section (Home) ========== */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

@media (max-width: 768px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.how-step {
  text-align: center;
}

.how-step-number {
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 20px;
}

.how-step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.how-step-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== Stats Section ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== Final CTA Section ========== */
.final-cta {
  padding: 100px 0;
  text-align: center;
  background: var(--bg-surface-alt);
}

.final-cta-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.final-cta-text {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
