:root {
  --bg: #05010a;
  --panel: rgba(17, 7, 26, 0.72);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --border: rgba(222, 111, 255, 0.18);
  --border-strong: rgba(255, 122, 234, 0.32);
  --text: #f5ecff;
  --muted: #c8b6db;
  --soft: #a590bd;
  --pink: #ff63d8;
  --violet: #9b5dff;
  --ok: #8dff9f;
  --warn: #ffca7a;
  --bad: #ff7a9f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

body {
  position: relative;
  background: linear-gradient(180deg, #09020f 0%, #040108 100%);
}

.bg-art,
.bg-overlay,
.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-art {
  z-index: 0;
  background: url("/media/image/bg.jpg") center / cover no-repeat;
  transform: scale(1.05);
  filter: brightness(0.7) saturate(1.2) contrast(1.02);
  transition: transform 0.18s ease-out;
}

.bg-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.45)),
    radial-gradient(circle at center, transparent 38%, rgba(0,0,0,0.30) 78%, rgba(0,0,0,0.58) 100%);
}

.bg-noise {
  z-index: 2;
  opacity: 0.015;
  mix-blend-mode: screen;
  background-image: radial-gradient(circle, rgba(255,255,255,0.7) 0.4px, transparent 0.7px);
  background-size: 8px 8px;
}

.topbar,
.shell,
.panel {
  position: relative;
  z-index: 3;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin-top: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(11, 4, 17, 0.7);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand-kicker {
  display: block;
  margin-bottom: 4px;
  color: #efb0ff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.brand h1 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.topbar-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.84rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 14px var(--ok);
  animation: pulse 2.4s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 6px var(--ok);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 18px var(--ok);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 6px var(--ok);
  }
}

.shell {
  width: min(1360px, calc(100% - 24px));
  margin: 18px auto 28px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent 22%, transparent 78%, rgba(255,255,255,0.03));
}

.hero,
.services,
.telemetry-panel,
.timeline-panel {
  padding: 26px;
}

.hero {
  margin-bottom: 20px;
}

.hero-copy {
  max-width: 720px;
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 99, 216, 0.25);
  background: rgba(255, 99, 216, 0.1);
  color: #ffc3f4;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  margin-bottom: 14px;
  text-shadow: 0 0 26px rgba(255, 99, 216, 0.2);
}

.hero-text {
  color: var(--muted);
  max-width: 660px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.stat-card {
  padding: 16px 17px;
  border-radius: 20px;
  background: var(--panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 112px;
}

.stat-card.compact {
  min-height: 104px;
}

.stat-card.wide {
  grid-column: span 2;
}

.stat-label {
  color: #d2b5ee;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.stat-value {
  font-size: clamp(1.15rem, 2vw, 1.95rem);
  line-height: 1.05;
  font-weight: 800;
}

.stat-desc {
  color: var(--soft);
  font-size: 0.87rem;
  line-height: 1.45;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-head h3 {
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e6c0fb;
}

.section-note {
  font-size: 0.82rem;
  color: var(--soft);
}

.service-grid {
  display: grid;
  gap: 14px;
}

.service-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 17px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 122, 234, 0.26);
  box-shadow: 0 0 30px rgba(181, 58, 255, 0.14);
}

.service-card.muted {
  opacity: 0.92;
}

.service-card.service-online {
  border-color: rgba(141,255,159,0.35);
  box-shadow: 0 0 22px rgba(141,255,159,0.08);
}

.service-card.service-degraded {
  border-color: rgba(255, 202, 122, 0.24);
}

.service-card.service-offline {
  border-color: rgba(255, 122, 159, 0.24);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(255, 99, 216, 0.16), rgba(155, 93, 255, 0.14));
  border: 1px solid rgba(255,255,255,0.08);
}

.service-body h4 {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.service-body p {
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.45;
}

.service-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.state {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.route {
  font-size: 0.8rem;
  color: var(--soft);
}

.rail {
  display: grid;
  gap: 20px;
}

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

.timeline-list {
  display: grid;
  gap: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-time {
  color: #ffaded;
  font-size: 0.8rem;
  font-weight: 700;
}

.timeline-copy strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.timeline-copy span {
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-pills {
    justify-content: flex-start;
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .hero-stats,
  .telemetry-grid {
    grid-template-columns: 1fr;
  }

  .stat-card.wide {
    grid-column: auto;
  }

  .service-card {
    grid-template-columns: auto 1fr;
  }

  .service-meta {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .topbar,
  .panel,
  .shell {
    width: calc(100% - 14px);
  }

  .topbar {
    margin-top: 8px;
    padding: 12px 14px;
  }

  .shell {
    margin-top: 12px;
    gap: 14px;
  }

  .hero,
  .services,
  .telemetry-panel,
  .timeline-panel {
    padding: 18px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-text,
  .service-body p,
  .timeline-copy span,
  .stat-desc {
    font-size: 0.9rem;
  }
}
