:root {
  --bg-1: #0b0f1a;
  --bg-2: #111a2a;
  --accent: #6df3ff;
  --accent-2: #a778ff;
  --text: #e9f1ff;
  --muted: #b8c3d8;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --blur: blur(22px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Trebuchet MS", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(11, 15, 26, 0.9), rgba(17, 26, 42, 0.9)),
    url("background.webp") center/cover no-repeat fixed;
  overflow: hidden;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.glow {
  position: absolute;
  width: 40vmax;
  height: 40vmax;
  filter: var(--blur);
  opacity: 0.5;
}

.glow-1 {
  background: radial-gradient(circle, rgba(109, 243, 255, 0.2), transparent 60%);
  top: -10vmax;
  left: -5vmax;
}

.glow-2 {
  background: radial-gradient(circle, rgba(167, 120, 255, 0.2), transparent 60%);
  bottom: -12vmax;
  right: -6vmax;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.6;
}

.shell {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 28px 48px;
  z-index: 1;
}

header .eyebrow {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 8px;
}

header h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 48px);
  letter-spacing: 0.02em;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 12px;
}

.header-row h1 {
  flex: 1;
}

.lede {
  margin: 0 0 20px;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.5;
}

.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

button {
  background: linear-gradient(120deg, rgba(109, 243, 255, 0.16), rgba(167, 120, 255, 0.2));
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  box-shadow: var(--shadow);
}

button:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  box-shadow: 0 15px 40px rgba(109, 243, 255, 0.25);
}

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

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(200px, 1fr));
}

.card {
  display: block;
  padding: 18px 18px 20px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  text-decoration: none;
  color: var(--text);
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 243, 255, 0.6);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.card .tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.status .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.status.online .dot {
  background: #7dffba;
  box-shadow: 0 0 0 4px rgba(125, 255, 186, 0.18);
}

.status.offline .dot {
  background: #ff8a8a;
  box-shadow: 0 0 0 4px rgba(255, 138, 138, 0.18);
}

.status .text {
  white-space: nowrap;
}

.card h2 {
  margin: 12px 0 6px;
  font-size: 22px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

footer {
  margin-top: 36px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 600px) {
  .shell {
    padding: 48px 18px 32px;
  }
  .controls {
    flex-direction: column;
    align-items: flex-start;
  }
  button {
    width: 100%;
    text-align: center;
  }
}
