/* QuantTorch Design Tokens
   Source of truth: docs/BRAND_GUIDE.md
   4px base grid | Inter + JetBrains Mono | Dark theme only */

/* Fonts */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors — Primary */
  --color-bg-primary: #0a0e1a;
  --color-bg-secondary: #111827;
  --color-accent-cyan: #00d4ff;
  --color-accent-orange: #ff6b35;

  /* Colors — Text */
  --color-text-primary: #e5e7eb;
  --color-text-secondary: #9ca3af;
  --color-text-heading: #f9fafb;

  /* Colors — Borders & Surfaces */
  --color-border: #1f2937;
  --color-card-bg: #111827;
  --color-cyan-dim: rgba(0, 212, 255, 0.1);
  --color-orange-dim: rgba(255, 107, 53, 0.1);

  /* Colors — Semantic */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Typography — Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Typography — Sizes (clamp for fluid scaling) */
  --text-h1: clamp(2rem, 4vw, 3rem);
  --text-h2: clamp(1.75rem, 3vw, 2.25rem);
  --text-h3: clamp(1.25rem, 2vw, 1.5rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-caption: 0.75rem;
  --text-metric: 1rem;

  /* Typography — Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Typography — Line Heights */
  --lh-heading: 1.2;
  --lh-body: 1.6;
  --lh-tight: 1.3;

  /* Spacing — 4px base */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Layout */
  --container-max: 1200px;
  --container-padding: var(--space-6);
  --section-padding: var(--space-20);
  --card-gap: var(--space-6);
  --nav-height: 72px;

  /* Effects */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.4);
  --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.15);
  --glow-orange: 0 0 20px rgba(255, 107, 53, 0.15);

  --transition-fast: 150ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 300ms ease-out;

  /* Z-index scale */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 30;
  --z-modal: 40;
  --z-toast: 50;
}
