.topbar {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 6%;
}

.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  white-space: nowrap;
}

.topbar-item svg {
  color: var(--teal);
  font-size: 13px;
}

a.topbar-item:hover {
  color: #ffffff;
}

@media (max-width: 720px) {
  .topbar-right {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .topbar-left a[href^="mailto"] {
    display: none;
  }
}

/* ── Language switcher ── */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #e6ebf5);
  background: #fff;
  color: var(--ink, #0b1220);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.lang-flag svg {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  border-radius: 2px;
}

.lang-caret {
  font-size: 10px;
  opacity: 0.7;
  color: var(--text-soft, #8791a1);
  transition: transform 0.25s ease;
}

.lang-btn[aria-expanded="true"] .lang-caret {
  transform: rotate(180deg);
  opacity: 1;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  background: var(--teal-tint);
  border-color: rgba(26, 122, 110, 0.35);
}

.lang-btn[aria-expanded="true"] {
  background: var(--teal-tint);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 122, 110, 0.12);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  list-style: none;
  background: #ffffff;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border, #e6ebf5);
  border-radius: 12px;
  box-shadow: var(--shadow-md, 0 16px 40px rgba(7, 26, 47, 0.16));
  padding: 8px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: lang-menu-in 0.18s ease;
}

.lang-menu[hidden] {
  display: none !important;
}

@keyframes lang-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-menu li {
  width: 100%;
}

.lang-menu li button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text, #5b6472);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-menu li button:hover,
.lang-menu li button:focus-visible {
  background: var(--teal-tint);
  color: var(--ink, #0b1220);
}

.lang-menu li button.active {
  color: var(--teal);
  font-weight: 700;
  background: var(--teal-tint);
}

.lang-menu li button.active::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

@media (max-width: 1240px) {
  .mobile-lang {
    width: 100%;
  }

  .mobile-lang .lang-btn {
    width: 100%;
    justify-content: center;
  }

  .mobile-lang .lang-menu {
    position: static;
    margin-top: 8px;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.15);
  }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border, #e6ebf5);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 0 6%;
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(7, 26, 47, 0.1);
}

.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 12px 0;
  gap: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: var(--ink, #0b1220);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
  flex: 1 1 0;
  flex-shrink: 0;
  margin-left: -18px;
}

.logoIcon {
  font-size: 22px;
  color: var(--teal);
}

/* #nav-links sits in its own flex-basis (sized to content) between the
   logo and the actions block. Because .logo and .navbar-actions both use
   "flex: 1 1 0", they always claim an EQUAL share of the leftover space
   on either side, which keeps the nav links mathematically centered in
   the navbar regardless of the logo/action blocks having different
   natural widths (previously this used `margin: 0 auto`, which only
   centers within the leftover space and gets skewed when the two sides
   aren't the same width). */
#nav-links {
  flex: 0 1 auto;
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  margin: 0 0 0 40px;
  justify-content: center;
}

.navbar ul li a {
  text-decoration: none;
  color: var(--text, #5b6472);
  font-weight: 600;
  font-size: 16.5px;
  white-space: nowrap;
  transition: color 0.25s ease;
  position: relative;
}

.navbar ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.25s ease;
}

.navbar ul li a:hover,
.navbar ul li a:focus-visible {
  color: var(--ink, #0b1220);
}

.navbar ul li a:hover::after,
.navbar ul li a:focus-visible::after {
  width: 100%;
}

.navbar ul li a.active {
  color: var(--teal);
}

.navbar ul li a.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1 1 0;
  flex-shrink: 0;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.store-btn-icon {
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.store-btn--play .store-btn-icon {
  font-size: 20px;
  background: linear-gradient(135deg, #00d4ff 0%, #00e07a 50%, #ffcc00 75%, #ff3d3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.15;
  white-space: nowrap;
}

.store-btn-text small {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.store-btn-text strong {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.store-btn:hover,
.store-btn:focus-visible {
  background: #1a1a1a;
  border-color: #1a1a1a;
  transform: translateY(-2px);
}

.cta-btn {
  padding: 11px 26px;
  border: none;
  border-radius: 30px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  background: var(--violet);
  color: #fff;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink, #0b1220);
  font-size: 22px;
  padding: 6px;
  flex: 1 1 0;
  justify-content: flex-end;
}

.mobile-cta {
  display: none;
}

@media (max-width: 1240px) {
  .desktop-only {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #nav-links {
    position: fixed;
    top: 64px;
    left: auto;
    right: 0;
    height: calc(100svh - 64px);
    width: min(78vw, 320px);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 28px 28px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -12px 0 30px rgba(7, 26, 47, 0.12);
  }

  #nav-links.open {
    transform: translateX(0);
  }

  .navbar ul li {
    width: 100%;
  }

  .navbar ul li a {
    display: block;
    padding: 12px 0;
    font-size: 17px;
    color: var(--ink, #0b1220);
    border-bottom: 1px solid var(--border, #e6ebf5);
  }

  .mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
  }

  .mobile-cta .cta-btn,
  .mobile-cta .store-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .mobile-cta .store-btn-text {
    align-items: flex-start;
  }
}



.logo-img {
  height: 74px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-icon-img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  display: block;
  border-radius: 9px;
  flex-shrink: 0;
}