/* Layout */

.px-header {
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.px-header.is-scrolled {
  background: rgba(2, 0, 32, 0.76);
  border-color: var(--px-border);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.px-header__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.px-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.px-brand a {
  display: inline-flex;
  align-items: center;
}

.px-brand img,
.px-brand .custom-logo {
  width: auto;
  height: 32px;
  display: block;
}

.px-nav {
  margin-left: auto;
}

.px-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.px-nav .menu > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--px-text-muted);
  font-size: 0.95rem;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.px-nav .menu > li.current-menu-item > a,
.px-nav .menu > li.current_page_item > a,
.px-nav .menu > li > a:hover {
  color: var(--px-text);
  border-color: var(--px-border);
  background: var(--px-surface-0);
}

.px-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--px-border);
  background: var(--px-surface-0);
  color: #fff;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.px-nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.px-main {
  padding: 0.5rem 0 4rem;
}

.px-main > .px-section:first-child {
  margin-top: clamp(0.75rem, 1.8vw, 1.35rem);
}

.px-hero {
  margin-top: 0.4rem;
}

.px-hero__card {
  border-radius: var(--px-r-lg);
  border: 1px solid var(--px-border);
  background:
    radial-gradient(1100px 340px at 4% 0%, rgba(44, 215, 255, 0.16), transparent 55%),
    radial-gradient(1000px 360px at 95% 0%, rgba(255, 0, 195, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--px-shadow-hard);
  padding: clamp(1.4rem, 3vw, 3rem);
}

.px-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--px-text-muted);
  margin-bottom: 0.85rem;
}

.px-hero h1 {
  font-size: clamp(2.3rem, 7vw, 5.2rem);
  max-width: 12ch;
}

.px-hero__lead {
  margin-top: 0.9rem;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.px-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: 1.4rem;
}

.px-chip-list {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.px-chip {
  border-radius: 999px;
  border: 1px solid var(--px-border);
  color: var(--px-text-muted);
  background: rgba(0, 0, 0, 0.26);
  padding: 0.44rem 0.7rem;
  font-size: 0.78rem;
}

.px-footer {
  padding: 4rem 0 2rem;
}

.px-footer__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.px-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--px-text-muted);
  font-size: 0.88rem;
}

.px-footer__brand img {
  width: 18px;
  height: 18px;
}

.px-footer__nav .menu {
  list-style: none;
  display: inline-flex;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.px-footer__nav a {
  color: var(--px-text-muted);
  font-size: 0.88rem;
}

.px-footer__nav a:hover {
  color: var(--px-text);
}

.px-footer small {
  color: var(--px-text-muted);
}

.px-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.px-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .px-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .px-container,
  .px-container--narrow {
    padding-inline: 0.7rem;
  }

  .px-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .px-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0.7rem;
    width: min(320px, calc(100% - 1.4rem));
    border: 1px solid var(--px-border);
    border-radius: var(--px-r-md);
    background: rgba(3, 2, 32, 0.94);
    box-shadow: var(--px-shadow-hard);
    padding: 0.5rem;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .px-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .px-nav .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .px-nav .menu > li > a {
    width: 100%;
    border-radius: 12px;
    min-height: 40px;
  }

  .px-grid--2,
  .px-grid--3 {
    grid-template-columns: 1fr;
  }

  .px-section__head--inline {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .px-reveal {
    opacity: 1;
    transform: none;
  }
}
