* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Carlito", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  background: #fdfdf8;
  color: #0f172a;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-banner,
.error-page {
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.error-page {
  justify-content: center;
}

.title {
  font-family: "Carlito", sans-serif;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  opacity: 0;
  animation: fadeIn 0.5s forwards 0.2s;
}

.subtitle {
  font-family: "CrimsonText", serif;
  font-weight: 300;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #4b5563;
  opacity: 0;
  animation: fadeIn 0.5s forwards 0.4s;
}

.button-container {
  opacity: 1;
  animation: none;
}

.install-command {
  background: #1e293b;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-family: monospace;
  font-size: 1.1rem;
  display: inline-block;
  margin-bottom: 1rem;
  color: #e2e8f0;
  cursor: pointer;
  transition: background-color 0.3s, transform 3s ease, box-shadow 1.2s ease;
  transform: translateY(0);
  opacity: 0;
  animation: fadeIn 0.5s forwards 0.6s;
  will-change: transform;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.install-command:hover {
  background: #2d3748;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.install-command:focus {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.copy-button,
.home-button {
  font-family: "Carlito", sans-serif;
  background-color: #000000;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  opacity: 0;
  animation: fadeIn 0.5s forwards 0.8s;
}

.copy-button:hover,
.home-button:hover {
  background-color: #333333;
}

/* 404 specific styles */
.error-code {
  font-family: "CrimsonText", serif;
  font-size: 8rem;
  font-weight: bold;
  color: #000000;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeIn 0.5s forwards 0.1s;
}

.error-page .title {
  animation: fadeIn 0.5s forwards 0.3s;
}

.error-page .subtitle {
  animation: fadeIn 0.5s forwards 0.5s;
}

.error-page .install-command {
  margin: 0 0 1rem 0;
  animation: fadeIn 0.5s forwards 0.7s;
}

.error-page .home-button {
  margin-top: 0;
  display: inline-block;
  animation: fadeIn 0.5s forwards 0.9s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .install-command {
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
  }

  .error-code {
    font-size: 6rem;
  }
}

.copy-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 197, 94, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

.copy-overlay.show {
  opacity: 1;
  visibility: visible;
}

.copy-overlay-content {
  font-family: "Carlito", sans-serif;
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.installation-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.step {
  text-align: center;
}

.step h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.back-link {
  margin-top: 2rem;
  text-align: center;
}

.back-link a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.back-link a:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .installation-steps {
    gap: 1.5rem;
  }

  .step h2 {
    font-size: 1.25rem;
  }
}
