
/*
 * Launch polish: premium navigation, compact mobile controls, and a signal-rich footer.
 */
.site-header {
  border-bottom-color: rgba(238, 240, 242, 0.08);
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(18px);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(200, 184, 141, 0.22), rgba(134, 200, 157, 0.14), transparent);
  opacity: 0.72;
}

.header-nav-link {
  position: relative;
}

.header-nav-link::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 7px;
  left: 12px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(200, 184, 141, 0.78), rgba(134, 200, 157, 0.48));
  opacity: 0;
  transform: scaleX(0.36);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.header-nav-link:hover::after,
.header-nav-link:focus-visible::after,
.header-nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-search input {
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.header-search input:focus {
  border-color: rgba(200, 184, 141, 0.42);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 3px rgba(200, 184, 141, 0.08);
}

.footer-newsletter {
  position: relative;
  overflow: hidden;
}

.footer-newsletter::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 64%, rgba(200, 184, 141, 0.12) 64.2%, transparent 64.6%),
    linear-gradient(180deg, transparent, rgba(134, 200, 157, 0.045));
  opacity: 0.68;
}

.footer-signal-graph {
  position: relative;
  width: min(100%, 320px);
  height: 92px;
  margin: 8px 0 6px;
  border: 1px solid rgba(238, 240, 242, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(rgba(238, 240, 242, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 240, 242, 0.03) 1px, transparent 1px),
    rgba(4, 6, 10, 0.34);
  background-size: 28px 28px;
}

.footer-signal-line,
.footer-signal-node,
.footer-signal-pulse {
  position: absolute;
  pointer-events: none;
}

.footer-signal-line {
  left: 20%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 184, 141, 0.58), rgba(134, 200, 157, 0.46), transparent);
  transform-origin: left center;
}

.footer-signal-line-a {
  top: 37%;
  transform: rotate(13deg);
}

.footer-signal-line-b {
  top: 59%;
  transform: rotate(-10deg);
}

.footer-signal-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(238, 240, 242, 0.16);
  border-radius: 9px;
  color: rgba(238, 240, 242, 0.82);
  background: rgba(13, 15, 20, 0.84);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.footer-signal-node .o4-ui-icon {
  width: 16px;
  height: 16px;
}

.footer-signal-node-a {
  left: 10%;
  top: 18%;
}

.footer-signal-node-b {
  left: 46%;
  top: 46%;
}

.footer-signal-node-c {
  right: 11%;
  top: 20%;
}

.footer-signal-pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(134, 200, 157, 0.84);
  box-shadow: 0 0 0 0 rgba(134, 200, 157, 0.34);
}

.footer-signal-pulse-a {
  left: 31%;
  top: 35%;
}

.footer-signal-pulse-b {
  right: 28%;
  bottom: 32%;
}

.footer-brand p {
  max-width: 56rem;
}

@media (prefers-reduced-motion: no-preference) {
  .footer-signal-line {
    animation: o4-footer-trace 6.4s ease-in-out infinite;
  }

  .footer-signal-line-b {
    animation-delay: 1.2s;
  }

  .footer-signal-pulse {
    animation: o4-footer-pulse 3.8s ease-out infinite;
  }

  .footer-signal-pulse-b {
    animation-delay: 1.4s;
  }
}

@keyframes o4-footer-trace {
  0%,
  100% {
    opacity: 0.24;
    scale: 0.78 1;
  }

  48% {
    opacity: 0.88;
    scale: 1 1;
  }
}

@keyframes o4-footer-pulse {
  0% {
    opacity: 0;
    transform: scale(0.72);
    box-shadow: 0 0 0 0 rgba(134, 200, 157, 0.34);
  }

  28% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1);
    box-shadow: 0 0 0 20px rgba(134, 200, 157, 0);
  }
}

@media (max-width: 760px) {
  .site-header {
    background: rgba(4, 6, 10, 0.92);
  }

  #primary-menu.is-open {
    border-radius: 12px;
    background:
      radial-gradient(circle at 92% 8%, rgba(200, 184, 141, 0.26), transparent 13rem),
      rgba(10, 12, 17, 0.98);
  }

  .header-nav-link::after {
    right: auto;
    bottom: 50%;
    left: 10px;
    width: 3px;
    height: 18px;
    transform: translateY(50%) scaleY(0.35);
  }

  .header-nav-link:hover::after,
  .header-nav-link:focus-visible::after,
  .header-nav-link.is-active::after {
    transform: translateY(50%) scaleY(1);
  }

  .header-search {
    display: none;
  }

  .footer-newsletter {
    padding-top: 22px;
  }

  .footer-signal-graph {
    height: 76px;
  }

  .footer-brand p {
    max-width: 23rem;
  }
}
