:root {
  --bg: #0a0e14;
  --bg-elev: #10151d;
  --card: #131a24;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e8edf4;
  --text-dim: #9aa7b8;
  --accent-a: #33d6b0;
  --accent-b: #6d7bff;
  --accent-c: #b26bff;
  --live: #33d6a0;
  --maintenance: #f5b942;
  --offline: #f56060;
  --radius: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background glow */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow::before,
.bg-glow::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  animation: drift 22s ease-in-out infinite alternate;
}

.bg-glow::before {
  background: var(--accent-b);
  top: -15%;
  left: -10%;
}

.bg-glow::after {
  background: var(--accent-a);
  bottom: -20%;
  right: -10%;
  animation-delay: -11s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4%, 6%) scale(1.08); }
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  padding: 56px 0 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b) 55%, var(--accent-c));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg { width: 24px; height: 24px; }

.brand-text .eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 2px;
}

.brand-text h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 650;
}

h2.headline {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #fff, #b9c4d6 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 720px;
}

p.subhead {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 620px;
  margin: 0 0 32px;
}

/* Controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.search {
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
}

.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-dim);
}

.search input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.search input:focus { border-color: var(--accent-b); }
.search input::placeholder { color: var(--text-dim); }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text-dim);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pill:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }

.pill.active {
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #051018;
  border-color: transparent;
  font-weight: 600;
}

/* Grid */
main { padding: 24px 0 80px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

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

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #04121a;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-c));
  flex-shrink: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  white-space: nowrap;
}

.status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
}

.status.maintenance .dot { background: var(--maintenance); }
.status.offline .dot { background: var(--offline); }

.card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.card p.desc {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}

.tech {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  gap: 10px;
}

.open-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #04121a;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.open-btn:hover { filter: brightness(1.08); }
.open-btn svg { width: 14px; height: 14px; }

.empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 60px 20px;
  font-size: 15px;
}

footer.site {
  border-top: 1px solid var(--card-border);
  padding: 28px 0 40px;
  color: var(--text-dim);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

footer.site a { color: var(--text-dim); }

@media (max-width: 560px) {
  header.site { padding: 36px 0 24px; }
  .card { padding: 18px; }
}
