/* ==========================================================================
   ESPER GLOBAL — Version 1: Command Grid
   CSS Design Tokens (Variables)

   Color derivation: ESPER = E(5)+S(19)+P(16)+E(5)+R(18) = 63
   Primary hue: 63 x 3 = 189° (Steel Cyan)
   Secondary hue: 63° (Muted Gold)
   ========================================================================== */

:root {
  /* ── Primary Accent ── Steel Cyan  HSL(189, 55%, 45%) */
  --color-primary: #339eb1;
  --color-primary-rgb: 51, 158, 177;
  --color-primary-light: #4db8cb;
  --color-primary-dark: #287d8d;

  /* ── Secondary Accent ── Muted Gold  HSL(63, 25%, 52%) */
  --color-secondary: #a0a366;
  --color-secondary-rgb: 160, 163, 102;

  /* ── Backgrounds ── */
  --color-bg-darkest: #0a0d0e;
  --color-bg-dark: #0f1314;
  --color-bg-base: #141919;
  --color-bg-card: #1a2022;
  --color-bg-elevated: #222a2c;
  --color-bg-hover: #2c3536;

  /* ── Text ── */
  --color-text-primary: #e8ecec;
  --color-text-secondary: #9eaaac;
  --color-text-muted: #6b7779;

  /* ── Chrome / Silver ── */
  --color-chrome: #b1bbbd;
  --color-chrome-light: #cdd4d5;
  --color-chrome-dark: #535c5e;

  /* ── Borders ── */
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-visible: rgba(255, 255, 255, 0.10);
  --color-border-hover: rgba(255, 255, 255, 0.15);

  /* ── Status ── */
  --color-success: #4ade80;
  --color-success-muted: rgba(74, 222, 128, 0.15);

  /* ── Security ── */
  --color-security-bg: #161c1e;
  --color-security-border: rgba(155, 170, 172, 0.12);
  --color-security-accent: #7a8a8c;

  /* ── Gradients ── */
  --gradient-primary: linear-gradient(135deg, #339eb1, #a0a366);
  --gradient-chrome: linear-gradient(90deg, transparent, var(--color-chrome-dark), transparent);
  --gradient-subtle: linear-gradient(180deg, var(--color-bg-base), var(--color-bg-darkest));
  --gradient-card-hover: linear-gradient(180deg, rgba(51, 158, 177, 0.03), transparent);

  /* ── Typography ── */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Equinox', 'Inter', sans-serif;

  --text-hero: clamp(2.75rem, 5.5vw, 5rem);
  --text-h1: clamp(2rem, 4vw, 3.25rem);
  --text-h2: clamp(1.5rem, 3vw, 2.125rem);
  --text-h3: clamp(1.125rem, 2vw, 1.375rem);
  --text-body: clamp(0.9375rem, 1.1vw, 1.0625rem);
  --text-small: clamp(0.8125rem, 1vw, 0.875rem);
  --text-caption: 0.75rem;
  --text-label: 0.8125rem;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.06em;
  --tracking-ultra: 0.14em;

  --leading-tight: 1.15;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  /* ── Spacing (8px base) ── */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;
  --space-9: 10rem;

  /* ── Layout ── */
  --container-max: 1360px;
  --container-padding: clamp(1.25rem, 4vw, 5rem);
  --grid-gutter: clamp(1rem, 2vw, 1.5rem);
  --nav-height: 64px;

  /* ── Motion ── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 600ms;
  --duration-reveal: 800ms;

  /* ── Radius ── */
  --radius-sm: 2px;
  --radius-md: 4px;

  /* ── Shadows ── */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2);
  --shadow-elevated: 0 4px 16px rgba(0,0,0,0.4), 0 12px 40px rgba(0,0,0,0.3);
}
