:root {
  --asv-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --asv-navy: #041B3D;
  --asv-blue: #2563FF;
  --asv-blue-2: #3B82F6;
  --asv-dark: #020817;
  --asv-dark-card: #07152E;
  --asv-light: #F7FAFF;
  --asv-white: #FFFFFF;
  --asv-text: #0F172A;
  --asv-muted: #64748B;
  --asv-border: rgba(15, 23, 42, .10);
  --asv-shadow: 0 24px 80px rgba(2, 8, 23, .10);
  --asv-gradient: linear-gradient(135deg, #041B3D 0%, #2563FF 100%);
  --asv-glow: 0 0 0 1px rgba(37, 99, 255, .14), 0 20px 60px rgba(37, 99, 255, .18);
  --header-h: 96px;
}

[data-bs-theme="dark"] {
  --asv-light: #020817;
  --asv-white: #07152E;
  --asv-text: #F8FAFC;
  --asv-muted: #A8B0C2;
  --asv-border: rgba(255, 255, 255, .12);
  --asv-shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--asv-font);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 255, .08), transparent 34rem),
    var(--asv-light);
  color: var(--asv-text);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s ease, transform .25s ease, opacity .25s ease;
}

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 9999;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--asv-blue);
  color: #fff;
}

.skip-link:focus { top: 16px; }

.container-xxl {
  max-width: 1440px;
}

.btn-primary-gradient {
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  padding: .95rem 1.45rem;
  background: linear-gradient(135deg, #2563FF 0%, #004CFF 100%);
  box-shadow: 0 14px 35px rgba(37, 99, 255, .34);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 18px 45px rgba(37, 99, 255, .44);
}

.site-header {
  z-index: 1030;
  padding: 1.25rem;
  transition: padding .3s ease;
}

.asv-navbar {
  min-height: var(--header-h);
  padding: .65rem 1.75rem;
  border: 1px solid var(--asv-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--asv-shadow);
  backdrop-filter: blur(22px);
}

[data-bs-theme="dark"] .asv-navbar {
  background: rgba(2, 8, 23, .86);
}

.site-header.is-scrolled {
  padding-block: .6rem;
}

.site-header.is-scrolled .asv-navbar {
  min-height: 76px;
}

.brand-logo {
  width: clamp(190px, 16vw, 268px);
  height: auto;
}

[data-bs-theme="light"] .brand-logo-dark,
[data-bs-theme="dark"] .brand-logo-light {
  display: none !important;
}

.navbar-nav .nav-link {
  color: var(--asv-text);
  font-size: clamp(.92rem, .7vw + .35rem, 1rem);
  font-weight: 600;
  padding: .8rem .9rem !important;
  border-radius: 999px;
}

.navbar-nav .nav-link:hover,
.dropdown-mega-trigger.is-active .nav-link {
  color: var(--asv-blue);
  background: rgba(37, 99, 255, .08);
}

.nav-divider {
  width: 1px;
  height: 34px;
  background: var(--asv-border);
}

.theme-toggle {
  width: 74px;
  height: 42px;
  border: 1px solid var(--asv-border);
  border-radius: 999px;
  background: rgba(148, 163, 184, .13);
  display: inline-flex;
  align-items: center;
  justify-content: space-around;
  color: var(--asv-text);
  position: relative;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  left: 4px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(2, 8, 23, .14);
  transition: transform .28s ease;
}

[data-bs-theme="dark"] .theme-toggle::before {
  transform: translateX(32px);
  background: #0B1933;
}

.theme-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}

[data-bs-theme="light"] .theme-icon-light,
[data-bs-theme="dark"] .theme-icon-dark {
  color: var(--asv-blue);
}

/* Mega menu */
.mega-menu-layer {
  position: absolute;
  top: calc(100% - 1.35rem);
  left: 0;
  right: 0;
  pointer-events: none;
}

.mega-menu-panel {
  position: relative;
  width: min(980px, calc(100vw - 4rem));
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--asv-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 28px 90px rgba(2, 8, 23, .16);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

[data-bs-theme="dark"] .mega-menu-panel {
  background: rgba(2, 12, 30, .96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

.mega-menu-panel.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

#industriesMegaMenu {
  display: none;
}

#industriesMegaMenu.is-visible {
  display: block;
}

#servicesMegaMenu:not(.is-visible) {
  display: none;
}

.mega-menu-arrow {
  position: absolute;
  top: -9px;
  left: 170px;
  width: 18px;
  height: 18px;
  background: inherit;
  border-left: 1px solid var(--asv-border);
  border-top: 1px solid var(--asv-border);
  transform: rotate(45deg);
}

.mega-menu-arrow-industries {
  left: 300px;
}

.mega-eyebrow,
.footer-title {
  color: var(--asv-blue);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  position: relative;
}

.mega-eyebrow::after,
.footer-title::after,
.footer-tagline::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: .55rem;
  background: var(--asv-blue);
}

