

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(4, 10, 28, 0.38);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border-bottom: 1px solid rgba(80, 130, 255, 0.12);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark { flex-shrink: 0; }

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(200, 215, 255, 0.78);
  transition: color var(--transition-fast);
}

.nav-logo:hover .nav-logo-text {
  color: rgba(220, 235, 255, 0.95);
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(160, 190, 255, 0.65);
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
}

.nav-link.nav-active {
  color: rgba(200, 220, 255, 0.95);
}

.nav-link.nav-active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: rgba(120, 170, 255, 0.6);
}

.nav-link:hover:not(.nav-active) {
  color: rgba(195, 218, 255, 0.85);
}

.nav-link.nav-blog {
  color: rgba(140, 175, 255, 0.55);
}
.nav-link.nav-blog:hover {
  color: rgba(170, 205, 255, 0.82);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background var(--transition-fast);
}

.nav-hamburger:hover {
  background: rgba(100, 150, 255, 0.08);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(180, 210, 255, 0.75);
  border-radius: 2px;
  transition: all 0.28s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(2, 6, 20, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px 60px;
  gap: 8px;
}

.mobile-menu.open {
  display: flex;
  animation: menuFadeIn 0.3s ease forwards;
}

.mobile-menu-link {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 48px);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: rgba(180, 205, 255, 0.75);
  transition: color 0.2s ease, transform 0.2s ease;
  display: block;
  line-height: 1.2;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  color: rgba(230, 242, 255, 0.98);
  transform: translateY(-2px);
}

.mobile-menu-link.active {
  color: rgba(210, 232, 255, 0.95);
}

.mobile-menu-tagline {
  position: absolute;
  bottom: 36px;
  left: 40px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(100, 140, 210, 0.38);
  font-style: italic;
}

@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-footer-nav {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pfn-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(120, 160, 230, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease, gap 0.25s ease;
}

.pfn-link:hover { color: rgba(160, 200, 255, 0.82); }
.pfn-back:hover { gap: 12px; }
.pfn-next:hover { gap: 12px; }

.pfn-link svg { flex-shrink: 0; transition: transform 0.22s ease; }
.pfn-back:hover svg { transform: translateX(-3px); }
.pfn-next:hover svg { transform: translateX(3px); }

@media (max-width: 900px) {
  .site-nav { padding: 0 28px; height: 58px; }
  .nav-links { gap: 20px; }
  .nav-link  { font-size: 12px; letter-spacing: 0.1em; }
}

@media (max-width: 768px) {

  .nav-links     { display: none; }
  .nav-hamburger { display: flex; }
  .site-nav      { padding: 0 20px; height: 54px; }
  .nav-logo-text { font-size: 18px; }

  .page-footer-nav { padding: 0 20px 32px; }
  .pfn-link { font-size: 11px; gap: 6px; }
}

@media (max-width: 480px) {
  .pfn-link { font-size: 10px; gap: 4px; }
}
