/* ==========================================================================
   base.css — global resets, scrollbar, typography, preloader
   ========================================================================== */

* {
  scrollbar-width: none;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
}

/* --- Preloader ---------------------------------------------------------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-ring {
  width: 60px;
  height: 60px;
  border: 3px solid transparent;
  border-top: 3px solid var(--color-neon-blue);
  border-right: 3px solid var(--color-neon-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
