.section-heading,
.hero-section,
.site-header,
.brand-logo img {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Keep will-change narrowly scoped to elements that animate frequently */
.nav-links .nav-link::after,
.brand-logo img {
  will-change: width, transform;
}

.section-padding {
  padding: var(--space-9) 0;
}

.section-padding-tight {
  padding: var(--space-6) 0;
}

.bg-section {
  background:
    radial-gradient(circle at top left, rgba(0, 160, 255, 0.16), transparent 55%),
    linear-gradient(180deg, #050816, #060b1a);
}

.bg-alt {
  background:
    radial-gradient(circle at bottom right, rgba(0, 102, 255, 0.18), transparent 55%),
    linear-gradient(180deg, #050816, #0b1020);
}

.section-heading {
  max-width: 40rem;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-heading h2 {
  font-weight: 600;
  font-size: 1.9rem;
}

.section-heading p {
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-soft);
  margin-bottom: 0.4rem;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  /* Reduce blur to improve rendering performance on macOS Chrome — large blurs are expensive and cause full-page repaints */
  backdrop-filter: blur(6px);
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 22, 0.98),
    rgba(5, 8, 22, 0.85),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* macOS Chrome specific overrides: turn off heavy backdrop-filter to avoid hover repaint glitches */
.mac-chrome .site-header {
  backdrop-filter: none;
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 22, 0.98),
    rgba(5, 8, 22, 0.98),
    rgba(5, 8, 22, 0.98)
  );
}

.primary-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-brand {
  padding: 0.4rem 0;
}

.brand-logo img {
  height: 38px;
  width: auto;
  display: block;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-weight: 600;
  font-size: 1rem;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 0.9rem;
  transition: color 0.25s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--primary-blue);
}


.hero-section {
  position: relative;
  min-height: 85vh;
  padding: 6rem 0 4rem;
  background:
    radial-gradient(circle at top left, rgba(0, 160, 255, 0.28), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 102, 255, 0.2), transparent 45%),
    linear-gradient(135deg, #050816, #050816);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 55%);
}

.hero-title {
  font-weight: 700;
  font-size: clamp(2.3rem, 3.2vw, 3.1rem);
  line-height: 1.15;
}

.hero-tagline {
  margin-top: 0.6rem;
  font-size: 1.25rem;
  color: var(--accent-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(0, 160, 255, 0.35);
}

.hero-subtitle {
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 34rem;
}


@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 5.2rem;
  }

  .navbar-dark .navbar-nav .nav-link {
    padding-left: 0;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1.05rem;
  }

  .section-padding {
    padding: 3.5rem 0;
  }
}

.navbar-brand .brand-logo img {
  height: 40px;
  width: auto;
}

.navbar-brand .brand-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.navbar-brand .brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-links .nav-link {
  position: relative;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color .2s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.nav-links .nav-link:hover,
.nav-links .nav-link:focus {
  color: var(--accent-soft);
}

.nav-links .nav-link::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0%;
  height: 2px;
  background: var(--accent-soft);
  transform: translateX(-50%) translateZ(0);
  transition:
    width 0.25s ease,
    background-color 0.25s ease;
  will-change: width;
  backface-visibility: hidden;
}

.nav-links .nav-link:hover::after,
.nav-links .nav-link.active::after {
  width: 60%;
}

@media (max-width: 991px) {
  .nav-links .nav-link::after {
    display: none;
  }

  .nav-links .nav-link {
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 576px) {
  .cta-band .btn,
  .process-cta .btn,
  .services-final-cta .btn,
  .hosting-final-cta .btn {
    width: 100%;
    margin: 0.5rem 0 !important;
    display: block;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar-nav .nav-link {
    padding-left: 1.2rem !important;
  }
}
.offcanvas,
.navbar-collapse {
  padding-left: 1.2rem !important;
}
