/* ============================================
   Base Styles — Reset & Global
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-white);
  background-color: var(--color-black);
  overflow-x: hidden;
}

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

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

button, input {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Global Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: var(--leading-snug);
}

h2 {
  font-size: var(--text-h2);
  letter-spacing: var(--tracking-normal);
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-normal);
}

h4 {
  font-size: var(--text-h4);
  font-weight: 600;
}

p {
  max-width: 640px;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

/* --- Body text on dark/light --- */
.on-dark {
  color: var(--color-white);
}

.on-dark p,
.on-dark .body-text {
  color: rgba(255, 255, 255, 0.85);
}

.on-dark .text-muted {
  color: rgba(255, 255, 255, 0.6);
}

.on-light {
  color: var(--color-navy);
}

.on-light p,
.on-light .body-text {
  color: var(--color-gray-700);
}

.on-light .text-muted {
  color: var(--color-gray-500);
}

/* --- Honeypot (anti-bot) --- */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* --- Selection --- */
::selection {
  background: var(--color-red);
  color: var(--color-white);
}

/* --- Scroll animations base state --- */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll-indicator {
    animation: none !important;
  }
}

/* --- Responsive base --- */
@media (max-width: 1023px) {
  h2 { font-size: 40px; }
  h3 { font-size: 24px; }
  body { font-size: 17px; }
}

@media (max-width: 767px) {
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  body { font-size: var(--text-body-sm); }

  .container {
    padding: 0 20px;
  }
}
