.zk-404 {
  margin: 0;
  min-height: 100vh;
  font-family: "Open Sans", system-ui, sans-serif;
  color: #293039;
  background: #eef7f6;
  position: relative;
  overflow: hidden;
}

.zk-404__stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.zk-404__aurora {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 25%, rgba(38, 171, 163, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 40% at 85% 70%, rgba(247, 171, 30, 0.14), transparent 50%),
    linear-gradient(160deg, #e8f4f2 0%, #f7fcfb 48%, #eef6f8 100%);
}

.zk-404__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.55;
  animation: zk404Float 16s ease-in-out infinite;
}

.zk-404__blob--a {
  width: min(48vw, 380px);
  height: min(48vw, 380px);
  left: -8%;
  bottom: 8%;
  background: rgba(38, 171, 163, 0.28);
}

.zk-404__blob--b {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  right: -6%;
  top: 12%;
  background: rgba(247, 171, 30, 0.22);
  animation-delay: -4s;
}

.zk-404__blob--c {
  width: min(28vw, 220px);
  height: min(28vw, 220px);
  left: 42%;
  top: -6%;
  background: rgba(17, 43, 78, 0.08);
  animation-delay: -8s;
}

.zk-404__leaf {
  position: absolute;
  opacity: 0.45;
  width: min(30vw, 230px);
  height: auto;
  animation: zk404Sway 11s ease-in-out infinite;
}

.zk-404__leaf--tl {
  top: -2%;
  left: -2%;
}

.zk-404__leaf--br {
  right: -3%;
  bottom: -5%;
  width: min(36vw, 280px);
  opacity: 0.35;
  animation-direction: reverse;
}

.zk-404__main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.35rem;
  padding: 2rem 1.25rem 2.5rem;
}

.zk-404__brand {
  display: block;
  opacity: 0;
  transform: translateY(-10px);
  animation: zk404Rise 0.7s ease forwards 0.05s;
}

.zk-404__brand img {
  display: block;
  height: auto;
}

.zk-404__card {
  width: min(560px, 100%);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(41, 48, 57, 0.08);
  border-radius: 32px;
  padding: 2.1rem 1.75rem 1.85rem;
  text-align: center;
  box-shadow:
    0 28px 70px rgba(41, 48, 57, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
  opacity: 0;
  transform: translateY(18px);
  animation: zk404Rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.15s;
}

.zk-404__visual {
  position: relative;
  width: 180px;
  margin: 0 auto 0.5rem;
}

.zk-404__compass {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(38, 171, 163, 0.18));
}

.zk-404__ring {
  transform-origin: 110px 110px;
  animation: zk404Spin 28s linear infinite;
}

.zk-404__needle {
  transform-origin: 110px 110px;
  animation: zk404Wobble 4.5s ease-in-out infinite;
}

.zk-404__badge {
  position: absolute;
  right: -8px;
  bottom: 8px;
  background: linear-gradient(135deg, #f7ab1e, #e8960a);
  color: #1a1206;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(247, 171, 30, 0.35);
  animation: zk404Pulse 2.4s ease-in-out infinite;
}

.zk-404__eyebrow {
  margin: 0.85rem 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #1e8a84;
}

.zk-404__card h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4.5vw, 2.25rem);
  line-height: 1.2;
  font-weight: 800;
  color: #112b4e;
}

.zk-404__lead {
  margin: 0.85rem auto 0;
  max-width: 34rem;
  color: #51565d;
  line-height: 1.65;
  font-size: 1.02rem;
}

.zk-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.65rem;
}

.zk-404__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.zk-404__btn--primary {
  background: #26aba3;
  color: #fff;
  box-shadow: 0 12px 28px rgba(38, 171, 163, 0.28);
}

.zk-404__btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.zk-404__btn--soft {
  background: rgba(247, 171, 30, 0.14);
  color: #9a6700;
}

.zk-404__btn--soft:hover {
  background: rgba(247, 171, 30, 0.22);
}

@keyframes zk404Rise {
  to { opacity: 1; transform: none; }
}

@keyframes zk404Float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4%, -6%); }
}

@keyframes zk404Sway {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(8px); }
}

@keyframes zk404Spin {
  to { transform: rotate(360deg); }
}

@keyframes zk404Wobble {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(14deg); }
}

@keyframes zk404Pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (max-width: 560px) {
  .zk-404__card {
    padding: 1.6rem 1.25rem 1.4rem;
    border-radius: 24px;
  }

  .zk-404__visual {
    width: 150px;
  }

  .zk-404__leaf {
    opacity: 0.28;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zk-404__blob,
  .zk-404__leaf,
  .zk-404__ring,
  .zk-404__needle,
  .zk-404__badge,
  .zk-404__brand,
  .zk-404__card {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
