/* ═══════════════ NAV ═══════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 16px;
  background: rgba(7, 8, 8, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: padding .25s var(--ease), background .25s var(--ease);
}
.nav.scrolled { padding-block: 10px; background: rgba(7, 8, 8, 0.92); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  padding-bottom: 3px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.9rem; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }

@media (max-width: 860px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(7, 8, 8, 0.98);
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 20px 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s var(--ease), opacity .25s var(--ease);
  }
  .nav-links.is-open { max-height: 320px; opacity: 1; }
  .nav-links a { padding-block: 10px; width: 100%; }
  .nav-burger { display: flex; }
}
