/* ===== 404 section ===== */
.error-section {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
}
.error-inner {
  max-width: 560px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-art {
  width: 280px;
  max-width: 100%;
  margin-bottom: 8px;
}
.error-art svg {
  width: 100%;
  height: auto;
  display: block;
}

.error-spark {
  animation: spark-flicker 2.4s ease-in-out infinite;
  transform-origin: 180px 124px;
}
@keyframes spark-flicker {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.3; }
  55% { opacity: 1; }
  70% { opacity: 0.5; }
}

.error-chip {
  animation: chip-float 3.2s ease-in-out infinite;
}
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.error-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--blue);
  background: var(--blue-pale-2);
  padding: 5px 14px;
  border-radius: 20px;
  margin-top: 18px;
}

.error-title {
  margin-top: 18px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-dark);
}

.error-sub {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 440px;
}

.error-ctas {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

.error-links {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.error-links-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.error-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}
.error-links-row a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-pale-2);
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 0.15s ease;
}
.error-links-row a:hover {
  background: #dbeafe;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .error-art { width: 220px; }
  .error-title { font-size: 25px; }
  .error-ctas { flex-direction: column; width: 100%; }
  .error-ctas .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .error-spark, .error-chip { animation: none; }
}
