/* ── Custom Desktop Navbar ───────────────────────────────────────────── */

.bnh-nav {
  position: relative;
  width: 100%;
  background: transparent;
  border-bottom: none;
  box-sizing: border-box;
}

.bnh-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 32px;
  height: 72px;
}

/* Logo */
.bnh-nav-logo img {
  display: block;
  height: 48px;
  width: auto;
}

/* Desktop links */
.bnh-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bnh-nav-links a {
  font-family: Exo, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1.5px solid transparent;
  border-radius: 30px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.bnh-nav-links a:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
}

/* Telegram CTA — stands out */
.bnh-nav-links .bnh-nav-tg {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

.bnh-nav-links .bnh-nav-tg:hover {
  background: rgba(255,255,255,0.18);
  border-color: #fff;
}

/* Active page highlight */
.bnh-nav-links a.bnh-active {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06);
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 991px) {
  /* Hide the custom nav on mobile — Webflow mobile nav takes over */
  .bnh-nav {
    display: none !important;
  }
}

/* Hide only the Webflow desktop navbar — mobile one is kept as-is */
.navbar-3-desktop {
  display: none !important;
}

/* Contract address under the Join buttons */
.bnh-contract {
  text-align: center;
  padding: 34px 16px 30px;
  opacity: 0;
  animation: bnhContractIn 1.2s ease-out 2.4s forwards;
}

@keyframes bnhContractIn {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}

.bnh-contract-link {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 42px;
  line-height: 1.1;
  white-space: nowrap;
  transition: font-size 0.6s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.4s ease;
}

/* Shortened address that unrolls to the full one on hover / keyboard focus */
.bnh-ca-dots,
.bnh-ca-mid {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
}

.bnh-ca-dots {
  max-width: 2em;
  transition: max-width 0.35s ease 0.1s, opacity 0.25s ease 0.1s;
}

.bnh-ca-mid {
  width: var(--scramble-w, auto);
  max-width: 0;
  opacity: 0;
  transition: max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

/* Phones / tablets: unchanged original behaviour (short address, small hover nudge) */
@media not all and (hover: hover) and (pointer: fine) and (min-width: 992px) {
  .bnh-contract-link {
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .bnh-contract-link:hover {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

/* Address + copy button: hovering either keeps the full address open */
.bnh-ca-row {
  display: inline-block;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
  .bnh-ca-row:hover .bnh-contract-link,
  .bnh-ca-row:has(:focus-visible) .bnh-contract-link {
    /* shrink only if the full address wouldn't fit the screen */
    font-size: min(42px, calc((100vw - 190px) / 24));
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
  }

  .bnh-ca-row:hover .bnh-ca-dots,
  .bnh-ca-row:has(:focus-visible) .bnh-ca-dots {
    max-width: 0;
    opacity: 0;
    transition: max-width 0.3s ease, opacity 0.2s ease;
  }

  .bnh-ca-row:hover .bnh-ca-mid,
  .bnh-ca-row:has(:focus-visible) .bnh-ca-mid {
    max-width: var(--scramble-w, 20em);
    opacity: 1;
    transition: max-width 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s, opacity 0.4s ease 0.1s;
  }
}

.bnh-contract-label,
.bnh-contract-label em {
  font-family: 'Permanent Marker', cursive, sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 50px;
}

.bnh-contract-address {
  font-family: Exo, sans-serif;
  font-weight: 500;
}

.bnh-copy-btn {
  display: inline-block;
  vertical-align: middle;
  background: none;
  border: none;
  padding: 0;
  margin-left: 14px;
  cursor: pointer;
  color: #fff;
  width: 30px;
  height: 30px;
  position: relative;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bnh-copy-btn:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.bnh-copy-btn svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.2s ease;
}

.bnh-copy-btn .bnh-check-icon {
  opacity: 0;
}

.bnh-copy-btn.copied .bnh-copy-icon {
  opacity: 0;
}

.bnh-copy-btn.copied .bnh-check-icon {
  opacity: 1;
}

@media (max-width: 767px) {
  .bnh-contract-link {
    font-size: 30px;
  }

  .bnh-contract-label,
  .bnh-contract-label em {
    font-size: 33px;
  
  }

  .bnh-copy-btn {
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }
}

/* Jiggle animation for Launch Event button */
@keyframes bnhJiggle {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-4deg); }
  30%  { transform: rotate(3deg); }
  45%  { transform: rotate(-3deg); }
  60%  { transform: rotate(2deg); }
  75%  { transform: rotate(-1deg); }
  100% { transform: rotate(0deg); }
}

.link-block-14 {
  transition: transform 0.2s ease;
}

.link-block-14:hover,
.link-block-14:focus {
  animation: bnhJiggle 0.5s ease-in-out;
}
