/* ========================================
   Family Tree Maker Support — Premium Styles
   Multi-page edition with advanced animations
   ======================================== */

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

:root {
  /* Colors */
  --primary: #1a6b3c;
  --primary-dark: #0f4a28;
  --primary-light: #2d9e5f;
  --primary-lighter: #4fc07a;
  --accent: #f59e0b;
  --accent-light: #fbbf24;

  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  --ink: #0a1f14;
  --ink-soft: #1a2b22;
  --text: #2c3e35;
  --text-muted: #5c7268;
  --text-light: #8a9c93;

  --bg: #ffffff;
  --bg-alt: #f7faf8;
  --bg-warm: #f5f1ea;
  --bg-soft: #eef5f0;

  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);

  --border: #e3ece7;
  --border-soft: #eef2ef;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing — 8px system */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 2.5rem;
  --s-6: 3rem;
  --s-8: 4rem;
  --s-10: 5rem;
  --s-12: 6rem;
  --s-16: 8rem;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 31, 20, 0.06), 0 1px 2px rgba(10, 31, 20, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 31, 20, 0.08), 0 2px 6px rgba(10, 31, 20, 0.05);
  --shadow-lg: 0 12px 32px rgba(10, 31, 20, 0.12), 0 4px 12px rgba(10, 31, 20, 0.06);
  --shadow-xl: 0 24px 64px rgba(10, 31, 20, 0.16), 0 8px 24px rgba(10, 31, 20, 0.08);
  --shadow-green: 0 12px 28px rgba(26, 107, 60, 0.25);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.3s;
  --dur-slow: 0.6s;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-4);
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-light) 0%, var(--accent) 100%);
  z-index: 1100;
  transition: width 0.1s linear;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1001;
  transform: translateY(0);
  transition: transform var(--dur) var(--ease);
}
.top-bar.hide { transform: translateY(-100%); }
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
}
.top-bar-text { letter-spacing: 0.02em; }
.top-bar-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-weight: 600;
  transition: color var(--dur) var(--ease);
}
.top-bar-phone:hover { color: var(--accent-light); }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.88);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-4);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.logo-icon { display: flex; align-items: center; justify-content: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.logo-sub {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.nav-link {
  position: relative;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--dur) var(--ease);
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after,
.nav-link.active::after { width: 60%; }
.nav-link.active { color: var(--primary); font-weight: 600; }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: var(--s-2); flex-shrink: 0; }
.nav-cta { display: inline-flex; align-items: center; gap: 0.4rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--r-full);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(26, 107, 60, 0.35);
}
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* Hero buttons */
.btn-hero-primary {
  background: var(--primary);
  color: #fff;
  padding: 0.9rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-green);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--dur) var(--ease);
}
.btn-hero-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(26, 107, 60, 0.4);
}
.btn-hero-secondary {
  background: transparent;
  color: var(--ink);
  padding: 0.9rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--r-full);
  border: 2px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--dur) var(--ease);
}
.btn-hero-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-soft);
  transform: translateY(-3px);
}

/* CTA buttons */
.btn-cta-primary {
  background: #fff;
  color: var(--primary);
  padding: 0.8rem 1.75rem;
  font-weight: 700;
  border-radius: var(--r-full);
  transition: all var(--dur) var(--ease);
}
.btn-cta-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-cta-secondary {
  background: transparent;
  color: #fff;
  padding: 0.8rem 1.75rem;
  font-weight: 600;
  border-radius: var(--r-full);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all var(--dur) var(--ease);
}
.btn-cta-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

