/* Keep platform access readable instead of compressing the last menu item. */
.site-header .nav {
  width: min(1440px, calc(100% - 40px));
}
.site-header .brand { flex-shrink: 0; }
.site-header nav { gap: clamp(12px, 1.2vw, 20px); }
.site-header nav > a { white-space: nowrap; }
.site-header .nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #8cd211;
  border-radius: 12px;
  background: #8cd211;
  color: #061325;
  font-weight: 800;
  line-height: 1.25;
}
.site-header .nav-login:hover { background: #b9ef62; }
.site-header a:focus-visible, .menu-toggle:focus-visible,
.hero-actions .button:focus-visible {
  outline: 3px solid #b9ef62;
  outline-offset: 4px;
}
.hero-actions .button { min-height: 48px; font-size: 15px; font-weight: 800; }

@media (max-width: 1279px) {
  .site-header .nav { height: 76px; }
  .site-header .menu-toggle {
    display: inline-flex;
    width: auto;
    min-width: 96px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #ffffff52;
    border-radius: 12px;
    color: #fff;
    background: #081a33;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
  }
  .site-header .menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    background: #8cd211;
  }
  .site-header .menu-toggle::before,
  .site-header .menu-toggle::after { display: none; }
  .site-header nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    padding: 16px 20px;
    background: #061325;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-bottom: 1px solid #ffffff26;
  }
  .site-header nav.open { display: flex; }
  .site-header nav > a { padding: 10px 14px; min-height: 44px; }
  .site-header .nav-login { align-self: flex-start; margin-top: 8px; }
}
@media (max-width: 640px) {
  .site-header .nav { height: 66px; width: calc(100% - 30px); }
  .site-header nav { top: 66px; max-height: calc(100dvh - 66px); }
}
