:root {
  color-scheme: light;
  --white: #ffffff;
  --black: #000000;
  --body: #333333;
  --teal: #06a582;
  --pink: #ff006e;
  --mint: #13e4b6;
  --line: #e8eeec;
  --muted: #737c79;
  --font-body: "DM Sans", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--white);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--body);
  font-family: var(--font-body);
  background-color: var(--white);
  background-image: radial-gradient(#dce8e4 0.8px, transparent 0.8px);
  background-position: center;
  background-size: 22px 22px;
}

button {
  font: inherit;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  align-content: center;
  justify-items: center;
  padding: 48px 24px 30px;
}

.maintenance-card {
  position: relative;
  width: min(100%, 600px);
  padding: 27px 48px 27px;
  overflow: hidden;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(6, 165, 130, 0.12);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(25, 57, 48, 0.11), 0 3px 10px rgba(25, 57, 48, 0.04);
  animation: card-arrive 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.brand-logo {
  display: block;
    height: auto !important;
    width: 90%;
  object-fit: contain;
}

.status-art {
  position: relative;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  margin: 43px auto 23px;
  background: #fff5f9;
  border-radius: 50%;
  animation: art-arrive 750ms 120ms both;
}

.art-ring {
  position: absolute;
  border: 1px solid rgba(255, 0, 110, 0.14);
  border-radius: 50%;
}

.art-ring-outer {
  inset: -12px;
}

.art-ring-inner {
  inset: 12px;
  border-color: rgba(255, 0, 110, 0.11);
}

.server-icon {
  z-index: 1;
  width: 57px;
  height: 57px;
  stroke: var(--pink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.art-spark {
  position: absolute;
  z-index: 2;
  width: 9px;
  height: 9px;
  background: var(--pink);
  border: 2px solid var(--white);
  border-radius: 50%;
}

.spark-one {
  top: 17px;
  right: 14px;
}

.spark-two {
  bottom: 15px;
  left: 15px;
  width: 7px;
  height: 7px;
  background: var(--teal);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  padding: 5px 11px;
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  background: var(--mint);
  border-radius: 999px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--black);
  border-radius: 50%;
  animation: status-pulse 1.8s ease-in-out infinite;
}

h1 {
  margin: 18px 0 12px;
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.08;
}

.page-description {
  max-width: 405px;
  margin: 0 auto;
  color: var(--body);
  font-size: 15px;
  line-height: 1.7;
}

.action-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin: 28px auto 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline: 3px solid rgba(6, 165, 130, 0.3);
  outline-offset: 3px;
}

.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.button-primary {
  color: var(--white);
  background: var(--teal);
}

.button-primary:hover {
  background: #058d70;
}

.button-secondary {
  color: var(--teal);
  background: var(--white);
  border-color: var(--teal);
}

.button-secondary:hover {
  background: #f0fbf8;
}

.action-feedback {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
}

.card-divider {
  height: 1px;
  margin: 19px 0 16px;
  background: var(--line);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-mark span {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.page-caption {
  margin: 18px 0 0;
  color: #69736f;
  font-size: 12px;
  text-align: center;
  animation: card-arrive 650ms 150ms both;
}

@keyframes card-arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes art-arrive {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes status-pulse {
  50% {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 24px 16px;
  }

  .maintenance-card {
    padding: 22px 22px 20px;
  }

  .status-art {
    width: 112px;
    height: 112px;
    margin: 35px auto 22px;
  }

  .server-icon {
    width: 51px;
    height: 51px;
  }

  h1 {
    font-size: 36px;
  }

  .page-description {
    font-size: 14px;
  }

  .action-group {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 23px;
  }

  .card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@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;
  }
}
