:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #7c5cff;
  --accent-dim: rgba(124, 92, 255, 0.1);
  --green: #34d399;
  --radius: 12px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(124, 92, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(52, 211, 153, 0.05), transparent);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Intro */
.intro { padding: 64px 0 48px; }

.intro { text-align: center; padding: 48px 0 32px; }

.intro h1 {
  font-size: 1.1rem; font-weight: 600; color: var(--text-secondary);
  line-height: 1.5;
}

/* Sections */
.section { padding: 32px 0; }

.section__title {
  font-size: 1.1rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 24px;
  text-transform: capitalize; text-align: center;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.project-grid--single { max-width: 480px; margin: 0 auto; }

.card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 24px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

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

.card__icon {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; overflow: hidden;
}

.card__icon--app { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.card__icon--tool { background: var(--accent-dim); color: var(--accent); }
.card__icon--research { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }

.card__avatar { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; display: block; }

.card__name { font-size: 1rem; font-weight: 600; }
.card__desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.55; flex: 1; margin-bottom: 16px; }

.card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-muted); }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 6px;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  font-size: 0.78rem; color: var(--text-secondary);
}

.tag--lang::before {
  content: ""; width: 8px; height: 8px;
  border-radius: 50%; display: inline-block;
}

.tag--ts::before { background: #3178c6; }
.tag--kotlin::before { background: #A97BFF; }
.tag--shell::before { background: #89e051; }
.tag--python::before { background: #3572A5; }
.tag--swift::before { background: #F05138; }

.tag--stars { color: #fbbf24; border-color: rgba(251, 191, 36, 0.2); }

.tag--doi { color: #3b82f6; border-color: rgba(59, 130, 246, 0.25); text-decoration: none; }
.tag--doi:hover { background: rgba(59, 130, 246, 0.1); text-decoration: none; }
.tag--ietf { color: #f97316; border-color: rgba(249, 115, 22, 0.25); text-decoration: none; }
.tag--ietf:hover { background: rgba(249, 115, 22, 0.1); text-decoration: none; }
.tag--source { color: var(--text-secondary); text-decoration: none; }
.tag--source:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; }

.card--featured { border-color: rgba(251, 191, 36, 0.15); }
.card--featured:hover { border-color: rgba(251, 191, 36, 0.3); }
.card__name a { color: inherit; text-decoration: none; }
.card__name a:hover { color: var(--accent); text-decoration: none; }

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

.footer a { color: var(--text-secondary); }
.footer a:hover { color: var(--text-primary); }

/* Responsive */
@media (max-width: 640px) {
  .intro { padding: 48px 0 32px; }
  .project-grid { grid-template-columns: 1fr; }
}
