.site-header {
  position: sticky;
  top: 0;
  z-index: 130;
  height: var(--nav-height);
  background: linear-gradient(#22182f, #1a1424);
  border-bottom: 3px solid #000;
  box-shadow:
    var(--bevel-light),
    0 8px 28px rgba(122, 46, 224, 0.18);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 4px;
  background: linear-gradient(90deg, #3aa0e8, #b56bff 35%, #7a2ee0 65%, #8ed4ff);
  box-shadow: 0 0 16px rgba(142, 212, 255, 0.55);
  pointer-events: none;
}

.nav-inner,
.container {
  width: min(100% - 1.5rem, var(--container));
  margin-inline: auto;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 #000;
}

.brand:hover {
  color: var(--glow);
}

.brand img {
  width: 36px;
  height: 36px;
  border: 2px solid #000;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.15rem 0.7rem 0.28rem;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 2px 2px 0 #3f3f3f;
  border: 2px solid #000;
  background-color: #6e6e6e;
  background-image: url("../assets/ui/button.svg");
  background-size: 100% 100%;
  image-rendering: pixelated;
  box-shadow:
    inset 2px 2px 0 #ffffff6e,
    inset -2px -2px 0 #373737;
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-links a:focus-visible {
  color: var(--glow);
  text-shadow: 2px 2px 0 #0b3d66;
  background-color: #8a8a8a;
  background-image: url("../assets/ui/button-hover.svg");
  border-color: #000;
  box-shadow:
    inset 2px 2px 0 #ffffff88,
    inset -2px -2px 0 #2a2a2a;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 2px solid #000;
  background-color: #6e6e6e;
  background-image: url("../assets/ui/button.svg");
  background-size: 100% 100%;
  box-shadow:
    inset 2px 2px 0 #ffffff6e,
    inset -2px -2px 0 #373737;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.nav-drawer,
.nav-overlay {
  display: none;
}

.section {
  padding: var(--space-section) 0;
  position: relative;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.45rem;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--glow), var(--accent));
  box-shadow: 0 0 10px rgba(142, 212, 255, 0.5);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: stretch;
}

.info-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.site-footer {
  border-top: 3px solid #000;
  background:
    linear-gradient(180deg, rgba(122, 46, 224, 0.12), transparent 40%),
    #0c0814;
  padding: 2.25rem 0 1.25rem;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -3px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #8ed4ff, #b56bff, transparent);
  box-shadow: 0 0 18px rgba(142, 212, 255, 0.4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 1.25rem;
  color: var(--text);
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 0.6rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border: 2px solid #000;
  image-rendering: pixelated;
}

.footer-brand span {
  color: var(--accent);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.4rem;
}

.footer-list a {
  color: var(--muted);
  font-family: var(--font-ui);
}

.footer-list a:hover {
  color: var(--glow);
}

.footer-title {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  text-shadow: 1px 1px 0 #000;
  margin: 0 0 0.7rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 2px solid #000;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-ip {
  font-family: var(--font-ui);
  color: var(--glow);
  text-shadow: 1px 1px 0 #000, 0 0 12px rgba(142, 212, 255, 0.45);
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .grid-3,
  .info-split,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
  }

  .nav-overlay.is-open,
  .nav-overlay {
    display: block;
    position: fixed;
    inset: var(--nav-height) 0 0;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    pointer-events: none;
    z-index: 110;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-drawer {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    bottom: 0;
    width: min(20rem, 100%);
    padding: 0.85rem;
    background: #1a1424;
    border-left: 3px solid #000;
    transform: translateX(100%);
    transition: transform 160ms ease;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .nav-drawer.is-open {
    transform: translateX(0);
  }

  .nav-drawer a:not(.mc-btn) {
    display: flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-ui);
    font-weight: 500;
    text-shadow: 2px 2px 0 #3f3f3f;
    border: 2px solid #000;
    background-color: #6e6e6e;
    background-image: url("../assets/ui/button.svg");
    background-size: 100% 100%;
    box-shadow:
      inset 2px 2px 0 #ffffff6e,
      inset -2px -2px 0 #373737;
  }

  .nav-drawer a:not(.mc-btn):hover,
  .nav-drawer a:not(.mc-btn):focus-visible {
    color: var(--glow);
    text-shadow: 2px 2px 0 #0b3d66;
    background-image: url("../assets/ui/button-hover.svg");
  }

  .nav-drawer .mc-btn {
    width: 100%;
    margin-top: 0.35rem;
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-2,
  .info-split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .brand-text {
    display: none;
  }
}
