/* ============================================================
   DESIGN TOKENS — ProteinPilot Brand Website
   Derived from src/theme/colors.ts, typography.ts, spacing.ts
   ============================================================ */

:root {
  /* — Fonts — */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* — Brand Palette (constant across themes) — */
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;

  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  --coral-300: #fca5a5;
  --coral-400: #fb7185;
  --coral-500: #fb513b;

  --violet-400: #c084fc;
  --violet-500: #7c3aed;

  --error: #dc2626;
  --info: #3b82f6;

  /* — Spacing — */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.25rem;
  --space-2xl: 1.5rem;
  --space-3xl: 2rem;
  --space-4xl: 2.5rem;
  --space-section: clamp(4rem, 8vw, 8rem);

  /* — Radius — */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* — Layout — */
  --max-content: 1200px;
  --max-prose: 65ch;
  --nav-height: 4rem;

  /* — Fluid Typography — */
  --text-hero: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --text-h2: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  --text-h3: clamp(1.25rem, 2vw + 0.25rem, 1.5rem);
  --text-body: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
  --text-sm: 0.875rem;
  --text-xs: 0.8125rem;
  --text-caption: 0.75rem;

  /* — Transitions — */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* — Gradients — */
  --gradient-emerald: linear-gradient(135deg, #059669, #34d399);
  --gradient-pro: linear-gradient(135deg, #7c3aed, #c084fc);
  --gradient-celebration: linear-gradient(135deg, #fb513b, #fbbf24);
}

/* ========================
   DARK THEME (default)
   ======================== */
[data-theme="dark"] {
  --bg: #0f0f11;
  --bg-secondary: #1c1c1e;
  --bg-tertiary: #2c2c2e;
  --bg-elevated: #3a3a3c;
  --card: #1c1c1e;
  --card-hover: #242426;
  --border: #2a2a2c;
  --border-subtle: #222224;

  --text: #f2f2f7;
  --text-secondary: #8e8e93;
  --text-tertiary: #636366;
  --text-inverse: #111827;

  --primary: #34d399;
  --primary-hover: #6ee7b7;
  --primary-muted: rgba(52, 211, 153, 0.12);
  --primary-text: #6ee7b7;

  --pro: #c084fc;
  --pro-hover: #d8b4fe;
  --pro-muted: rgba(124, 58, 237, 0.12);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(52, 211, 153, 0.15);

  --glass-bg: rgba(28, 28, 30, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-highlight: rgba(255, 255, 255, 0.03);

  --nav-bg: rgba(15, 15, 17, 0.8);
  --overlay: rgba(0, 0, 0, 0.7);
}

/* ========================
   LIGHT THEME
   ======================== */
[data-theme="light"] {
  --bg: #f4f5f7;
  --bg-secondary: #edeef2;
  --bg-tertiary: #e4e5e9;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-hover: #f9fafb;
  --border: #e2e3e7;
  --border-subtle: #edeef2;

  --text: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9da2ab;
  --text-inverse: #f2f2f7;

  --primary: #059669;
  --primary-hover: #047857;
  --primary-muted: rgba(5, 150, 105, 0.08);
  --primary-text: #047857;

  --pro: #7c3aed;
  --pro-hover: #6d28d9;
  --pro-muted: rgba(124, 58, 237, 0.08);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(5, 150, 105, 0.1);

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-highlight: rgba(255, 255, 255, 0.5);

  --nav-bg: rgba(244, 245, 247, 0.8);
  --overlay: rgba(0, 0, 0, 0.4);
}
