:root {
  --bg: #101218;
  --bg-soft: #161b24;
  --panel: #1e2430;
  --panel-soft: #242c3a;
  --border: #364055;
  --text: #e9eef8;
  --muted: #9aa7bf;
  --accent: #58c4ff;
  --accent-2: #6fffb0;
  --danger: #ff6b6b;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: radial-gradient(
      1200px 560px at 10% -10%,
      rgba(88, 196, 255, 0.16),
      transparent 55%
    ),
    radial-gradient(
      1200px 600px at 110% -20%,
      rgba(111, 255, 176, 0.14),
      transparent 55%
    ),
    linear-gradient(180deg, #0d0f14 0%, #121620 100%);
}

.landing {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 36px 0 56px;
}

.landing-header h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 0.02em;
}

.landing-header p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 860px;
}

.systems-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.system-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, var(--panel) 0%, #1a202b 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.system-card:hover {
  transform: translateY(-3px);
  border-color: #b98a2f;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(185, 138, 47, 0.28), 0 0 18px rgba(185, 138, 47, 0.16);
}

.system-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-card-head h2 {
  margin: 0;
  font-size: 18px;
}

.system-description {
  margin: 10px 0 14px;
  color: #d2dbeb;
  font-size: 13px;
  min-height: calc(1.55em * 8);
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
}

.system-meta {
  margin: 0;
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.system-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

.system-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.system-meta dd {
  margin: 0;
  text-align: right;
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

.system-meta dd.kpi-positive {
  color: #6ee7a8;
}

.system-meta dd.kpi-warning {
  color: #ffd166;
}

.system-meta dd.kpi-danger {
  color: #ff7b7b;
}

.kpi-trophy {
  font-size: 12px;
  vertical-align: baseline;
}

.system-card-error {
  border-color: rgba(255, 107, 107, 0.55);
  background: linear-gradient(180deg, #2b1f23 0%, #201619 100%);
}

.system-card-error .system-description {
  color: #ffb6b6;
}

@media (max-width: 700px) {
  .landing {
    width: min(1200px, 92vw);
    padding: 24px 0 36px;
  }

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