:root {
  --container: 1440px !important;
  --primary: #0a66c2;
  --primary-dark: #001f3f;
  --primary-light: #eaf6ff;
  --light-blue: #00aeef;
  --green: #4caf50;
  --light-green: #8bc34a;
  --shell-dark: #010c1c;
}

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  background: #fff;
  color: var(--text-primary, #0d0d0d);
  font-family: var(--font, 'Inter', sans-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.hx-menu-open { overflow: hidden; }

.hx-hero--image {
  background-color: var(--shell-dark);
  background-image:
    linear-gradient(90deg, rgba(1, 12, 28, 0.94) 0%, rgba(1, 12, 28, 0.78) 42%, rgba(1, 12, 28, 0.58) 100%),
    linear-gradient(180deg, rgba(1, 12, 28, 0.5) 0%, rgba(1, 12, 28, 0.98) 100%),
    var(--hero-image) !important;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hx-hero--home { --hero-image: url('/assets/hero-images/hero-home-higgsfield.webp'); background-position: center 47%; }
.hx-hero--home.hx-hero--image {
  background-image:
    linear-gradient(90deg, rgba(1, 12, 28, 0.82) 0%, rgba(1, 12, 28, 0.5) 46%, rgba(1, 12, 28, 0.42) 100%),
    linear-gradient(180deg, rgba(1, 12, 28, 0.18) 0%, rgba(1, 12, 28, 0.8) 100%),
    var(--hero-image) !important;
}
.hx-hero--about { --hero-image: url('/assets/hero-images/hero-support-engineer.webp'); background-position: center; }
.hx-hero--contact { --hero-image: url('/assets/hero-images/hero-home-operations.webp'); background-position: center 42%; }
.hx-hero--cyber { --hero-image: url('/assets/hero-images/hero-cyber-security.webp'); background-position: center; }
.hx-hero--endpoint { --hero-image: url('/assets/hero-images/hero-integration-hub.webp'); background-position: center; }
.hx-hero--data { --hero-image: url('/assets/hero-images/hero-data-growth.webp'); background-position: center; }
.hx-hero--support-management { --hero-image: url('/assets/hero-images/hero-operations-room.webp'); background-position: center; }
.hx-hero--helpdesk { --hero-image: url('/assets/hero-images/hero-support-engineer.webp'); background-position: center; }
.hx-hero--infrastructure { --hero-image: url('/assets/hero-images/hero-infrastructure-uptime.webp'); background-position: center; }
.hx-hero--hardware { --hero-image: url('/assets/hero-images/hero-zero-complexity.webp'); background-position: center; }
.hx-hero--vendor { --hero-image: url('/assets/hero-images/hero-integration-hub.webp'); background-position: center; }

.hx-contact-hero.hx-hero--image {
  background-color: var(--shell-dark);
  background-image:
    radial-gradient(circle at 18% 18%, rgba(10, 102, 194, 0.18), transparent 32%),
    radial-gradient(circle at 78% 8%, rgba(76, 175, 80, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(1, 12, 28, 0.95) 0%, rgba(1, 12, 28, 0.74) 48%, rgba(1, 12, 28, 0.9) 100%),
    var(--hero-image) !important;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hx-hero--image .hx-hero__grid,
.hx-hero--image .hx-hero__grid-bg,
.hx-hero--image .hx-hero__bg-grid,
.hx-hero--image .hx-hero__hex,
.hx-hero--image .hx-hero__texture {
  opacity: 0.45;
  mix-blend-mode: screen;
}

.hx-hero--image .hx-hero__glow,
.hx-hero--image .hx-hero__glow-2,
.hx-hero--image .hx-hero__glow-c,
.hx-hero--image .hx-hero__glow-r,
.hx-hero--image .hx-hero__glow-l,
.hx-hero--image .hx-hero__glow-tl,
.hx-hero--image .hx-hero__glow-br {
  opacity: 0.78;
}

.hx-hero--image .hx-threat-panel,
.hx-hero--image .hx-fleet-panel,
.hx-hero--image .hx-data-monitor,
.hx-hero--image .hx-vendor-panel,
.hx-hero--image .hx-infra-console,
.hx-hero--image .hx-asset-dashboard,
.hx-hero--image .hx-manager-dashboard,
.hx-hero--image .hx-support-panel,
.hx-contact-hero.hx-hero--image .hx-contact-hero__aside {
  background: rgba(1, 12, 28, 0.7);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}

.hx-hero--image .hx-hero__sub,
.hx-hero--image .hx-hero__trust-text,
.hx-hero--image .hx-hero__proof-text,
.hx-contact-hero.hx-hero--image .hx-contact-hero__sub {
  color: #b6c2d4;
}

.hx-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--shell-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hx-nav__inner {
  width: min(100%, var(--container));
  height: 106px;
  margin: 0 auto;
  padding: 0 clamp(40px, 5.55vw, 80px);
  display: flex;
  align-items: center;
  gap: 56px;
}

.hx-nav__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
}

.hx-nav__logo img {
  width: 224px;
  height: auto;
  display: block;
  object-fit: contain;
}

.hx-nav__logo-text { display: none; }

.hx-nav__links {
  margin-left: auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.hx-nav__item {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.hx-nav__menu-link {
  min-width: 138px;
  min-height: 60px;
  padding: 10px 10px 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font, 'Inter', sans-serif);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.hx-nav__menu-link::after {
  content: '';
  height: 2px;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--light-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.hx-nav__menu-link:hover::after,
.hx-nav__menu-link:focus-visible::after,
.hx-nav__menu-link[aria-current='page']::after,
.hx-nav__item--services:hover .hx-nav__menu-link::after,
.hx-nav__item--services:focus-within .hx-nav__menu-link::after { transform: scaleX(1); }

.hx-nav__menu-title {
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

.hx-nav__menu-meta {
  margin-top: 2px;
  color: #d2d6dc;
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}

.hx-nav__services-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hx-nav__chevron {
  width: 8px;
  height: 8px;
  margin-right: 2px;
  border-right: 1.5px solid #d2d6dc;
  border-bottom: 1.5px solid #d2d6dc;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.hx-nav__item--services:hover .hx-nav__chevron,
.hx-nav__item--services:focus-within .hx-nav__chevron,
.hx-nav__item--services.hx-services-open .hx-nav__chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.hx-nav__dropdown {
  width: 390px;
  padding: 10px 0;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 120;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 22px 46px rgba(0, 15, 35, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hx-nav__item--services:hover .hx-nav__dropdown,
.hx-nav__item--services:focus-within .hx-nav__dropdown,
.hx-nav__item--services.hx-services-open .hx-nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hx-nav__dropdown a {
  padding: 10px 14px;
  display: block;
  text-decoration: none;
  transition: background 0.16s ease;
}

.hx-nav__dropdown a:hover,
.hx-nav__dropdown a:focus-visible { background: #f4f7fa; }

.hx-nav__dropdown-title {
  display: block;
  color: #646464;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

.hx-nav__dropdown-meta {
  margin-top: 2px;
  display: block;
  color: #777;
  font-size: 12px;
  font-style: italic;
  line-height: 1.3;
}

.hx-nav__cta {
  display: none;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(10, 102, 194, 0.24);
  transition: background 0.18s ease, transform 0.18s ease;
}

.hx-nav__cta:hover {
  background: #07549f;
  transform: translateY(-1px);
}

.hx-nav__toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}

.hx-nav__toggle span,
.hx-nav__toggle::before,
.hx-nav__toggle::after {
  content: '';
  width: 18px;
  height: 2px;
  position: absolute;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hx-nav__toggle::before { transform: translateY(-6px); }
.hx-nav__toggle::after { transform: translateY(6px); }
.hx-menu-open .hx-nav__toggle span { opacity: 0; }
.hx-menu-open .hx-nav__toggle::before { transform: rotate(45deg); }
.hx-menu-open .hx-nav__toggle::after { transform: rotate(-45deg); }

.hx-nav a:focus-visible,
.hx-nav button:focus-visible,
.hx-nav__toggle:focus-visible,
.hx-footer a:focus-visible,
.hx-btn:focus-visible {
  outline: 3px solid var(--light-blue);
  outline-offset: 3px;
}

.hx-footer {
  padding: 68px 32px 34px;
  background: var(--shell-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.hx-footer__inner {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding-bottom: 52px;
  display: grid;
  grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(150px, 1fr));
  gap: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hx-footer__brand-lockup {
  display: inline-block;
  margin-bottom: 18px;
  text-decoration: none;
}

.hx-footer__brand-lockup img {
  width: 214px;
  height: auto;
  object-fit: contain;
  display: block;
}

.hx-footer__brand-lockup span { display: none; }

.hx-footer__tagline,
.hx-footer__brand-desc {
  max-width: 340px;
  color: #7f8da3;
  font-size: 14px;
  line-height: 1.7;
}

.hx-footer__badges {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hx-footer__badge {
  padding: 5px 10px;
  border: 1px solid rgba(0, 174, 239, 0.18);
  border-radius: 5px;
  color: #8acfe9;
  background: rgba(0, 174, 239, 0.05);
  font-size: 11px;
  font-weight: 600;
}

.hx-footer__col-title {
  margin-bottom: 19px;
  color: #d8e1ee;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hx-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.hx-footer__links a {
  color: #7f8da3;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.18s ease;
}

.hx-footer__links a:hover { color: #fff; }

.hx-footer__bottom {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hx-footer__copy,
.hx-footer__status {
  color: #58677d;
  font-size: 13px;
}

.hx-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hx-footer__status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.12);
}

.hx-scroll-top {
  width: 48px;
  height: 48px;
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 38px rgba(10, 102, 194, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.hx-scroll-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hx-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hx-scroll-top:hover {
  background: #07549f;
  box-shadow: 0 18px 44px rgba(10, 102, 194, 0.42);
}

.hx-scroll-top:focus-visible {
  outline: 3px solid var(--light-blue);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .hx-scroll-top { display: none; }

  .hx-nav__inner { height: 72px; padding: 0 24px; }
  .hx-nav__logo img { width: 174px; }
  .hx-nav__toggle { display: inline-flex; }
  .hx-nav__toggle { margin-left: auto; }
  .hx-nav__links {
    position: absolute;
    top: calc(100% + 1px);
    left: 18px;
    right: 18px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--shell-dark);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .hx-menu-open .hx-nav__links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hx-nav__dropdown a { display: block; }

  .hx-nav__item {
    width: 100%;
    height: auto;
    display: block;
  }

  .hx-nav__menu-link {
    width: 100%;
    min-height: 0;
    padding: 13px 12px;
  }

  .hx-nav__menu-link::after { display: none; }

  .hx-nav__menu-meta { white-space: normal; }

  .hx-nav__dropdown {
    width: auto;
    max-height: 0;
    margin: 0 8px;
    padding: 0;
    position: static;
    overflow: hidden;
    border: 0;
    background: #fff;
    box-shadow: none;
    opacity: 1;
    pointer-events: none;
    transform: none;
    transition: max-height 0.24s ease, padding 0.24s ease;
  }

  .hx-nav__item--services.hx-services-open .hx-nav__dropdown {
    max-height: 620px;
    padding: 8px 0;
    pointer-events: auto;
  }

  .hx-footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 44px;
  }

  .hx-footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .hx-nav__inner {
    height: 96px;
    gap: 34px;
    padding: 0 34px;
  }

  .hx-nav__logo img { width: 184px; }
  .hx-nav__links { gap: 24px; }
  .hx-nav__menu-link { min-width: 126px; }
  .hx-nav__menu-meta { font-size: 11px; }
}

@media (max-width: 640px) {
  .hx-nav__inner {
    width: min(100%, 390px);
    height: 68px;
    margin-left: 0;
    padding: 0 18px;
    gap: 12px;
  }

  .hx-nav__logo img { width: 158px; height: auto; }
  .hx-footer { padding: 56px 20px 28px; }
  .hx-footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .hx-footer__brand { grid-column: auto; }
  .hx-footer__bottom { align-items: flex-start; flex-direction: column; }
}

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