.mega-border-end {
  border-right: 1px solid var(--asv-border);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.7rem;
}

.mega-link {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .62rem;
  border-radius: 14px;
  font-weight: 700;
  color: var(--asv-text);
}

.mega-link:hover {
  color: var(--asv-blue);
  background: rgba(37, 99, 255, .08);
  transform: translateX(4px);
}

.mega-icon,
.footer-contact i,
.mega-feature-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 10px;
  color: var(--asv-blue);
  background: rgba(37, 99, 255, .10);
}

.mega-feature-card {
  min-height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--asv-border);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(37,99,255,.10), rgba(255,255,255,.02));
  display: grid;
  gap: 1rem;
}

.mega-feature-card strong {
  font-size: clamp(1.2rem, 1vw + .8rem, 1.6rem);
  line-height: 1.25;
}

.mega-feature-card span {
  color: var(--asv-muted);
}

.mega-feature-card a {
  color: var(--asv-blue);
  font-weight: 800;
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: clamp(4rem, 6vw, 7.5rem);
  overflow: hidden;
  background: rgba(255, 255, 255, .76);
  border-top: 1px solid var(--asv-border);
}

[data-bs-theme="dark"] .site-footer {
  background:
    radial-gradient(circle at left bottom, rgba(37, 99, 255, .12), transparent 28rem),
    #020817;
}

.footer-main {
  padding: clamp(4.5rem, 7vw, 7.5rem) 0 4rem;
}

.footer-text,
.footer-contact,
.footer-links a,
.footer-bottom p {
  color: var(--asv-muted);
}

.footer-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 2.5rem 0;
  border-radius: 18px;
  overflow: hidden;
}

.footer-stats div {
  padding: .6rem;
  text-align: center;
  border-right: 1px solid var(--asv-border);
}

.footer-stats div:last-child {
  border-right: 0;
}

.footer-stats i {
  display: block;
  color: var(--asv-blue);
  font-size: 1.5rem;
  margin-bottom: .3rem;
}

.footer-stats strong {
  display: block;
  color: var(--asv-blue);
  font-size: clamp(1.1rem, 1vw + .65rem, 1.45rem);
}

.footer-stats span {
  display: block;
  color: var(--asv-muted);
  font-size: .86rem;
}

.footer-ai-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--asv-border);
  border-radius: 14px;
  background: rgba(37, 99, 255, .05);
}

.footer-ai-card i {
  font-size: 2rem;
  color: var(--asv-blue);
}

.footer-ai-card strong,
.footer-ai-card span {
  display: block;
}

.footer-ai-card span {
  margin-top: .25rem;
  color: var(--asv-muted);
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li,
.footer-contact li + li {
  margin-top: 1rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}

.footer-links a::before {
  content: "›";
  color: var(--asv-blue);
  font-size: 1.35rem;
  line-height: 1;
}

.footer-links-icons a::before {
  display: none;
}

.footer-links-icons i {
  color: var(--asv-blue);
  width: 1.2rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--asv-blue);
  transform: translateX(4px);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
}

.footer-cta {
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid rgba(37, 99, 255, .32);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 255, .20), transparent 10rem),
    rgba(37, 99, 255, .05);
  box-shadow: var(--asv-glow);
}

.footer-cta > i {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: var(--asv-blue);
  background: rgba(37, 99, 255, .10);
  font-size: 1.8rem;
}

.footer-cta strong {
  display: block;
  margin-bottom: 1.4rem;
  font-size: clamp(1.35rem, 1vw + .9rem, 1.8rem);
  line-height: 1.28;
}

.footer-trust {
  border-top: 1px solid var(--asv-border);
  border-bottom: 1px solid var(--asv-border);
  padding: 1.8rem 0;
}

.footer-trust .container-xxl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-trust span {
  color: var(--asv-text);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer-trust strong {
  color: var(--asv-muted);
  font-size: clamp(1.1rem, 1vw + .7rem, 1.6rem);
  opacity: .82;
}

.footer-bottom {
  padding: 2rem 0;
}

.footer-bottom .container-xxl {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.footer-legal span {
  width: 1px;
  height: 28px;
  background: var(--asv-border);
}

.footer-legal a {
  color: var(--asv-muted);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.footer-tagline {
  justify-self: end;
  color: var(--asv-text) !important;
  font-weight: 700;
}

.footer-tagline span {
  color: var(--asv-blue);
}

/* Offcanvas */
.mobile-offcanvas {
  background: var(--asv-white);
  color: var(--asv-text);
}

.mobile-nav {
  gap: .25rem;
}

.mobile-nav a,
.mobile-submenu-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: .95rem 0;
  border: 0;
  border-bottom: 1px solid var(--asv-border);
  background: transparent;
  color: var(--asv-text);
  font-weight: 700;
  text-align: left;
}

.mobile-nav .collapse a {
  padding-left: 1rem;
  color: var(--asv-muted);
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 255, .45);
  outline-offset: 3px;
}
