:root {
  --bg: #07111d;
  --bg-2: #030813;
  --card: rgba(13, 19, 31, 0.8);
  --card-strong: rgba(18, 24, 38, 0.92);
  --line: rgba(111, 126, 158, 0.18);
  --line-strong: rgba(125, 143, 176, 0.3);
  --text: #f6f8fb;
  --muted: #95a1bb;
  --muted-strong: #aeb9d1;
  --mint: #24d39a;
  --mint-soft: #7af6cf;
  --blue: #72b7ff;
  --warn: #ffcc72;
  --danger: #ff6e7a;
  --unknown: #74829b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 15% 12%, rgba(35, 84, 145, 0.55) 0%, rgba(7, 22, 41, 0) 40%),
    radial-gradient(circle at 86% 20%, rgba(23, 68, 110, 0.4) 0%, rgba(7, 22, 41, 0) 35%),
    linear-gradient(180deg, #07111d 0%, #050b15 48%, var(--bg-2) 100%);
  background-size: 170% 170%, 150% 150%, 100% 100%;
  animation: backgroundFlow 26s ease-in-out infinite;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.36;
  will-change: transform, opacity;
}

.orb-1 {
  width: 420px;
  height: 420px;
  left: -160px;
  top: -80px;
  background: #2494ff;
  animation: orbFlowA 34s linear infinite alternate;
}

.orb-2 {
  width: 360px;
  height: 360px;
  right: -150px;
  top: 10%;
  background: #2de2bb;
  animation: orbFlowB 40s linear infinite alternate;
}

.orb-3 {
  width: 390px;
  height: 390px;
  left: 22%;
  bottom: -170px;
  background: #4779ff;
  animation: orbFlowC 46s linear infinite alternate;
}

@keyframes backgroundFlow {
  0%, 100% { background-position: 0% 0%, 100% 0%, 50% 50%; }
  50% { background-position: 12% 8%, 88% 16%, 50% 52%; }
}

@keyframes orbFlowA {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate3d(40vw, 12vh, 0) scale(1.2); opacity: 0.48; }
  50% { transform: translate3d(74vw, 44vh, 0) scale(1.1); opacity: 0.36; }
  75% { transform: translate3d(20vw, 62vh, 0) scale(1.24); opacity: 0.5; }
  100% { transform: translate3d(4vw, 18vh, 0) scale(1.06); opacity: 0.32; }
}

@keyframes orbFlowB {
  0% { transform: translate3d(0, 0, 0) scale(1.04); opacity: 0.34; }
  25% { transform: translate3d(-56vw, 20vh, 0) scale(1.2); opacity: 0.48; }
  50% { transform: translate3d(-16vw, 62vh, 0) scale(1.08); opacity: 0.33; }
  75% { transform: translate3d(-68vw, 54vh, 0) scale(1.22); opacity: 0.5; }
  100% { transform: translate3d(-6vw, 10vh, 0) scale(1.06); opacity: 0.34; }
}

@keyframes orbFlowC {
  0% { transform: translate3d(0, 0, 0) scale(1.02); opacity: 0.3; }
  20% { transform: translate3d(34vw, -18vh, 0) scale(1.16); opacity: 0.43; }
  50% { transform: translate3d(58vw, -44vh, 0) scale(1.08); opacity: 0.34; }
  80% { transform: translate3d(-10vw, -30vh, 0) scale(1.2); opacity: 0.48; }
  100% { transform: translate3d(6vw, -8vh, 0) scale(1.04); opacity: 0.32; }
}

.page {
  position: relative;
  z-index: 1;
  width: min(1040px, 92vw);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.glass {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015), 0 18px 44px rgba(2, 11, 19, 0.4);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: 30px 28px 26px;
  text-align: left;
}

.brand-block {
  max-width: 760px;
}

.eyebrow,
.section-eyebrow,
.metric-label,
.service-row-bottom,
.service-title-wrap p,
.hero-meta,
.section-note,
.snapshot-item span,
.incident-card p,
.empty-state {
  color: var(--muted);
}

.eyebrow,
.section-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  color: #90d4ff;
}

h1,
h2,
h3,
.metric-value,
.snapshot-item strong,
.hero-stat-value {
  margin: 0;
  font-family: "Exo 2", sans-serif;
}

h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 0.98;
  max-width: 14ch;
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
}

h3 {
  font-size: 28px;
  line-height: 1.05;
}

.hero-text {
  margin: 14px 0 0;
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 18px;
  margin-top: 22px;
}

.hero-stat {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(111, 126, 158, 0.14);
  background: rgba(17, 24, 39, 0.42);
}

.hero-stat-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.hero-stat-value {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1;
}

.hero-stat-value--danger {
  color: var(--danger);
}

.status-pill,
.service-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-pill {
  padding: 10px 16px;
}

.status-pill--ok,
.service-badge--ok {
  color: #83f7d1;
  background: rgba(69, 241, 191, 0.15);
  border-color: rgba(69, 241, 191, 0.35);
}

.status-pill--warn,
.service-badge--down {
  color: #ffd0d6;
  background: rgba(255, 110, 122, 0.12);
  border-color: rgba(255, 110, 122, 0.32);
}

