@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0B1220;
  --surface: #111B2E;
  --surface-raised: #16223A;
  --line: #223252;
  --text: #E8ECF4;
  --text-muted: #7C8AA8;
  --signal: #00D9A3;
  --signal-dim: #00D9A333;
  --alert: #FF6B4A;
  --alert-dim: #FF6B4A33;
  --radius: 14px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(circle at 15% 10%, #132a3c55 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, #1a1a3a55 0%, transparent 45%);
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

a { color: inherit; }

button {
  font-family: var(--font-body);
  cursor: pointer;
}

::selection { background: var(--signal-dim); }

.rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--line) 0 18px, transparent 18px 26px);
  opacity: 0.6;
}

/* Pulse via box-shadow spread, NOT a scaled pseudo-element.
   Transformed elements contribute to the document's scrollable overflow,
   which made scrollbars flicker in and out with every animation cycle
   whenever a dot sat near a viewport edge. Box-shadows never affect
   layout or scroll area, so this version can't cause that. */
.pulse-dot {
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
  animation: pulse-shadow 1.8s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
.pulse-dot.stale {
  background: var(--alert);
  animation: none;
}

@keyframes pulse-shadow {
  0%   { box-shadow: 0 0 0 0 rgba(0, 217, 163, 0.55); }
  70%  { box-shadow: 0 0 0 13px rgba(0, 217, 163, 0); }
  100% { box-shadow: 0 0 0 13px rgba(0, 217, 163, 0); }
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; }
}