:root {
  --ink: #e7edf5;
  --muted: #a7b4c4;
  --paper: #0d1624;
  --accent: #3a78d4;
  --accent-2: #4ba3c7;
  --card: #162337;
  --line: #24344c;
  --shadow: 0 18px 40px rgba(6, 12, 20, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background: radial-gradient(circle at top, #162840 0%, #0d1624 45%, #0b1421 100%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-orbit {
  position: fixed;
  inset: -40% 10% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 163, 199, 0.12), transparent 68%);
  filter: blur(0.5px);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 2200px;
  margin: 0 auto;
  padding: 48px 48px 72px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #1e2c46, #101b2c);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.brand-dot {
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 6px;
}

h1 {
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

h2 {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topbar-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  min-width: 320px;
}

.label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.value {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 6px;
}

.muted {
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr) 420px;
  gap: 22px;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: rise 0.8s ease both;
}

.column.center {
  animation-delay: 0.12s;
}

.column:last-child {
  animation-delay: 0.2s;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pill {
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(26, 40, 63, 0.9), rgba(18, 28, 45, 0.9));
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fade-in 0.6s ease both;
}

.service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.status-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(58, 120, 212, 0.2);
  color: var(--accent);
}

.status-badge[data-state="ok"] {
  background: rgba(58, 120, 212, 0.25);
  color: #cfe1ff;
}

.status-badge[data-state="warn"] {
  background: rgba(255, 191, 0, 0.2);
  color: #ffd36e;
}

.status-badge[data-state="down"] {
  background: rgba(235, 87, 87, 0.2);
  color: #ffb7b7;
}

.service-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

.service-meta p {
  display: flex;
  gap: 8px;
}

.uptime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.subscribe {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

input {
  background: #101a2b;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
}

input:focus {
  outline: 2px solid rgba(58, 120, 212, 0.6);
  outline-offset: 2px;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.primary {
  background: var(--accent);
  color: #f8fbff;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-meta {
    width: 100%;
  }

  .stat-grid,
  .uptime-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 32px 20px 48px;
  }

  .topbar-meta {
    grid-template-columns: 1fr;
  }
}
