/* Hallmark · tokens · genre: modern-minimal · macrostructure: Marquee Hero (hero → product frame → logos → statement → platform cards → rail → grid → closing)
 * theme: studied-DNA (source: url https://www.sim.ai/ — white paper, zero-chroma greys, black pill CTAs, 500-weight tight display)
 * paper oklch(100% 0 0) · ink oklch(21% 0 0) · accent oklch(51% 0.23 277) ≈ brand #4f46e5 (kept for focus + live dot only)
 * display: Geist 500 · body: Geist 400 · mono: Geist Mono (machine-data role: stream rows, audit values)
 * studied: yes · DNA-source: url (public reference for the user's own brand)
 */
:root {
  /* ---- color · white paper, neutral greys (sim-school monochrome) ---- */
  --bg:          oklch(100% 0 0);
  --card:        oklch(100% 0 0);
  --bg-soft:     oklch(97.5% 0 0);
  --bg-tint:     oklch(94.5% 0 0);
  --ink:         oklch(21% 0 0);
  --ink-soft:    oklch(33% 0 0);
  --ink-mid:     oklch(46% 0 0);
  --ink-faint:   oklch(54% 0 0);
  --rule:        oklch(91% 0 0);
  --rule-soft:   oklch(94% 0 0);
  --dark:        oklch(33% 0 0);
  --dark-ink:    oklch(97.5% 0 0);
  --dark-dim:    oklch(80% 0 0);

  /* ---- color · accent (brand violet, #4f46e5) — focus ring + live dot ---- */
  --accent:      oklch(51% 0.23 277);
  --accent-deep: oklch(43% 0.21 277);
  --accent-ink:  oklch(97% 0.008 277);
  --accent-tint: oklch(93% 0.035 277);
  --highlight:   oklch(93% 0.035 277);
  --focus:       var(--accent);

  /* ---- color · semantic state ---- */
  --allow:       oklch(50% 0.13 152);
  --allow-deep:  oklch(38% 0.11 152);
  --allow-bg:    oklch(95.5% 0.025 152);
  --deny:        oklch(53% 0.19 27);
  --deny-deep:   oklch(42% 0.16 27);
  --deny-bg:     oklch(96% 0.018 27);
  --amber:       oklch(66% 0.13 80);

  /* ---- color · dark panel (modal backdrops, inverted sections) ---- */
  --term-bg:     oklch(17% 0 0);
  --term-rule:   oklch(30% 0 0);
  --term-ink:    oklch(94% 0 0);
  --term-dim:    oklch(67% 0 0);
  --term-accent: oklch(75% 0.09 277);
  --term-allow:  oklch(78% 0.14 152);
  --term-deny:   oklch(72% 0.15 27);
  --term-amber:  oklch(83% 0.11 85);

  /* ---- texture · the grey "painted" frame behind product artifacts ---- */
  --frame-bg:
    radial-gradient(110% 70% at 18% 0%, oklch(97% 0 0), transparent 60%),
    radial-gradient(80% 60% at 92% 100%, oklch(84% 0 0), transparent 60%),
    linear-gradient(180deg, oklch(93.5% 0 0), oklch(88% 0 0));
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* ---- type ---- */
  --font-display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono:         "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --mono-system:  ui-monospace, Menlo, "SF Mono", "Courier New", monospace;
  /* legacy aliases (sub-pages reference these names) */
  --display:      var(--font-display);
  --meta:         var(--font-body);
  --typewriter:   var(--mono);
  --hand:         var(--font-body);

  /* ---- type scale (1.25 major third) ---- */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.25rem;
  --text-3xl:  2.75rem;
  --text-display-s: clamp(2rem, 3.2vw + 0.5rem, 3.5rem);
  --text-display:   clamp(2.75rem, 5.6vw + 0.25rem, 5rem);

  /* ---- space (4pt, named) ---- */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;

  /* ---- motion ---- */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long:  420ms;

  /* ---- shape ---- */
  --rule-hair:    1px;
  --radius-frame: 24px;
  --radius-card:  20px;
  --radius-btn:   999px;
  --radius-input: 12px;
  --radius-pill:  999px;

  /* ---- layout ---- */
  --page-max:    1136px;
  --bleed-max:   1360px;
  --page-gutter: clamp(1rem, 4vw, 2.5rem);

  /* ---- z scale ---- */
  --z-base:     1;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-modal:    400;
  --z-toast:    500;
  --z-tooltip:  600;

  /* blueprint wireframe (policy figures) */
  --blue-wire: oklch(52% 0.17 255);
  --blue-grid: oklch(92% 0.03 255);
  --blue-fill: oklch(95% 0.02 255);
}
