/* ==========================================================================
   IC7 — Design Tokens ("Crimson Circuit")
   Single source of truth for colour, type, space, motion and elevation.
   ========================================================================== */

:root {
  /* ---- Colour ---- */
  --color-bg: #0a0a0c;
  --color-bg-alt: #120b0d;
  --color-surface: #171113;
  --color-surface-2: #1e1517;
  --color-accent: #e1112f;
  --color-accent-2: #ff3b4e;
  --color-accent-dim: #8c0c21;
  --color-gold: #f5b942;
  --color-text-primary: #f5f1f2;
  --color-text-secondary: #b8a9ac;
  /* Muted text is lightened from the original #6E5C60, which failed WCAG AA
     contrast (2.4:1) on the dark surfaces. This clears 4.5:1 everywhere. */
  --color-text-muted: #9a8a8e;
  --color-border: #2a1b1e;
  --color-success: #33d17a;
  --color-error: #ff4444;
  --color-telegram: #26a5e4;
  --color-telegram-dark: #0088cc;

  /* ---- Typography ---- */
  --font-display: 'Orbitron', 'Rajdhani', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'DM Sans', 'Segoe UI', system-ui, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.65;
  --leading-loose: 1.8;

  /* ---- Spacing (4px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ---- Radius ---- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* ---- Elevation ---- */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 24px rgba(225, 17, 47, 0.35);
  --shadow-glow-strong: 0 0 48px rgba(255, 59, 78, 0.55);

  /* ---- Gradients ---- */
  --gradient-primary: linear-gradient(135deg, #e1112f 0%, #8c0c21 100%);
  --gradient-hero-bg:
    radial-gradient(circle at 20% 20%, rgba(225, 17, 47, 0.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(140, 12, 33, 0.15), transparent 50%), #0a0a0c;
  --gradient-text: linear-gradient(100deg, #fff 0%, #ffd7dd 35%, #ff3b4e 100%);

  /* ---- Motion ---- */
  --transition-fast: 150ms ease;
  --transition-normal: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 450ms ease;

  /* ---- Layers ---- */
  --z-nav: 100;
  --z-modal: 200;
  --z-toast: 300;

  /* ---- Layout ---- */
  --container-max: 1240px;
  --container-pad: var(--space-4);
  --header-h: 68px;
}

@media (min-width: 768px) {
  :root {
    --container-pad: var(--space-8);
    --header-h: 78px;
  }
}
