:root {
  --background: #0b161b;
  --foreground: #f7f7f2;
  --accent: #b7ff4a;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.maintenance-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  padding: clamp(20px, 6vw, 96px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(44, 122, 124, 0.19), transparent 34%),
    var(--background);
  background-size: 64px 64px, 64px 64px, auto, auto;
}

.maintenance-page::before,
.maintenance-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.maintenance-page::before {
  width: min(72vw, 900px);
  aspect-ratio: 1;
  border: 1px solid rgba(183, 255, 74, 0.2);
  box-shadow:
    0 0 0 10vw rgba(255, 255, 255, 0.012),
    0 0 0 20vw rgba(255, 255, 255, 0.008);
}

.maintenance-page::after {
  top: 18%;
  right: 15%;
  width: 9px;
  height: 9px;
  background: var(--accent);
  box-shadow: 0 0 38px 12px rgba(183, 255, 74, 0.27);
}

h1 {
  width: min(100%, 1100px);
  margin: 0;
  color: var(--foreground);
  font-size: clamp(1.75rem, min(7.6vw, 18vh), 7.5rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: normal;
  animation: reveal 850ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .maintenance-page {
    padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background-size: 46px 46px, 46px 46px, auto, auto;
  }

  .maintenance-page::before {
    width: 145vw;
  }

  h1 {
    font-size: clamp(1.6rem, min(9vw, 16vh), 3.6rem);
    letter-spacing: -0.035em;
    line-height: 1.05;
  }
}

@media (max-height: 420px) {
  h1 {
    font-size: clamp(1.5rem, 10vh, 3rem);
  }

  .maintenance-page::before {
    width: min(58vw, 520px);
  }
}

@media (prefers-reduced-motion: reduce) {
  h1 {
    animation: none;
  }
}
