/* Recursive Systems — Professional Design System */

/* ========================================
   DESIGN TOKENS / VARIABLES
   ======================================== */

:root {
  /* Primary Colors — Refined Blue Palette */
  --blue-900: #0c4a6e;
  --blue-800: #075985;
  --blue-700: #0369a1;
  --blue-600: #0284c7;
  --blue-500: #0ea5e9;
  --blue-400: #38bdf8;
  --blue-300: #7dd3fc;
  --blue-200: #bae6fd;
  --blue-100: #e0f2fe;
  --blue-50: #f0f9ff;

  /* Neutral Colors */
  --gray-950: #0f172a;
  --gray-900: #1e293b;
  --gray-800: #334155;
  --gray-700: #475569;
  --gray-600: #64748b;
  --gray-500: #94a3b8;
  --gray-400: #cbd5e1;
  --gray-300: #e2e8f0;
  --gray-200: #f1f5f9;
  --gray-100: #f8fafc;
  --gray-50: #ffffff;

  /* Accent Colors */
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  /* Semantic Colors */
  --primary: var(--blue-600);
  --primary-dark: var(--blue-700);
  --primary-light: var(--blue-500);
  --primary-muted: var(--blue-100);
  --accent: var(--emerald-500);
  --accent-dark: var(--emerald-600);

  /* Text Colors */
  --text-heading: var(--gray-950);
  --text-body: var(--gray-700);
  --text-muted: var(--gray-600);
  --text-light: var(--gray-500);

  /* Background Colors */
  --bg: var(--gray-50);
  --bg-elevated: var(--gray-50);
  --bg-subtle: var(--gray-100);
  --bg-muted: var(--gray-200);
  --bg-dark: var(--gray-950);

  /* Border */
  --border-light: var(--gray-200);
  --border: var(--gray-300);
  --border-strong: var(--gray-400);

  /* Shadows — Subtle and professional */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.15);

  /* Spacing Scale — 8px base */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* Typography Scale — Major Third (1.25) */
  --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 */
  --text-6xl: 3.75rem;  /* 60px */

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Border Radius */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Container */
  --max-width: 1200px;
  --max-width-narrow: 768px;
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  background: var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.text-lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.text-small {
  font-size: var(--text-sm);
  color: var(--text-light);
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

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

.logo {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-heading);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-heading);
}

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: var(--font-semibold);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-20);
  overflow: hidden;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 165, 233, 0.15), transparent),
    linear-gradient(180deg, var(--blue-50) 0%, var(--bg) 60%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--blue-200);
  color: var(--blue-700);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(4px);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--text-heading) 0%, var(--blue-800) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-6);
}

.hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-light);
}

.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--amber-500);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 
    0 4px 6px -1px rgba(14, 165, 233, 0.3),
    0 2px 4px -2px rgba(14, 165, 233, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: 
    0 10px 15px -3px rgba(14, 165, 233, 0.35),
    0 4px 6px -4px rgba(14, 165, 233, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--text-body);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  color: var(--text-heading);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

/* ========================================
   TRUST BAR
   ======================================== */

.trust-bar {
  padding: var(--space-5) 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.trust-bar p {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin: 0;
}

.trust-bar svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  vertical-align: text-bottom;
  margin-right: var(--space-1);
}

/* ========================================
   SECTIONS
   ======================================== */

section {
  padding: var(--space-24) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-16);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin: 0;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-muted) 0%, var(--blue-50) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--primary);
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ========================================
   PROCESS SECTION
   ======================================== */

.process {
  background: var(--bg-subtle);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 40px);
  right: calc(12.5% + 40px);
  height: 2px;
  background: linear-gradient(90deg, var(--border) 0%, var(--primary-light) 25%, var(--primary-light) 75%, var(--border) 100%);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  background: white;
  border: 3px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-light);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.step:hover .step-number {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.step h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
}

.step p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 220px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* ========================================
   OFFER / CTA SECTION
   ======================================== */

.offer {
  position: relative;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.offer h2 {
  margin-bottom: var(--space-4);
}

.offer-description {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-10);
}

.offer-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.offer-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: all var(--transition-fast);
}

.offer-feature:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.offer-feature svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.offer-feature span {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-body);
}

.offer-cta {
  margin-bottom: var(--space-4);
}

.offer-note {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin: 0;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about-text h2 {
  margin-bottom: var(--space-6);
}

.about-text p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  line-height: var(--leading-relaxed);
}

.about-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.about-card:hover {
  box-shadow: var(--shadow-md);
}

.about-card h3 {
  margin-bottom: var(--space-6);
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.about-card h3 svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.about-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.about-info-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-info-item a {
  color: var(--primary);
  font-weight: var(--font-medium);
}

.about-info-item a:hover {
  text-decoration: underline;
}

.about-card .btn {
  width: 100%;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq {
  background: var(--bg-subtle);
}

.faq-list {
  max-width: 768px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-4);
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.faq-item h3 svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  padding-left: var(--space-8);
  margin: 0;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--bg-dark);
  color: var(--gray-400);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand .logo {
  color: white;
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin: 0;
}

.footer-contact {
  text-align: right;
}

.footer-contact a {
  color: var(--gray-400);
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition-fast);
}

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

.footer-contact a svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--space-8);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

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

.animate-pulse-slow {
  animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-steps::before {
    display: none;
  }
  
  .about-grid {
    gap: var(--space-10);
  }
}

/* Tablets */
@media (max-width: 768px) {
  :root {
    --space-24: 4rem;
    --space-20: 3rem;
    --space-16: 2.5rem;
  }
  
  h1 {
    font-size: var(--text-4xl);
  }
  
  h2 {
    font-size: var(--text-2xl);
  }
  
  .navbar .container {
    height: 64px;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero {
    padding: var(--space-16) 0 var(--space-12);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: var(--space-6);
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  
  .step-number {
    width: 64px;
    height: 64px;
    font-size: var(--text-xl);
  }
  
  .offer-features {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-card {
    order: -1;
  }
  
  .faq-item {
    padding: var(--space-5) var(--space-6);
  }
  
  .faq-item p {
    padding-left: 0;
  }
  
  .faq-item h3 {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer-contact {
    text-align: left;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  h1 {
    font-size: var(--text-3xl);
  }
  
  .section-header {
    margin-bottom: var(--space-10);
  }
  
  .btn-xl {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
  }
  
  .offer-feature {
    padding: var(--space-3) var(--space-4);
  }
}
