/* ============================================================
   aidash design tokens — imported from the Claude Design project
   "Interject marketing website" (design system aidash-design-system).
   Four source files concatenated verbatim: colors, typography,
   spacing, surfaces. The one runtime knob (--accent) is overridden
   in site.css; every accent-derived value is a color-mix() so it
   recomputes automatically from that single override.
   ============================================================ */

/* ---- colors ------------------------------------------------ */
:root {
  /* --- Base grounds (deep -> raised) ----------------------- */
  --bg-void:     #070a10;   /* terminal/log panes, darkest ground */
  --bg-app:      #0b1018;   /* app background */
  --bg-panel:    #0f1521;   /* header bar, panels */

  /* --- Surfaces (cards on dark) --------------------------- */
  --surface-1:   #141c2b;   /* default card surface */
  --surface-2:   #1b2536;   /* raised / hover surface */
  --surface-3:   #24314699; /* translucent overlay wash */

  /* --- Borders (1px, no shadows) -------------------------- */
  --border-1:    #232f45;   /* default hairline */
  --border-2:    #33415c;   /* stronger / hover hairline */
  --border-inset: #0a0f18;  /* dark inset line for meter tracks */

  /* --- Text ramp ------------------------------------------ */
  --text-1:      #e6edf6;   /* primary, values, headings */
  --text-2:      #9fb0c8;   /* secondary body */
  --text-3:      #6b7c98;   /* muted labels, timestamps */
  --text-4:      #47566f;   /* faint / disabled — decorative only, fails AA as text */
  --text-on-accent: #ffffff;

  /* --- Accent (runtime-configurable) ---------------------- */
  --accent:       #7c3aed;                                   /* the one knob (overridden in site.css) */
  --accent-strong: color-mix(in oklch, var(--accent), white 14%);
  --accent-dim:    color-mix(in oklch, var(--accent), var(--bg-app) 45%);
  --accent-soft:   color-mix(in oklch, var(--accent), var(--surface-1) 78%);
  --accent-line:   color-mix(in oklch, var(--accent), var(--border-1) 55%);
  --accent-glow:   color-mix(in oklch, var(--accent), transparent 62%);
  --accent-text:   color-mix(in oklch, var(--accent), white 34%);

  /* --- Semantic status ------------------------------------ */
  --healthy:     #22c55e;   /* running / up */
  --warning:     #f59e0b;   /* restarting / degraded */
  --error:       #ef4444;   /* down / exited */
  --unknown:     #64748b;   /* grey / no data */
  --live:        #ff3b52;   /* pulsing LIVE stream marker */

  /* status washes (for pills, button faces, dot halos) */
  --healthy-soft: color-mix(in oklch, var(--healthy), var(--surface-1) 80%);
  --warning-soft: color-mix(in oklch, var(--warning), var(--surface-1) 80%);
  --error-soft:   color-mix(in oklch, var(--error),   var(--surface-1) 80%);
  --unknown-soft: color-mix(in oklch, var(--unknown), var(--surface-1) 82%);

  --healthy-glow: color-mix(in oklch, var(--healthy), transparent 55%);
  --warning-glow: color-mix(in oklch, var(--warning), transparent 55%);
  --error-glow:   color-mix(in oklch, var(--error),   transparent 55%);

  /* --- Meter fill stops (green -> amber -> red) ----------- */
  --meter-ok:    var(--healthy);
  --meter-warn:  var(--warning);
  --meter-crit:  var(--error);
  --meter-track: #0c121d;

  /* --- Focus ring ----------------------------------------- */
  --focus-ring:  color-mix(in oklch, var(--accent), transparent 40%);
}

/* ---- typography -------------------------------------------- */
:root {
  /* System/monospace only — no webfonts, keeps the bundle tiny. */
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;
  --font-ui:   var(--font-mono);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* --- Size scale (px) ------------------------------------ */
  --fs-micro:  10px;
  --fs-tiny:   11px;
  --fs-xs:     12px;
  --fs-sm:     13px;
  --fs-base:   14px;
  --fs-md:     16px;
  --fs-lg:     20px;
  --fs-xl:     26px;
  --fs-2xl:    34px;

  /* --- Weights -------------------------------------------- */
  --fw-normal:  400;
  --fw-medium:  500;
  --fw-bold:    600;

  /* --- Line heights --------------------------------------- */
  --lh-tight:  1.1;
  --lh-snug:   1.3;
  --lh-normal: 1.5;

  /* --- Letter spacing ------------------------------------- */
  --ls-label:  0.14em;
  --ls-tab:    0.08em;
  --ls-tight:  -0.01em;
  --ls-normal: 0;

  /* --- Numerals ------------------------------------------- */
  --numeric-tabular: tabular-nums;

  /* --- Semantic roles ------------------------------------- */
  --role-label:  var(--fw-medium) var(--fs-micro)/var(--lh-tight) var(--font-mono);
  --role-body:   var(--fw-normal) var(--fs-sm)/var(--lh-normal)  var(--font-mono);
  --role-value:  var(--fw-bold)   var(--fs-lg)/var(--lh-tight)   var(--font-mono);
}

/* ---- spacing, radii, sizing, motion ----------------------- */
:root {
  /* --- Spacing scale (4px base) --------------------------- */
  --sp-0:   0;
  --sp-1:   2px;
  --sp-2:   4px;
  --sp-3:   6px;
  --sp-4:   8px;
  --sp-5:   12px;
  --sp-6:   16px;
  --sp-7:   20px;
  --sp-8:   24px;
  --sp-9:   32px;
  --sp-10:  40px;

  /* --- Radii (tight, terminal) ---------------------------- */
  --radius-0:  0;
  --radius-1:  3px;
  --radius-2:  5px;
  --radius-3:  7px;
  --radius-4:  10px;
  --radius-pill: 999px;

  /* --- Fixed sizes ---------------------------------------- */
  --header-h:   52px;
  --terminal-h: 35vh;
  --meter-h:    6px;
  --meter-h-lg: 8px;
  --dot-sm:     7px;
  --dot-md:     9px;
  --dot-lg:     11px;
  --thumb:      56px;
  --hit-min:    30px;

  /* --- Borders -------------------------------------------- */
  --bw:      1px;
  --bw-2:    2px;

  /* --- Motion (subtle; glanceable, not flashy) ------------ */
  --dur-fast:  90ms;
  --dur-base:  140ms;
  --dur-slow:  240ms;
  --ease:      cubic-bezier(0.2, 0, 0.1, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Elevation is BORDER + GLOW, never drop-shadow ------ */
  --glow-accent: 0 0 0 1px var(--accent-line), 0 0 18px -6px var(--accent-glow);
  --glow-inset:  inset 0 1px 0 0 #ffffff08;
}

/* ---- surface & texture recipes ----------------------------- */
:root {
  /* Faint blueprint grid for large panes (terminal, page bg) */
  --tex-grid:
    linear-gradient(#ffffff05 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(90deg, #ffffff05 1px, transparent 1px) 0 0 / 22px 100%;

  /* Ultra-subtle scanline for the terminal pane */
  --tex-scanline:
    repeating-linear-gradient(
      to bottom,
      #ffffff00 0 2px,
      #00000026 2px 3px
    );

  /* Card face wash: barely-there vertical lift */
  --wash-card: linear-gradient(180deg, #ffffff06, #ffffff00 42%);

  /* Accent top-rule used on section panels / active states */
  --rule-accent: linear-gradient(90deg,
    var(--accent) 0%,
    color-mix(in oklch, var(--accent), transparent 70%) 60%,
    transparent 100%);
}
