:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --ink: #24231f;
  --muted: #6f6b61;
  --line: #d9d4c9;
  --accent: #f66b24;
  --accent-soft: #ffd7bd;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 44%, #fff 0 0.25rem, transparent 0.28rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

.maintenance-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.processor {
  width: min(100%, 360px);
  display: grid;
  justify-items: center;
  text-align: center;
}

.dial {
  position: relative;
  width: clamp(104px, 36vw, 148px);
  aspect-ratio: 1;
  margin-bottom: 30px;
}

.dial-ring,
.dial-core,
.node {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.dial-ring {
  inset: 0;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-right-color: var(--accent-soft);
  animation: spin 1.15s linear infinite;
}

.dial-ring::before,
.dial-ring::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: inherit;
  border: 1px solid rgba(36, 35, 31, 0.1);
}

.dial-ring::after {
  inset: 36%;
  border-color: rgba(246, 107, 36, 0.25);
}

.dial-core {
  inset: 38%;
  background: var(--ink);
  box-shadow: 0 0 0 8px rgba(246, 107, 36, 0.08);
  animation: pulse 1.65s ease-in-out infinite;
}

.node {
  width: 8px;
  height: 8px;
  background: var(--accent);
  opacity: 0.85;
  transform: translate(-50%, -50%);
  animation: blink 1.7s ease-in-out infinite;
}

.node-a {
  left: 22%;
  top: 34%;
}

.node-b {
  left: 72%;
  top: 26%;
  animation-delay: 0.22s;
}

.node-c {
  left: 66%;
  top: 74%;
  animation-delay: 0.44s;
}

.kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(1.45rem, 7vw, 2.25rem);
  line-height: 1.12;
  font-weight: 680;
  letter-spacing: 0;
}

.status-text {
  max-width: 23rem;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: clamp(0.88rem, 3.6vw, 1rem);
  line-height: 1.65;
}

.data-line {
  width: min(210px, 68vw);
  height: 22px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 8px;
}

.data-line span {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(246, 107, 36, 0.2), var(--accent));
  transform-origin: center;
  animation: meter 1.4s ease-in-out infinite;
}

.data-line span:nth-child(2) {
  animation-delay: 0.14s;
}

.data-line span:nth-child(3) {
  animation-delay: 0.28s;
}

.data-line span:nth-child(4) {
  animation-delay: 0.42s;
}

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

@keyframes pulse {
  50% {
    transform: scale(0.82);
    opacity: 0.72;
  }
}

@keyframes blink {
  50% {
    opacity: 0.28;
    transform: translate(-50%, -50%) scale(0.7);
  }
}

@keyframes meter {
  50% {
    transform: scaleX(0.38);
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dial-ring,
  .dial-core,
  .node,
  .data-line span {
    animation-duration: 8s;
  }
}
