.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: 72px;
  color: var(--text-on-sky);
}

.site-header .container {
  width: calc(100% - 48px);
  max-width: none;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 100%;
  align-items: center;
  gap: 24px;
}

.primary-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 35px;
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  border-radius: var(--radius-pill);
  color: var(--text-on-sky);
  font-size: var(--type-nav);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  transition: color .3s ease;
}

button.nav-link {
  border: 0;
  background: transparent;
  padding: 0;
}

.nav-link:hover {
  color: var(--text-on-sky);
}

.nav-item {
  position: relative;
}

.nav-trigger > span:first-child {
  position: relative;
}

.nav-trigger > span:first-child::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: #FFFFFF;
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right center;
  transition: opacity .2s ease, transform .3s cubic-bezier(.22,1,.36,1);
}

.nav-item:hover .nav-trigger > span:first-child::after,
.nav-item:focus-within .nav-trigger > span:first-child::after,
.nav-item.is-open .nav-trigger > span:first-child::after {
  opacity: 1;
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-chevron {
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}

.nav-item.is-open .nav-chevron {
  transform: translateY(2px) rotate(225deg);
}

.mega-dropdown {
  position: fixed;
  top: 88px;
  left: 24px;
  width: min(1160px, calc(100vw - 48px));
  padding: 24px;
  border: 1px solid rgba(27,27,27,.035);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 24px 80px rgba(10,30,60,.25);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transform-origin: top left;
  transition: opacity .28s ease, transform .35s cubic-bezier(.22,1,.36,1);
}

.mega-dropdown::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 20px;
  content: "";
}

.nav-item.is-open .mega-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-dropdown-features {
  display: grid;
  grid-template-columns: minmax(390px, 420px) minmax(300px, 330px);
  gap: 24px;
  width: min(822px, calc(100vw - 48px));
}

.features-list {
  display: grid;
  align-content: start;
  gap: 2px;
}

.features-visual {
  position: relative;
  min-height: 382px;
  overflow: hidden;
  border: 1px solid #E8E8E8;
  border-radius: 12px;
  background: #F3F2EF;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.mock-topbar {
  display: flex;
  height: 40px;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #E4E4E1;
  padding: 0 14px;
  background: rgba(255,255,255,.72);
}

.mock-topbar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C8C8C5;
}

.mock-topbar span {
  margin-left: auto;
  color: #9A9A96;
  font-size: 8px;
  font-weight: 600;
}

.mock-toolbar {
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #393936;
  font-size: 11px;
  font-weight: 650;
}

.mock-toolbar b {
  border-radius: 6px;
  background: #242422;
  padding: 7px 9px;
  color: #FFFFFF;
  font-size: 8px;
  font-weight: 600;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
}

