/* ═══════════════════════════════════════
   Base — Reset, Body, Typography, Utilities
═══════════════════════════════════════ */

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

main { position: relative; }

section {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
}

/* ── Typography ── */

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 6vw, 88px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p {
  color: var(--steel-light);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

/* ── Layout Utilities ── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--steel-mid);
  display: block;
  margin-bottom: 24px;
}

.section-header { margin-bottom: 80px; }

.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 16px 0 24px;
}

.cta-inner .divider,
[style*="text-align:center"] .divider {
  margin-left: auto;
  margin-right: auto;
}

/* ── Reveal Animations ──
   Default visible; hidden only when JS adds .js-ready */

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(40px);
}

.js-ready .reveal.visible {
  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.35s; }
.reveal-delay-4 { transition-delay: 0.5s; }

/* ── Section semi-transparent backgrounds (stars show through) ── */

#problem { background: rgba(2, 2, 6, 0.82) !important; }
#demo { background: rgba(2, 2, 6, 0.82) !important; }
#technology { background: rgba(2, 2, 6, 0.82) !important; }
#implementation { background: rgba(2, 2, 6, 0.82) !important; }
#contact { background: rgba(2, 2, 6, 0.82) !important; }
#testimonials { background: rgba(3, 3, 8, 0.78) !important; }
#system { background: rgba(3, 3, 8, 0.78) !important; }
#industries { background: rgba(3, 3, 8, 0.78) !important; }
#results { background: rgba(3, 3, 8, 0.78) !important; }
#cta { background: rgba(3, 3, 8, 0.72) !important; }
#hero { background: transparent !important; }

/* ── Flicker animation class ── */
.flicker { animation: flicker 0.35s ease; }

/* ── Light sweep overlay ── */
.light-sweep {
  position: fixed;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.02), transparent);
  pointer-events: none;
  z-index: 9996;
  animation: sweep 3s ease-out 0.5s forwards;
}

/* ── Starfield canvas ── */
#neural-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}
