.not-found-page {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 73% 47%, rgba(27, 115, 171, 0.14), transparent 23%),
    linear-gradient(117deg, #050d13 0%, #071017 52%, #0a1c27 100%);
  color: var(--white);
}

.not-found-stars,
.not-found-grid {
  position: absolute;
  pointer-events: none;
}

.not-found-stars {
  inset: 0;
  opacity: 0.72;
  background-image:
    radial-gradient(circle at 11% 23%, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.5px),
    radial-gradient(circle at 22% 76%, rgba(114, 232, 224, 0.72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 38% 14%, rgba(255, 255, 255, 0.58) 0 1px, transparent 1.5px),
    radial-gradient(circle at 52% 83%, rgba(255, 255, 255, 0.52) 0 1px, transparent 1.5px),
    radial-gradient(circle at 69% 19%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 89% 73%, rgba(115, 199, 255, 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 95% 33%, rgba(255, 255, 255, 0.52) 0 1px, transparent 1.5px);
  background-size: 340px 260px, 420px 360px, 470px 330px, 510px 420px, 380px 300px, 440px 390px, 290px 340px;
}

.not-found-grid {
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(89, 193, 244, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 193, 244, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, black 24%, black 76%, transparent);
}

.not-found-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 max(24px, calc((100vw - var(--container)) / 2));
}

.not-found-brand {
  display: inline-flex;
  align-items: center;
}

.not-found-brand .brand-mark img {
  filter: brightness(0) invert(1);
}

.not-found-signal,
.not-found-eyebrow,
.not-found-locales,
.not-found-telemetry,
.not-found-visual-mark,
.not-found-footer {
  font-family: var(--font-space-mono), monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.not-found-signal {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

.not-found-signal svg {
  color: var(--cyan);
}

.not-found-shell {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 1;
  align-items: center;
  gap: 70px;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  padding-top: 78px;
  padding-bottom: 86px;
}

.not-found-copy {
  position: relative;
  z-index: 2;
}

.not-found-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--blue-bright);
  font-size: 10px;
  font-weight: 700;
}

.not-found-eyebrow-line {
  width: 24px;
  height: 1px;
  background: currentColor;
}

.not-found-code {
  position: absolute;
  z-index: -1;
  top: -76px;
  left: -12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.025);
  font-family: var(--font-space-mono), monospace;
  font-size: clamp(170px, 20vw, 300px);
  font-weight: 700;
  letter-spacing: -0.12em;
  line-height: 1;
}

.not-found-copy h1 {
  max-width: 600px;
  margin: 27px 0 25px;
  font-size: clamp(54px, 6.3vw, 92px);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.not-found-copy h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.62);
}

.not-found-description {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 16px;
  line-height: 1.75;
}

.not-found-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 37px;
}

.not-found-actions .button {
  gap: 12px;
}

.not-found-locales {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
}

.not-found-locales a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-bottom: 1px solid rgba(115, 199, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
  margin: -4px -3px;
  padding: 4px 3px 3px;
  transition: border-color 160ms ease, color 160ms ease;
}

.not-found-locales a:hover,
.not-found-locales a:focus-visible {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
}

.not-found-visual {
  position: relative;
  width: min(100%, 610px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.not-found-radar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82%;
  aspect-ratio: 1;
  border: 1px solid rgba(101, 199, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.not-found-radar::before,
.not-found-radar::after {
  position: absolute;
  background: rgba(101, 199, 255, 0.16);
  content: "";
}

.not-found-radar::before {
  top: 50%;
  right: -12%;
  left: -12%;
  height: 1px;
}

.not-found-radar::after {
  top: -12%;
  bottom: -12%;
  left: 50%;
  width: 1px;
}

.not-found-radar-ring {
  position: absolute;
  border: 1px solid rgba(101, 199, 255, 0.16);
  border-radius: 50%;
  inset: 13%;
}

.not-found-radar-ring-two {
  border-style: dashed;
  inset: 26%;
  opacity: 0.7;
}

.not-found-radar-ring-three {
  border-color: rgba(114, 232, 224, 0.22);
  inset: 39%;
}

.not-found-radar-sweep {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(114, 232, 224, 0.2));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform-origin: 0 100%;
  animation: not-found-sweep 8s linear infinite;
}

.not-found-radar-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 34%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(115, 199, 255, 0.38);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 162, 255, 0.17), rgba(8, 22, 31, 0.84) 68%);
  box-shadow: 0 0 70px rgba(33, 143, 215, 0.18), inset 0 0 30px rgba(78, 181, 247, 0.08);
  color: var(--blue-bright);
  transform: translate(-50%, -50%);
}

