* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface-hover: #222;
  --border: #2a2a2a;
  --text: #e5e5e5;
  --text-muted: #888;
  --accent: #c084fc;
  --accent-dim: rgba(192, 132, 252, 0.12);
  --green: #4ade80;
  --green-dim: rgba(74, 222, 128, 0.12);
  --blue: #60a5fa;
  --blue-dim: rgba(96, 165, 250, 0.12);
  --orange: #fb923c;
  --orange-dim: rgba(251, 146, 60, 0.12);
  --red: #f87171;
  --red-dim: rgba(248, 113, 113, 0.12);
  --yellow: #facc15;
  --yellow-dim: rgba(250, 204, 21, 0.12);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.12);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  padding: 80px 0 48px;
  text-align: center;
}

.header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.header h1 span {
  background: linear-gradient(135deg, var(--accent), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Stats bar */
.stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Section */
.section {
  margin-bottom: 56px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  border-radius: 2px;
}

.section-title.mcp::before { background: var(--accent); }
.section-title.plugin::before { background: var(--green); }
.section-title.skill::before { background: var(--orange); }
.section-title.marketplace::before { background: var(--blue); }
.section-title.extra::before { background: var(--cyan); }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  transition: border-color 0.2s, background 0.2s;
}

.card:hover {
  border-color: #333;
  background: var(--surface-hover);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.card-icon.mcp { background: var(--accent-dim); color: var(--accent); }
.card-icon.plugin { background: var(--green-dim); color: var(--green); }
.card-icon.skill { background: var(--orange-dim); color: var(--orange); }
.card-icon.marketplace { background: var(--blue-dim); color: var(--blue); }
.card-icon.disabled { background: var(--red-dim); color: var(--red); }

.card-name {
  font-size: 1.05rem;
  font-weight: 600;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

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

.tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tag.mcp { background: var(--accent-dim); color: var(--accent); }
.tag.plugin { background: var(--green-dim); color: var(--green); }
.tag.skill { background: var(--orange-dim); color: var(--orange); }
.tag.blue { background: var(--blue-dim); color: var(--blue); }
.tag.disabled { background: var(--red-dim); color: var(--red); }
.tag.yellow { background: var(--yellow-dim); color: var(--yellow); }
.tag.cyan { background: var(--cyan-dim); color: var(--cyan); }

/* Command block */
.cmd {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow-x: auto;
  margin-top: 10px;
  white-space: pre;
}

/* Links */
.links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.links a {
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.links a:hover {
  border-bottom-color: var(--accent);
}

/* Inline code */
code {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.82em;
  color: var(--accent);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card.wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .header { padding: 48px 0 32px; }
  .header h1 { font-size: 1.8rem; }
  .stats { gap: 20px; }
}
