/* ============================================================
   Agent Industries — Design System tokens
   Vendored verbatim from the canonical Claude Design project
   (claude.ai/design/p/98f4b5cc-522b-4504-8c28-28d10788f59f).
   Do not hand-edit values here — resync from that project instead.
   ============================================================ */

/* --- fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  /* --- colors: base palette --- */
  --ai-green: #2f6b4f;        /* primary accent — USE ON LIGHT backgrounds */
  --ai-green-lite: #5aa67d;   /* accent — USE ON DARK backgrounds */

  --ai-bg: #f4f3ef;           /* page background (warm paper) */
  --ai-bg-2: #efeee9;         /* alternate / recessed background */
  --ai-surface: #ffffff;      /* cards, raised surfaces */

  --ai-ink: #16181a;          /* primary text / dark panels */
  --ai-ink-soft: #34373a;     /* secondary text */
  --ai-muted: #74777b;        /* tertiary text, labels, captions */

  --ai-line: rgba(20, 22, 24, 0.16);        /* borders on light */
  --ai-line-soft: rgba(20, 22, 24, 0.09);   /* hairline dividers */
  --ai-line-dark: rgba(255, 255, 255, 0.16);/* borders on dark panels */

  --ai-slate: #46566b;        /* slate panel fill (capability box) */
  --ai-slate-ink: #dde3ea;    /* text on slate */

  /* --- colors: semantic aliases --- */
  --text-primary: var(--ai-ink);
  --text-secondary: var(--ai-ink-soft);
  --text-muted: var(--ai-muted);
  --text-on-dark: #f4f3ef;
  --text-on-dark-muted: rgba(244, 243, 239, 0.62);
  --text-accent: var(--ai-green);
  --text-accent-on-dark: var(--ai-green-lite);

  --surface-page: var(--ai-bg);
  --surface-page-alt: var(--ai-bg-2);
  --surface-card: var(--ai-surface);
  --surface-dark: var(--ai-ink);
  --surface-slate: var(--ai-slate);

  --border-default: var(--ai-line);
  --border-hairline: var(--ai-line-soft);
  --border-on-dark: var(--ai-line-dark);

  --focus-ring: rgba(47, 107, 79, 0.45);

  /* --- typography: families --- */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* --- typography: weights --- */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* --- typography: display / heading scale --- */
  --fs-display-xl: clamp(3.5rem, 7vw, 6.5rem);
  --fs-display-l: clamp(2.5rem, 5vw, 4rem);
  --fs-display-m: clamp(2rem, 3.5vw, 3rem);
  --fs-h1: 2.25rem;
  --fs-h2: 1.75rem;
  --fs-h3: 1.375rem;
  --fs-h4: 1.125rem;

  --fs-body-l: 1.25rem;
  --fs-body: 1rem;
  --fs-body-s: 0.9375rem;
  --fs-caption: 0.8125rem;

  /* --- typography: mono label scale --- */
  --fs-label: 0.8125rem;
  --fs-label-s: 0.6875rem;
  --fs-tag: 0.875rem;

  /* --- typography: line heights --- */
  --lh-tight: 1.02;
  --lh-snug: 1.15;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  /* --- typography: tracking --- */
  --ls-display: -0.02em;
  --ls-heading: -0.01em;
  --ls-body: 0;
  --ls-label: 0.14em;
  --ls-tag: 0.02em;

  /* --- spacing --- */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  --gap-inline: var(--space-3);
  --gap-stack: var(--space-4);
  --pad-card: var(--space-6);
  --pad-card-lg: var(--space-8);
  --pad-section: var(--space-24);
  --page-gutter: clamp(24px, 5vw, 80px);
  --content-max: 1200px;

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

  /* --- borders --- */
  --border-w: 1px;
  --border-w-thick: 1.5px;

  /* --- shadows --- */
  --shadow-none: none;
  --shadow-sm: 0 1px 2px rgba(20, 22, 24, 0.04);
  --shadow-card: 0 1px 3px rgba(20, 22, 24, 0.05), 0 8px 24px rgba(20, 22, 24, 0.04);
  --shadow-lift: 0 4px 12px rgba(20, 22, 24, 0.08), 0 16px 40px rgba(20, 22, 24, 0.06);

  /* --- motion --- */
  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-emphasis: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;

  /* --- focus --- */
  --focus-outline: 2px solid var(--focus-ring);
  --focus-offset: 2px;
}
