/* hero-header-html-css */
/* Scoped reset — Figma has no default margins */
.hero-header, .hero-header *, .hero-header *::before, .hero-header *::after { box-sizing: border-box; }
.hero-header :where(h1, h2, h3, p, ul, li, figure) { margin: 0; padding: 0; }
.hero-header :where(button) { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.hero-header :where(a) { color: inherit; text-decoration: none; }
.hero-header :where(img) { display: block; }

/*
 * Hero layout: in-flow CSS grid instead of absolutely positioned children.
 * Row 1 (1fr) holds the content stack, centred in the space left between the
 * fixed navbar and the trust-badge row; row 2 holds the badges. The section
 * height is a clamp()ed min-height, so it scales with the viewport but never
 * leaves a large empty band on tall screens and never clips content on short ones.
 */
.hero-header {
  --hero-nav-offset: 64px; /* height of the fixed .hero-header__header-section */
  width: 1440px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  row-gap: clamp(24px, 4vh, 40px);
  min-height: clamp(600px, 85vh, 800px);
  min-height: clamp(600px, 85svh, 800px);
  padding: calc(var(--hero-nav-offset) + clamp(32px, 6vh, 64px)) 24px clamp(28px, 4.5vh, 48px);
  border-radius: 0 0 32px 32px;
  background: linear-gradient(180deg, #7B55FF 14.65%, #4A2BE0 28.3%, #1D0A9A 43.67%, #150079 59.03%, #150079 100%);
  position: relative;
  overflow: hidden;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.hero-header__image {
  width: 1442px;
  height: 100%;
  position: absolute;
  left: -2px;
  top: 0px;
}

.hero-header__row {
  display: flex;
  grid-row: 2;
  width: min(1200px, 100%);
  justify-content: center;
  align-items: center;
  min-height: 21px;
}

.hero-header__text {
  display: flex;
  width: 200px;
  height: 21px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hero-header__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero-header__text-2 {
  color: #FFF;
  text-align: center;
  font-family: Geist, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 20.15px;
  white-space: nowrap;
}

.hero-header__logo-marquee {
  position: absolute;
  right: 0;
  bottom: 40px;
  left: 0;
  z-index: 1;
  width: min(100%, 1120px);
  height: 48px;
  margin-inline: auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hero-header__logo-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: hero-logo-scroll 28s linear infinite;
}

.hero-header__logo-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 72px;
  padding-inline: 36px;
}

.hero-header__logo-group img {
  display: block;
  flex: 0 0 auto;
  width: 140px;
  height: 36px;
  object-fit: contain;
}

@keyframes hero-logo-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-header__logo-track { animation: none; }
  .hero-header__logo-group[aria-hidden="true"] { display: none; }
}

.hero-header__header-section {
  display: flex;
  width: 1360px;
  height: 64px;
  padding: 12px 24px;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 0 0 24px 24px;
  background: #FFF;
  position: fixed;
  left: 40px;
  top: 0px;
  z-index: 999;
}

.hero-header__group {
  display: grid;
  height: 40px;
  column-gap: 64px;
  flex-shrink: 0;
  align-self: stretch;
  grid-template-rows: 40px;
  grid-template-columns: 140px 664.53px 382.14px;
}

.company-logo {
  display: flex;
  align-items: center;
  align-self: stretch;
  grid-row: 1 / span 1;
  grid-column: 1 / span 1;
  justify-self: stretch;
}

.company-logo__image {
  width: 140px;
  height: 40px;
  object-fit: contain;
}

.hero-header__navigation-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  grid-row: 1 / span 1;
  grid-column: 2 / span 1;
  justify-self: stretch;
}

.hero-header__navigation-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-header__navigation-list li {
  display: flex;
  margin: 0;
  padding: 0;
}

.hero-header__navigation-list a,
.hero-header__navigation-list a:hover,
.hero-header__navigation-list a:focus {
  color: #1A182B;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  padding: 6px 12px;
  align-items: center;
  gap: 8px;
  border-radius: 15984px;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 24px;
  letter-spacing: 0;
  text-align: center;
}

.nav-menu__text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-menu__text-2 {
  color: #1A182B;
  text-align: center;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 24px;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-menu__icon {
  width: 12px;
  height: 12px;
}

.hero-header__row-2 {
  display: flex;
  width: 379px;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  grid-row: 1 / span 1;
  grid-column: 3 / span 1;
  justify-self: start;
}

.hero-header__button {
  display: flex;
  height: 40px;
  padding: 0 20px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 20px;
  border: 1px solid #E3E3E5;
  background: #FFF;
}

.hero-header__text-3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-header__talk-with-us {
  color: #1A182B;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  white-space: nowrap;
}

.hero-header__button-2 {
  display: flex;
  height: 40px;
  padding: 0 20px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 20px;
  background: #1A182B;
}

.hero-header__text-4 {
  color: #FFF;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  white-space: nowrap;
}

.hero-header__stack {
  display: flex;
  grid-row: 1;
  width: min(1200px, 100%);
  flex-direction: column;
  align-items: center;
  gap: 30px;
  position: relative;
}

.hero-header__heading {
  display: flex;
  width: 100%;
  max-width: 1120px;
  flex-direction: column;
  align-items: flex-start;
  gap: -1px;
}

.hero-header__title {
  align-self: stretch;
  color: #FFF;
  text-align: center;
  font-size: 80px;
  font-weight: 600;
  line-height: 80px;
  letter-spacing: -4px;
}

.hero-header__engineering-company {
  display: flex;
  height: 93px;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  text-align: center;
  font-size: 80px;
  font-weight: 600;
  line-height: 80px;
  letter-spacing: -4px;
  background: radial-gradient(251.66% 354.43% at 31.42% -99.18%, #F35400 0%, #F35400 6.43%, #947FFF 50.71%, #6748FD 80.36%, #150079 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}

.hero-header__paragrah {
  align-self: stretch;
  color: #FFF;
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
}

.hero-header__button-3 {
  display: flex;
  height: 56px;
  padding: 0 32px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 40px;
  border: 0.5px solid rgba(26, 24, 43, 0.12);
  background: #FFF;
  flex-shrink: 0;
}

.hero-header__text-5 {
  color: #1A182B;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}

.service-menu-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.service-menu-toggle .nav-menu__icon {
  transition: transform 160ms ease;
}

.service-menu-item:is(:hover, :focus-within, .is-open) .service-menu-toggle .nav-menu__icon {
  transform: rotate(180deg);
}

.services-mega-menu {
  position: absolute;
  z-index: 60;
  top: 100%;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1120px, calc(100vw - 48px));
  padding: 22px 24px;
  border: 1px solid rgba(26, 24, 43, 0.08);
  border-radius: 0 0 16px 16px;
  background: #FFF;
  box-shadow: 0 20px 48px rgba(20, 12, 72, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.services-mega-menu::before {
  position: absolute;
  top: -14px;
  right: 0;
  left: 0;
  height: 14px;
  content: "";
}

.service-menu-item:is(:hover, :focus-within, .is-open) .services-mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.services-mega-menu__column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 0 18px;
}

.services-mega-menu__column + .services-mega-menu__column {
  border-left: 1px solid #EAE8F0;
}

.services-mega-menu__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 4px;
  border-radius: 6px;
  color: #1A182B;
  text-align: left;
  text-decoration: none;
}

.services-mega-menu__link > span:first-child {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.services-mega-menu__link > span:last-child {
  color: #716F7E;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.services-mega-menu__link:hover,
.services-mega-menu__link:focus-visible {
  background: #F7F4FF;
  outline: none;
}

.company-menu-item {
  position: relative;
}

.company-dropdown {
  position: absolute;
  z-index: 60;
  top: 100%;
  left: 0;
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid rgba(26, 24, 43, 0.08);
  border-radius: 0 0 12px 12px;
  background: #FFF;
  box-shadow: 0 16px 36px rgba(20, 12, 72, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.company-dropdown::before {
  position: absolute;
  top: -14px;
  right: 0;
  left: 0;
  height: 14px;
  content: "";
}

.company-menu-item:is(:hover, :focus-within, .is-open) .company-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.company-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: #1A182B;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.company-dropdown a:hover,
.company-dropdown a:focus-visible {
  background: #F7F4FF;
  outline: none;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .services-mega-menu {
    width: min(960px, calc(100vw - 40px));
    padding-inline: 12px;
  }
  .services-mega-menu__column {
    padding-inline: 12px;
  }
  .services-mega-menu__link > span:first-child {
    font-size: 12px;
  }
  .services-mega-menu__link > span:last-child {
    font-size: 11px;
    line-height: 16px;
  }
}

@media (max-width: 900px) {
  #primary-navigation {
    padding-inline: 0;
  }
  .service-menu-item {
    display: block !important;
  }
  .service-menu-toggle {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }
  .services-mega-menu {
    position: static;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 45svh;
    margin-top: 4px;
    padding: 12px 8px;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    opacity: 1;
    overflow-y: auto;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }
  .services-mega-menu::before {
    display: none;
  }
  .company-dropdown {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    padding: 4px;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }
  .company-dropdown::before {
    display: none;
  }
  .company-menu-item.is-open .company-dropdown {
    display: grid;
  }
  .company-dropdown a {
    white-space: normal;
  }
  .service-menu-item.is-open .services-mega-menu {
    display: grid;
    transform: none;
  }
  .services-mega-menu__column {
    gap: 10px;
    padding: 0 8px;
  }
  .services-mega-menu__column + .services-mega-menu__column {
    border-left: 0;
  }
  .services-mega-menu__link > span:first-child {
    font-size: 12px;
    line-height: 17px;
  }
  .services-mega-menu__link > span:last-child {
    font-size: 11px;
    line-height: 15px;
  }
}
