.wz-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 68px;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid
    color-mix(in srgb, var(--line, #1f2d49) 80%, transparent);
  background: var(--bg, #080c15);
  background: color-mix(in srgb, var(--bg, #080c15) 92%, transparent);
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.wz-site-header,
.wz-site-header * {
  box-sizing: border-box;
}

.wz-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  height: 68px;
  margin: 0 auto;
}

.wz-site-header__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  margin-left: 26px;
  color: var(--text, var(--ink, #e8eefb));
  font-family: Poppins, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.3px;
  text-decoration: none;
}

.wz-site-header__mark {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
}

.wz-site-header__ai {
  background: linear-gradient(
    120deg,
    var(--accent2, #34e3cf),
    var(--accent, #4d8bff)
  );
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wz-site-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.wz-site-header__nav > a:not(.wz-site-header__cta) {
  color: var(--muted, #8ea2c2);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wz-site-header__nav > a:hover,
.wz-site-header__nav > a[aria-current="page"] {
  color: var(--text, var(--ink, #e8eefb));
}

.wz-site-header__theme {
  display: grid;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line, #1f2d49);
  border-radius: 9px;
  background: transparent;
  color: var(--text, var(--ink, #e8eefb));
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.wz-site-header__cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #4d8bff;
  border-radius: 10px;
  background: #4d8bff;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wz-site-header__menu-toggle {
  display: none;
}

/* Keep the dark homepage footer readable when the page is in light mode. */
.site-footer {
  --text: #e8eefb;
  --muted: #a9b9d2;
  --line: #1f2d49;
  --accent2: #34e3cf;
  background: #080c15;
  color: var(--muted);
}

.site-footer .footer-brand strong {
  color: var(--text);
}

@media (max-width: 900px) {
  .wz-site-header,
  .wz-site-header__inner {
    height: 68px;
  }

  .wz-site-header__brand {
    margin-left: 10px;
  }

  .wz-site-header__inner {
    width: min(calc(100% - 28px), 1180px);
    gap: 16px;
    overflow: hidden;
  }

  .wz-site-header__nav {
    min-width: 0;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
}

@media (max-width: 480px) {
  .wz-site-header__brand {
    font-size: 18px;
  }

  .wz-site-header__cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }
}

.wz-site-header__nav {
  gap: 8px;
}

.wz-nav-menu {
  position: relative;
}

.wz-nav-trigger {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #8ea2c2);
  font: 500 14px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.wz-nav-trigger:hover,
.wz-nav-trigger:focus-visible,
.wz-nav-trigger[aria-expanded="true"] {
  background: color-mix(in srgb, var(--panel2, #131d31) 80%, transparent);
  color: var(--text, #e8eefb);
  outline: none;
}

.wz-nav-trigger:focus-visible {
  box-shadow: 0 0 0 2px var(--accent, #4d8bff);
}

.wz-nav-arrow {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 150ms ease;
}

.wz-nav-trigger[aria-expanded="true"] .wz-nav-arrow {
  transform: translateY(2px) rotate(225deg);
}

.wz-nav-panel {
  position: fixed;
  z-index: 1100;
  top: 67px;
  left: 50%;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 88px);
  overflow: auto;
  transform: translateX(-50%);
  border: 1px solid var(--line, #1f2d49);
  border-radius: 0 0 14px 14px;
  background: var(--panel, #0f1727);
  color: var(--text, #e8eefb);
  box-shadow: 0 24px 60px rgba(3, 8, 18, 0.32);
}

.wz-nav-panel[hidden] {
  display: none;
}

.wz-nav-panel--products {
  width: min(1080px, calc(100vw - 32px));
}

.wz-nav-panel__top {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line, #1f2d49);
}

.wz-nav-panel__top strong {
  font-size: 14px;
}

.wz-nav-panel__top span {
  color: var(--muted, #8ea2c2);
  font-size: 11px;
}

.wz-nav-panel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 18px;
}

.wz-nav-panel--products .wz-nav-panel__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wz-nav-group h2 {
  margin: 0 0 8px;
  color: var(--accent2, #34e3cf);
  font: 600 10px/1.4 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wz-nav-item {
  display: block;
  margin: 0 -8px;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
}

.wz-nav-item:hover,
.wz-nav-item:focus-visible,
.wz-nav-item[aria-current="page"] {
  background: var(--panel2, #131d31);
  outline: none;
}

.wz-nav-item:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent, #4d8bff);
}

.wz-nav-item strong,
.wz-nav-item span {
  display: block;
}

.wz-nav-item strong {
  color: var(--text, #e8eefb);
  font-size: 13px;
  line-height: 1.35;
}

.wz-nav-item span {
  margin-top: 2px;
  color: var(--muted, #8ea2c2);
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .wz-site-header__inner {
    overflow: visible;
  }

  .wz-site-header__menu-toggle {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 9px;
    margin-left: auto;
    padding: 0 12px;
    border: 1px solid var(--line, #1f2d49);
    border-radius: 9px;
    background: transparent;
    color: var(--text, #e8eefb);
    font: 600 13px/1 Inter, ui-sans-serif, system-ui, sans-serif;
    cursor: pointer;
  }

  .wz-site-header__menu-icon,
  .wz-site-header__menu-icon::before,
  .wz-site-header__menu-icon::after {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    content: "";
    transition: transform 150ms ease;
  }

  .wz-site-header__menu-icon {
    position: relative;
  }

  .wz-site-header__menu-icon::before {
    position: absolute;
    top: -5px;
  }

  .wz-site-header__menu-icon::after {
    position: absolute;
    top: 5px;
  }

  .wz-site-header__menu-toggle[aria-expanded="true"] .wz-site-header__menu-icon {
    background: transparent;
  }

  .wz-site-header__menu-toggle[aria-expanded="true"] .wz-site-header__menu-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .wz-site-header__menu-toggle[aria-expanded="true"] .wz-site-header__menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .wz-site-header__nav {
    display: none;
    position: fixed;
    top: 67px;
    right: 0;
    left: 0;
    max-height: calc(100vh - 67px);
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 18px;
    overflow: auto;
    border-bottom: 1px solid var(--line, #1f2d49);
    background: var(--bg, #080c15);
    box-shadow: 0 24px 60px rgba(3, 8, 18, 0.28);
  }

  .wz-site-header__nav.is-mobile-open {
    display: flex;
  }

  .wz-nav-menu {
    width: 100%;
  }

  .wz-nav-trigger {
    width: 100%;
    min-height: 36px;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 13px;
  }

  .wz-nav-panel,
  .wz-nav-panel--products {
    position: static;
    width: 100%;
    max-height: none;
    margin: 2px 0 8px;
    transform: none;
    border-radius: 10px;
  }

  .wz-nav-panel--products .wz-nav-panel__grid {
    grid-template-columns: 1fr;
  }

  .wz-site-header__theme {
    align-self: flex-start;
  }

  .wz-site-header__cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wz-nav-arrow {
    transition: none;
  }
}
