/* ==========================================
   Millennium Dawn - Design System
   CSS Variables, Reset, Typography
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg-deep: #020617;
  --bg-surface: #0f172a;
  --bg-elevated: #1e293b;
  --bg-panel: rgba(15, 23, 42, 0.85);
  --fg: #f8fafc;
  --fg-mute: #94a3b8;
  --fg-dim: #64748b;
  --accent: #38bdf8;
  --accent-dark: #0ea5e9;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.25);
  --success: #22c55e;
  --success-glow: rgba(34, 197, 94, 0.25);
  --warning: #fbbf24;
  --warning-glow: rgba(251, 191, 36, 0.25);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --panel-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --font-ui: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-deep);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .heading {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 1.75rem; margin-bottom: 1rem; }
h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--accent-dark); }

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
}
