:root {
  --night-top: #091255;
  --night-mid: #17246b;
  --night-bottom: #24398a;
  --mist: rgba(255, 255, 255, 0.12);
  --text: #f7f4df;
  --text-soft: rgba(247, 244, 223, 0.86);
  --accent: #d8e4ff;
  --panel: rgba(9, 18, 85, 0.18);
  --panel-border: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--night-top) 0%, var(--night-mid) 48%, var(--night-bottom) 100%);
}

.maintenance-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.sky,
.stars,
.scene,
.fog {
  position: absolute;
  inset: 0;
}

.sky {
  z-index: -1;
}

.stars {
  background-repeat: repeat;
  background-position: center top;
}

.stars-static {
  opacity: 0.75;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 26%, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.5px),
    radial-gradient(circle at 65% 12%, rgba(216, 228, 255, 0.9) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 22% 62%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 68%, rgba(255, 255, 255, 0.95) 0 1.1px, transparent 1.6px),
    radial-gradient(circle at 38% 44%, rgba(216, 228, 255, 0.8) 0 1px, transparent 1.4px);
  background-size: 420px 420px;
}

.stars-drift {
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 16% 30%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 56% 22%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 54%, rgba(216, 228, 255, 0.8) 0 1.2px, transparent 1.7px),
    radial-gradient(circle at 34% 72%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.5px);
  background-size: 520px 520px;
  animation: drift-stars 260s linear infinite;
}

.scene {
  background:
    url("./scene.svg") center bottom / cover no-repeat,
    linear-gradient(180deg, rgba(9, 18, 85, 0) 0%, rgba(9, 18, 85, 0.12) 60%, rgba(9, 18, 85, 0.28) 100%);
}

.fog {
  pointer-events: none;
}

.fog-top {
  background: linear-gradient(to bottom, #091255, #091255 72px, rgba(9, 18, 85, 0.16), rgba(32, 46, 121, 0.22));
  height: 40vh;
  inset: 0 0 auto 0;
}

.fog-bottom {
  background: linear-gradient(to top, #091255, rgba(9, 18, 85, 0.03), rgba(32, 46, 121, 0.24));
  height: 42vh;
  inset: auto 0 0 0;
}

.content {
  width: min(100%, 760px);
  padding: 36px 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(9, 18, 85, 0.24), rgba(9, 18, 85, 0.08));
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  backdrop-filter: blur(4px);
  box-shadow: 0 18px 70px rgba(3, 8, 36, 0.28);
}

.brand-mark {
  display: block;
  width: clamp(86px, 12vw, 120px);
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.16));
}

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.18;
  letter-spacing: 0.04em;
  text-shadow: 0 0 28px rgba(247, 244, 223, 0.12);
}

.lead {
  margin: 20px auto 0;
  max-width: 34rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.95;
}

.sub {
  margin: 22px 0 0;
  color: rgba(216, 228, 255, 0.85);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

@keyframes drift-stars {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-220px, 120px, 0);
  }
}

@media (max-width: 767px) {
  .maintenance-page {
    padding: 20px 14px;
  }

  .content {
    padding: 28px 18px;
    border-radius: 22px;
  }

  .lead br {
    display: none;
  }

  .scene {
    background-size: auto 44%, cover;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stars-drift {
    animation: none;
  }
}
