/* ═══════════════════════════════════════════════
   BASE — CSS custom properties, reset, typography
   ═══════════════════════════════════════════════ */

:root {
  /* Dark theme (default) */
  --bg:        #0a0e1a;
  --bg2:       #0f1629;
  --bg3:       #1a2235;
  --border:    rgba(59, 130, 246, 0.18);
  --text:      #e2e8f0;
  --muted:     #94a3b8;
  --accent:    #3b82f6;
  --accent2:   #06b6d4;
  --green:     #10b981;
  --gradient:  linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --gradient2: linear-gradient(135deg, #6366f1 0%, #3b82f6 55%, #06b6d4 100%);
  --shadow:    0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.65);
  --radius:    12px;
  --radius-sm: 8px;
  --nav-h:     64px;
  --transition: 0.3s ease;
}

[data-theme="light"] {
  --bg:        #f0f4ff;
  --bg2:       #e8eef8;
  --bg3:       #ffffff;
  --border:    rgba(37, 99, 235, 0.16);
  --text:      #0f172a;
  --muted:     #64748b;
  --accent:    #2563eb;
  --accent2:   #0891b2;
  --green:     #059669;
  --gradient:  linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  --gradient2: linear-gradient(135deg, #4f46e5 0%, #2563eb 55%, #0891b2 100%);
  --shadow:    0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* ─── Utilities ─── */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 2rem;
}

.mono    { font-family: 'JetBrains Mono', 'Fira Code', monospace; }
.accent  { color: var(--accent); }
.muted   { color: var(--muted); }
.mt-sm   { margin-top: 0.75rem; }

.gradient-text {
  background: var(--gradient2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: inherit; cursor: pointer; }