/* Ripple effect */
.btn::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.btn:active::after { width: 300px; height: 300px; }

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: var(--s-8) 0 var(--s-10);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(45, 158, 95, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  opacity: 0.15;
  animation: floatParticle 20s infinite ease-in-out;
}
@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-30px) translateX(20px); }
  50% { transform: translateY(-60px) translateX(-15px); }
  75% { transform: translateY(-20px) translateX(25px); }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-4);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-8);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(26, 107, 60, 0.08);
  border: 1px solid rgba(26, 107, 60, 0.15);
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: var(--s-3);
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 158, 95, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(45, 158, 95, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.hero-title-accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: var(--s-4);
}
.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
  margin-bottom: var(--s-5);
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.hero-feature svg { color: var(--primary); flex-shrink: 0; }
.hero-actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

/* Hero Image */
.hero-image-wrap { position: relative; }
.hero-image-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4 / 5;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 74, 40, 0.25) 100%);
}
.hero-card-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  animation: floatCard 4s infinite ease-in-out;
}
.hero-card-1 { bottom: 20%; left: -5%; animation-delay: 0s; }
.hero-card-2 { top: 15%; right: -8%; animation-delay: 1.5s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(26, 107, 60, 0.1);
  border-radius: var(--r-sm);
}
.float-card-num {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.float-card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--s-3);
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: var(--r-full);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: var(--r-full);
  animation: scrollDot 2s infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* --- Page Banner (interior pages) --- */
.page-banner {
  position: relative;
  padding: var(--s-10) 0 var(--s-8);
  overflow: hidden;
  background: var(--bg-soft);
}
.page-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(45, 158, 95, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(245, 158, 11, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.page-banner-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.page-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--s-4);
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}
.breadcrumb a { color: var(--text-muted); transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-light); }
.breadcrumb .current { color: var(--primary); font-weight: 600; }
.page-banner .section-eyebrow { margin-bottom: var(--s-2); }
.page-banner .section-title { margin-bottom: var(--s-2); }
.page-banner-desc {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* --- Trust Section --- */
.trust-section {
  padding: var(--s-5) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-4) var(--s-6);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.trust-item svg { flex-shrink: 0; }

/* --- Section Base --- */
.section { padding: var(--s-12) 0; }
.support-section { background: var(--bg-alt); }
.why-section { background: var(--bg); }
.process-section { background: var(--bg-warm); }
.issues-section { background: var(--bg-alt); }
.testimonials-section { background: var(--bg); }
.requirements-section { background: var(--bg-alt); }
.faq-section { background: var(--bg); }
.contact-section { background: var(--bg-soft); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s-8);
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-2);
  padding: 0.25rem 0.875rem;
  background: rgba(26, 107, 60, 0.08);
  border-radius: var(--r-full);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.section-desc {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --- Support Cards --- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  transition: all var(--dur) var(--ease);
}
.support-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-lighter);
}
.support-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(26, 107, 60, 0.08) 0%, rgba(45, 158, 95, 0.05) 100%);
  border-radius: var(--r-md);
  color: var(--primary);
  margin-bottom: var(--s-3);
  transition: all var(--dur) var(--ease);
}
.support-card:hover .support-card-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}
.support-card h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.support-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: var(--s-3);
}
.support-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--dur) var(--ease);
}
.support-card-link:hover { gap: 0.6rem; }

