/* ============================================
   QUANTUM PARADOX — Base Styles
   Reset, Typography, Global
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* === Selection === */
::selection {
  background: var(--accent-blue);
  color: var(--text-bright);
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--metal-gunmetal);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue-dim);
}

/* === Typography === */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-heading);
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
}

h4, h5 {
  font-family: var(--font-subheading);
  color: var(--text-heading);
  line-height: 1.3;
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
}

h5 {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
}

p {
  margin-bottom: var(--space-md);
  max-width: 70ch;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-blue-bright);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Utility Classes === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.text-accent {
  color: var(--accent-blue);
}

.text-glow {
  color: var(--accent-blue);
  text-shadow: 0 0 10px var(--accent-blue-glow), 0 0 30px rgba(0, 102, 255, 0.3);
}

.text-silver {
  color: var(--metal-silver);
}

.text-center {
  text-align: center;
}

.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section--compact {
  padding: var(--space-3xl) 0;
}

/* === Section Heading === */
.section-heading {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-heading h2 {
  margin-bottom: var(--space-md);
}

.section-heading .subtitle {
  font-family: var(--font-subheading);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === Divider === */
.divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  margin: var(--space-xl) auto;
}

.divider--wide {
  width: 200px;
}

/* === Reveal Animation Base === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}
