:root {
  color-scheme: dark;
  --bg: #101820;
  --panel: rgba(245, 247, 250, 0.08);
  --panel-strong: rgba(245, 247, 250, 0.14);
  --text: #f7fafc;
  --muted: #aab6c3;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #19c2a6;
  --accent-2: #f3b562;
  --accent-3: #6aa7ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(25, 194, 166, 0.22), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(106, 167, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #101820 0%, #17212b 48%, #221f28 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 86%);
}

.maintenance-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 64px);
  place-items: center;
}

.status-panel {
  width: min(1080px, 100%);
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.topline,
.progress-copy,
footer {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.topline {
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(25, 194, 166, 0.7);
  animation: pulse 1.8s infinite;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  margin-top: clamp(42px, 7vw, 72px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 5.85rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: #d4dde7;
  font-size: clamp(1.02rem, 2.2vw, 1.28rem);
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 34px;
}

.primary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: var(--accent);
  color: #07120f;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #2bd8bc;
  box-shadow: 0 16px 36px rgba(25, 194, 166, 0.22);
  transform: translateY(-2px);
}

.support-text {
  color: var(--muted);
  font-weight: 600;
}

.system-visual {
  position: relative;
  aspect-ratio: 1;
  min-width: 280px;
  isolation: isolate;
}

.orbit,
.core,
.signal {
  position: absolute;
  border-radius: 999px;
}

.orbit {
  inset: 10%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.orbit-one {
  animation: spin 18s linear infinite;
}

.orbit-two {
  inset: 22%;
  border-color: rgba(25, 194, 166, 0.28);
  animation: spin 11s linear infinite reverse;
}

.orbit::before,
.orbit::after {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  content: "";
  background: var(--accent-3);
  box-shadow: 0 0 22px rgba(106, 167, 255, 0.8);
}

.orbit::before {
  top: 9%;
  left: 18%;
}

.orbit::after {
  right: 12%;
  bottom: 18%;
  background: var(--accent-2);
  box-shadow: 0 0 22px rgba(243, 181, 98, 0.72);
}

.core {
  inset: 28%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 26px 60px rgba(0, 0, 0, 0.34);
}

.core-ring {
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  animation: spin 9s linear infinite;
}

.core-screen {
  display: grid;
  width: 58%;
  gap: 9px;
}

.core-screen span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  transform-origin: left;
  animation: scan 1.7s ease-in-out infinite;
}

.core-screen span:nth-child(2) {
  width: 74%;
  animation-delay: 160ms;
}

.core-screen span:nth-child(3) {
  width: 48%;
  animation-delay: 320ms;
}

.signal {
  width: 12px;
  height: 12px;
  background: var(--accent);
  box-shadow: 0 0 26px rgba(25, 194, 166, 0.8);
}

.signal-a {
  top: 6%;
  right: 25%;
  animation: float 4.6s ease-in-out infinite;
}

.signal-b {
  bottom: 15%;
  left: 16%;
  animation: float 5.2s ease-in-out infinite 500ms;
}

.signal-c {
  top: 46%;
  right: 6%;
  animation: float 4.2s ease-in-out infinite 900ms;
}

.progress-area {
  margin-top: clamp(40px, 6vw, 70px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.progress-copy {
  justify-content: space-between;
  gap: 16px;
}

.progress-copy strong {
  color: var(--text);
}

.progress-track {
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 24px rgba(25, 194, 166, 0.48);
  transition: width 700ms ease;
}

footer {
  position: absolute;
  right: clamp(24px, 5vw, 64px);
  bottom: clamp(18px, 4vw, 34px);
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(25, 194, 166, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(25, 194, 166, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes scan {
  50% {
    opacity: 0.52;
    transform: scaleX(0.72);
  }
}

@keyframes float {
  50% {
    transform: translate3d(0, -16px, 0) scale(1.2);
  }
}

@media (max-width: 820px) {
  .maintenance-shell {
    align-items: start;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .system-visual {
    width: min(360px, 100%);
    min-width: 0;
    margin: 0 auto;
  }

  footer {
    position: static;
    justify-content: center;
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