.not-found-radar-core::before,
.not-found-radar-core::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  content: "";
}

.not-found-radar-core::before {
  top: 2%;
  left: 44%;
}

.not-found-radar-core::after {
  right: 8%;
  bottom: 29%;
}

.not-found-radar-core svg {
  position: absolute;
  top: 32%;
}

.not-found-radar-core span {
  position: absolute;
  bottom: 25%;
  font-family: var(--font-space-mono), monospace;
  font-size: 7px;
  letter-spacing: 0.14em;
}

.not-found-radar-point {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
}

.not-found-radar-point-one {
  top: 16%;
  left: 26%;
}

.not-found-radar-point-two {
  top: 35%;
  right: 15%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.not-found-radar-point-three {
  bottom: 17%;
  left: 33%;
}

.not-found-telemetry {
  position: absolute;
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 8px;
  line-height: 1.4;
}

.not-found-telemetry strong {
  color: var(--blue-bright);
  font-size: 10px;
  font-weight: 400;
}

.not-found-telemetry-top {
  top: 8%;
  right: 3%;
  text-align: right;
}

.not-found-telemetry-bottom {
  bottom: 7%;
  left: 3%;
}

.not-found-visual-mark {
  position: absolute;
  right: 4%;
  bottom: 9%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
}

.not-found-visual-mark svg {
  color: var(--cyan);
}

.not-found-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
}

.not-found-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.not-found-footer span:first-child {
  color: rgba(255, 255, 255, 0.74);
}

@keyframes not-found-sweep {
  to {
    transform: rotate(360deg);
  }
}


@media (max-width: 1050px) {
  .not-found-shell {
    gap: 35px;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  }

  .not-found-copy h1 {
    font-size: clamp(50px, 6.2vw, 76px);
  }
}

@media (max-width: 820px) {
  .not-found-shell {
    grid-template-columns: 1fr;
    padding-top: 70px;
    padding-bottom: 38px;
  }

  .not-found-copy {
    max-width: 620px;
  }

  .not-found-visual {
    width: min(100%, 530px);
    margin-top: -30px;
  }
}

@media (max-width: 560px) {
  .not-found-header {
    min-height: 72px;
    padding-inline: 18px;
  }

  .not-found-header .brand-mark {
    width: 122px;
  }

  .not-found-signal {
    font-size: 0;
  }

  .not-found-signal svg {
    width: 16px;
    height: 16px;
  }

  .not-found-shell {
    width: min(calc(100% - 36px), var(--container));
    gap: 18px;
    padding-top: 60px;
    padding-bottom: 18px;
  }

  .not-found-code {
    top: -38px;
    left: -8px;
    font-size: 142px;
  }

  .not-found-copy h1 {
    margin-top: 22px;
    font-size: clamp(46px, 13.2vw, 62px);
  }

  .not-found-description {
    font-size: 15px;
  }

  .not-found-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 23px;
    margin-top: 29px;
  }

  .not-found-actions .button {
    width: 100%;
  }

  .not-found-visual {
    width: min(100%, 390px);
    margin-top: -2px;
  }

  .not-found-telemetry {
    font-size: 7px;
  }

  .not-found-telemetry strong {
    font-size: 8px;
  }

  .not-found-footer .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding-top: 15px;
    padding-bottom: 15px;
  }
}


