/* ═══════════════════════════════════════════════════════════
   NAVBAR — Centered floating pill (OOAK style)
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: max-content;
  max-width: min(960px, calc(100% - 32px));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: #000000;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: background 0.5s ease-out, border-color 0.5s ease-out;
}

@media (min-width: 768px) {
  .navbar {
    top: 40px;
  }
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 20px;
  gap: 24px;
  white-space: nowrap;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-size: 24px;
  font-weight: 100;
  line-height: 1.2;
  letter-spacing: -0.48px;
  user-select: none;
  flex-shrink: 0;
  text-decoration: none;
}

.navbar__logo-icon {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
}

/* ── Desktop Nav Links — aligned to the right edge ── */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: flex-end;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.4px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.25s ease-out, color 0.25s ease-out;
}

.nav-link:hover {
  color: var(--color-text);
  opacity: 1;
}

.nav-link--active {
  color: var(--color-text);
}

/* ═══════════════════════════════════════════════════════════
   TELEGRAM CTA BUTTON — Exact Ecosystem Button Parity
   Matches .ecosystem-card__cta .btn (outline + invert hover)
   ═══════════════════════════════════════════════════════════ */
.nav-btn-telegram,
.nav-link--telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  height: 32px;
  box-sizing: border-box;
  padding: 0 14px;
  border-radius: 0;
  border: 1px solid var(--border-strong);
  color: var(--color-text);
  background: var(--color-bg);
  transition: all .3s ease-out;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

.nav-btn-telegram:hover,
.nav-link--telegram:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.nav-btn-telegram:active,
.nav-link--telegram:active {
  transform: translateY(1px);
}

/* Mobile Header Button: Strictly hidden on PC / Desktop */
.nav-btn-telegram--mobile {
  display: none !important;
}

@media (max-width: 809px) {
  .nav-btn-telegram--mobile {
    display: inline-flex !important;
    height: 32px;
    box-sizing: border-box;
    padding: 0 10px;
    font-size: 12px;
    letter-spacing: .04em;
    border-radius: 0;
    border: 1px solid var(--border-strong);
    background: var(--color-bg);
    color: var(--color-text);
    transition: all .3s ease-out;
    margin-left: auto;
    max-width: calc(100vw - 165px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-btn-telegram--mobile:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
  }
}

.nav-dot {
  width: 7px;
  height: 7px;
  background: var(--color-text);
  transform: rotate(45deg);
  display: inline-block;
  transition: background-color 0.5s ease-out;
}

.nav-claw {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.3s ease;
}

.nav-claw svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Mobile Hamburger */
.hamburger {
  width: 36px;
  height: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}


.hamburger:hover,
.hamburger.open {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.hamburger__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.hamburger__icon--close {
  opacity: 0;
  transform: rotate(90deg) scale(0.75);
}

.hamburger.open .hamburger__icon--open {
  opacity: 0;
  transform: rotate(-90deg) scale(0.75);
}

.hamburger.open .hamburger__icon--close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Mobile menu dropdown */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 12px 16px 16px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  margin: 0;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu__lang {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.mobile-menu__lang-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.5));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.mobile-menu__lang-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.mobile-lang-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 0;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.65));
  background: transparent;
  transition: all 0.2s ease-out;
}

.mobile-lang-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-lang-btn.active {
  color: #ffffff;
  font-weight: 500;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   LANGUAGE SWITCHER — Dropdown with Globe (TIGER Brutalist)
   ═══════════════════════════════════════════════════════════ */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-left: 1px solid var(--border-strong, rgba(255, 255, 255, 0.15));
  padding-left: 14px;
  margin-left: 6px;
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 4px 6px;
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.7));
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.25s ease-out;
}

.lang-switch__btn:hover,
.lang-switch.open .lang-switch__btn {
  color: var(--color-text, #ffffff);
}

.lang-switch__chevron {
  opacity: 0.6;
  transition: transform 0.25s ease-out;
}

.lang-switch.open .lang-switch__chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.lang-switch__menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: -20px;
  min-width: 146px;
  background: #000000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  padding: 4px 0;
  z-index: 1001;
  flex-direction: column;
}

@keyframes langMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-switch.open .lang-switch__menu {
  display: flex;
  animation: langMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lang-switch__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.7));
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.15s ease-out, color 0.15s ease-out;
}

.lang-switch__item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.lang-switch__item.active {
  color: #ffffff;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
}