/* ==========================================================================
   Reset, Typography & Utilities
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

img, svg {
  max-width: 100%;
  height: auto;
}

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

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

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

/* --- Dynamic background canvas --- */
#networkCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;  /* let clicks pass through to content */
}

/* Ensure all content sits above the canvas */
.navbar,
.hero,
.stats-bar,
.carousel-section,
.services,
.engineering,
.training-section,
.deployment-section,
.maintenance-section,
.platforms,
.focus-areas,
.cta-section,
.footer,
.page-hero,
.solutions-section,
.docs-section,
.newsletter-section,
.newsletter-benefits,
.about-mission,
.about-services,
.about-values,
.about-contact,
.training-overview,
.training-formats,
.training-curriculum,
.deploy-overview,
.deploy-phases,
.deploy-maintenance,
.article-section,
.suppliers,
.legal-content,
.search-overlay {
  position: relative;
  z-index: 1;
}

/* --- Scroll animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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