/* Footeon — Design tokens (AI Agent Operating System)
   Control-room dark by default. Every value used by styles.css comes from here.
   FLAT: one background under every section of every page — sections separate
   by whitespace alone, never by a tone step, a wash, a shadow or a border. */

:root {
  /* ---- Background / surfaces ---- */
  --bg-base:   #0a0c10;   /* the one canvas, under every section */
  --bg-900:    var(--bg-base);
  --bg-800:    var(--bg-base);
  --surface-1: #10141b;
  --surface-2: #161b24;
  --surface-3: #1f2632;
  --canvas:    #0d1016;

  /* ---- Text ---- */
  --text-primary:   #eef2f8;
  --text-secondary: #b3bccb;
  --text-muted:     #8b95a7;
  --text-faint:     #7d8798;
  --text-on-accent: #04121f;

  /* ---- Borders / grid (inside components only) ---- */
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-strong:  rgba(255, 255, 255, 0.18);
  --grid-line:      rgba(255, 255, 255, 0.05);
  --ring:           #5b9dff;

  /* ---- Accent = active path + primary action ---- */
  --accent:       #5b9dff;
  --accent-hover: #74acff;
  --accent-press: #4a87ec;
  --accent-soft:  rgba(91, 157, 255, 0.14);
  --accent-glow:  none;   /* nothing on this site glows */

  /* ---- Agent status (always color + icon + label) ---- */
  --st-queued:  #97a0b1; --st-queued-soft:  rgba(130, 140, 158, 0.16);
  --st-running: #5b9dff; --st-running-soft: rgba(91, 157, 255, 0.16);
  --st-waiting: #38bdf8; --st-waiting-soft: rgba(56, 189, 248, 0.16);
  --st-approve: #f5a524; --st-approve-soft: rgba(245, 165, 36, 0.16);
  --st-success: #2dd4a0; --st-success-soft: rgba(45, 212, 160, 0.16);
  --st-failed:  #f4516c; --st-failed-soft:  rgba(244, 81, 108, 0.16);
  --st-blocked: #c0566b; --st-blocked-soft: rgba(192, 86, 107, 0.16);

  /* ---- Graph nodes / edges ---- */
  --node-bg:     var(--surface-3);
  --node-border: var(--border-default);
  --node-active: var(--accent);
  --edge:        rgba(255, 255, 255, 0.18);
  --edge-active: var(--accent);

  /* ---- Generic semantic ---- */
  --good: var(--st-success);
  --warn: var(--st-approve);
  --bad:  var(--st-failed);
  --info: var(--st-waiting);

  /* ---- Atmosphere ----
     Removed: the canvas carries no wash behind it. */
  --grad-canvas: none;

  /* ---- Type ---- */
  /* Bodoni Moda carries the headlines: a high-contrast didone with real
     optical sizing — the register a footwear brand is bought in, set against
     a factory-grade interface. Be Vietnam Pro carries running and interface
     text, and PT Mono carries lasts, sizes, takt times and order numbers. */
  --font-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --font-mono: "PT Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --fs-display: clamp(2.625rem, 1.35rem + 5vw, 5.5rem);
  --fs-h1:      clamp(2.375rem, 1.4rem + 3.7vw, 4.25rem);
  --fs-h2:      clamp(1.875rem, 1.3rem + 2.3vw, 3.125rem);
  --fs-h3:      clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --fs-h4:      clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-lead:    clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body:    1rem;
  --fs-body-lg: 1.0625rem;
  --fs-small:   0.875rem;
  --fs-mono:    0.8125rem;
  --fs-micro:   0.75rem;

  /* ---- Spacing (4-pt base / 8-pt rhythm) ---- */
  --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-28: 112px;--space-32: 128px;--space-40: 160px;

  /* ---- Radii ---- */
  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px;
  --radius-pill: 999px;

  /* ---- Containers ---- */
  --container-sm: 680px;  --container-md: 840px; --container-lg: 1080px;
  --container-xl: 1232px; --container-2xl: 1440px;
  --gutter: clamp(16px, 4vw, 40px);

  /* ---- Rhythm ---- */
  --section-y: clamp(72px, 9vw, 136px);
  --section-y-lg: clamp(96px, 11vw, 176px);
  --panel-gap: clamp(12px, 1.4vw, 20px);
  --panel-pad: clamp(20px, 2vw, 28px);
  --log-line-y: 4px;
  --step-gap: var(--space-4);
  --stack: clamp(12px, 1.4vw, 20px);

  /* ---- Grid ---- */
  --grid-cols: 12;
  --grid-gap: var(--panel-gap);

  /* ---- Motion ---- */
  --dur-fast: 120ms; --dur-base: 220ms; --dur-slow: 380ms; --dur-run: 600ms;
  --ease-out: cubic-bezier(0.2, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --pulse: 1.6s;
}

/* Optional light theme — control-room dark remains the identity. */
[data-theme="light"] {
  --bg-base:   #f7f9fc;   /* the one canvas in this theme too */
  --bg-900:    var(--bg-base);
  --bg-800:    var(--bg-base);
  --surface-1: #ffffff;
  --surface-2: #f3f6fb;
  --surface-3: #e9eef7;
  --canvas:    #f8fafd;
  --text-primary:   #0a0c10;
  --text-secondary: #3a4252;
  --text-muted:     #5d6678;
  --text-faint:     #7b8496;
  --text-on-accent: #ffffff;
  --border-subtle:  rgba(10, 12, 16, 0.08);
  --border-default: rgba(10, 12, 16, 0.12);
  --border-strong:  rgba(10, 12, 16, 0.22);
  --grid-line:      rgba(10, 12, 16, 0.06);
  --accent:       #2563eb;
  --accent-hover: #1d4ed8;
  --accent-press: #1e40af;
  --accent-soft:  rgba(37, 99, 235, 0.12);
  --st-queued:  #5d6678;
  --st-running: #2563eb;
  --st-waiting: #0284c7;
  --st-approve: #b45309;
  --st-success: #047857;
  --st-failed:  #b91c1c;
  --st-blocked: #9f1239;
  --edge:       rgba(10, 12, 16, 0.22);
  --grad-canvas: none;
}
