:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --bg-panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f8f8f8;
  --muted: #b7b7b7;
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 22%),
    linear-gradient(180deg, #030303, #010101 28%, #000 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 100% 24px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.95));
}

.page-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 28px;
  border-right: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand-block h1 {
  margin: 8px 0 10px;
  font-size: 1.9rem;
}

.sidebar-copy, .section-copy, .panel p, .hero-copy, .link-list a {
  color: var(--muted);
  line-height: 1.5;
}

.eyebrow {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  opacity: 0.72;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.04);
  transition: all 0.2s ease;
}

.sidebar-nav a:hover {
  border-color: var(--border);
  background: rgba(255,255,255,0.08);
}

.sidebar-card, .panel {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
  padding: 16px;
}

.sidebar-card h2, .panel h3 {
  margin: 8px 0 10px;
  font-size: 1.15rem;
}

.content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero {
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.hero-copy {
  max-width: 780px;
  margin: 12px 0 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 0.78rem;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h3 {
  margin: 8px 0 0;
  font-size: 1.3rem;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.repo-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.repo-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.repo-card h4 {
  margin: 0;
  font-size: 1rem;
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--text);
  background: rgba(255,255,255,0.08);
  text-transform: uppercase;
}

.repo-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.repo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.repo-footer a {
  text-decoration: none;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.check-list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.link-list a {
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

@media (max-width: 900px) {
  .page-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .repo-grid { grid-template-columns: 1fr; }
  .split-layout { grid-template-columns: 1fr; }
}
