:root {
  --nav-page-max-width: 1455px;
}

.jump-nav-row {
  z-index: 20;
  width: 588px;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.jump-nav-row.is-sticky {
  position: sticky;
  top: 22px;
  margin: -24px auto;
}

.hero-shell > .jump-nav-row,
.hero-panel > .jump-nav-row,
.why-hero > .jump-nav-row {
  position: absolute;
  left: 50%;
  bottom: 83px;
  transform: translateX(-50%);
}


.jump-nav-row.is-standalone {
  position: relative;
  margin: 42px auto 0;
}

.jump-pill-nav {
  flex: 0 0 480px;
  width: 480px;
  height: 50px;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 7px 7px 7px 3px;
  background: #ffffff;
  color: #00272b;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.jump-pill-nav a {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  color: inherit;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.jump-pill-nav a:hover,
.jump-contact-pill:hover {
  transform: translateY(-1px);
}

.jump-pill-nav .spark-link {
  width: 58px;
  min-width: 58px;
  padding: 0;
}

.jump-pill-nav .spark-link img {
  width: 56px;
  height: 56px;
  max-width: none;
  object-fit: contain;
}

.jump-pill-nav .is-active {
  min-height: 34px;
  background: #bff7ee;
}

.jump-contact-pill {
  min-width: 96px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(191, 247, 238, 0.28);
  border-radius: 999px;
  background: rgba(7, 62, 69, 0.9);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s ease;
}

@media (max-width: 760px) {
  .jump-nav-row {
    width: min(588px, calc(100% - 24px));
    gap: 8px;
  }

  .jump-pill-nav {
    flex: 1 1 auto;
    width: auto;
    overflow-x: auto;
  }

  .jump-pill-nav a {
    padding: 0 13px;
  }

  .jump-contact-pill {
    min-width: 82px;
  }
}

.top-nav,
.contact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 42px;
  padding-bottom: 0;
}

.top-nav.container,
.contact-header.container {
  width: min(var(--nav-page-max-width), calc(100% - 70px));
  margin: 0 auto;
}

.logo {
  width: 117px;
  height: 25px;
}

.nav-links,
.contact-nav {
  display: flex;
  align-items: center;
  gap: 45px;
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}

.nav-links a,
.contact-nav a {
  position: relative;
  color: inherit;
  opacity: 1;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover,
.contact-nav a:hover {
  color: inherit;
  opacity: 0.75;
}

.nav-links a.is-active,
.contact-nav a.is-active {
  color: #bff7ee;
  opacity: 1;
}

.nav-links a.is-active::after,
.contact-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 2px;
  border-radius: 999px;
  background: #36a39d;
  opacity: 0.95;
}

.language-switcher {
  position: relative;
  margin-left: 32px;
  color: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  z-index: 30;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.language-toggle:hover,
.language-switcher.is-open .language-toggle {
  color: #bff7ee;
}

.language-current {
  white-space: nowrap;
}

.language-chevron {
  position: relative;
  width: 11px;
  height: 7px;
  color: #bff7ee;
  font-size: 0;
  line-height: 0;
  transform: translateY(1px);
  transform-origin: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.language-chevron::before,
.language-chevron::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.language-chevron::before {
  left: 0;
  transform: rotate(45deg);
}

.language-chevron::after {
  right: 0;
  transform: rotate(-45deg);
}

.language-switcher.is-open .language-chevron {
  transform: translateY(1px);
}

.language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 178px;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(191, 247, 238, 0.22);
  border-radius: 20px;
  padding: 7px;
  background:
    radial-gradient(circle at 100% 0%, rgba(191, 247, 238, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(1, 49, 55, 0.98), rgba(0, 28, 32, 0.98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  color: #fefefe;
  backdrop-filter: blur(18px);
}

.language-switcher.is-open .language-menu {
  display: grid;
}

.language-menu button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 13px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-menu button:hover,
.language-menu button.is-active {
  color: #bff7ee;
  background: rgba(191, 247, 238, 0.1);
}

.mobile-menu-toggle,
.mobile-menu-panel,
.mobile-menu-inner,
.mobile-menu-eyebrow,
.mobile-menu-links,
.mobile-menu-cta,
.mobile-menu-language {
  display: none;
}

body.is-nav-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .top-nav,
  .contact-header {
    position: relative;
    flex-direction: row;
    gap: 16px;
    padding-top: 26px;
    z-index: 20;
  }

  .top-nav.container,
  .contact-header.container {
    width: min(var(--nav-page-max-width), calc(100% - 44px));
  }

  .nav-links,
  .contact-nav {
    display: none;
  }

  .language-switcher {
    display: none;
  }

  .mobile-menu-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(188, 242, 232, 0.34);
    border-radius: 50%;
    background: rgba(1, 49, 55, 0.72);
    color: inherit;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    -webkit-tap-highlight-color: transparent;
  }

  .is-mobile-menu-open .mobile-menu-toggle {
    position: fixed;
    top: max(16px, calc(env(safe-area-inset-top) + 16px));
    right: 18px;
    z-index: 1002;
    width: 48px;
    height: 48px;
    border: 2px solid #36a39d;
    outline: 2px solid rgba(254, 254, 254, 0.9);
    background: rgba(254, 254, 254, 0.96);
    color: #001c20;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  }

  .mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .is-mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .is-mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .is-mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding:
      max(78px, calc(env(safe-area-inset-top) + 68px))
      28px
      max(28px, calc(env(safe-area-inset-bottom) + 28px));
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 100% 0%, rgba(191, 247, 238, 0.18), transparent 36%),
      radial-gradient(circle at 0% 100%, rgba(54, 163, 157, 0.18), transparent 46%),
      linear-gradient(180deg, #013137 0%, #001c20 100%);
    color: #fefefe;
    box-shadow: none;
    backdrop-filter: blur(18px);
    overflow-y: auto;
  }

  .is-mobile-menu-open .mobile-menu-panel {
    display: block;
  }

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

  .mobile-menu-inner {
    width: min(100%, 620px);
    min-height: calc(100dvh - 106px);
    margin: 0 auto;
    flex-direction: column;
    justify-content: center;
  }

  .mobile-menu-eyebrow {
    margin: 0 0 22px;
    display: block;
    color: rgba(191, 247, 238, 0.72);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }

  .mobile-menu-links {
    display: grid;
  }

  .mobile-menu-links a {
    display: flex;
    align-items: center;
    min-height: 66px;
    border-bottom: 1px solid rgba(191, 247, 238, 0.22);
    color: #fefefe;
    font-family: "Funnel Display", "Funnel Sans", sans-serif;
    font-size: clamp(38px, 11vw, 58px);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.05em;
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  .mobile-menu-links a:hover,
  .mobile-menu-links a.is-active {
    padding-left: 8px;
    background: transparent;
    color: #bff7ee;
  }

  .mobile-menu-cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 28px;
    padding: 0 24px;
    border-radius: 999px;
    background: #36a39d;
    color: #fefefe;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  .mobile-menu-cta:hover {
    filter: brightness(1.08);
  }

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

  .mobile-menu-language {
    margin-top: 24px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .mobile-menu-language button {
    min-height: 38px;
    border: 1px solid rgba(191, 247, 238, 0.3);
    border-radius: 999px;
    padding: 0 14px;
    background: transparent;
    color: rgba(254, 254, 254, 0.72);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
  }

  .mobile-menu-language button.is-active {
    border-color: #36a39d;
    background: rgba(54, 163, 157, 0.18);
    color: #fefefe;
  }
}
