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

:root {
  color-scheme: dark;
  --primary-700: #005e8a;
  --primary-500: #0080bd;
  --info-500: #00a8eb;
  --secondary-700: #800082;
  --secondary-500: #d230d4;
  --surface-a: #1e1b2b;
  --surface-b: #181622;
  --white: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-faint: rgba(255, 255, 255, 0.45);
  --border: rgba(255, 255, 255, 0.1);
}

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

html,
body {
  min-height: 100vh;
  background: linear-gradient(45deg, var(--primary-700), var(--secondary-700));
}

body {
  background:
    linear-gradient(45deg, rgba(0, 94, 138, 0.98), rgba(128, 0, 130, 0.98)),
    linear-gradient(90deg, var(--surface-a), var(--surface-b));
  color: var(--white);
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.logo {
  display: block;
  width: min(240px, 76vw);
  height: auto;
  object-fit: contain;
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--primary-500);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 128, 189, 0.22);
  transform: translateZ(0);
  transition: background-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.button {
  min-width: 220px;
  min-height: 48px;
  padding: 14px 22px;
  font-size: 16px;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 66%, transparent 82%);
  transform: translateX(-140%);
  transition: transform 1500ms ease-out;
}

.button::after {
  content: "";
  position: absolute;
  inset-inline: 14%;
  top: 0;
  height: 58%;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.2), transparent 72%);
  opacity: 0.7;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--primary-700);
  box-shadow: 0 18px 36px rgba(0, 128, 189, 0.3);
}

.button:hover::before {
  transform: translateX(140%);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

.page-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: 48px 16px;
  background: linear-gradient(45deg, var(--primary-700), var(--secondary-700));
  text-align: center;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 50px #fff;
  pointer-events: none;
  animation: floatBubble ease-in-out infinite;
}

.page-shell::before {
  width: 320px;
  height: 320px;
  top: 8%;
  left: 6%;
  opacity: 0.018;
  animation-duration: 26s;
}

.page-shell::after {
  width: min(75vw, 760px);
  height: min(75vw, 760px);
  top: 14%;
  right: -18%;
  opacity: 0.024;
  animation-duration: 32s;
  animation-delay: 2s;
}

@keyframes floatBubble {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(10vh) translateX(-10vw) scale(1.1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.corner-art {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: clamp(18px, 5vw, 56px);
  z-index: 0;
  width: clamp(180px, 26vw, 390px);
  max-height: 46vh;
  object-fit: contain;
  opacity: 0.16;
  filter: invert(1) hue-rotate(145deg) saturate(0.9) drop-shadow(0 0 32px rgba(0, 168, 235, 0.18));
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translate(12%, 10%);
  user-select: none;
}

.corner-art-404 {
  width: clamp(170px, 23vw, 340px);
  opacity: 0.14;
}

.corner-art-429,
.corner-art-503,
.corner-art-504 {
  width: clamp(190px, 25vw, 360px);
}

.corner-art-500 {
  width: clamp(210px, 28vw, 420px);
  opacity: 0.13;
}

.corner-art-502 {
  width: clamp(190px, 24vw, 350px);
  opacity: 0.2;
}

.status-card {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(36, 35, 44, 0.65);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  padding: clamp(32px, 6vw, 72px);
}

.status-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 94, 138, 0), rgba(255, 255, 255, 0.35), rgba(128, 0, 130, 0));
  pointer-events: none;
}

.status-card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--info-500), var(--secondary-500));
  background-size: 140% 100%;
  animation: gradientPan 20s ease-in-out infinite;
  opacity: 0.9;
}

@keyframes gradientPan {
  0%,
  100% {
    background-position: 45% 50%;
  }
  50% {
    background-position: 55% 50%;
  }
}

.status-logo {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(26px, 5vw, 42px);
}

.status-code {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 2;
  display: inline-flex;
  min-width: 48px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.title {
  max-width: 900px;
  margin: 0 auto 18px;
  color: var(--white);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.03;
  text-wrap: balance;
}

.primary-glow,
.glow-primary {
  color: rgb(82, 205.368852459, 255);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.22), 0 0 20px rgba(56, 189, 248, 0.14);
}

.secondary-glow,
.glow-secondary {
  color: rgb(228.0909090909, 132.4928229665, 229.5071770335);
  text-shadow: 0 0 10px rgba(190, 24, 93, 0.2), 0 0 20px rgba(190, 24, 93, 0.12);
}

.primary-glow.animate,
.glow-primary.animate {
  animation: primaryGlowPulse 4s ease-in-out infinite;
}

.secondary-glow.animate,
.glow-secondary.animate {
  animation: secondaryGlowPulse 4s ease-in-out infinite;
}

@keyframes primaryGlowPulse {
  0%,
  100% {
    color: #85dcff;
    text-shadow: 0 0 7px rgba(56, 189, 248, 0.22), 0 0 16px rgba(56, 189, 248, 0.14);
  }
  50% {
    color: #b9efff;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.28), 0 0 20px rgba(56, 189, 248, 0.18);
  }
}

@keyframes secondaryGlowPulse {
  0%,
  100% {
    color: #e45be6;
    text-shadow: 0 0 7px rgba(190, 24, 93, 0.2), 0 0 16px rgba(190, 24, 93, 0.12);
  }
  50% {
    color: #f0a3f1;
    text-shadow: 0 0 10px rgba(190, 24, 93, 0.26), 0 0 20px rgba(190, 24, 93, 0.16);
  }
}

.lead {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.7;
}

.copy {
  max-width: 680px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.7;
}

.nowrap {
  white-space: nowrap;
}

.timeout-lines {
  display: grid;
  gap: 4px;
}

.timeout-lines p:last-child {
  justify-self: end;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.report-issue {
  position: fixed;
  left: 22px;
  right: auto;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(24, 22, 34, 0.78);
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.report-issue::before {
  content: "!";
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--secondary-500);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.report-issue:hover {
  transform: translateY(-1px);
  background: rgba(24, 22, 34, 0.92);
  color: var(--white);
}

.status-logo:focus-visible,
.button:focus-visible,
.report-issue:focus-visible {
  outline: 3px solid rgba(0, 168, 235, 0.55);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .page-shell {
    align-items: start;
    padding-top: 32px;
    padding-bottom: 92px;
  }

  .status-card {
    border-radius: 20px;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .corner-art {
    right: -28px;
    bottom: 28px;
    width: min(58vw, 260px);
    opacity: 0.08;
    transform: none;
  }

  .report-issue {
    left: 14px;
    right: auto;
    bottom: 20px;
  }
}
