:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: #ffffff;
  --panel-muted: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;
  --border: #e2e8f0;
  --accent: #38bdf8;
  --accent-strong: #0284c7;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  --radius: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: #f1f5f9;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.32), transparent 35%),
    linear-gradient(135deg, #020617 0%, #0f172a 50%, #111827 100%);
  color: var(--text-inverse);
  padding: 1.25rem 1.5rem 4rem;
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-inverse);
  font-weight: 800;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(248, 250, 252, 0.25);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.08);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.brand-text {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.hero {
  max-width: var(--max-width);
  margin: 4rem auto 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-text {
  max-width: 760px;
  margin: 1.5rem 0 2rem;
  color: #cbd5e1;
  font-size: 1.15rem;
}

.search-box {
  max-width: 820px;
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem;
  background: rgba(248, 250, 252, 0.08);
  border: 1px solid rgba(248, 250, 252, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
}

.search-box input {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  font-size: 1rem;
  outline: none;
}

.search-box button {
  border: 0;
  border-radius: 14px;
  padding: 0 1.1rem;
  background: var(--accent);
  color: #082f49;
  font-weight: 800;
  cursor: pointer;
}

.search-box button:hover {
  background: #7dd3fc;
}

.search-status {
  margin: 0.9rem 0 0;
  color: #94a3b8;
  font-size: 0.95rem;
}

.main-layout {
  max-width: var(--max-width);
  margin: -2.5rem auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.sidebar,
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar {
  position: sticky;
  top: 1rem;
  padding: 1.25rem;
}

.sidebar h2,
.repo-card h3 {
  margin-top: 0;
}

.section-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.section-list li + li {
  margin-top: 0.4rem;
}

.section-list a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  color: var(--text);
  background: var(--panel-muted);
}

.section-list a:hover {
  background: #e0f2fe;
  text-decoration: none;
}

.repo-card {
  padding: 1rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.repo-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.content {
  display: grid;
  gap: 1.5rem;
}

.panel {
  padding: 1.5rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.panel-header p {
  margin: 0;
  color: var(--text-muted);
}

.results-grid,
.feature-grid {
  display: grid;
  gap: 1rem;
}

.result-card,
.feature-card,
.empty-state {
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-muted);
}

.result-card h3,
.feature-card h3,
.empty-state h3 {
  margin: 0 0 0.45rem;
}

.result-card p,
.feature-card p,
.empty-state p {
  margin: 0.35rem 0;
  color: var(--text-muted);
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.8rem;
  font-weight: 700;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.icon {
  display: inline-block;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

mark {
  background: #fde68a;
  color: #78350f;
  padding: 0 0.15rem;
  border-radius: 4px;
}

code {
  background: #e2e8f0;
  padding: 0.1rem 0.3rem;
  border-radius: 5px;
}

@media (max-width: 860px) {
  .navbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .panel-header {
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box button {
    padding: 0.9rem 1rem;
  }
}
