:root {
  --peek-header-bg: #050812;
  --peek-header-line: rgba(255, 255, 255, 0.1);
  --peek-header-text: #F2F4F7;
  --peek-header-muted: #aab3c4;
  --peek-header-purple: #A56BFF;
  --peek-header-purple-strong: #6831F6;
}

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

.peek-site-header {
  min-height: 124px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 28px;
  padding: 0 24px;
  color: var(--peek-header-text);
  background: rgba(5, 8, 18, 0.98);
  border-bottom: 1px solid var(--peek-header-line);
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  z-index: 50;
}

.peek-header-brand {
  width: min(318px, 34vw);
  min-height: 124px;
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.peek-header-logo {
  width: 100%;
  max-height: 112px;
  object-fit: contain;
  display: block;
}

.peek-header-nav,
.peek-header-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}

.peek-header-nav {
  justify-content: flex-start;
}

.peek-header-actions {
  justify-content: flex-end;
  gap: 20px;
}

.peek-header-link,
.peek-header-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--peek-header-text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 0 4px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}

.peek-header-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -40px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.peek-header-link:hover,
.peek-header-button:hover,
.peek-header-link:focus-visible,
.peek-header-button:focus-visible,
.peek-header-link.is-active {
  color: #fff;
}

.peek-header-link.is-active::after {
  background: var(--peek-header-purple);
}

.peek-header-link:focus-visible,
.peek-header-button:focus-visible,
.peek-header-menu a:focus-visible {
  outline: 3px solid var(--peek-header-purple);
  outline-offset: 4px;
}

.peek-header-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.peek-header-chevron {
  width: 12px;
  height: 12px;
}

.peek-menu-toggle .peek-header-icon line {
  stroke-width: 2.4;
}

.peek-account-wrap {
  position: relative;
  display: inline-flex;
}

.peek-header-menu {
  position: absolute;
  right: 24px;
  top: calc(100% + 10px);
  width: min(290px, calc(100vw - 32px));
  display: grid;
  gap: 6px;
  padding: 14px;
  background: rgba(12, 17, 29, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.4);
}

.peek-account-menu {
  right: 0;
  top: calc(100% + 12px);
  width: min(230px, calc(100vw - 32px));
}

.peek-header-menu[hidden] {
  display: none;
}

.peek-header-menu a,
.peek-header-menu button {
  min-height: 40px;
  display: flex;
  align-items: center;
  width: 100%;
  color: var(--peek-header-text);
  background: transparent;
  border: 0;
  text-decoration: none;
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.peek-header-menu a:hover,
.peek-header-menu button:hover {
  background: rgba(165, 107, 255, 0.16);
}

@media (max-width: 1080px) {
  .peek-site-header {
    grid-template-columns: 1fr auto;
    min-height: 104px;
    gap: 16px;
    padding: 0 16px;
  }

  .peek-header-brand {
    width: min(252px, 52vw);
    min-height: 104px;
  }

  .peek-header-logo {
    max-height: 92px;
  }

  .peek-header-nav {
    grid-column: 1 / -1;
    min-height: 42px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    gap: 22px;
    scrollbar-width: none;
  }

  .peek-header-nav::-webkit-scrollbar {
    display: none;
  }

  .peek-header-link::after {
    bottom: -10px;
  }
}

@media (max-width: 640px) {
  .peek-site-header {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 12px 10px;
  }

  .peek-header-brand {
    width: min(230px, 72vw);
    min-height: 70px;
  }

  .peek-header-logo {
    max-height: 68px;
  }

  .peek-header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .peek-header-button {
    min-height: 38px;
    font-size: 13px;
    gap: 7px;
  }

  .peek-header-icon {
    width: 20px;
    height: 20px;
  }

  .peek-header-nav {
    width: 100%;
    gap: 18px;
    padding-bottom: 2px;
  }

  .peek-header-link {
    min-height: 34px;
    font-size: 13px;
  }

  .peek-header-menu {
    right: 12px;
    top: calc(100% - 4px);
  }

  .peek-account-menu {
    right: 0;
    top: calc(100% + 8px);
  }
}
