/* ── Design Tokens ── */
:root {
  --bg-900: #07080d;
  --bg-800: #0d0f1a;
  --bg-700: #11141f;
  --bg-600: #161924;
  --bg-500: #1c2030;
  --surface: #1e2235;
  --surface-2: #242840;
  --border: rgba(99,115,255,0.13);
  --border-2: rgba(99,115,255,0.22);

  --accent: #6b7eff;
  --accent-2: #a78bfa;
  --accent-glow: rgba(107,126,255,0.25);
  --green: #34d399;
  --green-dim: rgba(52,211,153,0.12);
  --amber: #fbbf24;
  --amber-dim: rgba(251,191,36,0.12);
  --rose: #f87171;
  --rose-dim: rgba(248,113,113,0.12);
  --sky: #38bdf8;

  --text-primary: #eef0ff;
  --text-secondary: #9299c5;
  --text-muted: #5a6090;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --sidebar-w: 280px;
  --header-h: 64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-900);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-800); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Topbar ── */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(7,8,13,0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.topbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: #fff;
  box-shadow: 0 0 18px var(--accent-glow);
}
.brand-name { font-size: 15px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; }
.brand-name span { color: var(--accent); }
.topbar-meta { display: flex; align-items: center; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-version { background: var(--accent-glow); color: var(--accent); border: 1px solid var(--border-2); }
.badge-unity { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52,211,153,0.2); }

/* ── Layout ── */
#layout { display: flex; padding-top: var(--header-h); min-height: 100vh; }

/* ── Sidebar ── */
#sidebar {
  width: var(--sidebar-w); min-width: var(--sidebar-w);
  position: fixed; top: var(--header-h); bottom: 0; left: 0;
  overflow-y: auto; padding: 24px 0 40px;
  background: var(--bg-800);
  border-right: 1px solid var(--border);
  transition: transform 0.3s ease;
}
.sidebar-section { margin-bottom: 6px; }
.sidebar-group-label {
  padding: 14px 20px 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  color: var(--text-muted); text-transform: uppercase;
}
.sidebar-link {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 20px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.18s ease;
  position: relative;
}
.sidebar-link:hover { color: var(--text-primary); background: rgba(107,126,255,0.06); border-left-color: var(--border-2); }
.sidebar-link.active { color: var(--accent); background: var(--accent-glow); border-left-color: var(--accent); }
.sidebar-link .num {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  min-width: 16px; text-align: right; font-family: 'JetBrains Mono', monospace;
}
.sidebar-link.active .num { color: var(--accent); }

/* ── Main Content ── */
#main {
  flex: 1; margin-left: var(--sidebar-w);
  padding: 60px 56px 100px;
  max-width: 900px;
}

/* ── Hero ── */
#hero {
  padding: 60px 0 72px;
  text-align: center;
  position: relative;
}
.hero-glow {
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107,126,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; display: block; width: 28px; height: 1px; background: var(--accent); opacity: 0.5;
}
#hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -1.5px;
  line-height: 1.1; margin-bottom: 18px;
  background: linear-gradient(135deg, #fff 20%, var(--accent) 60%, var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
#hero p {
  font-size: 17px; color: var(--text-secondary); max-width: 560px; margin: 0 auto 32px;
}
.hero-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hero-tag {
  padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.18s;
}
.hero-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* ── Section headings ── */
.doc-section {
  margin-bottom: 72px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.section-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.section-num {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 13px; font-weight: 800; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.section-header h2 {
  font-size: 1.55rem; font-weight: 800; letter-spacing: -0.5px;
}
h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--text-primary);
  margin: 28px 0 12px; letter-spacing: -0.3px;
}
p { color: var(--text-secondary); margin-bottom: 14px; }

