.nav-shell {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 32px;
}

.nav-inner {
  width: min(100%, 1088px);
  min-height: 56px;
  border-radius: 999px;
  pointer-events: auto;
  --glass-frost: .24;
  --glass-saturation: 1.18;
  --glass-brightness: 1.03;
  --filter-id: url(#nav-glass-filter);
}

.glass-surface {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity .26s ease-out, transform .2s ease-out;
}

.glass-surface__filter {
  width: 100%;
  height: 100%;
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: -1;
}

.glass-surface__content {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px;
  border-radius: inherit;
  position: relative;
  z-index: 1;
}

.glass-surface--svg {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .18)),
    rgba(248, 248, 248, var(--glass-frost));
  -webkit-backdrop-filter: var(--filter-id) saturate(var(--glass-saturation)) brightness(var(--glass-brightness)) blur(18px);
  backdrop-filter: var(--filter-id) saturate(var(--glass-saturation)) brightness(var(--glass-brightness)) blur(18px);
  border: 1px solid rgba(255, 255, 255, .58);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .18) inset,
    0 18px 58px rgba(0, 0, 0, .13),
    0 6px 18px rgba(0, 0, 0, .08),
    inset 0 1px 0 rgba(255, 255, 255, .86),
    inset 0 -1px 0 rgba(0, 0, 0, .08);
}

.glass-surface--fallback {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .2)),
    rgba(248, 248, 248, .24);
  -webkit-backdrop-filter: blur(18px) saturate(1.18) brightness(1.03);
  backdrop-filter: blur(18px) saturate(1.18) brightness(1.03);
  border: 1px solid rgba(255, 255, 255, .58);
  box-shadow:
    0 18px 58px rgba(0, 0, 0, .13),
    0 6px 18px rgba(0, 0, 0, .08),
    inset 0 1px 0 rgba(255, 255, 255, .86),
    inset 0 -1px 0 rgba(0, 0, 0, .08);
}

.glass-surface::before {
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .03));
  content: "";
  pointer-events: none;
  z-index: 0;
}

.glass-surface:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 2px;
}

.brand {
  width: 94px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-self: start;
  padding-left: 14px;
}

.brand img {
  width: 72px;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  color: rgba(33, 33, 33, .72);
  font-size: 14px;
  font-weight: 620;
  line-height: 1;
  position: relative;
  justify-self: center;
  padding: 3px;
  border-radius: 999px;
  isolation: isolate;
}

.nav-links a {
  position: relative;
  z-index: 3;
  border-radius: 999px;
  padding: 13px 16px;
  text-shadow: none;
  transition: color .2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.is-active {
  color: #fff;
}

.gooey-indicator {
  position: absolute;
  left: 1px;
  top: 1px;
  width: var(--gooey-width, 82px);
  height: calc(var(--gooey-height, 40px) - 2px);
  border-radius: 999px;
  pointer-events: none;
  transform: translate3d(var(--gooey-left, 3px), var(--gooey-top, 3px), 0);
  will-change: transform, width, height;
  transition:
    transform .36s cubic-bezier(.22, 1, .36, 1),
    width .36s cubic-bezier(.22, 1, .36, 1),
    height .36s cubic-bezier(.22, 1, .36, 1);
  z-index: 1;
  background: var(--ink);
  box-shadow:
    0 10px 26px rgba(33, 33, 33, .2),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  filter: url(#gooey-filter);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.nav-actions .pill {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.nav-actions .pill::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 42%);
  content: "";
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.nav-actions .pill:hover::after {
  opacity: 1;
}

.nav-actions .pill-light {
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  backdrop-filter: blur(10px) saturate(1.5);
  border-color: rgba(255, 255, 255, .62);
}

.nav-actions .pill-dark:hover,
.nav-actions .pill-dark:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow:
    0 12px 30px rgba(254, 110, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .28);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  position: relative;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transition: transform .2s ease, opacity .2s ease;
}

.menu-lines::before {
  transform: translateY(-6px);
}

.menu-lines::after {
  transform: translateY(4px);
}

body.menu-open .menu-lines {
  background: transparent;
}

body.menu-open .menu-lines::before {
  transform: translateY(2px) rotate(45deg);
  background: #fff;
}

body.menu-open .menu-lines::after {
  transform: translateY(0) rotate(-45deg);
  background: #fff;
}

.mobile-menu {
  display: block;
  position: fixed;
  inset: 70px 14px auto;
  z-index: 45;
  border-radius: 24px;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .55);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(.98);
  transform-origin: top center;
  visibility: hidden;
  transition: opacity .2s ease, transform .24s var(--motion-spring), visibility .2s ease;
}

.mobile-menu-main {
  display: grid;
  gap: 3px;
}

.mobile-menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 14px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
}

