body.menu-open {
  overflow: hidden;
}

.container {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  height: var(--site-header-height, 68px);
  background: rgba(6, 29, 56, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(1, 14, 41, 0.14);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--site-header-height, 68px);
  gap: 22px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-link img {
  display: block;
  width: 128px;
  height: auto;
  max-height: 34px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.16s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fff;
}

.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  color: #fff;
  font-weight: 700;
}

.app-nav-link {
  padding: 7px 11px;
  border: 1px solid rgba(94, 200, 216, 0.38);
  border-radius: 7px;
  color: #5ec8d8;
  background: rgba(22, 138, 156, 0.1);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .app-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.app-nav-link:hover {
  color: #fff;
  border-color: rgba(94, 200, 216, 0.68);
  background: rgba(22, 138, 156, 0.2);
}

.header-app-link {
  margin-left: 4px;
}

.site-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 12px 24px;
  border-radius: 9px;
  border: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease;
}

.site-header .btn:hover {
  transform: translateY(-1px);
}

.site-header .btn-primary {
  background: #168a9c;
  color: #fff;
}

.site-header .btn-primary:hover {
  background: #0f7282;
  color: #fff;
}

.site-header .nav-cta,
.site-header .mobile-nav .btn-primary {
  min-height: 42px;
  padding: 12px 24px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.menu-toggle,
.mobile-nav {
  display: none;
}

@media (max-width: 1040px) {
  .container {
    width: min(100% - 40px, 720px);
  }

  .desktop-nav,
  .header-app-link,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    padding: 8px;
    margin-left: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
    transition: transform 0.18s ease, opacity 0.18s ease, width 0.18s ease;
  }

  .menu-toggle span:nth-child(3) {
    width: 15px;
    background: rgba(255, 255, 255, 0.64);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    width: 23px;
    transform: translateY(-7px) rotate(-45deg);
    background: #fff;
  }

  .mobile-nav {
    display: grid;
    max-height: 0;
    overflow: hidden;
    gap: 18px;
    padding: 0 32px;
    background: #061d38;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: max-height 0.24s ease, padding 0.24s ease;
  }

  .mobile-nav.is-open {
    max-height: 430px;
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .mobile-nav a:not(.btn) {
    font-size: 16px;
  }

  .mobile-nav .app-nav-link {
    min-height: 40px;
    padding: 11px 13px;
    border: 1px solid rgba(94, 200, 216, 0.3);
    border-radius: 7px;
    color: #5ec8d8;
    background: rgba(22, 138, 156, 0.1);
    font-weight: 600;
  }
}

/* Canonical shared header component lock. Keep every page header identical. */
.site-header .container.nav-wrap {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--site-header-height, 68px);
  gap: 22px;
}

.site-header .brand-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.site-header .brand-link img {
  display: block;
  width: 128px;
  height: auto;
  max-height: 34px;
  object-fit: contain;
}

.site-header .desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.site-header .desktop-nav a,
.site-header .mobile-nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: color 0.16s ease;
}

.site-header .app-nav-link,
.site-header .header-app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-left: 4px;
  padding: 7px 11px;
  border: 1px solid rgba(94, 200, 216, 0.38);
  border-radius: 7px;
  color: #5ec8d8;
  background: rgba(22, 138, 156, 0.1);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .nav-cta.btn.btn-primary,
.site-header .mobile-nav .btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 12px 24px;
  border: 0;
  border-radius: 9px;
  background: #168a9c;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease;
}

@media (max-width: 1040px) {
  .site-header .container.nav-wrap {
    width: min(100% - 40px, 720px);
  }

  .site-header .desktop-nav,
  .site-header .header-app-link,
  .site-header .nav-cta {
    display: none;
  }

  .site-header .mobile-nav .app-nav-link {
    min-height: 40px;
    margin-left: 0;
    padding: 11px 13px;
  }
}
