:root {
  --bg: #07111f;
  --bg-soft: rgba(8, 18, 34, 0.72);
  --panel: rgba(10, 19, 35, 0.76);
  --panel-border: rgba(148, 163, 184, 0.16);
  --text: #edf4ff;
  --muted: #94a8c7;
  --accent: #68f2ff;
  --accent-2: #7c3aed;
  --success: #3ef0a5;
  --warn: #facc15;
  --danger: #ff6b8a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(75, 85, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #050c18 0%, #091321 48%, #040811 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(104, 242, 255, 0.04), transparent 36%, rgba(124, 58, 237, 0.07));
}

#neural-bg,
.ambient,
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#neural-bg {
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 1;
  mix-blend-mode: screen;
  filter: saturate(1.08);
}

.ambient {
  filter: blur(50px);
  opacity: 0.8;
  z-index: -4;
}

.ambient-a {
  background: radial-gradient(circle, rgba(104, 242, 255, 0.2) 0%, transparent 60%);
  transform: translate(-12%, -10%);
  animation: drift 16s ease-in-out infinite;
}

.ambient-b {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 58%);
  transform: translate(60%, 12%);
  animation: drift 18s ease-in-out infinite reverse;
}

.ambient-c {
  background: radial-gradient(circle, rgba(62, 240, 165, 0.12) 0%, transparent 58%);
  transform: translate(25%, 72%);
  animation: drift 20s ease-in-out infinite;
}

.grid-overlay {
  z-index: -1;
  opacity: 0.72;
  background-image:
    linear-gradient(rgba(128, 144, 172, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 144, 172, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,0.5), transparent 86%);
}

.scanline {
  position: fixed;
  left: 0;
  right: 0;
  top: -180px;
  height: 180px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to bottom, transparent, rgba(104, 242, 255, 0.08), transparent);
  opacity: 0.55;
  animation: scan 12s linear infinite;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.glass-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: 28px;
  padding: 34px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(104, 242, 255, 0.06), transparent 42%, rgba(124, 58, 237, 0.08));
  pointer-events: none;
}

.eyebrow,
.service-kicker,
.action-kicker,
.summary-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.quick-links h2 {
  margin: 14px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-text,
.section-head p,
.status-summary,
.action-card span,
.summary-meta {
  color: var(--muted);
  line-height: 1.6;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(10, 19, 35, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #d8e7ff;
  font-size: 0.95rem;
}

.pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(62, 240, 165, 0.45);
  animation: pulse 2s infinite;
}

.hero-summary {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(8, 18, 34, 0.92), rgba(8, 18, 34, 0.6));
  border: 1px solid rgba(104, 242, 255, 0.18);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-value {
  display: block;
  margin: 12px 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.summary-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.summary-stats-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(104, 242, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-stats-eye {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.summary-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.summary-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(8, 18, 34, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.summary-stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-stat-value {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.03em;
  color: #f4f8ff;
}

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

.status-card,
.quick-links {
  border-radius: 26px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.status-card::before,
.action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.03), transparent 42%);
  pointer-events: none;
}

.status-card::after {
  content: "";
  position: absolute;
  inset: auto 26px 0 26px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(104, 242, 255, 0.55), transparent);
  opacity: 0.6;
}

.status-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.status-head h2 {
  margin: 12px 0 4px;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.status-badge {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.66);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge.is-online {
  color: #04130d;
  background: linear-gradient(135deg, #3ef0a5, #8fffe1);
  border-color: transparent;
}

.status-badge.is-degraded {
  color: #1d1604;
  background: linear-gradient(135deg, #facc15, #ffe08a);
  border-color: transparent;
}

.status-badge.is-offline {
  color: #230512;
  background: linear-gradient(135deg, #ff6b8a, #ffb0c0);
  border-color: transparent;
}

.status-badge.is-unknown {
  color: #dbeafe;
}

.status-card.service-online {
  border-color: rgba(62, 240, 165, 0.32);
  box-shadow: 0 24px 80px rgba(18, 201, 126, 0.12);
}

.status-card.service-degraded {
  border-color: rgba(250, 204, 21, 0.35);
  box-shadow: 0 24px 80px rgba(250, 204, 21, 0.12);
}

.status-card.service-offline {
  border-color: rgba(255, 107, 138, 0.34);
  box-shadow: 0 24px 80px rgba(255, 107, 138, 0.12);
}

.status-details {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #d9e8ff;
  display: grid;
  gap: 10px;
}

.status-details li::marker {
  color: var(--accent);
}

.status-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #d9e8ff;
  font-size: 0.95rem;
}

.status-footer-label {
  color: var(--muted);
}

.quick-links {
  margin-top: 26px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(8, 18, 34, 0.95), rgba(8, 18, 34, 0.66));
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.action-card strong {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.action-card em {
  margin-top: auto;
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}

.action-card:hover,
.action-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(104, 242, 255, 0.32);
  box-shadow: 0 24px 70px rgba(104, 242, 255, 0.16);
  outline: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 240, 165, 0.48); }
  70% { box-shadow: 0 0 0 16px rgba(62, 240, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 240, 165, 0); }
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, 18px, 0) scale(1.04); }
}

@keyframes scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(calc(100vh + 360px)); }
}

@media (max-width: 1080px) {
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .hero,
  .status-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 26px;
  }

  .status-card,
  .quick-links {
    padding: 22px;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .hero h1,
  .quick-links h2 {
    line-height: 1.02;
  }

  .status-head,
  .status-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-pills {
    gap: 10px;
  }

  .summary-stats {
    gap: 8px;
  }

  .summary-stats-grid {
    gap: 8px;
  }

  .summary-stat {
    width: 100%;
    justify-content: space-between;
    padding: 9px 12px;
  }

  .summary-stat-value {
    font-size: 0.96rem;
  }
}

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

  #neural-bg,
  .scanline {
    display: none !important;
  }
}
