:root {
  --wd-nav-blue-900: #050f1f;
  --wd-nav-text: #f7fbff;
  --wd-nav-soft: #d7e9ed;
  --wd-nav-green-soft: #8be8c1;
  --wd-nav-orange: #ff7a1f;
  --wd-nav-orange-soft: #ffd0a8;
}

.nav,
.nav * {
  box-sizing: border-box;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 62px;
  padding: 0 34px;
  border: 0;
  background: rgba(5, 15, 31, .88);
  color: var(--wd-nav-text);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .16);
}

.nav a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: var(--wd-nav-text);
}

.platformLogo {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  animation: header-logo-spin 5.8s cubic-bezier(.2, .72, .16, 1) .35s both, header-logo-breathe 7s ease-in-out 6.2s infinite;
}

.platformLogo span {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(43, 196, 140, .96), rgba(6, 184, 135, .78));
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28), 0 0 20px rgba(43, 196, 140, .28);
}

.logoNorth {
  left: 9px;
  top: 0;
  animation: header-square-north 5.8s cubic-bezier(.2, .72, .16, 1) .35s both, header-square-north-loop 7s ease-in-out 6.2s infinite;
}

.logoEast {
  right: 0;
  top: 9px;
  animation: header-square-east 5.8s cubic-bezier(.2, .72, .16, 1) .5s both, header-square-east-loop 7s ease-in-out 6.2s infinite;
}

.logoSouth {
  left: 9px;
  bottom: 0;
  animation: header-square-south 5.8s cubic-bezier(.2, .72, .16, 1) .65s both, header-square-south-loop 7s ease-in-out 6.2s infinite;
}

.logoWest {
  left: 0;
  top: 9px;
  animation: header-square-west 5.8s cubic-bezier(.2, .72, .16, 1) .8s both, header-square-west-loop 7s ease-in-out 6.2s infinite;
}

.brandWordmark {
  position: relative;
  overflow: visible;
  color: #f8fbff;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.16;
  text-shadow: 0 0 16px rgba(255, 255, 255, .12);
  isolation: isolate;
}

.brandWordmark span,
.brandWordmark em {
  position: relative;
  z-index: 1;
  color: transparent;
  background-size: 260% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: header-text-shimmer 5.8s ease-in-out 1.2s infinite;
}

.brandWordmark span {
  background-image: linear-gradient(110deg, #f8fbff 0%, #f8fbff 34%, #bfffe9 46%, #ffffff 52%, #f8fbff 66%, #f8fbff 100%);
}

.brandWordmark em {
  background-image: linear-gradient(110deg, var(--wd-nav-orange) 0%, var(--wd-nav-orange) 34%, var(--wd-nav-orange-soft) 47%, #ffffff 52%, #ff8d3d 66%, var(--wd-nav-orange) 100%);
  font-style: normal;
  text-shadow: 0 0 15px rgba(255, 122, 31, .24);
}

.navLinks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--wd-nav-soft);
  font-size: 14px;
  font-weight: 400;
}

.navLinks a {
  position: relative;
  padding: 8px 0;
  color: inherit;
  text-decoration: none;
  transition: color .18s ease;
}

.navLinks a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--wd-nav-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.navLinks a:hover,
.navLinks a[aria-current="page"] {
  color: var(--wd-nav-text);
}

.navLinks a:hover::after,
.navLinks a[aria-current="page"]::after {
  transform: scaleX(1);
}

.navButtons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.nav .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  padding: 0 17px;
  background: transparent;
  color: var(--wd-nav-text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.nav .button.primary {
  border-color: var(--wd-nav-orange);
  background: var(--wd-nav-orange);
  color: #041014;
  box-shadow: 0 14px 30px rgba(255, 122, 31, .22);
}

.nav .button.login {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--wd-nav-soft);
  box-shadow: none;
  padding-inline: 10px;
}

.nav .button:hover,
.nav .button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(139, 232, 193, .62);
  background: rgba(139, 232, 193, .12);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

.nav .button.login:hover,
.nav .button.login:focus-visible {
  border: 0;
  outline: 0;
  background: rgba(139, 232, 193, .08);
  color: var(--wd-nav-text);
  box-shadow: none;
}

.nav .button.primary:hover,
.nav .button.primary:focus-visible,
.nav .button.is-pressed {
  border-color: var(--wd-nav-green-soft);
  background: var(--wd-nav-green-soft);
  color: #031018;
  box-shadow: 0 20px 38px rgba(139, 232, 193, .26), 0 0 0 4px rgba(139, 232, 193, .08);
}

@media (max-width: 1060px) {
  .nav {
    grid-template-columns: 1fr;
    justify-items: start;
    align-items: center;
    padding: 18px 22px;
  }

  .navLinks,
  .navButtons {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .nav {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .navLinks {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 14px;
  }

  .navButtons {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-wrap: wrap;
    justify-self: end;
    justify-content: flex-end;
    width: auto;
    max-width: 220px;
    gap: 7px;
  }

  .nav .button {
    width: auto;
    min-height: 36px;
    padding-inline: 11px;
    font-size: 13px;
  }

  .nav .button.login {
    padding-inline: 6px;
  }
}