/* --- Stats Section --- */
.stats-section {
  position: relative;
  padding: var(--s-10) 0;
  background: var(--primary-dark);
  overflow: hidden;
}
.stats-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(45, 158, 95, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  position: relative;
}
.stat-item {
  text-align: center;
  color: #fff;
}
.stat-num, .stat-suffix {
  display: inline;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.stat-suffix { color: var(--primary-lighter); }
.stat-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

/* --- Why Cards --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.why-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-4) var(--s-4);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.why-card:hover::before { transform: scaleX(1); }
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.why-card-num {
  position: absolute;
  top: var(--s-3);
  right: var(--s-4);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--bg-soft);
  line-height: 1;
}
.why-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  color: var(--primary);
  margin-bottom: var(--s-3);
  transition: all var(--dur) var(--ease);
}
.why-card:hover .why-card-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(-5deg) scale(1.05);
}
.why-card h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.why-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Process Section --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-2);
  margin-bottom: var(--s-8);
}
.process-step {
  position: relative;
  text-align: center;
  padding: 0 var(--s-1);
}
.step-num {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto var(--s-3);
  position: relative;
  z-index: 2;
  transition: all var(--dur) var(--ease);
}
.process-step:hover .step-num {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: var(--shadow-green);
}
.step-connector {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--border) 100%);
  z-index: 1;
}
.step-connector.none { display: none; }
.step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.step-content p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.process-cta { text-align: center; }

/* --- Issues Grid --- */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.issue-card {
  display: flex;
  gap: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  transition: all var(--dur) var(--ease);
}
.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}
.issue-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.issue-icon-blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.issue-icon-amber { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.issue-icon-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.issue-icon-rose { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }
.issue-icon-teal { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }
.issue-icon-violet { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.issue-card-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.issue-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Testimonials --- */
.testimonials-wrapper { max-width: 760px; margin: 0 auto; }
.testimonials-track {
  display: flex;
  overflow: hidden;
  border-radius: var(--r-xl);
}
.testimonial-card {
  flex: 0 0 100%;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  text-align: center;
  transition: transform 0.5s var(--ease);
}
.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: var(--s-3);
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
  margin-bottom: var(--s-4);
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 50%;
}
.author-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9375rem;
}
.author-loc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.testimonial-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  transition: all var(--dur) var(--ease);
}
.testimonial-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.1);
}
.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}
.t-dot {
  width: 8px;
  height: 8px;
  background: var(--border);
  border-radius: var(--r-full);
  transition: all var(--dur) var(--ease);
}
.t-dot.active {
  width: 28px;
  background: var(--primary);
}

/* --- Requirements --- */
.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  max-width: 800px;
  margin: 0 auto;
}
.req-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  transition: all var(--dur) var(--ease);
}
.req-card:hover { box-shadow: var(--shadow-lg); }
.req-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--border-soft);
}
.req-os-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  color: var(--primary);
}
.req-card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.req-list { display: flex; flex-direction: column; gap: 0; }
.req-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-soft);
}
.req-row:last-child { border-bottom: none; }
.req-row span:first-child { color: var(--text-muted); font-weight: 500; }
.req-row span:last-child { color: var(--ink); font-weight: 600; }

/* --- FAQ --- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.faq-item:hover { border-color: var(--primary-lighter); }
.faq-item.open {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.faq-q:hover { color: var(--primary); }
.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform var(--dur) var(--ease);
}
.faq-item.open .faq-icon { transform: rotate(135deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease);
}
.faq-a p {
  padding: 0 var(--s-4) var(--s-3);
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- CTA Banner --- */
.cta-banner-section { padding: var(--s-10) 0; background: var(--bg-warm); }
.cta-banner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner-content {
  padding: var(--s-6) var(--s-8);
  position: relative;
  z-index: 1;
}
.cta-banner-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--s-2);
}
.cta-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.cta-banner-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: var(--s-3);
  transition: opacity var(--dur) var(--ease);
}
.cta-banner-phone:hover { opacity: 0.8; }
.cta-banner-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  max-width: 440px;
  margin-bottom: var(--s-4);
}
.cta-banner-actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.cta-banner-visual {
  position: relative;
  min-height: 300px;
}
.cta-banner-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* --- Contact Section --- */
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--s-8);
  align-items: start;
}
.contact-info p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--s-4);
}
.contact-info .section-title { text-align: left; }
.contact-info .section-eyebrow { margin-bottom: var(--s-2); }
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.contact-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--primary);
  flex-shrink: 0;
}
.contact-detail-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.contact-detail-value {
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}
a.contact-detail-value:hover { color: var(--primary); }

