/* tokens.css — GripSim design system (Draftbit-modeled) design tokens */
:root {
  /* Brand colors (Draftbit-scraped palette, GripSim-applied) */
  --color-primary: #5A45FF;
  --color-primary-hover: #4836d6;
  --color-secondary: #8B5CF6;
  --color-accent: #EC4899;
  --color-sky: #38BDF8;
  --color-amber: #F59E0B;

  /* Backgrounds & surfaces */
  --color-background: #FCFCFD;
  --color-background-alt: #F8FAFC;
  --color-background-tint: #EEF2FF;
  --color-surface: #FFFFFF;
  --color-surface-translucent: rgba(255, 255, 255, 0.70);
  --color-surface-translucent-strong: rgba(255, 255, 255, 0.80);

  /* Feedback */
  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  /* Neutral scale */
  --color-n-0: #FFFFFF;
  --color-n-50: #F7F9FC;
  --color-n-100: #E5E9F0;
  --color-n-200: #C7CFDB;
  --color-n-400: #8A93A6;
  --color-n-600: #4B5567;
  --color-n-800: #1A2333;
  --color-n-900: #0E1726;

  /* Text */
  --color-text: #0E1726;
  --color-text-muted: #4B5567;
  --color-text-subtle: #8A93A6;
  --color-text-invert: #F8FAFC;

  /* Borders */
  --color-border: #E5E9F0;
  --color-border-strong: #C7CFDB;

  /* Typography */
  --font-sans: "DM Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-h1: clamp(2.25rem, 1.4rem + 3.6vw, 3.25rem);
  --fs-h2: clamp(1.85rem, 1.3rem + 2.2vw, 2.25rem);
  --fs-h3: 1.75rem;
  --fs-h4: 1.5rem;
  --fs-h5: 1.25rem;
  --fs-body: 1rem;
  --fs-caption: 0.875rem;
  --fs-eyebrow: 0.75rem;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --lh-tight: 1.1;
  --lh-heading: 1.3;
  --lh-body: 1.6;

  /* Spacing scale (px) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(14, 23, 38, 0.06);
  --shadow-card: 0 12px 30px rgba(14, 23, 38, 0.12);
  --shadow-lg: 0 24px 60px rgba(14, 23, 38, 0.18);

  /* Layout */
  --container: 1200px;
  --container-wide: 1280px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 400ms;
}

/* Dark mode */
[data-theme="dark"] {
  --color-background: #020617;
  --color-background-alt: #0b1220;
  --color-background-tint: #111a33;
  --color-surface: #1E293B;
  --color-surface-translucent: rgba(30, 41, 59, 0.70);
  --color-surface-translucent-strong: rgba(30, 41, 59, 0.82);
  --color-text: #F8FAFC;
  --color-text-muted: #C7CFDB;
  --color-text-subtle: #8A93A6;
  --color-text-invert: #0E1726;
  --color-border: #1E293B;
  --color-border-strong: #334155;
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}
