/* ─── THEME: Dark mode variables & base styles ─── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg: #0a0e1a;
  --surface: #111827;
  --surface2: #1e293b;
  --surface3: #0f172a;
  --border: #1e293b;
  --border-light: rgba(255,255,255,0.06);
  --text: #e2e8f0;
  --text2: #94a3b8;
  --text3: #64748b;
  --brand: #3b82f6;
  --brand2: #2563eb;
  --green: #4ade80;
  --red: #f87171;
  --yellow: #fbbf24;
  --cyan: #22d3ee;
  --purple: #a78bfa;
  --orange: #fb923c;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: cubic-bezier(0.25, 0.1, 0.25, 1);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
}

h1, h2, h3, h4 {
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s var(--transition);
}
a:hover { color: #60a5fa; }

::selection {
  background: rgba(59,130,246,0.3);
  color: var(--text);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ─── Utility colors ─── */
.green { color: var(--green); }
.red { color: var(--red); }
.blue { color: var(--brand); }
.yellow { color: var(--yellow); }
.cyan { color: var(--cyan); }
.purple { color: var(--purple); }
.orange { color: var(--orange); }
.muted { color: var(--text3); }

/* ─── Animations ─── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pulse { animation: pulse 2s ease-in-out infinite; }
.fade-in { animation: fadeIn 0.3s var(--transition) forwards; }
.slide-up { animation: slideUp 0.4s var(--transition) forwards; }

/* ─── Visibility ─── */
.hidden { display: none !important; }
