/* AISOC in-a-box design tokens — single source of truth for all three
   surfaces (marketing docs-site, unified portal, developer docs).
   Torq-style dark language: pure-black ground, white display type,
   white pill CTAs, Inter display + IBM Plex Mono labels.
   Consumers link this file (or copy it at build time, for the portal's
   standalone output). Do not redeclare these values in surface CSS —
   reference the variables. */

/* Face declarations are made by each surface relative to where the woff2
   files were copied (docs-site/build.py and apps/portal postbuild both pull
   from docs-site/assets/fonts/ — the canonical, committed copies). */

:root {
  /* ── surface luminance ladder ─────────────────────────────────────
     Torq pattern: the ground is pure black; depth is a very subtle lift,
     never a border or a gradient. */
  --bg: #000000;            /* marketing / page ground */
  --bg-panel: #080809;      /* panels, code ground, raised sections */
  --bg-elevated: #101012;   /* elevated surfaces: cards, inputs, menus */
  --bg-overlay: #17171a;    /* tooltips, popovers */

  /* ── text ─────────────────────────────────────────────────────── */
  --ink: #ffffff;           /* primary — Torq uses pure white */
  --ink-secondary: #a9aeb8; /* labels, meta, nav */
  --ink-tertiary: #767b86;  /* faint hints, disabled */

  /* ── brand — monochrome ─────────────────────────────────────────
     The primary action is a white pill with black text; the brand IS
     white. No second saturated hue anywhere. Status colors below stay. */
  --accent: #ffffff;          /* static brand mark, focus rings */
  --accent-interactive: #ffffff; /* hover/active, links, CTAs */
  --accent-soft: rgba(255, 255, 255, 0.12);
  --accent-glow: 0 0 48px -14px rgba(255, 255, 255, 0.28);
  --accent-glow-soft: 0 0 40px -10px rgba(255, 255, 255, 0.45);
  /* legacy alias: the pre-overhaul primary-button token name */
  --btn: var(--accent);

  /* ── status (verdict/gate colors — never decorative) ───────────── */
  --ok: #27a644;
  --ok-ink: #6ee7a0;
  --ok-bg: rgba(39, 166, 68, 0.14);
  --warn: #e8a618;
  --warn-ink: #ffd75e;
  --warn-bg: rgba(232, 166, 24, 0.14);
  --bad: #e5484d;
  --bad-ink: #ff9aa4;
  --bad-bg: rgba(229, 72, 77, 0.14);
  --info: #ffffff;

  /* ── borders (semi-transparent white on black, never solid) ────── */
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.22);
  --line-focus: #ffffff;

  /* ── translucent fills (buttons, hovers, selection) ──────────── */
  --fill-faint: rgba(255, 255, 255, 0.03);
  --fill: rgba(255, 255, 255, 0.06);
  --fill-strong: rgba(255, 255, 255, 0.10);
  --fill-hover: rgba(255, 255, 255, 0.08);

  /* ── legacy aliases (pre-overhaul token names) ───────────────── */
  --panel: var(--bg-elevated);
  --panel-2: var(--bg-panel);
  --fg: var(--ink);
  --muted: var(--ink-secondary);
  --ok-fg: var(--ok-ink);
  --warn-fg: var(--warn-ink);
  --bad-fg: var(--bad-ink);

  /* ── borderless depth primitives ───────────────────────────────
     A showpiece panel gets: bg tint step + faint inset highlight +
     soft ambient shadow + (optionally) a white glow. */
  --inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-ambient: 0 10px 28px rgba(0, 0, 0, 0.55);
  --shadow-raise: 0 2px 8px rgba(0, 0, 0, 0.4);
  --glow-accent: 0 0 48px -14px rgba(255, 255, 255, 0.28);

  /* ── typography ───────────────────────────────────────────────── */
  --font-sans: "Inter var", Inter, ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas,
    monospace;
  --font-feature-settings: "cv01" 1, "ss03" 1;
  --weight-body: 400;
  --weight-ui: 510;      /* signature: UI text sits at 510, not 400/500 */
  --weight-heading: 600; /* Torq display weight */
  --tracking-display: -0.026em; /* aggressive negative tracking at display sizes */
  --tracking-tight: -0.012em;

  /* ── radii / spacing / rhythm ─────────────────────────────────── */
  --r-sm: 5px;
  --r-md: 5px;   /* white pill: 5px like Torq */
  --r-lg: 8px;
  --r-xl: 14px;
  --nav-h: 64px;

  /* ── charts (white/gray family, black grid) ──────────────────── */
  --chart-1: #ffffff;
  --chart-2: #a9adb8;
  --chart-3: #6ee7a0;
  --chart-4: #ffd75e;
  --chart-5: #ff9aa4;
  --chart-grid: rgba(255, 255, 255, 0.06);
  --chart-axis: var(--ink-tertiary);

  /* ── diagram semantic strokes (architecture-diagram language v1) ─
     One color per component type; the tunnel/security line is always
     rose and always dashed. */
  --dl-edge: #22d3ee;            /* edge appliance / ingest — cyan */
  --dl-pipeline: var(--warn);    /* data pipeline bus — orange */
  --dl-engine: var(--chart-3);   /* triage / agent engine — emerald */
  --dl-storage: var(--chart-2);  /* storage / indexes — gray */
  --dl-tunnel: #e8637c;          /* security / tunnel — rose, always dashed */
  --dl-external: var(--ink-secondary); /* external systems — slate */

  /* ── code / terminal (IBM Plex Mono on panel ground) ──────────── */
  --code-bg: #080809;
  --code-keyword: #c9a8ff;
  --code-string: #6ee7a0;
  --code-number: #ffd75e;
  --code-comment: var(--ink-tertiary);
  --code-fn: #ffffff;
}
