:root {
  --bg-1: #04111d;
  --bg-2: #071a2a;
  --panel: rgba(11, 35, 53, 0.82);
  --line: rgba(133, 218, 247, 0.25);
  --text: #eff9ff;
  --muted: #b7d3e3;
  --brand: #4ce3ff;
  --accent: #63ffb6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(86, 228, 255, 0.17), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(92, 255, 181, 0.13), transparent 22%),
    linear-gradient(156deg, var(--bg-1) 0%, var(--bg-2) 45%, #092235 100%);
  background-position: 0 0, 0 0, 0 0;
  animation: pageAtmosphere 24s ease-in-out infinite;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -44px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: #e8fff5;
  color: #04263f;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 10px;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(99, 255, 182, 0.95);
  outline-offset: 3px;
}

.container {
  width: min(980px, calc(100% - 30px));
  margin: 0 auto;
}

.top {
  border-bottom: 1px solid rgba(137, 215, 243, 0.16);
  background: rgba(3, 16, 27, 0.74);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.top-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
}

.brand-logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(153, 228, 255, 0.3);
  background: linear-gradient(145deg, rgba(14, 50, 74, 0.84), rgba(8, 24, 39, 0.96));
  box-shadow: inset 0 0 0 1px rgba(187, 239, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.brand-svg {
  width: 24px;
  height: 24px;
}

.brand .shield {
  fill: url(#brandShieldGradient);
  stroke: rgba(232, 249, 255, 0.72);
  stroke-width: 1.1;
}

.brand .eye {
  fill: none;
  stroke: #f4fcff;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand .pupil {
  fill: #62ffc4;
}

.nav {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(95deg, var(--accent), var(--brand));
  transition: transform 220ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

main {
  padding: 26px 0 80px;
}

.card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(142, 223, 251, 0.38);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 10px; }
h2 { font-size: 1.3rem; margin-top: 20px; margin-bottom: 8px; }

p, li {
  color: var(--muted);
  line-height: 1.65;
}

ul { margin: 0; padding-left: 20px; }

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

.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.83rem;
}

.status-pill.ok { background: rgba(79, 204, 170, 0.24); color: #8ff5c6; }
.status-pill.degraded { background: rgba(223, 176, 68, 0.22); color: #ffe18d; }
.status-pill.down { background: rgba(227, 86, 110, 0.24); color: #ff9cab; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.btn::after {
  content: "";
  position: absolute;
  top: -130%;
  bottom: -130%;
  left: -120%;
  width: 40%;
  pointer-events: none;
  transform: rotate(16deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.32),
    rgba(255, 255, 255, 0)
  );
  opacity: 0;
  transition: left 650ms ease, opacity 220ms ease;
}

.btn:hover::after,
.btn:focus-visible::after {
  left: 135%;
  opacity: 0.95;
}

.btn-ghost {
  border-color: rgba(132, 212, 239, 0.32);
  background: rgba(10, 35, 54, 0.58);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

th,
td {
  border-bottom: 1px solid rgba(143, 217, 243, 0.2);
  text-align: left;
  padding: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer {
  border-top: 1px solid rgba(136, 219, 248, 0.2);
  background: rgba(3, 16, 27, 0.84);
  padding: 18px 0 26px;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}

@keyframes pageAtmosphere {
  0%,
  100% {
    background-position: 0 0, 0 0, 0 0;
  }
  50% {
    background-position: 10px -8px, -8px 10px, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
