/* Landing Header - escopo exclusivo do cabeçalho da landing */

body.landing .landing-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 80;
  width: min(calc(100% - 64px), 1680px);
  margin: 0;
  padding: 34px 0 0;
  transform: translateX(-50%);
}

body.landing .landing-header-bar {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr) minmax(260px, auto);
  align-items: center;
  gap: clamp(22px, 3vw, 52px);
  min-height: 58px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

body.landing .landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: fit-content;
}

body.landing .landing-brand-mark {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body.landing .landing-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 22px rgba(90, 139, 255, .20));
}

body.landing .landing-brand-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

body.landing .landing-brand-title {
  display: block;
  color: #f6f9ff;
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.035em;
  white-space: nowrap;
}

body.landing .landing-brand-subtitle,
body.landing .landing-brand-label,
body.landing .landing-brand-field {
  display: none;
}

body.landing .landing-menu-toggle {
  display: none;
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(145, 173, 255, .18);
  border-radius: 15px;
  color: #eef4ff;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  cursor: pointer;
}

body.landing .landing-nav-shell {
  display: contents;
  min-width: 0;
  overflow: visible;
}

body.landing .landing-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 58px);
  min-width: 0;
}

body.landing .landing-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 2px;
  color: rgba(222, 230, 248, .74);
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: -.02em;
  transition: color .18s ease, transform .18s ease, text-shadow .18s ease;
}

body.landing .landing-nav a:hover,
body.landing .landing-nav a:focus-visible,
body.landing .landing-nav a.active {
  color: #fff;
  transform: translateY(-1px);
  text-shadow: 0 0 20px rgba(127, 165, 255, .34);
  outline: none;
}

body.landing .landing-nav-home {
  display: none !important;
}

body.landing .landing-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
  position: relative;
  z-index: 4;
  overflow: visible;
  justify-self: end;
}

body.landing .landing-header-spacer {
  display: block;
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  min-height: 46px;
  visibility: hidden;
  pointer-events: none;
}

body.landing .landing-profile-wrap {
  position: relative;
  min-width: 0;
  width: min(320px, 100%);
  max-width: 320px;
}

body.landing .landing-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 320px;
  max-width: 320px;
  min-height: 46px;
  padding: 6px 12px 6px 7px;
  border-radius: 999px;
  border: 1px solid rgba(143, 173, 255, .18);
  color: #f3f7ff;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  cursor: pointer;
  overflow: hidden;
}

body.landing .landing-profile-btn img,
body.landing .landing-profile-btn .topnav-profile-avatar img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

body.landing .landing-profile-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

body.landing .landing-profile-copy strong,
body.landing .landing-profile-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.landing .landing-profile-copy strong {
  font-size: .82rem;
  line-height: 1.18;
}

body.landing .landing-profile-copy span {
  color: rgba(212, 224, 245, .66);
  font-size: .70rem;
  line-height: 1.18;
}

body.landing .landing-profile-caret {
  color: rgba(212, 224, 245, .6);
  font-size: .72rem;
  flex: 0 0 auto;
}

body.landing .landing-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: min(380px, calc(100vw - 32px));
  min-width: 340px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(145, 173, 255, .16);
  background: rgba(7, 15, 28, .96);
  box-shadow: 0 24px 60px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
}

body.landing .landing-profile-dropdown .topnav-menu-link {
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 74px;
}

body.landing .landing-profile-dropdown .topnav-menu-copy {
  gap: 4px;
}

body.landing .landing-profile-dropdown .topnav-menu-link span {
  white-space: normal;
}

body.landing .landing-profile-wrap.is-open .landing-profile-dropdown,
body.landing .topnav-profile.is-open .landing-profile-dropdown,
body.landing .landing-profile-dropdown.open,
body.landing .landing-profile-dropdown[aria-hidden='false'] {
  display: grid;
  gap: 4px;
}

