html {
  width: 100%;
  overflow-x: hidden;
}

:root {
  --bg: #08111f;
  --panel: rgba(10, 18, 32, 0.84);
  --panel-soft: rgba(19, 28, 47, 0.88);
  --text: #f3efe8;
  --muted: #a6b0c3;
  --accent: #f08b4f;
  --accent-dark: #c55a24;
  --line: rgba(243, 239, 232, 0.1);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  width: 100%;
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(240, 139, 79, 0.2), transparent 28%),
    radial-gradient(circle at bottom right, rgba(58, 131, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #050b14 0%, #0b1628 52%, #09111e 100%);
}

.status-page {
  width: 100%;
  max-width: 960px;
  margin: 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.content,
.aside {
  min-width: 0;
  width: 100%;
  padding: 48px;
}

body.js-ready .status-page {
  transform: translateY(28px) scale(0.98);
  opacity: 0;
  transition: transform 700ms ease, opacity 700ms ease;
}

body.loaded .status-page {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(240, 139, 79, 0.12);
  color: #ffb88f;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 rgba(240, 139, 79, 0.45);
  animation: pulse 1.8s infinite;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 700;
}

p {
  margin: 0;
  color: var(--muted);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 1.03rem;
  line-height: 1.75;
}

.lead {
  max-width: 34rem;
  margin-bottom: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 0;
}

.button,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
  padding: 14px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button {
  color: #fffaf5;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 16px 28px rgba(197, 90, 36, 0.24);
}

.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.button:hover,
.ghost:hover {
  transform: translateY(-2px);
}

.aside {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(240, 139, 79, 0.05) 0%, rgba(66, 128, 255, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.aside::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40px;
  width: 80px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 18, 32, 0) 0%, rgba(19, 28, 47, 0.48) 48%, rgba(19, 28, 47, 0) 100%);
}

.metric {
  padding: 20px 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.js-ready .metric {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

body.loaded .metric {
  opacity: 1;
  transform: translateY(0);
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.metric span {
  color: var(--muted);
  font-family: "Segoe UI", Tahoma, sans-serif;
  line-height: 1.65;
}

.footer-note {
  margin-top: 10px;
  font-size: 0.92rem;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 139, 79, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(240, 139, 79, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 139, 79, 0);
  }
}

@media (max-width: 820px) {
  body {
    display: block;
  }

  .status-page {
    grid-template-columns: 1fr;
    border-radius: 30px;
    margin: 18px;
  }

  .aside {
    border-left: 0;
    border-top: 0;
  }

  .aside::before {
    inset: -40px 0 auto 0;
    width: auto;
    height: 80px;
    background: linear-gradient(180deg, rgba(10, 18, 32, 0) 0%, rgba(19, 28, 47, 0.45) 50%, rgba(19, 28, 47, 0) 100%);
  }

  .content,
  .aside {
    padding: 32px 24px;
  }

  h1 {
    font-size: clamp(2.2rem, 8vw, 3.6rem);
    line-height: 1;
  }

  p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

@media (max-width: 560px) {
  body {
    display: block;
  }

  .status-page {
    border-radius: 24px;
    margin: 12px;
  }

  .content,
  .aside {
    padding: 24px 18px;
  }

  .eyebrow {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(1.9rem, 11vw, 2.8rem);
    line-height: 1.02;
    max-width: 10ch;
  }

  .lead {
    margin-bottom: 22px;
  }

  .actions {
    flex-direction: column;
    gap: 12px;
  }

  .button,
  .ghost {
    width: 100%;
    min-width: 0;
    padding: 15px 18px;
  }

  .aside {
    gap: 14px;
  }

  .metric {
    padding: 18px;
    border-radius: 22px;
  }

  .metric strong {
    font-size: 1rem;
  }

  .footer-note {
    text-align: center;
  }
}
