:root {
  --page: #03070c;
  --page-glow: #0c2133;
  --surface: #081b2a;
  --surface-hover: #0a2031;
  --line: #1d3f57;
  --line-strong: #42a5f5;
  --text: #f2f7fc;
  --muted: #93b4d3;
  --label: #87b9eb;
  --green: #42e873;
  --green-soft: rgba(66, 232, 115, 0.15);
  --warning: #ffba49;
  --critical: #ff6470;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--page);
  background-image: radial-gradient(circle at 50% 0%, var(--page-glow) 0%, #07111c 38%, var(--page) 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1400px, 96%);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--green);
  border: 3px solid var(--green);
  transform: rotate(30deg);
}

.brand-mark span {
  font-size: 22px;
  font-weight: 700;
  transform: rotate(-30deg);
}

.brand-copy {
  display: grid;
  gap: 5px;
}

.brand-copy strong {
  font-size: 21px;
  letter-spacing: 0.01em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 35px;
}

.main-nav a {
  position: relative;
  padding: 34px 4px 28px;
  color: #c8d9e8;
  font-size: 14px;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--green);
}

main {
  flex: 1;
}

.hero {
  padding: 36px 20px 30px;
  text-align: center;
}

.hero .eyebrow {
  margin: 0 0 8px;
  color: var(--label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 52px);
  line-height: 1.05;
}

.hero > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.monitor-card {
  min-height: 280px;
  padding: 25px 28px 20px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(10, 34, 52, 0.96), rgba(7, 25, 39, 0.96));
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.monitor-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, rgba(12, 39, 59, 0.98), rgba(8, 29, 45, 0.98));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.card-heading,
.card-title {
  display: flex;
  align-items: center;
}

.card-heading {
  min-height: 51px;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.card-title {
  gap: 17px;
}

.card-title h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0.035em;
}

.card-icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #d9efff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(135, 185, 235, 0.2));
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.status span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.status-ok { color: var(--green); }
.status-warning { color: var(--warning); }
.status-critical { color: var(--critical); }
.status-offline { color: #8292a0; }


.status.status-off {
    color: #ff6262;
}

.status.status-off > span:first-child {
    background: #ff6262;
    box-shadow: 0 0 12px rgba(255, 98, 98, .5);
}

.metrics {
  margin: 4px 0 20px;
}

.metrics div {
  min-height: 41px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(29, 63, 87, 0.8);
}

.metrics dt,
.metrics dd {
  margin: 0;
}

.metrics dt {
  color: var(--label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.metrics dd {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.detail-link {
  min-height: 40px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--green);
  background: rgba(3, 15, 23, 0.25);
  border: 1px solid var(--green);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.detail-link:hover,
.detail-link:focus-visible {
  color: #031108;
  background: var(--green);
  outline: none;
}

.detail-link span {
  font-size: 17px;
  transition: transform 150ms ease;
}

.detail-link:hover span {
  transform: translateX(4px);
}

.site-footer {
  min-height: 72px;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.site-footer strong {
  color: var(--label);
}

.site-footer span:nth-child(2) {
  font-size: 12px;
  letter-spacing: 0;
}

.site-footer span:last-child {
  text-align: right;
}

@media (max-width: 900px) {
  .site-header {
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    overflow-x: auto;
  }

  .main-nav a {
    padding: 10px 0 12px;
  }

  .monitor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    font-size: 10px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 22px;
  }

  .hero {
    padding: 30px 10px 25px;
  }

  .hero > p:last-child {
    font-size: 15px;
  }

  .monitor-card {
    min-height: 270px;
    padding: 21px 20px 18px;
  }

  .card-heading {
    align-items: flex-start;
  }

  .card-title {
    gap: 12px;
  }

  .card-title h2 {
    font-size: 17px;
  }

  .card-icon {
    width: 38px;
    height: 38px;
  }

  .site-footer {
    padding: 22px 0;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer span:last-child {
    text-align: center;
  }
}

.toner-values {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
}

.toner-values > span {
    display: inline-flex;
    gap: 4px;
    white-space: nowrap;
}

.toner-c { color: #55cbe7; }
.toner-m { color: #e27cbb; }
.toner-y { color: #e9c95e; }
.toner-k { color: #d9e3eb; }

.metrics > div > dd.toner-values {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 18px;
}

.metrics > div > dd.toner-values > span {
    display: inline;
    white-space: nowrap;
}

.metrics > div > dd.toner-values b {
    margin-right: 4px;
}


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