:root {
  --rivercode-navy: #0b2545;
  --rivercode-blue: #0284c7;
  --rivercode-ink: #0f172a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #fff;
  color: #1e293b;
  font-family: "Inter", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
}

.hero-bg {
  background:
    radial-gradient(circle at 82% 20%, rgba(56, 189, 248, 0.22), transparent 32%),
    radial-gradient(circle at 10% 86%, rgba(14, 165, 233, 0.12), transparent 32%),
    linear-gradient(135deg, #071a31 0%, #0b2545 44%, #075985 100%);
}

.grid-glow {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.glass {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
}

.section-label {
  letter-spacing: 0.18em;
}

.nav-shadow {
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.75rem 1rem;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.55);
  outline-offset: 3px;
}

@media (max-width: 639px) {
  #mobileMenu a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
