/* ==========================================================================
   MANIKA PATEL — DESIGN SYSTEM TOKENS & CORE STYLES (2026 EDITION)
   Inspired by Apple, Linear, Stripe, Notion, Framer, Arc Browser & Vercel
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (LIGHT THEME DEFAULT)
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette — Soft Neutrals & Curated Accents */
  --bg-primary: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F3F4F6;
  --bg-surface-translucent: rgba(255, 255, 255, 0.75);
  
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-inverse: #FFFFFF;

  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.14);
  --border-strong: rgba(0, 0, 0, 0.25);
  
  /* Soft Pastel Accents */
  --accent-lavender: #E0E7FF;
  --accent-lavender-dark: #4338CA;
  --accent-blue: #DBEAFE;
  --accent-blue-dark: #1D4ED8;
  --accent-mint: #D1FAE5;
  --accent-mint-dark: #047857;
  --accent-purple: #F3E8FF;
  --accent-purple-dark: #6B21A8;

  /* Primary Brand Highlight */
  --brand-primary: #111111;
  --brand-gradient: linear-gradient(135deg, #111111 0%, #333333 100%);
  --accent-glow: rgba(99, 102, 241, 0.15);

  /* Typography Stack */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, 'Liberation Mono', monospace;

  /* Typography Scale */
  --text-display: clamp(2.75rem, 6vw, 4.75rem);
  --text-h1: clamp(2.25rem, 4vw, 3.25rem);
  --text-h2: clamp(1.75rem, 3vw, 2.35rem);
  --text-h3: clamp(1.35rem, 2vw, 1.65rem);
  --text-body-lg: 1.125rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-xs: 0.75rem;

  --line-height-tight: 1.1;
  --line-height-heading: 1.25;
  --line-height-body: 1.6;

  /* 8pt Spatial System Tokens */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;

  /* Border Radii Tokens */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows & Elevation Tokens */
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
  --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);

  /* Glassmorphic Effects */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-blur: blur(16px);

  /* Motion & Easing Tokens */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.18s var(--ease-apple);
  --transition-normal: 0.32s var(--ease-apple);
  --transition-slow: 0.6s var(--ease-apple);
}

/* --------------------------------------------------------------------------
   2. DARK THEME OVERRIDES
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-primary: #09090B;
  --bg-surface: #121215;
  --bg-surface-elevated: #1A1A1E;
  --bg-surface-translucent: rgba(18, 18, 21, 0.8);
  
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --text-inverse: #111111;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.25);

  --accent-lavender: rgba(99, 102, 241, 0.15);
  --accent-lavender-dark: #818CF8;
  --accent-blue: rgba(59, 130, 246, 0.15);
  --accent-blue-dark: #60A5FA;
  --accent-mint: rgba(16, 185, 129, 0.15);
  --accent-mint-dark: #34D399;

  --brand-primary: #FFFFFF;
  --brand-gradient: linear-gradient(135deg, #FFFFFF 0%, #A1A1AA 100%);
  --accent-glow: rgba(129, 140, 248, 0.2);

  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.7);

  --glass-bg: rgba(18, 18, 21, 0.75);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   3. BASE RESET & GLOBAL STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: var(--line-height-body);
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
}

/* Custom Selection */
::selection {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

/* Container & Grid System */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-3);
}

/* Typography Utility Classes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: var(--line-height-heading);
  letter-spacing: -0.03em;
}

.display-title {
  font-size: var(--text-display);
  line-height: var(--line-height-tight);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.section-h1 {
  font-size: var(--text-h1);
  margin-bottom: var(--space-2);
}

.section-h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-2);
}

.section-h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-1);
}

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead-text {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 68ch;
}

.mono-text {
  font-family: var(--font-mono);
  font-size: var(--text-small);
}

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

/* Skip link for screen readers */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--brand-primary);
  color: var(--text-inverse);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 20px;
}