/* ── Callouts ── */
.callout {
  display: flex; gap: 12px; padding: 14px 18px;
  border-radius: var(--radius-sm); margin: 18px 0;
  font-size: 13.5px;
}
.callout-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.callout p { margin: 0; }
.callout-important { background: var(--amber-dim); border: 1px solid rgba(251,191,36,0.25); color: var(--amber); }
.callout-tip { background: var(--green-dim); border: 1px solid rgba(52,211,153,0.25); color: var(--green); }
.callout-warning { background: var(--rose-dim); border: 1px solid rgba(248,113,113,0.25); color: var(--rose); }
.callout-note { background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.2); color: var(--sky); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; margin: 18px 0; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--surface); padding: 11px 16px;
  text-align: left; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 11px 16px; font-size: 13.5px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(107,126,255,0.04); }
tbody td strong, td code { color: var(--text-primary); }

/* ── Code blocks ── */
pre {
  background: var(--bg-700); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  overflow-x: auto; margin: 16px 0; position: relative;
}
pre code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; line-height: 1.75;
  color: #c9d1ff;
  background: none; padding: 0; border-radius: 0; border: none;
}
code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; background: var(--surface);
  color: var(--accent); padding: 2px 7px;
  border-radius: 5px; border: 1px solid var(--border);
}
.copy-btn {
  position: absolute; top: 10px; right: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted); padding: 4px 10px;
  border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer;
  transition: all 0.18s; font-family: 'Inter', sans-serif;
}
.copy-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.copy-btn.copied { background: var(--green); color: #fff; border-color: var(--green); }

/* ── Syntax highlighting ── */
.kw { color: #a78bfa; }
.cls { color: #93c5fd; }
.fn { color: #6ee7b7; }
.str { color: #fde68a; }
.cmt { color: #4e5880; font-style: italic; }
.num-lit { color: #fb923c; }
.prop { color: #c9d1ff; }

/* ── Feature grid ── */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; margin: 20px 0;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  transition: all 0.22s ease;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0; transition: opacity 0.22s;
}
.feature-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 22px; margin-bottom: 10px; }
.feature-title { font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }
.feature-desc { font-size: 12.5px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ── Step list ── */
.step-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.step-item { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}
.step-content { flex: 1; padding-top: 3px; font-size: 14px; color: var(--text-secondary); }
.step-content strong { color: var(--text-primary); }

/* ── API reference cards ── */
.api-card {
  background: var(--bg-700); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px;
}
.api-signature {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--text-primary); margin-bottom: 8px;
}
.api-desc { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ── Editor diagram ── */
.editor-diagram {
  background: var(--bg-700); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0; overflow: hidden; margin: 18px 0;
}
.diagram-header {
  background: var(--surface); padding: 10px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #f87171; }
.dot-amber { background: #fbbf24; }
.dot-green { background: #34d399; }
.diagram-title { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-left: 6px; }
.diagram-body { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.diagram-panel { padding: 18px 16px; border-right: 1px solid var(--border); }
.diagram-panel:last-child { border-right: none; }
.diagram-panel-title {
  font-size: 9px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px;
}
.diagram-item {
  display: flex; align-items: center; gap: 7px; padding: 6px 8px;
  border-radius: 6px; font-size: 12px; color: var(--text-secondary); margin-bottom: 3px;
  font-family: 'JetBrains Mono', monospace;
}
.diagram-item.selected { background: var(--accent-glow); color: var(--accent); border: 1px solid var(--border-2); }
.diagram-item .dot-small { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }
.diagram-item.selected .dot-small { background: var(--accent); }
.diagram-input {
  margin-top: 12px; background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 6px; padding: 8px 10px; font-size: 12px;
  color: var(--text-primary); font-family: 'JetBrains Mono', monospace;
}
.diagram-add {
  margin-top: 10px; display: flex; gap: 6px;
}
.btn-sm {
  padding: 4px 10px; border-radius: 5px; font-size: 11px; font-weight: 700;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); cursor: pointer; transition: all 0.16s;
}
.btn-sm:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm.danger:hover { border-color: var(--rose); color: var(--rose); }

/* ── File tree ── */
.file-tree {
  background: var(--bg-700); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
  line-height: 2; color: var(--text-secondary);
}
.tree-folder { color: var(--accent); font-weight: 600; }
.tree-file { color: var(--text-secondary); }
.tree-comment { color: var(--text-muted); font-style: italic; }
.tree-delete { color: var(--rose); }

/* ── FAQ ── */
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
  transition: border-color 0.18s;
}
.faq-item:hover { border-color: var(--border-2); }
.faq-question {
  padding: 16px 20px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  user-select: none;
  transition: background 0.18s;
}
.faq-question:hover { background: rgba(107,126,255,0.05); }
.faq-chevron { font-size: 12px; color: var(--accent); transition: transform 0.25s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  font-size: 13.5px; color: var(--text-secondary);
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 20px 16px; }

/* ── Footer ── */
#footer {
  margin-left: var(--sidebar-w);
  border-top: 1px solid var(--border);
  padding: 32px 56px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-800);
}
.footer-left { font-size: 13px; color: var(--text-muted); }
.footer-left strong { color: var(--text-secondary); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.16s; }
.footer-links a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 960px) {
  #sidebar { transform: translateX(-100%); }
  #sidebar.open { transform: translateX(0); }
  #main, #footer { margin-left: 0; }
  #main { padding: 40px 24px 80px; }
  .diagram-body { grid-template-columns: 1fr; }
  .diagram-panel { border-right: none; border-bottom: 1px solid var(--border); }
  .diagram-panel:last-child { border-bottom: none; }
  #footer { flex-direction: column; gap: 12px; padding: 24px; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ── Mobile toggle ── */
#menu-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
  background: none; border: none;
}
#menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: all 0.2s; }
@media (max-width: 960px) { #menu-toggle { display: flex; } }

/* ── Overlay ── */
#overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 999;
}
#overlay.show { display: block; }

/* ── Topbar Back Button (doc pages) ── */
.topbar-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-decoration: none; padding: 5px 10px;
  border: 1px solid var(--border); border-radius: 7px;
  background: var(--surface); transition: all 0.18s;
  letter-spacing: 0.2px;
}
.topbar-back:hover { color: var(--accent); border-color: var(--border-2); background: var(--accent-glow); }
.topbar-back svg { opacity: 0.7; transition: opacity 0.18s; }
.topbar-back:hover svg { opacity: 1; }

/* ── Topbar Website Button ── */
.topbar-website-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  text-decoration: none; padding: 5px 12px;
  border: 1px solid var(--border); border-radius: 7px;
  background: var(--surface); transition: all 0.18s;
  letter-spacing: 0.2px;
}
.topbar-website-btn:hover {
  color: #fff; background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ── Hub CTA Button ── */
.hub-cta-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 700;
  color: #fff; text-decoration: none;
  padding: 12px 26px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 24px var(--accent-glow);
  transition: all 0.22s ease;
  margin-bottom: 36px;
  position: relative; z-index: 1;
}
.hub-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(107,126,255,0.45);
  filter: brightness(1.08);
}
.hub-cta-btn svg { transition: transform 0.2s; }
.hub-cta-btn:hover svg { transform: translateX(3px); }

/* ── Hub Page ── */
.hub-body { background: var(--bg-900); }

#hub-hero {
  text-align: center;
  padding: 100px 40px 60px;
  position: relative;
  overflow: hidden;
}
.hub-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(107,126,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hub-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,115,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,115,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 70%);
  pointer-events: none;
}
.hub-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  padding: 5px 14px; border-radius: 20px;
  background: var(--accent-glow); border: 1px solid var(--border-2);
}
#hub-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 900; letter-spacing: -2px;
  line-height: 1.05; margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 10%, var(--accent) 55%, var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
