:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #667085;
  --accent: #6c5ce7;
  --accent-soft: #f1efff;
  --mint: #87d9c6;
  --line: #e9e7f2;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

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

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

button {
  font: inherit;
}

.page-shell {
  width: min(1160px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  padding: 72px 0;
}

.maintenance-card {
  max-width: 620px;
}

.status {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 64px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4a426d;
  background: #fcfbff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(135, 217, 198, 0.2);
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 730;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.message {
  max-width: 560px;
  margin: 30px 0 36px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-width: 168px;
  padding: 15px 18px 15px 22px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 10px 22px rgba(23, 32, 42, 0.12);
  cursor: pointer;
  font-weight: 680;
  transition: transform 160ms ease, background-color 160ms ease,
    box-shadow 160ms ease;
}

.refresh-button span {
  font-size: 18px;
  transition: transform 160ms ease;
}

.refresh-button:hover {
  background: var(--accent);
  box-shadow: 0 12px 26px rgba(108, 92, 231, 0.22);
  transform: translateY(-2px);
}

.refresh-button:hover span {
  transform: translate(2px, -2px);
}

.refresh-button:focus-visible {
  outline: 3px solid rgba(108, 92, 231, 0.28);
  outline-offset: 4px;
}

.footnote {
  margin: 22px 0 0;
  color: #98a0ad;
  font-size: 13px;
}

.visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 480px;
  justify-self: end;
  display: grid;
  place-items: center;
}

.visual::before {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  background: var(--accent-soft);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 50%;
}

.orbit::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border: 5px solid var(--white);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 5px 16px rgba(108, 92, 231, 0.24);
}

.orbit-large {
  inset: 0;
  animation: rotate 22s linear infinite;
}

.orbit-large::after {
  top: 17%;
  right: 7%;
}

.orbit-small {
  inset: 22%;
  animation: rotate-reverse 16s linear infinite;
}

.orbit-small::after {
  left: -10px;
  top: 48%;
  background: var(--mint);
  box-shadow: 0 5px 16px rgba(70, 174, 150, 0.2);
}

.center-mark {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(108, 92, 231, 0.14);
  border-radius: 36px;
  background: var(--white);
  box-shadow: 0 24px 65px rgba(78, 68, 145, 0.15);
  transform: rotate(-7deg);
}

.center-mark span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

.center-mark span:nth-child(2) {
  animation-delay: 150ms;
}

.center-mark span:nth-child(3) {
  animation-delay: 300ms;
}

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

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

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 36px, 620px);
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 44px 0 60px;
  }

  .status {
    margin-bottom: 48px;
  }

  .visual {
    width: min(90vw, 380px);
    justify-self: center;
    grid-row: 1;
  }

  .maintenance-card {
    grid-row: 2;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 28px, 620px);
    gap: 44px;
    padding-top: 28px;
  }

  .visual {
    width: min(78vw, 290px);
  }

  .center-mark {
    width: 90px;
    height: 90px;
    border-radius: 28px;
  }

  h1 {
    font-size: clamp(45px, 14vw, 62px);
  }

  .message {
    margin-top: 24px;
    font-size: 17px;
  }
}

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