:root {
  --bg: #070b11;
  --surface: #0d1420;
  --surface-2: #121c2c;
  --border: #1e2d44;
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --cyan: #38bdf8;
  --amber: #f59e0b;
  --text: #e6edf6;
  --muted: #93a4bc;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(16, 185, 129, 0.14), transparent 36%),
    radial-gradient(circle at 86% 24%, rgba(56, 189, 248, 0.10), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
  pointer-events: none;
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero,
.panel {
  background: rgba(13, 20, 32, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--emerald-soft);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.pill-meta {
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0 0 20px;
  color: #c5d2e2;
  max-width: 78ch;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.pillar-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.pillar-title {
  font-weight: 700;
  font-size: 14px;
}

.pillar-sub {
  font-size: 12px;
  color: var(--emerald);
  margin: 2px 0 6px;
}

.pillar-sub a {
  color: #6ee7b7;
  text-decoration: none;
}

.pillar-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  border-color: var(--emerald);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--emerald);
  color: #032116;
  border-color: var(--emerald);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 19px;
}

.hint {
  font-size: 12px;
  color: var(--muted);
}

.hf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.hf-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.hf-card:hover {
  border-color: var(--emerald);
  transform: translateY(-2px);
}

.hf-card h3 {
  margin: 2px 0 0;
  font-size: 15px;
  color: #f8fafc;
}

.hf-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.tag-space {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.tag-model {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

.tag-dataset {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}

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

.tab-btn,
.pill {
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.tab-btn.active,
.pill.active {
  background: var(--emerald-soft);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.5);
}

.arch-stage {
  background: #080d16;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}

.arch-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.arch-node {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px;
  background: var(--surface);
}

.arch-node strong {
  display: block;
  font-size: 13px;
  color: #6ee7b7;
  margin-bottom: 4px;
}

.arch-node span {
  font-size: 12.5px;
  color: var(--muted);
}

.controls input {
  width: min(360px, 100%);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #080d16;
  color: var(--text);
  font-size: 13px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.repo-count {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.repo-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

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

.repo-head a {
  color: #f8fafc;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.repo-head a:hover {
  color: var(--emerald);
}

.repo-stack {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.repo-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding-top: 8px;
}

.quote {
  color: #6ee7b7;
  font-style: italic;
}