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

:root {
  --ink: #08143b;
  --purple: #7c5cff;
  --blue: #4389ff;
  --line: rgba(124, 92, 255, 0.24);
  --shadow: 0 24px 80px rgba(53, 41, 122, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 22% 16%, rgba(186, 160, 255, 0.24), transparent 22%),
    radial-gradient(circle at 80% 34%, rgba(124, 92, 255, 0.14), transparent 22%),
    linear-gradient(180deg, #fffdfb 0%, #fbf7ff 58%, #fffaf5 100%);
  overflow-x: hidden;
}

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

.error-page {
  min-height: 100vh;
  position: relative;
}

.page-header {
  width: min(var(--max), calc(100% - 72px));
  margin: 0 auto;
  padding: 38px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.brand-name {
  font-family: Fredoka, Inter, sans-serif;
  font-size: clamp(44px, 5vw, 66px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.9;
  color: var(--ink);
  position: relative;
}

.brand-name::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 26px;
  border-radius: 999px;
  background: #ff7a1a;
  top: 1px;
  right: 17px;
}

.brand-divider {
  width: 1px;
  height: 52px;
  background: rgba(8, 20, 59, 0.28);
}

.brand-subtitle {
  font-size: clamp(14px, 1.6vw, 20px);
  line-height: 1.2;
  font-weight: 500;
}

.hub-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px;
  border: 1.5px solid var(--purple);
  border-radius: 10px;
  color: var(--purple);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.08);
  transition: 0.18s;
}

.hub-button:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 16px 44px rgba(124, 92, 255, 0.18);
}

.hub-icon {
  font-size: 21px;
  line-height: 1;
}

.hero-error {
  width: min(var(--max), calc(100% - 72px));
  min-height: calc(100vh - 124px);
  margin: 0 auto;
  padding: 40px 0 56px;
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 5;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(108px, 15vw, 190px);
  line-height: 0.78;
  letter-spacing: -0.08em;
  font-weight: 900;
  background: linear-gradient(110deg, #b35dff 10%, #775bff 46%, #378dff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 18px 28px rgba(124, 92, 255, 0.18));
}

.hero-copy h2 {
  margin: 28px 0 0;
  font-size: clamp(30px, 4.8vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 900;
  color: var(--ink);
}

.hero-copy p {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.55;
  font-weight: 500;
}

.hero-copy p + p {
  margin-top: 18px;
}

.lummi-stage {
  margin-top: 26px;
  width: min(520px, 76vw);
  position: relative;
  z-index: 4;
}

.error-500 .lummi-stage {
  width: min(620px, 82vw);
}

.lummi-glow {
  position: absolute;
  width: 112%;
  height: 78%;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  border-radius: 48% 52% 45% 55%;
  background:
    radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.13), transparent 60%),
    linear-gradient(135deg, rgba(124, 92, 255, 0.10), rgba(67, 137, 255, 0.06));
  z-index: -1;
}

.lummi-stage img {
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 26px 34px rgba(8, 20, 59, 0.14));
}

.primary-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  position: relative;
  z-index: 5;
}

.action-button {
  min-width: min(380px, 100%);
  min-height: 64px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 11px;
  font-size: clamp(16px, 1.8vw, 20px);
  transition: 0.18s;
}

.action-button:hover {
  transform: translateY(-3px);
}

.action-button span {
  font-size: 24px;
}

.action-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--purple) 0%, var(--blue) 100%);
  box-shadow: 0 20px 46px rgba(124, 92, 255, 0.24);
}

.action-secondary {
  color: var(--purple);
  background: rgba(255, 255, 255, 0.78);
  border: 1.5px solid var(--purple);
}

.help-card {
  width: min(860px, 100%);
  margin-top: 48px;
  padding: 28px 42px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 26px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.70);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 5;
}

.help-icon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 42px;
  color: var(--purple);
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.14), rgba(67, 137, 255, 0.10));
}

.help-card h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.help-card p {
  margin: 0 0 10px;
  max-width: 600px;
  color: var(--ink);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.4;
}

.help-card a {
  color: var(--purple);
  font-weight: 900;
  font-size: clamp(18px, 2vw, 24px);
}

.page-footer {
  margin-top: 42px;
  color: var(--ink);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.35;
  position: relative;
  z-index: 5;
}

.page-footer p {
  margin: 4px 0;
}

.page-footer span {
  color: var(--purple);
  margin-right: 8px;
}

.decor {
  position: absolute;
  pointer-events: none;
}

.decor-dots {
  width: 92px;
  height: 128px;
  background-image: radial-gradient(circle, rgba(124, 92, 255, 0.28) 2.7px, transparent 3px);
  background-size: 24px 24px;
}

.decor-left {
  left: -12px;
  top: 170px;
}

.decor-right {
  right: 16px;
  top: 230px;
}

.decor-star {
  color: rgba(124, 92, 255, 0.28);
  font-size: 46px;
}

.star-one {
  left: 145px;
  top: 250px;
}

.star-two {
  right: 125px;
  top: 420px;
}

.star-three {
  left: 190px;
  top: 102px;
  font-size: 22px;
}

.decor-planet {
  width: 116px;
  height: 76px;
  border-radius: 50%;
  right: 54px;
  top: 105px;
  background: rgba(124, 92, 255, 0.10);
}

.decor-planet::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 18px;
  border: 8px solid rgba(124, 92, 255, 0.10);
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  left: -12px;
  top: 22px;
  transform: rotate(12deg);
}

.orbit {
  position: absolute;
  width: 620px;
  height: 150px;
  border: 2px solid rgba(124, 92, 255, 0.13);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(15deg);
}

.orbit-one {
  left: -80px;
  top: 360px;
}

.orbit-two {
  right: -130px;
  top: 650px;
  transform: rotate(18deg);
}

@media (max-width: 860px) {
  .page-header {
    width: min(100% - 32px, var(--max));
    padding-top: 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    gap: 14px;
  }

  .brand-divider {
    height: 42px;
  }

  .hub-button {
    min-height: 48px;
    padding: 0 18px;
    font-size: 14px;
  }

  .hero-error {
    width: min(100% - 32px, var(--max));
    padding-top: 24px;
  }

  .help-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 28px 22px;
  }

  .decor-left,
  .decor-right,
  .orbit,
  .decor-planet {
    opacity: 0.45;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 48px;
  }

  .brand-subtitle {
    font-size: 13px;
  }

  .hero-copy h1 {
    font-size: 108px;
  }

  .hero-copy h2 {
    font-size: 32px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .lummi-stage {
    width: min(420px, 90vw);
  }

  .error-500 .lummi-stage {
    width: min(460px, 94vw);
  }

  .action-button {
    width: 100%;
    min-width: 0;
  }
}