.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 100;
  width: max-content;
  max-width: calc(100% - 32px);
  height: 52px;
  padding: 0 12px 0 18px;
  display: grid;
  grid-template-columns: auto auto auto;
  column-gap: clamp(28px, 4vw, 64px);
  align-items: center;
  background: rgba(4, 4, 4, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--hairline-2);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
  transform: translateX(-50%);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  color: var(--display);
  font-family: 'Inter Tight', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.logo-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.55);
}

.nav-links {
  display: flex;
  justify-self: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  padding: 7px 13px;
  color: var(--body);
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s, background .2s;
}

.nav-links a:hover {
  color: var(--display);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a[aria-current="page"] { color: var(--display); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  padding: 7px 15px;
  color: var(--ink);
  background: var(--display);
  border: 0;
  border-radius: 7px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform .2s, background .2s;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .nav {
    top: 8px;
    width: calc(100% - 16px);
    max-width: none;
    padding: 0 10px 0 16px;
    grid-template-columns: 1fr auto;
    column-gap: 16px;
  }

  .nav-links { display: none; }
  .nav-cta { min-height: 44px; }
}