#hub-hero p {
  font-size: 17px; color: var(--text-secondary); max-width: 520px; margin: 0 auto 40px;
}
.hub-stats {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.hub-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.hub-stat-val { font-size: 26px; font-weight: 800; color: var(--text-primary); letter-spacing: -1px; }
.hub-stat-label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; }

/* ── Product Grid ── */
#hub-products {
  max-width: 1100px; margin: 0 auto;
  padding: 0 40px 100px;
}
.hub-section-title {
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hub-section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 0;
  transition: all 0.24s ease;
  position: relative; overflow: hidden;
  cursor: pointer;
}
.product-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.24s;
}
.product-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s ease;
}
.product-card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.product-card:hover::before { opacity: 1; }
.product-card:hover::after { transform: scaleX(1); }

.product-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.product-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  position: relative; z-index: 1;
}
.product-icon-purple { background: linear-gradient(135deg, rgba(107,126,255,0.2), rgba(167,139,250,0.2)); border: 1px solid rgba(107,126,255,0.25); }
.product-icon-green { background: linear-gradient(135deg, rgba(52,211,153,0.2), rgba(56,189,248,0.2)); border: 1px solid rgba(52,211,153,0.25); }
.product-icon-orange { background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(248,113,113,0.2)); border: 1px solid rgba(251,191,36,0.25); }
.product-icon-blue { background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(107,126,255,0.2)); border: 1px solid rgba(56,189,248,0.25); }

