@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap");

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

body {
  background-color: #000000;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px; /* Enable 3D depth for tilt animation */
}

.sparkles-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem;
  z-index: 10;
}

.tilt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 960px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out; /* Smooth transition lag */
}

.sparkles-title {
  font-size: clamp(2.25rem, 7vw, 5rem);
  font-weight: 900;
  text-align: center;
  color: #ffffff;
  position: relative;
  z-index: 20;
  letter-spacing: -0.05em;
  margin-bottom: 0.5rem;
  transform: translateZ(60px); /* Lift text in 3D space */
  will-change: transform;
}

.glow-wrapper {
  width: 100%;
  max-width: 960px; /* Increased to span full text width */
  height: 160px;
  position: relative;
  transform: translateZ(30px); /* Lift sparkles in 3D space */
  will-change: transform;
}

.gradient-line {
  position: absolute;
  top: 0;
}

.g-indigo-blur {
  left: 2%;
  width: 96%;
  height: 4px;
  background: linear-gradient(to right, transparent, #6366f1 50%, transparent);
  filter: blur(4px);
}

.g-indigo-solid {
  left: 2%;
  width: 96%;
  height: 1px;
  background: linear-gradient(to right, transparent, #6366f1 50%, transparent);
}

.g-sky-blur {
  left: 25%;
  width: 50%;
  height: 6px;
  background: linear-gradient(to right, transparent, #0ea5e9 50%, transparent);
  filter: blur(4px);
}

.g-sky-solid {
  left: 25%;
  width: 50%;
  height: 1px;
  background: linear-gradient(to right, transparent, #0ea5e9 50%, transparent);
}

#sparkles-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.radial-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 100px at top center,
    transparent 20%,
    #000000 85%
  );
}

/* Error Container Layout */
.error-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
  z-index: 20;
}

.error-content {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-size: clamp(5rem, 15vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-message {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888888;
  margin-bottom: 1.5rem;
}

.error-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 2rem;
}

.cta-links {
  display: flex;
  justify-content: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid #222222;
  border-radius: 4px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  background-color: transparent;
}

.cta-button:hover {
  border-color: #ffffff;
  background-color: #ffffff;
  color: #000000;
}
