/* CSS Variables */
:root {
  /* Colors */
  --bg-main: #050509;
  --bg-surface: #0B0B12;
  --bg-surface-alt: #0F0F18;
  --text-primary: #F5F5F7;
  --text-muted: #A0A0B0;
  --accent: #4F46E5;
  --accent-hover: #6366F1;
  --accent-soft: rgba(79, 70, 229, 0.15);
  --accent-soft-hover: rgba(79, 70, 229, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-subtle-hover: rgba(255, 255, 255, 0.12);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Radii - Global System */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius: var(--radius-md); /* Legacy support */
  
  /* Shadows - Global System */
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(80, 200, 255, 0.25);
  --shadow-accent: 0 8px 24px rgba(79, 70, 229, 0.3);
  --shadow-accent-lg: 0 12px 40px rgba(79, 70, 229, 0.4);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
  
  /* Motion Tokens */
  --motion-fast: 160ms;
  --motion-normal: 220ms;
  --motion-slow: 280ms;
  
  --ease-out-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out-soft: cubic-bezier(0.45, 0, 0.55, 1);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Body Styles */
body {
  background: var(--bg-main);
  background-image: 
    radial-gradient(circle at 20% 0%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.05) 0%, transparent 50%);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2.0rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

a:hover {
  color: var(--accent);
}

/* Eyebrow Labels */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: var(--space-md);
}

/* Scroll Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--motion-slow) var(--ease-out-soft),
    transform var(--motion-slow) var(--ease-out-soft);
}

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

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
.faq-question:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.9);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}
