:root {
  --bg: #0d0d0f;
  --bg-card: #141417;
  --bg-card-hover: #1a1a1f;
  --border: #2a2a35;
  --accent: #2563eb;
  --accent-rgb: 37, 99, 235;
  --accent-glow: rgba(37, 99, 235, 0.25);
  --accent-2: #60a5fa;
  --text: #e8e8f0;
  --text-muted: #7a7a92;
  --text-dim: #4a4a62;
  --nav-h: 65px;
}

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

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

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: inherit;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Page SPA system ── */
.pages-wrapper {
  padding-top: var(--nav-h);
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: page-in 0.38s ease forwards;
}

.page.page-exit {
  display: block;
  pointer-events: none;
  animation: page-out 0.32s ease forwards;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes page-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}

/* ── Reveal on page enter ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
