:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #1c2330;
  --border: #2b3444;
  --text: #e6edf3;
  --muted: #8b98a9;
  --accent: #58a6ff;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #16203300, #0d1117 60%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.hub-header {
  text-align: center;
  padding: 56px 22px 28px;
  border-bottom: 1px solid var(--border);
}
.hub-header h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: .3px;
  background: linear-gradient(90deg, #58a6ff, #3fb950);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline { margin: 10px auto 0; max-width: 560px; color: var(--text); font-size: 15px; }
.byline { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.byline a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed transparent; transition: border-color .15s; }
.byline a:hover { border-bottom-color: var(--accent); }
.hub-note { margin: 14px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- Card grid ---------- */
.grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 22px 40px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.card-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--c, var(--accent));
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 40%, transparent);
  background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.card h2 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.5; flex: 1; }

.card-links { display: flex; align-items: center; gap: 10px; }
.pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.pill.ghost {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 8px;
  transition: .15s;
}
.pill.ghost:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Footer ---------- */
.hub-footer {
  border-top: 1px solid var(--border);
  padding: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.footer-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 8px; }
.footer-links a { color: var(--accent); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