.product-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.product-badge {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px;
  background: var(--bg-700); border: 1px solid var(--border); color: var(--text-muted);
  letter-spacing: 0.3px;
}
.product-badge.new { background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.25); color: var(--green); }
.product-badge.wip { background: var(--amber-dim); border-color: rgba(251,191,36,0.25); color: var(--amber); }

.product-name {
  font-size: 17px; font-weight: 800; color: var(--text-primary);
  letter-spacing: -0.4px; margin-bottom: 6px; position: relative; z-index: 1;
}
.product-desc {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
  flex: 1; margin-bottom: 18px; position: relative; z-index: 1;
}
.product-meta {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.product-version { font-size: 12px; font-weight: 600; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.product-arrow {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--accent);
  opacity: 0; transform: translateX(-6px); transition: all 0.22s;
}
.product-card:hover .product-arrow { opacity: 1; transform: translateX(0); }

/* ── Add New Card ── */
.product-card-add {
  background: var(--bg-800); border: 2px dashed var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 200px; cursor: pointer;
  transition: all 0.22s;
}
.product-card-add:hover { border-color: var(--accent); background: var(--accent-glow); }
.add-icon {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: var(--surface); transition: all 0.22s;
}
.product-card-add:hover .add-icon { border-color: var(--accent); background: rgba(107,126,255,0.15); }
.add-text { font-size: 13px; font-weight: 600; color: var(--text-muted); transition: color 0.22s; }
.product-card-add:hover .add-text { color: var(--accent); }
.add-hint { font-size: 11px; color: var(--text-muted); text-align: center; line-height: 1.5; }

/* ── Hub Footer ── */
.hub-footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-800);
  flex-wrap: wrap; gap: 12px;
}
.hub-footer-left { font-size: 13px; color: var(--text-muted); }
.hub-footer-left strong { color: var(--text-secondary); }
.hub-footer-right { display: flex; gap: 20px; }
.hub-footer-right a { font-size: 12px; color: var(--text-muted); text-decoration: none; transition: color 0.16s; }
.hub-footer-right a:hover { color: var(--accent); }

/* ── Hub Responsive ── */
@media (max-width: 720px) {
  #hub-hero { padding: 80px 24px 40px; }
  #hub-products { padding: 0 24px 60px; }
  .product-grid { grid-template-columns: 1fr; }
  .hub-footer { flex-direction: column; text-align: center; padding: 24px; }
  .hub-stats { gap: 20px; }
}