@media (max-width: 1180px) {
  body.landing .landing-header {
    width: min(calc(100% - 48px), 980px);
    padding-top: 24px;
  }

  body.landing .landing-header-bar {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }

  body.landing .landing-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    grid-row: 1;
    font-size: 0;
  }

  body.landing .landing-menu-toggle::before {
    content: '☰';
    font-size: 1.15rem;
    line-height: 1;
  }

  body.landing .landing-nav-shell {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(145, 173, 255, .16);
    border-radius: 24px;
    background: rgba(8, 16, 30, .90);
    box-shadow: 0 18px 44px rgba(0,0,0,.26);
    backdrop-filter: blur(18px);
  }

  body.landing .landing-nav-shell.open {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.landing .landing-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.landing .landing-nav a {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    background: rgba(255,255,255,.04);
  }

  body.landing .landing-header-actions {
    justify-content: stretch;
  }

  body.landing .landing-header-actions > .landing-btn,
  body.landing .landing-header-spacer,
  body.landing .landing-profile-wrap,
  body.landing .landing-profile-btn {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 760px) {
  body.landing .landing-header {
    width: min(calc(100% - 28px), 640px);
    padding-top: 16px;
  }

  body.landing .landing-header-bar {
    min-height: 56px;
    gap: 12px;
  }

  body.landing .landing-brand-mark {
    width: 38px;
    height: 38px;
  }

  body.landing .landing-brand-title {
    max-width: 180px;
    font-size: .88rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.landing .landing-menu-toggle {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  body.landing .landing-nav {
    grid-template-columns: 1fr;
  }

  body.landing .landing-header-actions {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  body.landing .landing-brand-title {
    max-width: 145px;
  }
}

/* Header final lock 20260423e */
body.landing .landing-header {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  z-index: 100 !important;
  width: min(calc(100% - 64px), 1680px) !important;
  margin: 0 !important;
  padding: 34px 0 0 !important;
  transform: translateX(-50%) !important;
  pointer-events: auto !important;
}

body.landing .landing-header-bar {
  display: grid !important;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr) minmax(260px, auto) !important;
  align-items: center !important;
  gap: clamp(22px, 3vw, 52px) !important;
  min-height: 58px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: visible !important;
}

body.landing .landing-nav-shell {
  display: contents !important;
}

body.landing .landing-nav {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: clamp(28px, 4vw, 58px) !important;
  min-width: 0 !important;
}

body.landing .landing-nav a {
  min-height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(226, 234, 250, .74) !important;
  font-size: .86rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

body.landing .landing-nav a:hover,
body.landing .landing-nav a:focus-visible,
body.landing .landing-nav a.active {
  color: #fff !important;
  transform: translateY(-1px) !important;
  text-shadow: 0 0 20px rgba(127, 165, 255, .34) !important;
  outline: none !important;
}

body.landing .landing-header-actions {
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 0 !important;
  min-width: 0 !important;
  justify-self: end !important;
}

body.landing .landing-header-spacer {
  display: block !important;
  width: 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
  min-height: 46px !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.landing .landing-profile-wrap,
body.landing .landing-profile-btn {
  max-width: 320px !important;
}

@media (max-width: 1500px) {
  body.landing .landing-header { width: min(calc(100% - 56px), 1480px) !important; }
  body.landing .landing-header-bar {
    grid-template-columns: minmax(210px, auto) minmax(0, 1fr) minmax(240px, auto) !important;
    gap: clamp(20px, 2.4vw, 34px) !important;
  }
  body.landing .landing-nav { gap: clamp(24px, 2.8vw, 40px) !important; }
}

@media (max-width: 1280px) {
  body.landing .landing-header { width: min(calc(100% - 48px), 1120px) !important; padding-top: 26px !important; }
  body.landing .landing-header-bar {
    grid-template-columns: minmax(180px, auto) minmax(0, 1fr) minmax(220px, auto) !important;
    gap: 18px !important;
  }
  body.landing .landing-nav { gap: 20px !important; }
  body.landing .landing-nav a { font-size: .82rem !important; }
  body.landing .landing-header-spacer {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
  }
  body.landing .landing-profile-wrap,
  body.landing .landing-profile-btn {
    min-width: 300px !important;
    max-width: 300px !important;
  }
}

@media (max-width: 1180px) {
  body.landing .landing-header { width: min(calc(100% - 48px), 980px) !important; padding-top: 22px !important; }
  body.landing .landing-header-bar { grid-template-columns: auto 1fr auto !important; gap: 16px !important; }
  body.landing .landing-menu-toggle { display: inline-flex !important; align-items: center !important; justify-content: center !important; grid-column: 3 !important; grid-row: 1 !important; font-size: 0 !important; }
  body.landing .landing-menu-toggle::before { content: '☰'; font-size: 1.15rem; }
  body.landing .landing-nav-shell { display: none !important; }
  body.landing .landing-nav-shell.open { display: grid !important; grid-column: 1 / -1 !important; grid-template-columns: 1fr !important; gap: 14px !important; width: 100% !important; padding: 14px !important; border: 1px solid rgba(145,173,255,.16) !important; border-radius: 24px !important; background: rgba(8,16,30,.92) !important; box-shadow: 0 18px 44px rgba(0,0,0,.26) !important; backdrop-filter: blur(18px) !important; }
  body.landing .landing-nav-shell.open .landing-nav { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  body.landing .landing-nav-shell.open .landing-nav a { min-height: 44px !important; padding: 10px 12px !important; border: 1px solid rgba(255,255,255,.07) !important; border-radius: 16px !important; background: rgba(255,255,255,.04) !important; }
  body.landing .landing-nav-shell.open .landing-header-actions { justify-content: stretch !important; }
  body.landing .landing-nav-shell.open .landing-header-spacer { display: none !important; }
  body.landing .landing-nav-shell.open .landing-profile-wrap,
  body.landing .landing-nav-shell.open .landing-profile-btn { width: 100% !important; max-width: none !important; }
}

@media (max-width: 760px) {
  body.landing .landing-header { width: min(calc(100% - 28px), 640px) !important; padding-top: 16px !important; }
  body.landing .landing-brand-mark { width: 38px !important; height: 38px !important; }
  body.landing .landing-brand-title { max-width: 180px !important; font-size: .88rem !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  body.landing .landing-nav-shell.open .landing-nav { grid-template-columns: 1fr !important; }
  body.landing .landing-nav-shell.open .landing-header-actions { flex-direction: column !important; }
}
