/* OrbitOS Design Tokens — Single source of truth */
:root {
  /* Background layers (darkest → lightest) */
  --bg-base: #121824;
  --bg-app: #162031;
  --bg-surface: #1c2940;
  --bg-raised: #23324b;
  --bg-overlay: #2a3b58;

  /* Text */
  --text-primary: #f5f8fd;
  --text-secondary: #c5d0e0;
  --text-muted: #8e9bb0;
  --text-inverse: #121824;

  /* Borders */
  --border: rgba(148, 168, 200, 0.12);
  --border-strong: rgba(148, 168, 200, 0.22);
  --border-focus: rgba(66, 140, 255, 0.5);

  /* Accent — blue */
  --accent: #428cff;
  --accent-soft: rgba(66, 140, 255, 0.12);
  --accent-border: rgba(66, 140, 255, 0.3);
  --accent-hover: #5a9eff;

  /* Semantic colors */
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.1);
  --ok-border: rgba(52, 211, 153, 0.25);

  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.1);
  --warn-border: rgba(251, 191, 36, 0.25);

  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.1);
  --danger-border: rgba(248, 113, 113, 0.25);

  --purple: #a78bfa;
  --purple-soft: rgba(167, 139, 250, 0.1);
  --purple-border: rgba(167, 139, 250, 0.25);

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

  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 13px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 26px;
  --text-3xl: 32px;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 150ms;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
