* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', sans-serif; color: #2D3748; }

/* Noise texture overlay */
.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

/* Layered shadows */
.shadow-elevated {
  box-shadow:
    0 1px 2px rgba(0, 51, 160, 0.04),
    0 4px 8px rgba(0, 51, 160, 0.06),
    0 12px 24px rgba(0, 51, 160, 0.08);
}
.shadow-floating {
  box-shadow:
    0 2px 4px rgba(0, 51, 160, 0.04),
    0 8px 16px rgba(0, 51, 160, 0.06),
    0 24px 48px rgba(0, 51, 160, 0.1);
}

/* Spring easing */
.spring { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gradient line accent */
.accent-line {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, #CC6600, #0033A0);
  border-radius: 2px;
}

/* Icon containers */
.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0033A0 0%, #3366CC 100%);
  flex-shrink: 0;
}

/* Hero pattern */
.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(51, 102, 204, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(204, 102, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(0, 51, 160, 0.06) 0%, transparent 45%);
}

/* Network canvas */
#network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Nav shrink on scroll */
.nav-scrolled {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  box-shadow: 0 2px 12px rgba(0, 51, 160, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* Screen reader only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Float animation */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}