.status-pill--warn {
  color: #ffd889;
  background: rgba(255, 198, 103, 0.16);
  border-color: rgba(255, 198, 103, 0.35);
}

.service-badge--unknown {
  color: #c8d8e8;
  background: rgba(143, 168, 188, 0.14);
  border-color: rgba(143, 168, 188, 0.28);
}

.content-grid {
  display: block;
  margin-top: 22px;
}

.status-board,
.side-card,
.incidents-board {
  padding: 24px;
}

.status-board {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(12, 18, 29, 0.92)),
    radial-gradient(circle at top center, rgba(84, 130, 255, 0.08), transparent 42%);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.section-note {
  font-size: 13px;
  white-space: nowrap;
}

.service-list,
.incident-list,
.snapshot-list {
  display: grid;
  gap: 12px;
}

.service-row {
  padding: 12px 14px 10px;
  border-radius: 24px;
  border: 1px solid rgba(120, 138, 170, 0.22);
  background: linear-gradient(180deg, rgba(18, 26, 40, 0.96), rgba(13, 20, 31, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(3, 10, 20, 0.18);
}

.service-row-top,
.service-title-wrap,
.service-side,
.incident-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.service-row-top {
  align-items: center;
  justify-content: space-between;
}

.service-title-wrap {
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
  justify-content: flex-start;
  text-align: left;
}

.service-title-wrap h3 {
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.15;
  font-weight: 700;
}

.service-side {
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 10px;
}

.service-uptime {
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 600;
  color: #24d39a;
  white-space: nowrap;
}

.service-status-dot {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: none;
}

.service-status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 14%, 86% 0, 36% 66%);
}

.service-status-dot--ok {
  background: rgba(36, 211, 154, 0.2);
  color: #20d89d;
}

.service-status-dot--down {
  background: rgba(239, 104, 104, 0.18);
  color: #ff7878;
}

.service-status-dot--unknown {
  background: rgba(87, 95, 117, 0.35);
  color: #99a4bf;
}

.history-block {
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 0;
}

.history-strip {
  display: flex;
  gap: 1px;
  padding: 0;
  width: fit-content;
  max-width: 100%;
  justify-content: flex-start;
  overflow: hidden;
}

.history-bar {
  display: block;
  flex: 0 0 9px;
  height: 36px;
  min-width: 0;
  border-radius: 1px;
  background: #353b4b;
  transition: transform 160ms ease, opacity 160ms ease;
}

.history-bar:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.history-bar--ok {
  background: #5bc58f;
}

.history-bar--down {
  background: #ef7777;
}

.history-bar--unknown {
  background: #353b4b;
}

.history-bar--first {
  border-top-left-radius: 9px;
  border-bottom-left-radius: 9px;
}

.history-bar--last {
  border-top-right-radius: 9px;
  border-bottom-right-radius: 9px;
}

.service-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  width: 100%;
  font-size: 12px;
  color: #8f9ab2;
}

.service-error,
.incident-error {
  margin: 14px 0 0;
  color: #ffd0d6;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.side-column {
  display: grid;
  gap: 18px;
}

.incidents-board {
  margin-top: 18px;
}

.snapshot-item,
.incident-card {
  border-radius: 18px;
  border: 1px solid rgba(111, 126, 158, 0.16);
  background: var(--card-strong);
}

.snapshot-item {
  padding: 16px 18px;
}

.snapshot-item span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.snapshot-item strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
}

.incident-card {
  padding: 18px;
}

.incident-top {
  align-items: center;
  margin-bottom: 10px;
}

.incident-top strong {
  font-size: 17px;
}

.incident-top span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 800;
}

.incident-card--open {
  border-color: rgba(255, 115, 132, 0.24);
}

.incident-card--open .incident-top span {
  color: #ffd0d6;
}

.incident-card--resolved {
  border-color: rgba(69, 241, 191, 0.22);
}

.incident-card--resolved .incident-top span {
  color: #98f3d5;
}

.incident-card p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.empty-state {
  padding: 8px 0 2px;
  line-height: 1.6;
}

@media (max-width: 1120px) {
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page {
    width: min(94vw, 1040px);
    padding-top: 18px;
  }

  .topbar,
  .section-head,
  .service-title-wrap,
  .service-row-bottom,
  .incident-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-row {
    padding: 12px 12px 10px;
  }

  .service-row-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .service-title-wrap {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .service-title-wrap h3 {
    line-height: 1.1;
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
    gap: 18px;
    padding: 24px 18px 20px;
  }

  .hero-text {
    margin-left: 0;
  }

  .hero-side {
    align-items: flex-start;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  .hero-stat {
    width: 100%;
    padding: 12px 14px;
  }

  .service-row-bottom {
    display: flex;
  }

  .hero-side,
  .service-side {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .service-side {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .history-strip {
    display: grid;
    grid-template-columns: repeat(var(--history-points, 90), minmax(0, 1fr));
    width: 100%;
    gap: 1px;
  }

  .history-block {
    width: 100%;
  }

  .history-bar {
    flex: initial;
    height: 30px;
    min-width: 0;
  }

  .service-row-bottom {
    font-size: 12px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 52px);
  }

  h3 {
    font-size: 20px;
  }
}
