/* ============================================================================
   Ellirium — Design tokens (Enterprise Command Surface, Direction A)
   Single source of truth for all CSS files. No color/size/spacing literals
   outside this file.
   ========================================================================== */

:root {
  /* ---- Surfaces (5 levels + canvas) ---- */
  --color-canvas: #0B0E14;
  --color-surface: #10141C;
  --color-surface-elevated: #161B26;
  --color-surface-interactive: #1E2433;
  --color-surface-active: #252D3F;

  /* ---- Text ---- */
  --color-text-primary: #E8EDF5;
  --color-text-secondary: #A3B0C6;
  --color-text-muted: #6F7D94;
  --color-text-on-accent: #06121A;

  /* ---- Borders & depth ---- */
  --color-border-subtle: rgba(232, 238, 247, 0.06);
  --color-border-strong: rgba(232, 238, 247, 0.12);
  --color-border-accent: rgba(6, 182, 212, 0.45);
  --inner-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --shadow-elevated: 0 1px 2px rgba(0, 0, 0, 0.30), 0 0 0 1px var(--color-border-subtle);

  /* ---- Accent & statuses ---- */
  --color-accent: #06B6D4;
  --color-accent-hover: #22D3EE;
  --color-accent-subtle: rgba(6, 182, 212, 0.12);
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;
  --color-focus-ring: #06B6D4;

  /* ---- Typography ---- */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Type ramp */
  --fs-display: clamp(3rem, 5.5vw, 4.25rem);
  --fs-h1: clamp(2.25rem, 4vw, 3rem);
  --fs-h2: clamp(1.875rem, 3vw, 2.25rem);
  --fs-h2-sm: clamp(1.5rem, 2.4vw, 1.75rem);
  --fs-h3: 1.25rem;
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-body-sm: 0.875rem;
  --fs-label: 0.75rem;
  --fs-caption: 0.75rem;
  --fs-technical: 0.75rem;
  --fs-button: 0.9375rem;
  --fs-nav: 0.9375rem;
  --fs-nav-external: 0.8125rem;

  /* ---- Spacing scale ---- */
  --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-32: 128px;

  /* Fluid wide column */
  --container-max: min(1920px, 96vw);
  --container-padding: clamp(20px, 2.8vw, 48px);
  --container-padding-tablet: 24px;
  --container-padding-mobile: 20px;
  --container-narrow: min(860px, 92vw);

  /* ---- Radius scale ---- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 180ms;
  --duration-base: 420ms;
  --duration-slow: 500ms;

  /* ---- Nav ---- */
  --nav-h: 76px;
  --nav-bg: rgba(11, 14, 20, 0.78);

  /* ---- z-index scale ---- */
  --z-nav: 40;
  --z-mega: 45;
  --z-drawer: 50;
  --z-toast: 60;

  color-scheme: dark;
}

@media (max-width: 1024px) {
  :root {
    --container-padding: var(--container-padding-tablet);
  }
}

@media (max-width: 640px) {
  :root {
    --container-padding: var(--container-padding-mobile);
  }
}
