/* ==========================================================================
   SudoGrep CSS Design System — Global Tokens & Styles
   Visual Rhythm: White, light-gray, blue-tinted, and charcoal sections.
   ========================================================================== */

:root {
  /* Colors */
  --bg-white: #ffffff;
  --bg-light: #fafafa;
  --bg-tinted: #f4f7fc;       /* Subtle blue-tinted background */
  --bg-dark: #09090b;         /* Charcoal section background */
  --bg-dark-card: #18181b;    /* Charcoal card backgrounds */
  
  --text-primary: #09090b;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --text-white: #ffffff;
  
  --border-color: #e5e7eb;
  --border-hover: #d1d5db;
  --border-dark: #27272a;
  
  --accent: #2563eb;         /* Interactive brand blue */
  --accent-hover: #1d4ed8;
  --accent-subtle: #eff6ff;
  --accent-purple: #7c3aed;  /* AI capability purple */
  --accent-purple-subtle: #f5f3ff;
  --accent-green: #10b981;   /* Live/status green */
  --accent-green-subtle: #ecfdf5;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Font Stack */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Navigation height offset */
  scroll-padding-top: 70px;
  color-scheme: light;
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--text-light) var(--bg-light);
  scrollbar-width: thin;
}

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

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

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

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Custom Scrollbar fallback */
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg-light);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: var(--radius-sm);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
  }
}

/* Typography Defaults */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
}

/* Section Header Typography */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 3.5rem;
  line-height: 1.7;
}

/* Helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Prefers-reduced-motion rules */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ===== GLOBAL GRIDS ===== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
