/* ==========================================================================
   Pioneer Traders — Design Tokens
   Three layers: Primitive (raw) → Semantic (purpose) → Component (usage)
   Direction: "Midnight Frontier" — dark luxury, emerald bull / rose bear,
   gold reserved for premium accents and the north-star brand spark.
   ========================================================================== */

:root {
  /* ---------- PRIMITIVE: colour ---------- */
  --ink-950: #04070d;
  --ink-900: #070b14;
  --ink-850: #0a101c;
  --ink-800: #0e1626;
  --ink-700: #152036;
  --ink-600: #1e2c47;
  --ink-500: #2b3c5c;
  --ink-400: #51648a;
  --ink-300: #8494b4;
  --ink-200: #b4c0d8;
  --ink-100: #dfe6f3;
  --ink-50: #f3f6fb;

  --emerald-300: #7cf5cf;
  --emerald-400: #3debb3;
  --emerald-500: #16d99b;
  --emerald-600: #0db584;
  --emerald-700: #088a66;

  --gold-300: #f7dc96;
  --gold-400: #f0c75e;
  --gold-500: #e3ad3b;
  --gold-600: #b9861f;

  --rose-400: #ff7089;
  --rose-500: #ff4d6d;
  --rose-600: #e0304f;

  --azure-400: #5aa8ff;
  --azure-500: #2f86ff;

  /* ---------- PRIMITIVE: type ---------- */
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.075rem, 1rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --text-2xl: clamp(1.6rem, 1.25rem + 1.6vw, 2.5rem);
  --text-3xl: clamp(2.1rem, 1.4rem + 3vw, 3.75rem);
  --text-hero: clamp(2.6rem, 1.2rem + 5.2vw, 5.6rem);

  /* ---------- PRIMITIVE: space / radius / motion ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --duration-fast: 160ms;
  --duration-normal: 320ms;
  --duration-slow: 700ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* ---------- SEMANTIC ---------- */
  --color-bg: var(--ink-900);
  --color-bg-deep: var(--ink-950);
  --color-surface: var(--ink-850);
  --color-surface-raised: var(--ink-800);
  --color-surface-glass: rgba(14, 22, 38, 0.58);
  --color-border: rgba(132, 148, 180, 0.14);
  --color-border-strong: rgba(132, 148, 180, 0.28);

  --color-text: var(--ink-50);
  --color-text-muted: var(--ink-300);
  --color-text-subtle: var(--ink-400);

  --color-primary: var(--emerald-500);
  --color-primary-hover: var(--emerald-400);
  --color-primary-ink: #03140e;
  --color-accent: var(--gold-400);
  --color-up: var(--emerald-500);
  --color-down: var(--rose-500);
  --color-info: var(--azure-400);
  --color-focus: var(--gold-300);

  --glow-primary: 0 0 0 1px rgba(22, 217, 155, 0.35), 0 10px 40px -8px rgba(22, 217, 155, 0.55);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 16px 40px -16px rgba(0, 0, 0, 0.6);

  /* ---------- COMPONENT ---------- */
  --btn-height: 3rem;
  --btn-radius: var(--radius-pill);
  --btn-primary-bg: var(--color-primary);
  --btn-primary-bg-hover: var(--color-primary-hover);
  --btn-primary-text: var(--color-primary-ink);
  --btn-ghost-border: var(--color-border-strong);

  --card-bg: var(--color-surface);
  --card-border: var(--color-border);
  --card-radius: var(--radius-lg);

  --header-height: 4.5rem;
  --riskbar-height: 2.25rem;
  --container-max: 1240px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
}
