:root {
  --bg: #060b17;
  --bg-soft: #0f1c33;
  --surface: #122241;
  --surface-2: #162a4f;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f7ff;
  --muted: #a9b7d5;
  --brand: #44d4b6;
  --brand-2: #4f8dff;
  --accent: #f7c66f;
  --ok: #56d87c;
  --warn: #ffcb72;
  --danger: #ff7f88;
  --radius: 18px;
  --shadow-lg: 0 18px 38px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 7px 20px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background:
    radial-gradient(1000px 480px at 80% -18%, #15335f 0%, transparent 60%),
    radial-gradient(820px 420px at -10% 0%, #132a4d 0%, transparent 58%),
    linear-gradient(180deg, #071024 0%, var(--bg) 78%);
  font-family: "Montserrat", "Segoe UI", "Trebuchet MS", sans-serif;
  line-height: 1.58;
}

a { color: #8ec0ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 11, 23, 0.78);
  backdrop-filter: blur(9px);
}

.nav {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow-sm);
}

.menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu a {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 11px;
  border-radius: 10px;
}

.menu a.active,
.menu a:hover {
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  padding: 80px 0 40px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

h1, h2, h3 {
  margin: 0 0 14px;
  line-height: 1.18;
  font-weight: 700;
}

h1 { font-size: clamp(34px, 5.8vw, 62px); max-width: 12ch; }
h2 { font-size: clamp(26px, 3.8vw, 38px); }
h3 { font-size: 20px; }

.lead {
  color: var(--muted);
  max-width: 68ch;
}

.hero-actions {
  margin-top: 24px;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  color: #001126;
  background: linear-gradient(140deg, var(--brand), #6fd4ff);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.metric {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.block {
  margin: 34px 0;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  font-size: 12px;
  color: #d6e7ff;
  background: rgba(79, 141, 255, 0.17);
  border: 1px solid rgba(79, 141, 255, 0.35);
  border-radius: 999px;
  padding: 6px 11px;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 8px;
}

.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.danger { background: var(--danger); }

.incidents-grid {
  display: grid;
  gap: 12px;
}

.incident-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 14px;
}

.incident-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.incident-title {
  font-weight: 600;
}

.incident-meta {
  margin: 5px 0;
  color: var(--muted);
  font-size: 14px;
}

.badge {
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-ok {
  color: #b6f4cd;
  border-color: rgba(86, 216, 124, 0.44);
  background: rgba(86, 216, 124, 0.13);
}

.badge-warn {
  color: #ffe9ba;
  border-color: rgba(255, 203, 114, 0.46);
  background: rgba(255, 203, 114, 0.14);
}

.badge-danger {
  color: #ffd3d7;
  border-color: rgba(255, 127, 136, 0.48);
  background: rgba(255, 127, 136, 0.15);
}

.impact {
  font-weight: 600;
}

.impact-ok { color: #b6f4cd; }
.impact-warn { color: #ffe1a3; }
.impact-danger { color: #ffc3ca; }

.code {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #0e1a31;
  color: #c9dcff;
  padding: 12px 13px;
  font-family: "IBM Plex Mono", Consolas, monospace;
  white-space: pre-wrap;
}

.post-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 9px;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.back-link { display: inline-block; margin-bottom: 14px; }

footer {
  margin-top: 62px;
  border-top: 1px solid var(--line);
  padding: 24px 0 38px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 930px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .menu { gap: 7px; }
  .menu a { font-size: 13px; padding: 7px 8px; }
}
