/* ==========================================================================
   WarspectClient Portal — Design System Tokens
   launcher.warspect.com
   ========================================================================== */

:root {
  /* Brand & Semantic Palette */
  --brand-400: #f87171;
  --brand-500: #ef4444;
  --brand-600: #dc2626;
  --brand-700: #b91c1c;
  --brand-900: #450a0a;
  --brand-glow: rgba(220, 38, 38, 0.24);
  --brand-glow-strong: rgba(239, 68, 68, 0.42);

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);

  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-soft: rgba(245, 158, 11, 0.14);

  --sky-400: #38bdf8;

  /* Obsidian Surface Scale */
  --bg-ground: #050507;
  --bg-elevated: #0a0b10;
  --bg-surface: #0f1118;
  --bg-surface-2: #151822;
  --bg-surface-3: #1b202e;
  --bg-glass: rgba(10, 11, 16, 0.78);

  /* Borders & Rim Highlights */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-default: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.2);
  --border-brand: rgba(239, 68, 68, 0.48);
  --rim-top: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Text Scale (WCAG AA compliant on dark obsidian) */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #7c869c;

  /* Typography */
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout & Spacing */
  --container-max: 1180px;
  --container-pad: clamp(18px, 3vw, 28px);
  --shell: min(var(--container-max), calc(100vw - var(--container-pad) * 2));
  --header-h: 72px;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.36);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.52);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.72);
  --shadow-brand: 0 10px 30px rgba(220, 38, 38, 0.34);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-base: 240ms;
  --t-slow: 420ms;
}
