/* Cortex Engine - design tokens
   Built on the locked Cortex brand v1 (2026-07-06) palette, extended for an
   institutional / mid-enterprise register. Dark enterprise premium surface. */

:root{
  /* --- Cortex brand v1 (locked) --- */
  --cx-phosphor:#35E0A1;      /* shell / primary accent */
  --cx-phosphor-dim:#1C7A5A;
  --cx-blip:#FFB84D;          /* the agent / single focal action - scarce */
  --cx-amber-dark:#E8890C;
  --cx-ink:#0A0F0D;           /* CRT ground */
  --cx-panel:#0E1613;
  --cx-deep-cortex:#0B3B2E;
  --cx-paper:#F4F1E8;
  --cx-line:#16241D;
  --cx-text-bright:#CFE9DD;
  --cx-text-dim:#8FA99D;      /* de-emphasised; WCAG-AA (7.6:1) on ink ground */

  /* --- institutional extensions --- */
  --cx-ink-2:#070B09;         /* deepest ground, section wells */
  --cx-panel-2:#111C18;       /* raised card */
  --cx-panel-3:#16241D;       /* hover / active card */
  --cx-line-bright:#22372C;   /* visible hairline */
  --cx-text:#A9C4B8;          /* default body on dark */
  --cx-text-faint:#6E8A7C;    /* faint; WCAG-AA (5.2:1) on ink ground */
  --cx-phosphor-soft:rgba(53,224,161,.12);
  --cx-phosphor-edge:rgba(53,224,161,.32);
  --cx-blip-soft:rgba(255,184,77,.14);

  /* warm band (plain-language surfaces) */
  --cx-paper-2:#ECE7D8;
  --cx-paper-ink:#0B1A14;     /* text on paper */
  --cx-paper-line:#D4CCB8;
  --cx-paper-dim:#46564D;     /* dim on paper; WCAG-AA (6.1:1) on paper ground */

  /* --- type --- */
  --cx-font-mono:ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --cx-font-sans:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* fluid type scale */
  --cx-t-eyebrow:.72rem;
  --cx-t-micro:.8125rem;
  --cx-t-body:1.02rem;
  --cx-t-lead:clamp(1.12rem, 1rem + .5vw, 1.32rem);
  --cx-t-h3:clamp(1.15rem, 1rem + .8vw, 1.5rem);
  --cx-t-h2:clamp(1.7rem, 1.2rem + 2vw, 2.7rem);
  --cx-t-h1:clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem);
  --cx-t-display:clamp(3rem, 1.4rem + 6.6vw, 6.2rem);

  /* --- space --- */
  --cx-gap:1.25rem;
  --cx-pad:clamp(1.25rem, 5vw, 2.75rem);
  --cx-section:clamp(4.5rem, 9vw, 8.5rem);
  --cx-maxw:1180px;
  --cx-measure:66ch;

  /* --- radii / lines --- */
  --cx-radius-panel:10px;
  --cx-radius-icon:3px;
  --cx-hair:1px solid var(--cx-line);
  --cx-hair-bright:1px solid var(--cx-line-bright);

  /* --- glow --- */
  --cx-glow-soft:0 0 6px rgba(53,224,161,.55), 0 0 18px rgba(53,224,161,.22);
  --cx-glow-strong:0 0 8px rgba(53,224,161,.7), 0 0 26px rgba(53,224,161,.32);
  --cx-glow-blip:0 0 6px rgba(255,184,77,.65), 0 0 16px rgba(255,184,77,.3);

  /* --- motion --- */
  --cx-ease:cubic-bezier(.22,.61,.36,1);
  --cx-dur:.5s;
}
