:root {
  --bg: #f7f4ef;
  --panel: #ffffff;
  --ink: #1d2530;
  --muted: #637083;
  --line: #dfe4ea;
  --accent: #e85d3f;
  --accent-dark: #bd4028;
  --blue: #2c6fbb;
  --green: #22a06b;
  --shadow: 0 24px 70px rgba(29, 37, 48, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(232, 93, 63, 0.15), transparent 34%),
    linear-gradient(315deg, rgba(44, 111, 187, 0.16), transparent 32%),
    var(--bg);
}

a {
  color: inherit;
}

.maintenance-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.status-panel {
  width: min(1060px, 100%);
  min-height: min(650px, calc(100vh - 56px));
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  background: var(--ink);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
  flex: 1;
}

.site-footer {
  margin-top: 34px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.copy-block {
  max-width: 600px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

.message {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.7;
}

.status-card {
  width: min(460px, 100%);
  min-height: 86px;
  margin-top: 34px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.status-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.84rem;
}

.status-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
}

.pulse-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 160, 107, 0.42);
  animation: pulse 1.8s infinite;
}

.action-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.primary-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent);
  transition: transform 180ms ease, background 180ms ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.eta {
  color: var(--muted);
  font-size: 0.95rem;
}

.visual-block {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}

.screen {
  position: relative;
  z-index: 2;
  width: min(390px, 100%);
  aspect-ratio: 1.05;
  overflow: hidden;
  border: 10px solid var(--ink);
  border-radius: 8px;
  background: #f9fbfd;
  box-shadow: 0 22px 38px rgba(29, 37, 48, 0.22);
}

.screen-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: var(--ink);
}

.screen-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.86;
}

.screen-body {
  min-height: calc(100% - 44px);
  display: grid;
  place-items: center;
  padding: 34px;
}

.tool-icon {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 30px;
  transform: rotate(-14deg);
}

.tool-icon .handle {
  position: absolute;
  left: 48px;
  top: 20px;
  width: 22px;
  height: 92px;
  border-radius: 12px;
  background: var(--blue);
}

.tool-icon .head {
  position: absolute;
  left: 18px;
  top: 0;
  width: 84px;
  height: 42px;
  border-radius: 8px 8px 18px 18px;
  background: var(--accent);
}

.progress {
  width: min(230px, 100%);
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce6f1;
}

.progress span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  animation: load 2.4s ease-in-out infinite;
}

.mini-lines {
  width: min(220px, 90%);
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.mini-lines i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #e2e8ef;
}

.mini-lines i:nth-child(2) {
  width: 78%;
}

.mini-lines i:nth-child(3) {
  width: 54%;
}

.server-rack {
  position: absolute;
  right: 0;
  bottom: 14px;
  width: 190px;
  padding: 14px;
  border-radius: 8px;
  background: #293342;
  box-shadow: 0 18px 32px rgba(29, 37, 48, 0.22);
}

.server-rack span {
  display: block;
  height: 34px;
  margin: 10px 0;
  border-radius: 6px;
  background:
    radial-gradient(circle at 22px 50%, var(--green) 0 5px, transparent 6px),
    linear-gradient(90deg, #465267, #333e50);
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(34, 160, 107, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 160, 107, 0);
  }
}

@keyframes load {
  0%,
  100% {
    width: 48%;
  }

  50% {
    width: 82%;
  }
}

@media (max-width: 820px) {
  .maintenance-page {
    padding: 16px;
  }

  .status-panel {
    min-height: calc(100vh - 32px);
  }

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

  .visual-block {
    min-height: 300px;
    order: -1;
  }

  .screen {
    width: min(330px, 92vw);
  }

  .server-rack {
    width: 148px;
    right: 6%;
  }
}

@media (max-width: 520px) {
  .status-panel {
    padding: 22px;
  }

  .site-footer {
    margin-top: 26px;
    font-size: 0.86rem;
  }

  .brand-row {
    margin-bottom: 20px;
  }

  h1 {
    font-size: 2.4rem;
    line-height: 1.05;
  }

  .message {
    line-height: 1.62;
  }

  .status-card {
    align-items: flex-start;
  }

  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link {
    width: 100%;
  }

  .visual-block {
    min-height: 250px;
  }

  .screen {
    border-width: 8px;
  }

  .server-rack {
    display: none;
  }
}
