/*
  404 — 02: Compact Status-Driven 404, standalone HTML/CSS implementation.
  No build step, no framework, no external dependency: copy this file and
  index.html into any project and open it as-is.
*/

:root {
  --color-brand: #39ff14;
  --color-brand-foreground: #252525;
  --color-foreground: #252525;
  --color-background: #ffffff;
  --color-border: #e4e4e4;
  --color-muted-foreground: #8d8d8d;
  --color-muted: #f7f7f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-foreground);
  background: var(--color-background);
}

a {
  text-decoration: none;
  color: inherit;
}

.notfound02 {
  background: var(--color-muted);
}

.notfound02__section {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .notfound02__section {
    padding: 6rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .notfound02__section {
    padding: 7rem 1.5rem;
  }
}

.notfound02__panel {
  width: 100%;
  max-width: 28rem;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-background);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 2rem;
}

@media (min-width: 640px) {
  .notfound02__panel {
    padding: 2.5rem;
  }
}

.notfound02__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-muted);
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-foreground);
}

.notfound02__dot {
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  color: var(--color-brand);
}

.notfound02__heading {
  margin: 1.25rem 0 0;
  text-align: left;
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-foreground);
}

.notfound02__copy {
  margin: 0.75rem 0 0;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-muted-foreground);
}

@media (min-width: 640px) {
  .notfound02__copy {
    font-size: 1rem;
  }
}

.notfound02__cta-wrap {
  margin-top: 2rem;
}

.notfound02__cta {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background: var(--color-brand);
  color: var(--color-brand-foreground);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 150ms ease;
}

@media (min-width: 640px) {
  .notfound02__cta {
    width: auto;
  }
}

.notfound02__cta:hover {
  background: color-mix(in srgb, var(--color-brand) 90%, #000);
}

.notfound02__cta-arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.notfound02__cta:hover .notfound02__cta-arrow,
.notfound02__cta:focus-visible .notfound02__cta-arrow {
  transform: translateX(3px);
}

.notfound02__cta:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* Motion — disabled entirely under reduced motion; every element already
   renders at its final, fully visible state outside this media query. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-404-02-panel-in {
    from {
      opacity: 0;
      transform: translateY(18px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes al-404-02-up {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .notfound02__panel {
    animation: al-404-02-panel-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .notfound02__badge,
  .notfound02__heading,
  .notfound02__copy,
  .notfound02__cta-wrap {
    animation: al-404-02-up 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .notfound02__badge {
    animation-delay: 60ms;
  }
  .notfound02__heading {
    animation-delay: 140ms;
  }
  .notfound02__copy {
    animation-delay: 200ms;
  }
  .notfound02__cta-wrap {
    animation-delay: 260ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notfound02__cta-arrow,
  .notfound02__cta:hover .notfound02__cta-arrow,
  .notfound02__cta:focus-visible .notfound02__cta-arrow {
    transition: none !important;
    transform: none !important;
  }
}
