.not-found-page {
  --nf-ink: #07090d;
  --nf-panel: #0d1118;
  --nf-paper: #f4f1ea;
  --nf-muted: #a1a7b2;
  --nf-line: rgba(244, 241, 234, 0.13);
  --nf-blue: #2db8ff;
  --nf-violet: #8e56ff;
  --nf-orange: #ff7538;
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(22px, 4vw, 52px);
  background:
    radial-gradient(circle at 18% 76%, rgba(45, 184, 255, 0.13), transparent 30rem),
    radial-gradient(circle at 84% 18%, rgba(142, 86, 255, 0.14), transparent 32rem),
    var(--nf-ink);
  color: var(--nf-paper);
  font-family: Arial, Helvetica, sans-serif;
  isolation: isolate;
}

.not-found-page *,
.not-found-page *::before,
.not-found-page *::after {
  box-sizing: border-box;
}

.not-found-page a {
  color: inherit;
  text-decoration: none;
}

.not-found-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(135deg, black, transparent 78%);
}

.not-found-brand {
  position: absolute;
  top: clamp(22px, 4vw, 52px);
  left: clamp(22px, 4vw, 52px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.not-found-brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.34);
}

.not-found-brand-mark img {
  position: absolute;
  top: -11px;
  left: -20px;
  width: 78px;
  max-width: none;
  height: 78px;
}

.not-found-shell {
  display: grid;
  width: min(100%, 1240px);
  min-height: min(720px, calc(100svh - clamp(44px, 8vw, 104px)));
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
  margin: auto;
  padding-top: 70px;
}

.not-found-art {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
}

.not-found-orbit {
  position: absolute;
  border: 1px solid rgba(135, 216, 238, 0.16);
  border-radius: 50%;
}

.not-found-orbit-one {
  inset: 8%;
  transform: rotate(-16deg) scaleY(0.72);
}

.not-found-orbit-two {
  inset: 17%;
  border-color: rgba(142, 86, 255, 0.2);
  transform: rotate(28deg) scaleX(0.72);
}

.not-found-image-card {
  position: relative;
  z-index: 2;
  width: min(64%, 330px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: clamp(24px, 4vw, 46px);
  background: #fff;
  box-shadow:
    0 38px 100px rgba(0, 0, 0, 0.5),
    0 0 70px rgba(72, 109, 255, 0.16);
  transform: rotate(-4deg);
  animation: not-found-float 5s ease-in-out infinite alternate;
}

.not-found-image-card img {
  display: block;
  width: 100%;
  height: auto;
}

.not-found-code {
  position: absolute;
  right: 2%;
  bottom: 8%;
  z-index: 3;
  background: linear-gradient(90deg, var(--nf-blue), var(--nf-violet), var(--nf-orange));
  background-clip: text;
  color: transparent;
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.not-found-signal-dot {
  position: absolute;
  z-index: 4;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--nf-blue);
  box-shadow: 0 0 0 8px rgba(45, 184, 255, 0.08), 0 0 22px currentColor;
}

.not-found-signal-dot.dot-one {
  top: 19%;
  right: 16%;
  color: var(--nf-blue);
}

.not-found-signal-dot.dot-two {
  bottom: 24%;
  left: 8%;
  background: var(--nf-violet);
  color: var(--nf-violet);
}

.not-found-signal-dot.dot-three {
  top: 30%;
  left: 17%;
  width: 6px;
  height: 6px;
  background: var(--nf-orange);
  color: var(--nf-orange);
}

.not-found-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.not-found-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: #afb5bf;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.not-found-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nf-orange);
  box-shadow: 0 0 0 6px rgba(255, 117, 56, 0.1);
}

.not-found-copy h1 {
  max-width: 680px;
  margin: 0;
  color: var(--nf-paper);
  font-size: clamp(3.6rem, 7vw, 7.2rem);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

.not-found-copy > p:not(.not-found-kicker) {
  max-width: 580px;
  margin: 30px 0 0;
  color: var(--nf-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.not-found-actions a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 20px;
  border: 1px solid var(--nf-line);
  border-radius: 13px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.not-found-actions a:hover,
.not-found-actions a:focus-visible {
  transform: translateY(-3px);
}

.not-found-primary {
  background: var(--nf-paper);
  color: var(--nf-ink) !important;
}

.not-found-secondary:hover,
.not-found-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.not-found-coordinate {
  position: absolute;
  right: clamp(22px, 4vw, 52px);
  bottom: clamp(22px, 4vw, 42px);
  margin: 0;
  color: #68717e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

@keyframes not-found-float {
  to { transform: translateY(-12px) rotate(-1.5deg); }
}

@media (max-width: 860px) {
  .not-found-page {
    padding-top: 94px;
  }

  .not-found-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0 80px;
  }

  .not-found-art {
    width: min(100%, 440px);
    margin: auto;
  }

  .not-found-copy {
    max-width: 660px;
    margin-inline: auto;
    text-align: center;
  }

  .not-found-kicker,
  .not-found-actions {
    justify-content: center;
  }

  .not-found-copy > p:not(.not-found-kicker) {
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .not-found-page {
    padding-inline: 20px;
  }

  .not-found-brand {
    left: 20px;
  }

  .not-found-art {
    width: min(100%, 340px);
  }

  .not-found-copy h1 {
    font-size: clamp(3.15rem, 16vw, 4.6rem);
  }

  .not-found-actions {
    flex-direction: column;
  }

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

  .not-found-coordinate {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .not-found-image-card {
    animation: none;
  }

  .not-found-actions a {
    transition: none;
  }
}
