:root { --site-header-height:72px; }

.site-header.nav-wrap {
  position:sticky;
  top:0;
  z-index:100;
  height:var(--site-header-height);
  background:rgba(7,14,27,.94);
  border-bottom:1px solid rgba(141,240,217,.1);
  box-shadow:0 10px 30px rgba(2,8,18,.14);
  backdrop-filter:blur(16px);
}
.site-header .nav {
  min-height:var(--site-header-height);
  height:var(--site-header-height);
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:0;
}
.site-wordmark {
  flex:0 0 auto;
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  min-height:44px;
  color:#f4f8ff;
  letter-spacing:0;
}
.wordmark-name { font-size:18px; font-weight:850; line-height:1.05; white-space:nowrap; }
.wordmark-tagline { margin-top:4px; color:#8ea2bd; font-size:11px; font-weight:650; line-height:1; white-space:nowrap; }
.site-header .nav-right {
  min-width:0;
  display:flex;
  flex:1 1 auto;
  align-items:center;
  justify-content:flex-end;
  gap:20px;
}
.site-header .nav-links {
  min-width:0;
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  color:#d8e5f8;
  font-size:14px;
}
.site-header .nav-links > a {
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0;
  border:0;
  color:#d8e5f8;
  background:transparent;
  font:inherit;
  font-weight:650;
  line-height:1;
  letter-spacing:0;
  white-space:nowrap;
  cursor:pointer;
}
.site-header .nav-links > a:after {
  content:"";
  position:absolute;
  right:0;
  bottom:4px;
  left:0;
  height:2px;
  background:#8df0d9;
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .18s ease;
}
.site-header .nav-links > a:hover { color:#fff; }
.site-header .nav-links > a:hover:after,
.site-header .nav-links > a:focus-visible:after { transform:scaleX(1); }
.nav-actions { flex:0 0 auto; display:flex; align-items:center; gap:12px; }
.site-header .lang-switch,
.site-header .nav-cta {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  line-height:1;
  letter-spacing:0;
  white-space:nowrap;
}
.site-header .lang-switch {
  min-width:46px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.17);
  border-radius:999px;
  color:#eaf3ff;
  background:rgba(255,255,255,.045);
  font-size:13px;
  font-weight:800;
}
.site-header .nav-cta {
  padding:0 18px;
  border-radius:999px;
  color:#07101f;
  background:linear-gradient(135deg,#8df0d9,#69c3ff);
  box-shadow:0 8px 22px rgba(105,195,255,.16);
  font-size:14px;
  font-weight:800;
}
.site-header .lang-switch:hover { border-color:rgba(141,240,217,.55); background:rgba(141,240,217,.08); }
.site-header .nav-cta:hover { filter:brightness(1.06); }
.site-header .nav-cta:active,.site-header .lang-switch:active { transform:translateY(1px); }
.site-wordmark:focus-visible,.site-header a:focus-visible,.site-header button:focus-visible {
  outline:3px solid #8df0d9;
  outline-offset:3px;
}
.nav-toggle { display:none; }
.nav-scrim { display:none; }
main > section[id] { scroll-margin-top:calc(var(--site-header-height) + 18px); }

@media (max-width:1099px) {
  :root { --site-header-height:64px; }
  .site-header .nav { width:min(var(--max),calc(100% - 28px)); max-width:none; gap:16px; }
  .wordmark-name { font-size:17px; }
  .wordmark-tagline { font-size:10px; }
  .nav-toggle {
    display:grid;
    flex:0 0 44px;
    width:44px;
    height:44px;
    place-items:center;
    padding:0;
    border:1px solid rgba(255,255,255,.16);
    border-radius:7px;
    color:#edf4ff;
    background:rgba(255,255,255,.045);
    cursor:pointer;
  }
  .nav-toggle-icon { position:relative; width:20px; height:14px; }
  .nav-toggle-icon:before,.nav-toggle-icon:after,.nav-toggle-icon span {
    content:"";
    position:absolute;
    left:0;
    width:20px;
    height:2px;
    border-radius:2px;
    background:currentColor;
    transition:transform .18s ease,top .18s ease,opacity .18s ease;
  }
  .nav-toggle-icon:before { top:0; }
  .nav-toggle-icon span { top:6px; }
  .nav-toggle-icon:after { top:12px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon:before { top:6px; transform:rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span { opacity:0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon:after { top:6px; transform:rotate(-45deg); }
  .site-header .nav-right {
    position:absolute;
    top:100%;
    right:0;
    bottom:auto;
    z-index:105;
    width:min(390px,100%);
    height:calc(100vh - var(--site-header-height));
    height:calc(100dvh - var(--site-header-height));
    min-width:0;
    padding:24px max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom));
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:22px;
    overflow-y:auto;
    visibility:hidden;
    opacity:0;
    transform:none;
    border-left:1px solid rgba(141,240,217,.12);
    background:#091322;
    box-shadow:-20px 0 50px rgba(0,0,0,.36);
    transition:opacity .2s ease,transform .2s ease,visibility 0s linear .2s;
  }
  .site-header.is-nav-open .nav-right { visibility:visible; opacity:1; transform:none; transition-delay:0s; }
  .site-header .nav-links {
    order:0;
    display:flex;
    flex:0 0 auto;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:2px;
    overflow:visible;
    padding:0;
  }
  .site-header .nav-links > a {
    min-height:48px;
    padding:0 12px;
    border-radius:6px;
    font-size:16px;
  }
  .site-header .nav-links > a:after { display:none; }
  .site-header .nav-actions { order:1; margin-top:auto; display:grid; grid-template-columns:58px minmax(0,1fr); gap:10px; }
  .site-header .lang-switch,.site-header .nav-cta { min-height:48px; }
  .site-header .nav-cta { padding:0 16px; }
  .nav-scrim {
    position:absolute;
    top:100%;
    right:0;
    left:0;
    height:calc(100vh - var(--site-header-height));
    height:calc(100dvh - var(--site-header-height));
    z-index:101;
    display:block;
    border:0;
    background:rgba(2,7,15,.68);
    backdrop-filter:blur(3px);
  }
  .nav-scrim[hidden] { display:none; }
  body.site-nav-open { overflow:hidden; }
  body.site-nav-open .ace-reopen { display:none !important; }
}

@media (prefers-reduced-motion:reduce) {
  .site-header .nav-right,.nav-toggle-icon:before,.nav-toggle-icon:after,.nav-toggle-icon span { transition:none; }
}
