.skip-link {
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 13, 24, 0.9);
  color: #f5f8ff;
  padding: 12px 20px;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: top 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  z-index: 1000;
}

.skip-link:focus-visible {
  top: 18px;
  opacity: 1;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  backdrop-filter: blur(22px);
  background: rgba(5, 9, 17, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-shell {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.04em;
  color: inherit;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #050910;
  color: inherit;
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 14px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.brand-name {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 40px);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.6);
}

.nav-link {
  position: relative;
  padding-bottom: 6px;
  color: inherit;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(65, 240, 255, 0), rgba(65, 240, 255, 0.9), rgba(159, 107, 255, 0));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #f5f8ff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 13, 24, 0.75);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-shell.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-shell.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-shell.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-shell.is-open .nav-drawer {
  max-height: 420px;
  opacity: 1;
}

.nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(6, 11, 22, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}

.nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.nav-drawer a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.72);
}

.footer-shell {
  width: min(1120px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 4vw, 40px);
  justify-items: center;
  text-align: center;
}

.footer-brand {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.footer-section h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: rgba(226, 238, 255, 0.72);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 208, 240, 0.5);
}

.footer-bottom a {
  color: inherit;
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-drawer {
    display: block;
  }
}

@media (max-width: 640px) {
  .brand-name {
    display: none;
  }

  .brand-badge {
    width: 40px;
    height: 40px;
  }
}
