/* Navigation and footer copied from the homepage. */

:root {
  --accent: #45f76a;
  --accent-soft: #9dffb4;
  --page-pad: clamp(24px, 6.5vw, 120px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  display: block;
  height: 60px;
  min-height: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  transition: background-color 220ms ease;
}

.topbar.is-scrolled {
  background: rgba(0, 0, 0, 0.6);
}

.topbar__inner {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  gap: clamp(22px, 3.2vw, 48px);
  padding: 0 var(--page-pad);
}

.brand {
  position: relative;
  z-index: 4;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  user-select: none;
}

.brand__logo {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  overflow: hidden;
  flex: 0 0 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: transparent;
  object-fit: cover;
  object-position: center;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__copy strong {
  color: #f8faf8;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1;
}

.brand__copy strong em {
  color: var(--accent);
  font-style: normal;
}

.brand__copy small {
  color: #646a66;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.14em;
}

.main-nav {
  position: relative;
  z-index: 4;
  display: flex;
  height: 60px;
  min-width: 0;
  align-items: center;
  gap: clamp(15px, 1.55vw, 27px);
  margin-left: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  height: 100%;
  align-items: center;
  color: rgba(244, 247, 244, 0.76);
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 570;
  letter-spacing: -0.018em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 200ms ease;
}

.nav-link::before,
.nav-link::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  border-radius: 999px;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition:
    width 260ms var(--ease-out),
    opacity 220ms ease;
}

.nav-link::before {
  width: 30%;
  height: 9px;
  background: linear-gradient(90deg, transparent, rgba(94, 255, 81, 0.8), transparent);
  filter: blur(5px);
}

.nav-link::after {
  width: 0;
  height: 2px;
  background: #75ff65;
  box-shadow:
    0 0 6px rgba(117, 255, 101, 0.95),
    0 0 16px rgba(69, 247, 106, 0.62),
    0 0 28px rgba(69, 247, 106, 0.26);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--accent);
}

.nav-link:hover::before,
.nav-link:focus-visible::before,
.nav-link.is-active::before {
  width: 64%;
  opacity: 0.75;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  width: 46%;
  opacity: 1;
}

.nav-toggle {
  position: relative;
  z-index: 5;
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 15px;
  height: 1px;
  transform: translateX(-50%);
  background: #e9ece9;
  transition:
    top 220ms ease,
    transform 220ms ease,
    opacity 180ms ease;
}

.nav-toggle span:nth-child(1) {
  top: 14px;
}

.nav-toggle span:nth-child(2) {
  top: 18px;
}

.nav-toggle span:nth-child(3) {
  top: 22px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 18px;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 18px;
  transform: translateX(-50%) rotate(-45deg);
}

.nav-actions {
  position: relative;
  z-index: 4;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.nav-actions::before {
  width: 1px;
  height: 18px;
  margin-right: 10px;
  background: rgba(255, 255, 255, 0.14);
  content: "";
}

.nav-action {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 640;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 200ms var(--ease-out),
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.nav-action:hover {
  transform: translateY(-1px);
}

.nav-action--outline {
  border: 1px solid #4a6622;
  color: #effff2;
  background: #0f1407;
  box-shadow: inset 0 0 14px rgba(69, 247, 106, 0.045);
}

.nav-action--outline:hover {
  border-color: #6d8e39;
  box-shadow:
    inset 0 0 18px rgba(69, 247, 106, 0.08),
    0 0 22px rgba(69, 247, 106, 0.08);
}

.nav-action--outline svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-action--primary {
  padding-right: 7px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #061309;
  background: linear-gradient(115deg, #d3ff55, #31fa43 55%, #21efb2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 22px rgba(69, 247, 106, 0.13);
}

.nav-action--primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 28px rgba(69, 247, 106, 0.22);
}

.nav-action__badge {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(1, 21, 7, 0.44);
  border-radius: 6px;
}

.nav-action__badge svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 35px var(--page-pad) 30px;
  border-top: 1px solid rgba(69, 247, 106, 0.13);
  color: #dcefe1;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(69, 247, 106, 0.08), transparent 42%),
    linear-gradient(180deg, #020604 0%, #030906 54%, #010302 100%);
}

.site-footer::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: min(64vw, 980px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(69, 247, 106, 0.68), transparent);
  transform: translateX(-50%);
  content: "";
}

.site-footer__glow {
  position: absolute;
  z-index: -1;
  top: -260px;
  left: 6%;
  width: min(52vw, 760px);
  height: 460px;
  border-radius: 50%;
  background: rgba(69, 247, 106, 0.055);
  filter: blur(90px);
  pointer-events: none;
}

.site-footer__inner {
  width: 90vw;
  margin: 0 auto;
}

.site-footer__top {
  --footer-column-gap: clamp(28px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(280px, 1.25fr);
  gap: var(--footer-column-gap);
  padding-bottom: 35px;
}

.site-footer__top > * {
  position: relative;
  min-width: 0;
}

.site-footer__top > *:not(:first-child)::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: calc(var(--footer-column-gap) / -2 - 0.5px);
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(69, 247, 106, 0.08), transparent);
  content: "";
  pointer-events: none;
}

