/* Design tokens. Everything visual is derived from what's in here. */

:root {
  /* Brand */
  --brand-50:  #f0eeff;
  --brand-100: #e2ddff;
  --brand-200: #c8bfff;
  --brand-300: #a596ff;
  --brand-400: #8570f7;
  --brand-500: #6a51ec;
  --brand-600: #563cd8;
  --brand-700: #452eb0;
  --brand-900: #241a5c;

  /* Warm accent, used for the AI surfaces */
  --spark-100: #ffeede;
  --spark-300: #ffc78e;
  --spark-500: #f0913a;
  --spark-700: #b96412;

  /* Neutrals — very slightly warm so white doesn't read as clinical */
  --ink-900: #12131a;
  --ink-800: #1d1f29;
  --ink-700: #2f3242;
  --ink-500: #5b6076;
  --ink-400: #7a7f95;
  --ink-300: #a9adbe;
  --ink-200: #d7d9e3;
  --ink-100: #e9ebf1;
  --ink-50:  #f4f5f8;

  --paper: #ffffff;
  --paper-tint: #f8f8fb;
  --paper-brand: #f6f4ff;

  --positive-500: #1f9d63;
  --positive-50: #e6f6ee;
  --warn-500: #c98a1a;

  /* Semantic */
  --bg: var(--paper);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-subtle: var(--ink-400);
  --border: var(--ink-100);
  --border-strong: var(--ink-200);
  --link: var(--brand-600);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: clamp(1.125rem, 0.4vw + 1.05rem, 1.25rem);
  --text-xl: clamp(1.3rem, 0.6vw + 1.15rem, 1.5rem);
  --text-2xl: clamp(1.55rem, 1vw + 1.3rem, 1.95rem);
  --text-3xl: clamp(1.9rem, 1.8vw + 1.45rem, 2.6rem);
  --text-4xl: clamp(2.3rem, 3.2vw + 1.5rem, 3.6rem);
  --text-5xl: clamp(2.6rem, 4.4vw + 1.5rem, 4.4rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5.5rem;
  --space-11: 7rem;

  /* Shape */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(18, 19, 26, 0.05);
  --shadow-sm: 0 1px 3px rgba(18, 19, 26, 0.06), 0 1px 2px rgba(18, 19, 26, 0.04);
  --shadow: 0 4px 16px rgba(18, 19, 26, 0.07), 0 1px 3px rgba(18, 19, 26, 0.05);
  --shadow-lg: 0 18px 44px rgba(18, 19, 26, 0.12), 0 4px 12px rgba(18, 19, 26, 0.06);
  --shadow-xl: 0 40px 90px rgba(24, 20, 60, 0.22), 0 8px 24px rgba(18, 19, 26, 0.08);

  --container: 1140px;
  --container-narrow: 760px;

  --ease: cubic-bezier(0.4, 0.14, 0.3, 1);
}