.mock-tile {
  position: relative;
  height: 108px;
  overflow: hidden;
  border: 5px solid #FFFFFF;
  border-radius: 10px;
  background: linear-gradient(145deg, #B9CDE1, #F3D4C7 56%, #919DAC);
  box-shadow: 0 5px 14px rgba(50,58,66,.10);
}

.mock-tile-b { background: linear-gradient(145deg, #D5C6E9, #B6CADC 53%, #F0C99D); }
.mock-tile-c { background: linear-gradient(145deg, #E6C6B4, #929F8F 54%, #C9D2DB); }
.mock-tile-d { background: linear-gradient(145deg, #ABC8C1, #D9C4DE 50%, #E8D5B1); }

.mock-tile i {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: rgba(255,255,255,.32);
}

.mock-tile b {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  height: 5px;
  border-radius: 5px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 -10px 0 rgba(255,255,255,.38);
}

.mock-status {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: grid;
  grid-template-columns: 20px 1fr 42px;
  gap: 8px;
  align-items: center;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  padding: 0 10px;
  box-shadow: 0 4px 16px rgba(50,58,66,.08);
}

.mock-status i { width: 18px; height: 18px; border-radius: 5px; background: #D6E0EA; }
.mock-status span { height: 5px; border-radius: 5px; background: #DDDDDA; }
.mock-status b { height: 16px; border-radius: 4px; background: #D5E8D6; }

.mega-dropdown-solutions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(240px, .72fr);
  gap: 0 20px;
}

.mega-dropdown-resources {
  display: grid;
  grid-template-columns: 1fr;
  width: min(444px, calc(100vw - 48px));
  padding: 18px;
}

.dropdown-group {
  display: grid;
  align-content: start;
  gap: 2px;
}

.dropdown-group-title {
  margin: 0 0 8px;
  padding-inline: 10px;
  color: #8A8A8A;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.dropdown-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 76px;
  border-radius: 12px;
  padding: 10px;
  transition: background-color .2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
  background: #F7F7F7;
}

.dropdown-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 12px;
  background: #F5F5F5;
  color: #1B1B1B;
  transition: background-color .2s ease;
}

.dropdown-item:hover .dropdown-icon {
  background: #EEEEEE;
}

.dropdown-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.dropdown-item strong {
  display: block;
  color: #1B1B1B;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.dropdown-item small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #6F6F6F;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-highlight {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 12px;
  background: #F5F5F5;
  padding: 18px;
}

.highlight-mark {
  position: relative;
  display: grid;
  min-height: 142px;
  place-items: center;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(145deg, #183EFA, #55C7FF);
}

.highlight-mark::before {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 24px;
  background: rgba(255,255,255,.15);
  box-shadow: 20px 24px 40px rgba(0,50,180,.28);
  content: "";
  transform: rotate(45deg);
}

.dropdown-highlight .highlight-mark span {
  position: relative;
  z-index: 1;
  color: #FFFFFF;
  font-size: 30px;
  font-style: italic;
  font-weight: 750;
}

.dropdown-highlight p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.2;
}

.dropdown-highlight span {
  margin-top: 9px;
  color: #6F6F6F;
  font-size: 13px;
  line-height: 1.45;
}

.dropdown-highlight a {
  align-self: flex-start;
  margin-top: auto;
  border-bottom: 1px solid #1B1B1B;
  padding-top: 18px;
  color: #1B1B1B;
  font-size: 13px;
  font-weight: 600;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: var(--header-logo-opacity, 1);
  filter: drop-shadow(0 8px 24px rgba(10,30,60,.28));
  transition: opacity .18s linear;
}

.header-logo img {
  height: 26px;
  width: auto;
  display: block;
}

.header-actions .button {
  height: 38px;
  min-height: 38px;
  padding-inline: 16px;
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #FFFFFF;
  border-radius: 8px;
  background: transparent;
  color: var(--text-on-sky);
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-on-sky);
  transition: transform .25s ease, opacity .25s ease;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: stretch;
  padding: 92px 24px 28px;
  background:
    linear-gradient(
      180deg,
      rgba(14,69,145,.98) 0%,
      rgba(12,111,236,.98) 45%,
      rgba(50,180,254,.98) 100%
    );
  opacity: 0;
  pointer-events: none;
  overflow-x: clip;
  overflow-y: auto;
  transition: opacity .25s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  display: grid;
  align-content: start;
  gap: 22px;
  width: 100%;
  min-height: 100%;
}

.mobile-menu-group {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 12px;
}

.mobile-menu-label {
  margin: 0 0 4px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-menu-panel a {
  display: flex;
  min-height: 48px;
  align-items: center;
  color: var(--text-on-sky);
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 500;
  line-height: 1;
}

.mobile-menu-ctas {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.mobile-menu-ctas .button {
  width: 100%;
  font-size: 16px;
  justify-content: center;
}

.mobile-menu-open {
  overflow-x: clip;
  overflow-y: hidden;
}

@media (max-width: 980px) {
  .primary-nav {
    gap: 20px;
  }

  .header-actions .button-ghost {
    display: none;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .header-logo {
    justify-self: start;
  }

  .header-actions .button-ghost,
  .header-actions .button-primary {
    display: none;
  }
}

@media (max-width: 390px) {
  .site-header {
    height: 68px;
  }

  .site-header .container {
    width: calc(100% - 24px);
  }

  .header-actions {
    gap: 8px;
  }

  .header-logo {
    font-size: 34px;
  }

  .header-actions .button-secondary {
    padding-inline: 14px;
  }

  .mobile-menu {
    padding-inline: 16px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .nav-chevron,
  .mega-dropdown,
  .dropdown-item,
  .mobile-menu,
  .mobile-menu-toggle span {
    transition: none;
  }
}
