:root {
  --bg: #0f172a;
  --panel: #0b1224;
  --card: #0b1224;
  --border: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #7dd3fc;
  --accent-2: #a78bfa;
  --success: #34d399;
  --error: #f87171;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.08), transparent 25%),
              radial-gradient(circle at 80% 10%, rgba(167, 139, 250, 0.1), transparent 28%),
              radial-gradient(circle at 30% 80%, rgba(52, 211, 153, 0.08), transparent 25%),
              var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

.shell { width: min(1200px, 100vw - 32px); margin: 0 auto; padding: 28px 20px 64px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(125,211,252,0.08), rgba(167,139,250,0.08));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;
}
.brand { font-weight: 700; letter-spacing: -0.01em; }
.nav { display: flex; gap: 12px; flex-wrap: wrap; }
.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}
.nav a:hover {
  border-color: rgba(125, 211, 252, 0.6);
  background: rgba(125, 211, 252, 0.08);
  transform: translateY(-1px);
}

h1 { margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { margin: 0; }
p { color: var(--muted); }

.hero {
  background: linear-gradient(135deg, rgba(125,211,252,0.12), rgba(167,139,250,0.12));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.callout { display: inline-flex; padding: 6px 10px; border-radius: 10px; background: rgba(167, 139, 250, 0.12); color: #c4b5fd; font-size: 13px; border: 1px solid rgba(167,139,250,0.25); }
.hero p { margin: 0 0 18px; color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 840px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.6);
  background: linear-gradient(135deg, rgba(125,211,252,0.3), rgba(167,139,250,0.3));
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}
.btn:hover { transform: translateY(-1px); background: linear-gradient(135deg, rgba(125,211,252,0.4), rgba(167,139,250,0.4)); }
.btn.ghost { background: rgba(255,255,255,0.04); border-color: var(--border); font-weight: 600; }

.grid { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: border-color 120ms ease, transform 120ms ease, background 120ms ease;
}
.card:hover { border-color: rgba(125,211,252,0.55); transform: translateY(-1px); background: rgba(125,211,252,0.03); }
.label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; }
.muted { color: var(--muted); }

.panel { margin-top: 22px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
.ping-panel { display: grid; gap: 12px; }
.ping-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ping-result { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: rgba(255,255,255,0.02); }
.json-output { margin: 0; color: #d4d4d4; font-family: 'JetBrains Mono', 'SFMono-Regular', 'Menlo', monospace; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

@media (max-width: 720px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .actions { width: 100%; }
}
