html {
  overflow-x: clip;
  scroll-padding-top: 88px;
}

body.landing-page {
  width: 100%;
  max-width: 100%;
}

/* One stable public header geometry across the landing and feature pages. */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  margin: 0;
  padding-inline: max(22px, calc((100vw - var(--max)) / 2));
  background: rgba(5, 9, 18, .94);
  border-bottom: 1px solid rgba(108, 138, 182, .16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px);
}

.site-header .site-brand,
.site-header .menu-toggle,
.site-header .header-actions {
  z-index: 22;
}

.site-header .site-brand {
  width: max-content;
  justify-self: start;
}

.site-header .site-nav > a {
  position: relative;
}

.site-header .site-nav > a.active {
  color: #fff;
}

.site-header .site-nav > a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  margin: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #297bff, #20b8e4);
}

.mobile-nav-actions {
  display: none;
}

.demo-consent a {
  color: #77a9ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.menu-toggle:focus-visible,
.site-nav a:focus-visible,
.language-switch button:focus-visible {
  outline: 2px solid #5aa2ff;
  outline-offset: 3px;
}

@supports not (overflow: clip) {
  html,
  body.landing-page {
    overflow-x: hidden;
  }
}

@media (min-width: 901px) {
  .landing-page .hero,
  .features-page .features-hero {
    align-items: start;
  }

  .features-page .features-hero {
    grid-template-columns: minmax(0, .93fr) minmax(570px, 1.07fr);
    gap: 60px;
    padding-top: 76px;
  }

  .features-page .features-hero h1 {
    margin-block: 23px;
  }
}

@media (max-width: 900px) {
  .site-header { padding-inline: 14px; }

  .site-header .header-actions {
    top: 50%;
    right: 64px;
    transform: translateY(-50%);
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto;
    z-index: 20;
    align-items: stretch;
    max-height: calc(100vh - 82px);
    margin: 0;
    overflow-y: auto;
    border: 1px solid #1d3453;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .55);
  }

  .site-nav > a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
  }

  .site-nav > a:hover {
    background: #0d1d32;
  }

  .mobile-nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid #1b304d;
  }

  .mobile-nav-actions .button {
    width: 100%;
    padding: 12px;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .mobile-nav-actions {
    grid-template-columns: 1fr;
  }
}
