@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;700;800&display=swap');

:root {
  --accent-blue: #0080c9;
  --accent-orange: #f59c00;
  --ink: #03283f;
  --muted: #4f6d89;
  --panel: #ffffff;
  --line: rgba(3, 40, 63, 0.2);
  --panel-blue: rgba(0, 128, 201, 0.1);
  --panel-orange: rgba(245, 156, 0, 0.14);
  --green: #4fc06e;
  --shadow: 0 18px 36px rgba(3, 40, 63, 0.18);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(16px, 3vw, 32px);
  overflow-x: hidden;
  font-family: "DM Sans", sans-serif;
  color: #ffffff;
  background-color: var(--accent-blue);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -12vmin;
  right: -10vmin;
  width: 34vmin;
  height: 34vmin;
  background: rgba(255, 255, 255, 0.12);
}

body::after {
  bottom: -18vmin;
  left: -14vmin;
  width: 42vmin;
  height: 42vmin;
  background: rgba(3, 40, 63, 0.08);
}

.page-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0 44px,
      rgba(255, 255, 255, 0.12) 44px 45px
    ),
    linear-gradient(
      to right,
      transparent 0 12%,
      rgba(245, 156, 0, 0.16) 12% 12.4%,
      transparent 12.4% 100%
    );
}

.maintenance-shell,
.page-footer {
  position: relative;
  z-index: 1;
}

.maintenance-shell {
  display: grid;
  place-items: center;
}

.maintenance-card {
  position: relative;
  width: min(820px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
  color: var(--ink);
}

.copy-column {
  display: grid;
  justify-items: center;
  gap: clamp(16px, 2.4vw, 24px);
  text-align: center;
}

.mascot-stage {
  width: min(220px, 56vw);
  max-width: 100%;
  padding-top: 4px;
}

.maintenance-mascot {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(3, 40, 63, 0.16));
  transform-origin: center bottom;
  animation: mascot-sway 3.8s ease-in-out infinite;
}

.brand-logo {
  width: min(240px, 64vw);
  max-width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0;
  padding: 7px 14px;
  border: 1px solid rgba(245, 156, 0, 0.5);
  border-radius: 999px;
  background: var(--panel-orange);
  color: #855100;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 11ch;
  color: #173b59;
  font-size: clamp(2.1rem, 5vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.intro {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.9vw, 1.12rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.info-list {
  width: min(520px, 100%);
  margin: 0;
  padding-left: 1.3rem;
  display: grid;
  gap: 10px;
  color: #335d87;
  text-align: left;
  font-size: 0.96rem;
  line-height: 1.45;
}

.info-list li::marker {
  color: var(--accent-orange);
}

.status-row {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  padding: 12px 16px;
  border: 1px solid rgba(0, 128, 201, 0.18);
  border-radius: 999px;
  background: var(--panel-blue);
  color: #25527c;
  font-weight: 800;
  line-height: 1.4;
}

.status-row.is-swapping #statusMessage {
  opacity: 0.4;
  transform: translateY(2px);
}

#statusMessage {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(79, 192, 110, 0.45);
  animation: pulse 1.8s infinite;
}

.timestamp {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.4;
  text-align: center;
}

.page-footer {
  display: grid;
  place-items: center;
  padding-top: 18px;
}

.page-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-size: 0.94rem;
  line-height: 1.4;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 192, 110, 0.45);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(79, 192, 110, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(79, 192, 110, 0);
  }
}

@keyframes mascot-sway {
  0%,
  100% {
    transform: translateX(-10px) rotate(-2deg);
  }

  50% {
    transform: translateX(10px) rotate(2deg);
  }
}

@media (max-width: 640px) {
  body {
    padding: 18px 16px 20px;
  }

  .maintenance-card {
    border-radius: 28px;
    padding: 32px 24px 34px;
  }

  .copy-column {
    gap: 20px;
  }

  .mascot-stage {
    width: min(148px, 42vw);
    padding-top: 0;
  }

  .brand-logo {
    width: min(182px, 52vw);
  }

  .eyebrow {
    padding: 6px 12px;
    font-size: 0.76rem;
  }

  h1 {
    width: 100%;
    max-width: 14ch;
    font-size: clamp(1.9rem, 8.1vw, 2.85rem);
  }

  .intro {
    max-width: 31ch;
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .info-list {
    width: min(420px, 100%);
    gap: 12px;
    padding-left: 1.15rem;
    font-size: 0.93rem;
    line-height: 1.5;
  }

  .status-row {
    width: 100%;
    max-width: 440px;
    padding: 14px 18px;
  }

  .timestamp {
    margin-top: -2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .maintenance-mascot,
  .status-dot {
    animation: none !important;
  }

  #statusMessage {
    transition: none !important;
  }
}