.site-footer__intro {
  min-width: 0;
}

.site-footer__brand {
  text-decoration: none;
  transition: opacity 200ms ease;
}

.site-footer__brand:hover,
.site-footer__brand:focus-visible {
  opacity: 0.86;
}

.site-footer__brand .brand__copy strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.site-footer__brand .brand__copy small {
  margin-top: 3px;
  color: #65776a;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.site-footer__tagline {
  max-width: 320px;
  margin: 18px 0 0;
  color: rgba(213, 235, 218, 0.58);
  font-size: 13px;
  letter-spacing: 0.03em;
  line-height: 1.8;
}

.site-footer__status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 0;
  color: rgba(155, 199, 165, 0.44);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.site-footer__status span {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(69, 247, 106, 0.72);
}

.site-footer__column {
  min-width: 0;
}

.site-footer__column h2 {
  margin: 4px 0 16px;
  color: #f0fff3;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
  gap: 10px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__contact {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
  align-items: start;
  gap: 16px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #83948a;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 200ms ease;
}

.site-footer__links a::before {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left center;
  transition:
    opacity 180ms ease,
    transform 220ms var(--ease-out);
  content: "";
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: #c5ffd2;
}

.site-footer__links a:hover::before,
.site-footer__links a:focus-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

.site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.site-footer__contact-item--address {
  grid-column: 1 / -1;
}

.site-footer__contact-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border: 1px solid rgba(69, 247, 106, 0.16);
  border-radius: 9px;
  color: #88ff9f;
  background: rgba(69, 247, 106, 0.045);
}

.site-footer__contact-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer__contact-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  color: #a3b4a9;
  font-size: 13px;
  font-style: normal;
  line-height: 1.65;
}

.site-footer__contact-copy small {
  color: #7f9285;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.site-footer__contact-copy a {
  width: fit-content;
  color: #d6e8db;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer__contact-copy a:hover,
.site-footer__contact-copy a:focus-visible {
  color: var(--accent-soft);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  color: #536259;
  font-size: 11px;
  line-height: 1.6;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom a {
  color: #5d7064;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer__bottom a:hover,
.site-footer__bottom a:focus-visible {
  color: #a7ffb8;
}

@media (max-width: 1200px) {
  .site-footer__top {
    --footer-column-gap: 30px;
    grid-template-columns: minmax(190px, 0.9fr) minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(260px, 1.2fr);
    gap: 30px;
  }

  .site-footer__contact {
    column-gap: 10px;
  }

  .site-footer__contact-copy a {
    font-size: 13px;
  }
}

@media (max-width: 1100px) {
  .topbar__inner {
    gap: 20px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    z-index: 6;
    top: calc(100% + 1px);
    right: var(--page-pad);
    left: var(--page-pad);
    display: none;
    height: auto;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0 0 18px 18px;
    background: rgba(0, 0, 0, 0.94);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
  }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    height: auto;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 12px;
  }

  .nav-link::before,
  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: rgba(69, 247, 106, 0.06);
  }

  .site-footer__top {
    --footer-column-gap: 54px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 54px;
  }

  .site-footer__column--contact {
    grid-column: 2;
  }
}

@media (min-width: 641px) and (max-width: 1100px) {
  .site-footer__top > :nth-child(3)::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 35px var(--page-pad) 26px;
  }

  .site-footer__inner {
    width: 90vw;
  }

  .site-footer__top {
    --footer-column-gap: 36px;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 35px;
  }

  .site-footer__top > *:not(:first-child)::before {
    top: -18px;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(69, 247, 106, 0.08), transparent);
  }

  .site-footer__column--contact {
    grid-column: auto;
  }

  .site-footer__column h2 {
    margin-bottom: 17px;
  }

  .site-footer__links {
    gap: 10px 24px;
  }

  .site-footer__contact {
    gap: 18px;
  }

  .site-footer__bottom {
    align-items: center;
    flex-direction: column;
    gap: 6px;
    padding-top: 18px;
  }
}

@media (max-width: 580px) {
  :root {
    --page-pad: 14px;
  }

  .topbar__inner {
    height: 100%;
  }

  .brand__copy strong {
    font-size: 18px;
  }

  .brand__logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .nav-action {
    width: 34px;
    padding: 0;
    gap: 0;
  }

  .nav-action > span:not(.nav-action__badge) {
    display: none;
  }

  .nav-actions::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__brand,
  .site-footer__links a,
  .site-footer__links a::before,
  .site-footer__contact-copy a,
  .site-footer__bottom a {
    transition: none;
  }
}