.mobile-menu a + a {
  margin-top: 2px;
}

.mobile-menu a:active,
.mobile-menu a:focus-visible {
  background: rgba(31, 31, 31, .06);
  outline: 0;
}

.mobile-menu a span {
  display: block;
  color: rgba(33, 33, 33, .42);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .14em;
}

.mobile-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(33, 33, 33, .1);
}

.mobile-menu .mobile-menu-action {
  min-height: 44px;
  justify-content: center;
  margin-top: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 780;
}

.mobile-menu .mobile-menu-action--secondary {
  background: rgba(255, 255, 255, .64);
  border: 1px solid rgba(255, 255, 255, .75);
}

.mobile-menu .mobile-menu-action--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

body.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.footer-wrap {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 14px 0 24px;
}

.footer-wrap footer {
  width: var(--wide-panel);
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #252525 0%, #191919 100%);
  color: #fff;
  padding: 48px 56px 30px;
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 24px 70px rgba(33, 33, 33, .12);
}

.footer-content {
  width: min(var(--rail), 100%);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.footer-brand {
  width: 178px;
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.footer-logo-split {
  position: relative;
  width: 178px;
  height: 72px;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .24));
}

.footer-logo-piece {
  position: absolute;
  display: block;
  pointer-events: none;
}

.footer-logo-piece--ten {
  top: 0;
  left: 0;
  width: 178px;
  height: 72px;
  overflow: visible;
}

.footer-logo-piece--ten img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.footer-logo-piece--x {
  top: 5px;
  left: 115px;
  width: 60px;
  height: 60px;
  overflow: visible;
  transform-origin: 50% 50%;
  animation: footer-x-rotate 4.8s ease-in-out infinite, footer-x-blur 4.8s ease-in-out infinite;
  will-change: transform, filter;
}

.footer-logo-piece--x img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

@keyframes footer-x-rotate {
  0%, 16% {
    transform: rotate(0deg) scale(1);
    animation-timing-function: cubic-bezier(.16, .82, .24, 1);
  }
  22% {
    transform: rotate(-9deg) scale(.985);
    animation-timing-function: cubic-bezier(.14, .94, .28, 1);
  }
  42% {
    transform: rotate(372deg) scale(1.035);
    animation-timing-function: cubic-bezier(.18, .86, .28, 1);
  }
  52% {
    transform: rotate(356deg) scale(.998);
    animation-timing-function: cubic-bezier(.18, .86, .28, 1);
  }
  62%, 100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes footer-x-blur {
  0%, 17%, 62%, 100% { filter: blur(0); }
  30% { filter: blur(1.8px); }
  42% { filter: blur(2.4px); }
  54% { filter: blur(.8px); }
}

.footer-tagline {
  max-width: 500px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 15px;
  font-weight: 560;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 28px;
}

.footer-links h4 {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .42);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 620;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
  font-weight: 560;
}

@media (min-width: 960px) {
  .mobile-menu {
    display: none;
  }
}

