:root {
  color-scheme: dark;
  --bg: #090715;
  --card: #121022;
  --card2: #17142a;
  --line: #292440;
  --text: #f4f1ff;
  --muted: #9993ad;
  --purple: #7656e8;
  --purple2: #a98aff;
  --green: #35d49a;
  --red: #ff5c73;
  --yellow: #f4b950;
}
* {
  box-sizing: border-box;
}
html {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% -20%, #2b185b55, transparent 45%),
    var(--bg);
  overflow-x: hidden;
}
.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.11;
  pointer-events: none;
}
.ambient-one {
  background: #7557ff;
  top: 20%;
  left: -260px;
}
.ambient-two {
  background: #a75cff;
  right: -280px;
  bottom: 5%;
}
.navbar {
  height: 76px;
  border-bottom: 1px solid #ffffff0d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  position: relative;
  z-index: 2;
}
.brand {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 700;
}
.brand-mark {
  width: auto;
  height: 26px;
  display: block;
}
.navbar nav {
  display: flex;
  gap: 28px;
}
.navbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}
.navbar nav a:hover {
  color: #fff;
}
main {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
  position: relative;
  z-index: 1;
}
.hero {
  text-align: center;
  padding: 92px 20px 54px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 0 0 20px;
}
.hero h1 span {
  background: linear-gradient(90deg, #9e86ff, #6e4be4);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero > p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}
.overall {
  min-height: 104px;
  border: 1px solid #35d49a45;
  background: linear-gradient(100deg, #35d49a12, #151126);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 12px 40px #0003;
}
.overall.degraded {
  border-color: #f4b95055;
  background: linear-gradient(100deg, #f4b95012, #151126);
}
.overall.outage {
  border-color: #ff5c7355;
  background: linear-gradient(100deg, #ff5c7312, #151126);
}
.overall-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  box-shadow: 0 0 24px #35d49a44;
  flex: none;
}
.overall-icon:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 6px;
  border-left: 3px solid #072c20;
  border-bottom: 3px solid #072c20;
  transform: rotate(-45deg);
  left: 14px;
  top: 15px;
}
.degraded .overall-icon {
  background: var(--yellow);
}
.outage .overall-icon {
  background: var(--red);
}
.degraded .overall-icon:after,
.outage .overall-icon:after {
  width: 3px;
  height: 15px;
  border: 0;
  background: #381d05;
  transform: none;
  left: 20px;
  top: 9px;
  box-shadow: 0 19px 0 -1px #381d05;
}
.overall h2 {
  font-size: 19px;
  margin: 0 0 5px;
}
.overall p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.overall time {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 54px 0 20px;
}
.section-kicker {
  color: var(--purple2);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin: 0 0 6px;
}
.section-heading h2 {
  font-size: 24px;
  margin: 0;
}
.legend {
  display: flex;
  gap: 17px;
  color: var(--muted);
  font-size: 12px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.legend .green {
  background: var(--green);
}
.legend .red {
  background: var(--red);
}
.nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.node {
  background: linear-gradient(145deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  min-height: 260px;
  box-shadow: 0 12px 30px #0002;
}
.node-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.node-symbol {
  width: 41px;
  height: 41px;
  border-radius: 12px;
  background: #7457e81c;
  border: 1px solid #8c72ef33;
  display: grid;
  place-items: center;
  color: #a992ff;
}
.node-symbol svg {
  width: 22px;
}
.node-title h3 {
  font-size: 16px;
  margin: 0;
}
.node-title p {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0 0;
}
.status-pill {
  margin-left: auto;
  border-radius: 20px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: #35d49a17;
}
.offline .status-pill {
  color: var(--red);
  background: #ff5c7317;
}
.node-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0;
}
.metric {
  background: #0c0a18;
  border: 1px solid #ffffff0a;
  border-radius: 11px;
  padding: 12px;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.metric strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(48, 1fr);
  gap: 2px;
  height: 28px;
}
.bar {
  border-radius: 2px;
  background: #332e49;
}
.bar.online {
  background: var(--green);
}
.bar.degraded {
  background: var(--yellow);
}
.bar.outage {
  background: var(--red);
}
.timeline-label {
  display: flex;
  justify-content: space-between;
  color: #716b83;
  font-size: 10px;
  margin-top: 7px;
}
.uptime-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
  font-size: 12px;
  color: var(--muted);
}
.uptime-row strong {
  color: #ddd8e8;
}
.incidents-section {
  margin-bottom: 70px;
}
.incidents {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
}
.incidents > p {
  color: var(--muted);
  text-align: center;
  padding: 26px;
}
.incident {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.incident:last-child {
  border: 0;
}
.incident-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px #ff5c7312;
}
.incident.resolved .incident-dot {
  background: var(--green);
}
.incident h3 {
  font-size: 14px;
  margin: 0;
}
.incident p {
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 0;
}
.incident strong {
  margin-left: auto;
  font-size: 11px;
  color: var(--red);
}
.incident.resolved strong {
  color: var(--green);
}
footer {
  border-top: 1px solid #ffffff0d;
  min-height: 80px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #716b83;
  font-size: 12px;
}
.skeleton {
  background: linear-gradient(90deg, #121020 25%, #1a1730 50%, #121020 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 850px) {
  .nodes {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 65px;
  }
  .overall {
    align-items: flex-start;
  }
  .overall time {
    display: none;
  }
}
@media (max-width: 600px) {
  main {
    width: min(100% - 24px, 1160px);
  }
  .navbar {
    height: 68px;
    padding: 0 16px;
  }
  .navbar nav a:first-child {
    display: none;
  }
  .navbar nav {
    gap: 14px;
  }
  .hero {
    padding: 52px 8px 38px;
  }
  .overall {
    padding: 20px;
  }
  .legend {
    display: none;
  }
  .section-heading {
    margin-top: 42px;
  }
  footer {
    padding: 20px;
    gap: 8px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}
