/* ─────────────────────────────────────────────
   NAV — pílula flutuante FIXED TOP, glassmorphism.
   Logo (mark+wordmark) + menu central + Entrar + CTA, tudo inline.
   Aparece com fade na entrada da página.
   ───────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 7px 7px 18px;
  background: rgba(251, 250, 247, 0.78);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(10, 10, 18, 0.06);
  border-radius: 999px;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.55) inset,
    0 16px 44px -16px rgba(10, 10, 18, 0.18),
    0 4px 14px -4px rgba(10, 10, 18, 0.08);
  opacity: 0;
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.nav.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Em sections dark (Bloco 3, 4, etc), nav fica com bg invertido */
.nav.is-on-dark {
  background: rgba(10, 10, 18, 0.62);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.06) inset,
    0 16px 44px -16px rgba(0, 0, 0, 0.5),
    0 4px 14px -4px rgba(0, 0, 0, 0.3);
}

.nav.is-on-dark .nav__brand {
  color: var(--text-on-ink);
}

.nav.is-on-dark .nav__menu a,
.nav.is-on-dark .nav__signin {
  color: rgba(251, 250, 247, 0.65);
}

.nav.is-on-dark .nav__menu a:hover,
.nav.is-on-dark .nav__signin:hover {
  color: var(--text-on-ink);
  background: rgba(255, 255, 255, 0.06);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.02em;
  color: var(--text);
  padding-right: 12px;
  border-right: 1px solid rgba(10, 10, 18, 0.08);
  margin-right: 4px;
  transition: color 200ms;
}

.nav__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  font-family: var(--font-display, "Plus Jakarta Sans", system-ui, sans-serif);
  line-height: 1;
  user-select: none;
}

.nav__logo-row {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.nav__logo-n {
  background: linear-gradient(135deg, #7C3AED 0%, #2DD4BF 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nav__logo-eura {
  color: #6D28D9;
}

.nav__logo-line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 2px 0 3px;
  background: linear-gradient(90deg, #2DD4BF 0%, #14B8A6 100%);
  border-radius: 1px;
}

.nav__logo-plan {
  font-size: 10.5px;
  font-weight: 500;
  color: #5B21B6;
  letter-spacing: 0.42em;
  padding-left: 1px;
}

.nav.is-on-dark .nav__logo-eura {
  color: #C4B5FD;
}

.nav.is-on-dark .nav__logo-plan {
  color: #DDD6FE;
}

.nav__cta-label--short {
  display: none;
}

.nav.is-on-dark .nav__brand {
  border-right-color: rgba(255, 255, 255, 0.12);
}

.nav__brand .mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #8B47F2 0%, var(--purple) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.18) inset,
    0 4px 10px -2px rgba(124, 58, 237, 0.4);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__menu a {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 450;
  color: var(--text-2);
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 180ms, background 180ms;
  white-space: nowrap;
}

.nav__menu a:hover {
  color: var(--text);
  background: rgba(10, 10, 18, 0.04);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid rgba(10, 10, 18, 0.08);
}

.nav.is-on-dark .nav__right {
  border-left-color: rgba(255, 255, 255, 0.12);
}

.nav__signin {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 450;
  color: var(--text-2);
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 180ms, background 180ms;
  white-space: nowrap;
}

.nav__signin:hover {
  color: var(--text);
  background: rgba(10, 10, 18, 0.04);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  background: var(--purple);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  margin-left: 2px;
  white-space: nowrap;
  transition: transform 200ms var(--ease-out), background 200ms, box-shadow 200ms;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.18) inset,
    0 6px 18px -6px rgba(124, 58, 237, 0.5),
    0 0 0 1px rgba(124, 58, 237, 0.55);
}

.nav__cta:hover {
  background: #8B47F2;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 24px -6px rgba(124, 58, 237, 0.65),
    0 0 0 1px rgba(124, 58, 237, 0.7);
}

.nav__cta .arrow {
  transition: transform 220ms var(--ease-out);
}

.nav__cta:hover .arrow {
  transform: translateX(3px);
}

/* Mobile: barra full-width no topo (não pill flutuante).
   Logo à esquerda, "Já sou Aluno" + CTA à direita. */
@media (max-width: 760px) {
  .nav {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(-12px);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    padding: 10px 16px;
    gap: 4px;
    justify-content: space-between;
    background: rgba(251, 250, 247, 0.92);
    box-shadow:
      0 1px 0 0 rgba(255, 255, 255, 0.5) inset,
      0 8px 20px -10px rgba(10, 10, 18, 0.12);
  }
  .nav.is-visible {
    transform: translateY(0);
  }
  .nav__menu {
    display: none;
  }
  .nav__brand {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
  }
  .nav__logo-row {
    font-size: 19px;
  }
  .nav__logo-plan {
    font-size: 11px;
  }
  .nav__right {
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
    gap: 4px;
  }
  .nav__signin {
    font-size: 13px;
    padding: 8px 10px;
  }
  .nav__cta {
    height: 40px;
    padding: 0 16px;
    font-size: 13px;
    gap: 5px;
  }
  .nav__cta .arrow {
    display: none;
  }
  .nav__cta-label--full {
    display: none;
  }
  .nav__cta-label--short {
    display: inline;
  }
}

@media (max-width: 380px) {
  .nav {
    padding: 9px 12px;
  }
  .nav__logo-row {
    font-size: 17px;
  }
  .nav__logo-plan {
    font-size: 10px;
  }
  .nav__signin {
    font-size: 12px;
    padding: 7px 8px;
  }
  .nav__cta {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
}
