/* Dark neutral glass keeps the shared controls legible over both page grounds. */
.header-inner,
.mega,
.mobile-menu {
  color: var(--ink-1);
  background: linear-gradient(168deg, rgba(54, 54, 54, .89), rgba(24, 24, 24, .88));
  border: 1px solid rgba(255, 255, 255, .17);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 18px rgba(0, 0, 0, .16);
  -webkit-backdrop-filter: blur(22px) saturate(.12);
  backdrop-filter: blur(22px) saturate(.12);
}
.header-inner {
  column-gap: clamp(9px, 1.1vw, 18px);
  background: linear-gradient(168deg, rgba(44, 44, 44, .76), rgba(20, 20, 20, .81));
}
.desktop-nav {
  gap: clamp(9px, 1.15vw, 22px);
}
.nav-actions {
  gap: clamp(9px, 1.12vw, 20px);
}
.nav-icon {
  flex: none;
  display: inline-block;
  width: 1.04em;
  height: 1.04em;
  opacity: .82;
}
.desktop-nav > a,
.nav-trigger,
.nav-actions > a,
.mega a,
.mobile-menu a,
.mobile-menu summary,
.skip {
  display: inline-flex;
  align-items: center;
  gap: .43em;
}
.site-header :is(.desktop-nav > a, .nav-trigger, .nav-actions > a, .mega a, .mobile-menu a, .mobile-menu summary) {
  color: #f5f5f5;
  text-shadow: 0 -0.5px .6px rgba(255, 255, 255, .23), 0 1px 1px rgba(0, 0, 0, .42);
}
.site-header :is(a, button, summary):focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}
.site-header :is(.desktop-nav > a, .nav-trigger):hover,
.site-header .nav-trigger[aria-expanded='true'] {
  color: white;
  text-decoration: underline;
  text-decoration-color: #ffffff80;
  text-underline-offset: .35em;
}
.site-header :is(a, button, summary):is(:hover, :focus-visible) > .nav-icon {
  opacity: 1;
}
.site-header .nav-actions > .demo-btn {
  background: linear-gradient(145deg, rgba(239, 228, 250, .95), rgba(210, 187, 234, .94));
  border: 1px solid var(--lavender-100);
  box-shadow: inset 0 1px 0 #ffffff8a;
  color: var(--card);
  text-shadow: 0 1px .4px #ffffff40;
  padding-inline: clamp(12px, 1.05vw, 19px);
  gap: .52em;
}
.site-header .nav-actions > .demo-btn:hover {
  background: linear-gradient(145deg, #f3eaf9, #e0cceb);
}
.nav-actions .demo-btn .nav-icon {
  opacity: 1;
}
.mega {
  padding: 22px;
  gap: 20px;
  grid-auto-columns: minmax(195px, 1fr);
}
.mega a,
.mobile-menu a,
.mobile-menu summary {
  display: flex;
  gap: .65em;
  line-height: 1.35;
}
.mega .eyebrow {
  color: #b8b8b8;
}
.site-header :is(.mega a, .mobile-menu a, .mobile-menu summary):hover {
  background-color: #ffffff12;
}
.site-header .mobile-menu summary {
  list-style: none;
  cursor: pointer;
  border-radius: var(--r-xs);
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.mobile-menu .chev {
  margin-left: auto;
  margin-right: 4px;
}
.mobile-menu details[open] .chev {
  transform: rotate(225deg);
  margin-top: 3px;
}
.mobile-toggle i {
  background: #f2f2f2;
}
.footer-top > div > a:not(.brand),
.footer-meta > a {
  display: flex;
  align-items: baseline;
  gap: .55em;
}
.footer-top .nav-icon,
.footer-meta .nav-icon {
  align-self: flex-start;
  margin-top: .15em;
}
.footer-top > div > a:not(.brand):hover,
.footer-meta > a:hover {
  color: var(--ink-1);
}
@media (min-width: 901px) and (max-width: 1100px) {
  .desktop-nav {
    gap: 8px;
  }
  .header-inner {
    gap: 8px;
  }
  .nav-trigger,
  .desktop-nav > a,
  .nav-actions > a {
    gap: 4px;
  }
}
@media (max-width: 1150px) {
  .nav-actions > .trial {
    display: none;
  }
}
@media (max-width: 900px) {
  .nav-actions > .login {
    display: none;
  }
  .mobile-menu details a {
    margin-left: 19px;
  }
}

@media (min-width: 901px) and (max-width: 980px) {
  .header-inner { column-gap: 6px; }
  .header-inner .brand { gap: 6px; }
  .desktop-nav, .nav-actions { gap: 6px; }
}
