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

:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-card-hover: #1c2333;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-green: #3fb950;
  --accent-orange: #d2991d;
  --accent-purple: #a371f7;
  --radius: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, 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;
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 24px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(88, 166, 255, 0.08);
}

/* Sections */
section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  font-weight: 700;
}

section > p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 1.05rem;
}

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

.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* Language labels */
.lang {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang.rust  { background: rgba(222, 165, 132, 0.15); color: #dea584; }
.lang.go    { background: rgba(0, 173, 216, 0.15); color: #00add8; }
.lang.ts    { background: rgba(49, 120, 198, 0.15); color: #3178c6; }
.lang.py    { background: rgba(53, 114, 165, 0.15); color: #3572a5; }
.lang.cpp   { background: rgba(243, 75, 125, 0.15); color: #f34b7d; }
.lang.java  { background: rgba(176, 114, 25, 0.15); color: #b07219; }

/* Featured */
.featured {
  text-align: center;
}

.featured-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.featured-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.15s ease;
}

.featured-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card-hover);
}

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

.footer-links {
  margin-top: 8px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

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

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

/* Responsive */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .tagline {
    font-size: 1.05rem;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 36px 0;
  }
}