@media (max-width: 959px) {
  .nav-shell {
    inset: 10px 0 auto;
    padding: 0 14px;
    justify-content: center;
    transition: padding .34s cubic-bezier(.4, 0, .2, 1);
  }

  .nav-inner {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    -webkit-backdrop-filter: blur(12px) saturate(1.12) brightness(1.02);
    backdrop-filter: blur(12px) saturate(1.12) brightness(1.02);
    transition:
      width .34s cubic-bezier(.4, 0, .2, 1),
      max-width .34s cubic-bezier(.4, 0, .2, 1),
      height .34s cubic-bezier(.4, 0, .2, 1),
      border-radius .34s ease;
  }

  .nav-content,
  .nav-shell.past-hero .nav-content,
  body.menu-open .nav-shell .nav-content,
  body.menu-open .nav-shell.past-hero .nav-content {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 4px;
    padding: 6px 10px 6px 8px;
  }

  .brand,
  .nav-shell.past-hero .brand,
  body.menu-open .nav-shell .brand,
  body.menu-open .nav-shell.past-hero .brand {
    width: auto;
    height: 32px;
    padding: 0;
    margin-left: 2px;
    flex: 0 0 auto;
    overflow: hidden;
    max-width: 66px;
    display: flex;
    align-items: center;
    opacity: 1;
    transition: max-width .3s cubic-bezier(.4, 0, .2, 1), opacity .22s ease, margin .3s ease;
  }

  .brand img {
    width: 50px;
  }

  .nav-links,
  .gooey-indicator {
    display: none;
  }

  .nav-actions {
    gap: 6px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }

  .nav-actions .pill,
  .nav-shell.past-hero .nav-actions .pill,
  body.menu-open .nav-shell .nav-actions .pill,
  body.menu-open .nav-shell.past-hero .nav-actions .pill {
    min-height: 34px;
    padding: 0 12px;
    margin: 0;
    font-size: 12px;
    font-weight: 640;
    overflow: hidden;
    max-width: none;
    opacity: 1;
    white-space: nowrap;
    transition: opacity .22s ease, padding .3s ease, margin .3s ease, background .2s ease, color .2s ease, border-color .2s ease;
  }

  .nav-actions .pill-light,
  .nav-actions .pill-dark {
    display: inline-flex;
  }

  .nav-actions .pill-light {
    background: rgba(255, 255, 255, .46);
    border-color: rgba(255, 255, 255, .54);
  }

  .menu-button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    background: transparent;
    color: var(--ink);
    flex: 0 0 auto;
  }

  .nav-shell.past-hero,
  body.menu-open .nav-shell,
  body.menu-open .nav-shell.past-hero {
    justify-content: center;
    padding: 0 14px;
  }

  .nav-shell.past-hero .nav-inner,
  body.menu-open .nav-shell .nav-inner,
  body.menu-open .nav-shell.past-hero .nav-inner {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 50px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .menu-button {
    background: rgba(33, 33, 33, .94);
    color: #fff;
    box-shadow:
      0 10px 24px rgba(33, 33, 33, .2),
      inset 0 1px 0 rgba(255, 255, 255, .18);
  }

  .mobile-menu {
    -webkit-backdrop-filter: blur(16px) saturate(1.18);
    backdrop-filter: blur(16px) saturate(1.18);
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 540px) {
  .nav-shell,
  .nav-shell.past-hero,
  body.menu-open .nav-shell,
  body.menu-open .nav-shell.past-hero {
    padding: 0 10px;
  }

  .nav-content,
  .nav-shell.past-hero .nav-content,
  body.menu-open .nav-shell .nav-content,
  body.menu-open .nav-shell.past-hero .nav-content {
    padding: 6px 8px;
  }

  .nav-actions {
    gap: 5px;
  }

  .nav-actions .pill,
  .nav-shell.past-hero .nav-actions .pill,
  body.menu-open .nav-shell .nav-actions .pill,
  body.menu-open .nav-shell.past-hero .nav-actions .pill {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .menu-button {
    width: 32px;
    height: 32px;
  }

  .brand,
  .nav-shell.past-hero .brand,
  body.menu-open .nav-shell .brand,
  body.menu-open .nav-shell.past-hero .brand {
    max-width: 58px;
  }

  .brand img {
    width: 48px;
  }

  .mobile-menu {
    inset: 66px 10px auto;
  }

  .footer-wrap footer {
    padding: 34px 24px 26px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .nav-actions .pill,
  .nav-shell.past-hero .nav-actions .pill,
  body.menu-open .nav-shell .nav-actions .pill,
  body.menu-open .nav-shell.past-hero .nav-actions .pill {
    padding: 0 8px;
    font-size: 10.5px;
  }

  .brand,
  .nav-shell.past-hero .brand,
  body.menu-open .nav-shell .brand,
  body.menu-open .nav-shell.past-hero .brand {
    max-width: 54px;
  }

  .brand img {
    width: 45px;
  }
}
