.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border, #e2e8f0);
  transition: box-shadow 0.28s ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05));
}

.nav-shell {
  position: relative;
  min-height: 60px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main, #0f172a);
}

.logo span {
  color: var(--accent, #3b82f6);
}

.nav-home {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 60;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border, #e2e8f0);
  background: rgb(255 255 255 / 0.94);
  color: var(--text-main, #0f172a);
  box-shadow: var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05));
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.nav-home:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1));
  color: var(--accent, #3b82f6);
  background: #ffffff;
}

.nav-home svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.footer {
  padding: 24px 0 36px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted, #64748b);
  border-top: 1px solid var(--border, #e2e8f0);
  background: rgb(255 255 255 / 0.72);
}

@media (max-width: 720px) {
  .nav-home {
    top: 10px;
    left: 10px;
    width: 38px;
    height: 38px;
  }
}
