:root {
  --bg: #0b0d12;
  --panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e7e9ee;
  --muted: #8b93a5;
  --brand: #a3e635;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f6f7f9; --panel: #ffffff; --border: rgba(15, 23, 42, 0.1); --text: #0f172a; --muted: #5b6475; --brand: #4d7c0f; color-scheme: light; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(800px 400px at 15% -10%, rgba(163, 230, 53, 0.10), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(56, 189, 248, 0.08), transparent 60%);
}
main { width: min(1100px, 100% - 40px); margin: 0 auto; padding: 72px 0 40px; flex: 1; }
header { margin-bottom: 36px; }
h1 { margin: 0; font-size: clamp(40px, 7vw, 64px); letter-spacing: -0.04em; font-weight: 800; line-height: 1; }
h1 .dot { color: var(--brand); }
.sub { margin: 12px 0 28px; color: var(--muted); font-size: 17px; }
.toolbar { display: flex; gap: 14px; align-items: center; }
#q {
  flex: 1; max-width: 420px;
  padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--panel); color: var(--text);
  font: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
#q:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border-radius: 18px; min-height: 210px;
  background: var(--panel); border: 1px solid var(--border);
  color: inherit; text-decoration: none; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  animation: rise .4s ease both; animation-delay: calc(var(--i) * 50ms);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent); opacity: .85;
}
.card:hover, .card:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 12px 40px -12px color-mix(in srgb, var(--accent) 45%, transparent);
  outline: none;
}
.top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.icon {
  position: relative; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.icon .mono { font-weight: 800; font-size: 20px; color: var(--accent); }
.icon img { position: absolute; inset: 7px; width: 32px; height: 32px; object-fit: contain; }
.icon.has-img .mono { visibility: hidden; }
.status { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; }
.status.up { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); }
.status.down { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }
.name { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.domain { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.desc { margin: 6px 0 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.tag { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.tag.alias { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.go {
  position: absolute; right: 18px; bottom: 16px; font-size: 13px; font-weight: 600; color: var(--accent);
  opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .18s;
}
.go::after { content: " \2192"; }
.card:hover .go, .card:focus-visible .go { opacity: 1; transform: none; }
.msg { color: var(--muted); text-align: center; padding: 40px 0; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card { animation: none; transition: none; } }
