.not-found-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(87, 188, 152, 0.22), transparent 28%),
    radial-gradient(circle at right center, rgba(49, 191, 215, 0.18), transparent 26%),
    linear-gradient(180deg, #f3f8fd 0%, #ffffff 42%);
}

.not-found-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 84px;
}

.not-found-hero::before,
.not-found-hero::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  filter: blur(8px);
}

.not-found-hero::before {
  top: 92px;
  left: -72px;
  width: 220px;
  height: 220px;
  background: rgba(87, 188, 152, 0.14);
}

.not-found-hero::after {
  right: -84px;
  bottom: 54px;
  width: 280px;
  height: 280px;
  background: rgba(49, 191, 215, 0.12);
}

.not-found-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 250px);
}

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

.not-found-eyebrow {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(14, 41, 59, 0.12);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #0e293b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.not-found-code {
  margin-top: 22px;
  color: #0e293b;
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.not-found-copy h1 {
  margin: 18px 0 0;
  color: #0e293b;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.not-found-copy p {
  max-width: 640px;
  margin: 18px 0 0;
  color: #526272;
  font-size: 17px;
  line-height: 1.85;
}

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

.not-found-secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(14, 41, 59, 0.12);
  border-radius: 5px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.82);
  color: #0e293b;
  font-size: 16px;
  font-weight: 700;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.not-found-secondary-button:hover,
.not-found-secondary-button:focus-visible {
  border-color: rgba(14, 41, 59, 0.22);
  box-shadow: 0 18px 32px rgba(14, 41, 59, 0.08);
  transform: translateY(-1px);
}

.not-found-panel {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(14, 41, 59, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 60px rgba(14, 41, 59, 0.08);
  backdrop-filter: blur(10px);
}

.not-found-panel-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #dbfce7;
  color: #1c8d6d;
}

.not-found-panel h2 {
  margin: 22px 0 0;
  color: #0e293b;
  font-size: 1.5rem;
  line-height: 1.2;
}

.not-found-panel p {
  margin: 12px 0 0;
  color: #64748b;
  line-height: 1.8;
}

.not-found-links {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.not-found-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding: 14px 16px;
  background: #f8fbfd;
  color: #0e293b;
  font-weight: 700;
  transition: background-color 180ms ease, transform 180ms ease;
}

.not-found-links a:hover,
.not-found-links a:focus-visible {
  background: #eef7fb;
  transform: translateX(2px);
}

@media (max-width: 960px) {
  .not-found-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .not-found-panel {
    padding: 26px;
  }
}

@media (max-width: 640px) {
  .not-found-hero {
    padding: 28px 0 64px;
  }

  .not-found-copy p {
    font-size: 16px;
  }

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

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