:root {
  /* ============================================================
     JAY.EXE design tokens — futuristic developer workspace
     deep navy/black · electric blue · vibrant orange
     ============================================================ */

  /* Color palette */
  --bg-primary: #04070f;
  --bg-secondary: #0a1120;
  --bg-panel: rgba(14, 23, 43, 0.72);
  --bg-panel-hover: rgba(20, 33, 60, 0.8);
  --bg-elevated: rgba(18, 30, 55, 0.85);

  --fg-primary: #eaf2ff;
  --fg-secondary: #9db1d0;
  --fg-muted: #5f7392;

  --accent-cyan: #3aa0ff;          /* electric blue (matches robot glow) */
  --accent-cyan-dim: #2a7fd4;
  --accent-hot: #5cd6ff;           /* hot cyan for gradient ends */
  --accent-blue: #3a7bff;
  --accent-green: #2fe6a8;
  --accent-orange: #ff7a29;        /* vibrant orange */
  --accent-orange-dim: #e05f14;
  --accent-orange-hot: #ffb057;

  /* Gradients */
  --grad-blue: linear-gradient(135deg, var(--accent-hot), var(--accent-blue));
  --grad-orange: linear-gradient(135deg, var(--accent-orange-hot), var(--accent-orange));
  --grad-brand: linear-gradient(120deg, var(--accent-hot) 0%, var(--accent-blue) 55%, var(--accent-cyan) 100%);
  --grad-panel: linear-gradient(160deg, rgba(24, 40, 74, 0.75), rgba(10, 17, 34, 0.65));

  --border-subtle: #1b2a47;
  --border-strong: #2c4066;
  --border-glass: rgba(122, 170, 255, 0.16);

  /* Glassmorphism */
  --glass: rgba(10, 18, 36, 0.58);
  --glass-strong: rgba(8, 14, 28, 0.82);
  --glass-blur: blur(18px) saturate(1.3);

  /* Shadows & glow */
  --shadow-soft: rgba(58, 160, 255, 0.1);
  --shadow-strong: rgba(58, 160, 255, 0.28);
  --shadow-card: 0 18px 50px rgba(2, 6, 16, 0.55);
  --glow-blue: 0 0 24px rgba(58, 160, 255, 0.28);
  --glow-orange: 0 0 24px rgba(255, 122, 41, 0.26);
  --focus-ring: 0 0 0 3px rgba(58, 160, 255, 0.4);

  /* Technical UI */
  --grid-color: rgba(120, 170, 255, 0.05);
  --grid-color-strong: rgba(120, 170, 255, 0.09);
  --hud-color: rgba(58, 160, 255, 0.5);
  --robot-emissive: #003344;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2.25rem;
  --text-3xl: 3rem;
  --text-4xl: 4rem;
  --text-hero: clamp(2.6rem, 6.5vw, 5.6rem);
  --leading-tight: 1.1;
  --leading-normal: 1.5;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4.5rem;
  --space-12: 5rem;
  --space-14: 6.5rem;

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;
  --border-radius: 10px;
  --border-radius-lg: 16px;
  --radius-xl: 22px;
  --transition-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 280ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 450ms cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.22, 1.4, 0.36, 1);

  /* Z-index */
  --z-bg: 0;
  --z-content: 10;
  --z-nav: 100;
  --z-chat: 150;
  --z-modal: 200;
  --z-boot: 9998;
  --z-cursor: 9999;
}

/* Gradient text helper */
.grad-text {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-normal: 0ms;
    --transition-slow: 0ms;
  }
}
