/* ============================================================
   SUPERLEAD PRO — DESIGN SYSTEM
   Inspired by NoCodeWebScraper's clean, conversion-focused layout
   Theme: Blue-based (vs their yellow)
   ============================================================ */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* ----------------------------------------
   CSS VARIABLES
   ---------------------------------------- */
:root {
  /* === Brand Colors === */
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --blue-950: #172554;

  /* === Neutral / Gray === */
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;

  /* === Semantic Colors === */
  --green-50:  #ecfdf5;
  --green-500: #10b981;
  --green-600: #059669;
  --orange-50:  #fff7ed;
  --orange-500: #f59e0b;
  --orange-600: #d97706;
  --red-50:  #fef2f2;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --purple-50:  #faf5ff;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --teal-50:  #f0fdfa;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --pink-50:  #fdf2f8;
  --pink-500: #ec4899;
  --pink-600: #db2777;

  /* === Theme Assignments === */
  --bg-primary:    #ffffff;
  --bg-secondary:  var(--gray-50);
  --bg-tertiary:   var(--blue-50);
  --bg-dark:       var(--gray-900);
  --bg-darker:     var(--gray-950);

  --text-primary:   var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted:     var(--gray-400);
  --text-inverse:   #ffffff;

  --accent:         var(--blue-600);
  --accent-hover:   var(--blue-700);
  --accent-light:   var(--blue-50);
  --accent-medium:  var(--blue-100);

  --border-light:   var(--gray-200);
  --border-medium:  var(--gray-300);

  /* === Spacing (8px grid) === */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* === Typography === */
  --font-xs:   0.75rem;    /* 12px */
  --font-sm:   0.875rem;   /* 14px */
  --font-base: 1rem;       /* 16px */
  --font-lg:   1.125rem;   /* 18px */
  --font-xl:   1.25rem;    /* 20px */
  --font-2xl:  1.5rem;     /* 24px */
  --font-3xl:  1.875rem;   /* 30px */
  --font-4xl:  2.25rem;    /* 36px */
  --font-5xl:  3rem;       /* 48px */
  --font-6xl:  3.75rem;    /* 60px */

  --weight-normal:   400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extrabold:800;
  --weight-black:    900;

  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.6;
  --leading-relaxed:1.75;

  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide:   0.025em;
  --tracking-wider:  0.05em;

  /* === Borders === */
  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 20px;
  --radius-3xl: 24px;
  --radius-full:9999px;

  /* === Shadows === */
  --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl:  0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-blue:0 4px 14px rgba(37, 99, 235, 0.25);
  --shadow-blue-lg: 0 8px 30px rgba(37, 99, 235, 0.3);

  /* === Transitions === */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:   150ms;
  --duration-normal: 250ms;
  --duration-slow:   400ms;

  /* === Layout === */
  --container-max:  1200px;
  --container-sm:   680px;
  --container-md:   800px;
  --nav-height:     72px;
}

/* ----------------------------------------
   LAYOUT
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-12);
    padding-right: var(--space-12);
  }
}

/* ----------------------------------------
   SECTION HEADERS (Reusable)
   ---------------------------------------- */
.section-header {
  text-align: center;
  max-width: var(--container-sm);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-16);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  font-size: var(--font-sm);
  font-weight: var(--weight-semibold);
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-medium);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  letter-spacing: var(--tracking-wide);
}

.section-title {
  font-size: var(--font-4xl);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--font-5xl);
  }
}

.section-subtitle {
  font-size: var(--font-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------
   BUTTONS
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn:active {
  transform: scale(0.97);
}

/* Sizes */
.btn--sm {
  padding: 10px 20px;
  font-size: var(--font-sm);
  border-radius: var(--radius-md);
}

.btn--md {
  padding: 12px 24px;
  font-size: var(--font-base);
}

.btn--lg {
  padding: 16px 32px;
  font-size: var(--font-base);
  border-radius: var(--radius-xl);
}

.btn--full {
  width: 100%;
}

/* Primary (Blue filled) */
.btn--primary {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
  box-shadow: var(--shadow-blue);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-blue-lg);
  transform: translateY(-1px);
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn--outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: var(--gray-100);
}

/* White (for dark backgrounds) */
.btn--white {
  background: #ffffff;
  color: var(--accent);
  border-color: #ffffff;
  font-weight: var(--weight-bold);
}

.btn--white:hover {
  background: var(--blue-50);
  border-color: var(--blue-50);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

/* ----------------------------------------
   BADGES
   ---------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  line-height: 1.5;
}

.badge--outline {
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--blue-200);
}

.badge--subtle {
  color: var(--text-secondary);
  background: var(--gray-100);
  border: 1px solid var(--border-light);
}

.badge--green {
  color: var(--green-600);
  background: var(--green-50);
}

/* ----------------------------------------
   CARDS (generic)
   ---------------------------------------- */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

/* ----------------------------------------
   ANIMATIONS
   ---------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

@keyframes progressFill {
  from { width: 0%; }
  to   { width: var(--fill-width, 79%); }
}

/* Intersection Observer driven reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ----------------------------------------
   UTILITY CLASSES
   ---------------------------------------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.font-bold   { font-weight: var(--weight-bold); }
.font-medium { font-weight: var(--weight-medium); }

.text-sm     { font-size: var(--font-sm); }
.text-lg     { font-size: var(--font-lg); }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-accent    { color: var(--accent); }

.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }

/* ----------------------------------------
   VISUALLY HIDDEN (accessibility)
   ---------------------------------------- */
.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;
}