/* Contact Form */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--shadow-md);
}
.contact-form { display: flex; flex-direction: column; gap: var(--s-3); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--bg-alt);
  transition: all var(--dur) var(--ease);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 107, 60, 0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-success {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(26, 107, 60, 0.08);
  border: 1px solid rgba(26, 107, 60, 0.2);
  border-radius: var(--r-md);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
}
.form-success.show { display: flex; animation: fadeUp 0.4s var(--ease); }

/* --- Footer --- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
}
.footer-top {
  padding: var(--s-8) 0 var(--s-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-6);
}
.footer-logo { margin-bottom: var(--s-3); }
.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: var(--s-3);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a, .footer-col span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--primary-lighter); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--s-3) 0;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}
.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
}
.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: var(--s-4);
  right: var(--s-4);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-green);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all var(--dur) var(--ease);
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* --- Page Transition Overlay --- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--primary-dark);
  transform: translateY(100%);
  pointer-events: none;
  transition: transform 0.45s var(--ease);
}
.page-transition.active {
  transform: translateY(0);
  pointer-events: all;
}

/* --- Animation States --- */
[data-animate] {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
[data-animate="fade-up"] { transform: translateY(30px); }
[data-animate="fade-down"] { transform: translateY(-30px); }
[data-animate="fade-left"] { transform: translateX(-30px); }
[data-animate="fade-right"] { transform: translateX(30px); }
[data-animate="stagger"] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
[data-animate].in-view { opacity: 1; transform: translate(0, 0); }
[data-animate="stagger"].in-view > * { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger delays */
[data-animate="stagger"].in-view > *:nth-child(1) { transition-delay: 0.05s; }
[data-animate="stagger"].in-view > *:nth-child(2) { transition-delay: 0.1s; }
[data-animate="stagger"].in-view > *:nth-child(3) { transition-delay: 0.15s; }
[data-animate="stagger"].in-view > *:nth-child(4) { transition-delay: 0.2s; }
[data-animate="stagger"].in-view > *:nth-child(5) { transition-delay: 0.25s; }
[data-animate="stagger"].in-view > *:nth-child(6) { transition-delay: 0.3s; }
[data-animate="stagger"].in-view > *:nth-child(7) { transition-delay: 0.35s; }
[data-animate="stagger"].in-view > *:nth-child(8) { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero-image-wrap { max-width: 420px; margin: 0 auto; }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
  .issues-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
  .contact-inner { grid-template-columns: 1fr; gap: var(--s-5); }
  .cta-banner { grid-template-columns: 1fr; }
  .cta-banner-visual { min-height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .step-content p { display: none; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-3) var(--s-4) var(--s-5);
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--dur-slow) var(--ease);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    padding: 0.875rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
  }
  .nav-link::after { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .top-bar-text { font-size: 0.75rem; }

  .hero { padding: var(--s-5) 0 var(--s-6); }
  .hero-features { grid-template-columns: 1fr; gap: 0.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-card-float { display: none; }

  .section { padding: var(--s-8) 0; }
  .section-header { margin-bottom: var(--s-5); }
  .page-banner { padding: var(--s-6) 0 var(--s-5); }

  .support-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .issues-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
  .req-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-4); }

  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
  .step-connector { display: none; }
  .step-content p { display: block; }
  .process-step { display: flex; align-items: center; gap: var(--s-3); text-align: left; }
  .step-num { margin: 0; }

  .cta-banner-content { padding: var(--s-5) var(--s-4); }
  .cta-banner-actions { flex-direction: column; align-items: stretch; }
  .cta-banner-actions .btn { justify-content: center; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: var(--s-4); }

  .testimonial-card { padding: var(--s-4); }
  .testimonial-card blockquote { font-size: 1.0625rem; }

  .trust-grid { gap: var(--s-3); }
  .trust-item { font-size: 0.8125rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--s-3); }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.5rem; }
  .top-bar-inner { flex-direction: column; gap: 0.25rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate] { opacity: 1; transform: none; }
}
