/* ============ Tokens ============ */
:root {
  --bg: #08080c;
  --bg-grad: radial-gradient(1200px 600px at 15% -10%, #1b1442 0%, transparent 55%),
             radial-gradient(1000px 500px at 85% 0%, #04263a 0%, transparent 55%);
  --bg-elev: #0e0e15;
  --surface: #12121b;
  --surface-2: #191924;
  --border: #23232f;
  --border-strong: #2f2f3d;
  --text: #eef0f6;
  --text-2: #a8aec0;
  --text-3: #6a7080;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 45%, #22d3ee 100%);
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 12px 32px -12px rgba(0,0,0,.65);
  --shadow-glow: 0 0 0 1px rgba(139,92,246,.35), 0 20px 60px -20px rgba(139,92,246,.45);
  --ff: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fm: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --header-h: 72px;
  --fs-base: 16px;
  --fs-lg: 17px;
  --fs-sm: 14px;
  --fs-xs: 13px;
}
[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-grad: radial-gradient(1200px 600px at 15% -10%, #e5e0ff 0%, transparent 55%),
             radial-gradient(1000px 500px at 85% 0%, #d9f4fb 0%, transparent 55%);
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f2f8;
  --border: #e4e6ee;
  --border-strong: #d3d6e3;
  --text: #14151c;
  --text-2: #4b5162;
  --text-3: #8a90a3;
  --accent: #5b3df0;
  --accent-2: #0e9fb5;
  --shadow-1: 0 1px 2px rgba(16,18,35,.06);
  --shadow-2: 0 12px 32px -12px rgba(16,18,35,.18);
}

/* ============ Base ============ */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; }
[data-theme="light"] html, [data-theme="light"] { color-scheme: light; }
body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  background-image: var(--bg-grad);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
::selection { background: var(--accent); color: white; }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid var(--bg); }

/* ============ Layout ============ */
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.app-shell { display: flex; flex-direction: column; min-height: 100dvh; }
main { flex: 1; }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand__mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-grad);
  display: grid; place-items: center; color: white; font-size: 18px;
  box-shadow: var(--shadow-glow);
}
.brand__name { font-size: 16px; }
.brand__beta { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); border: 1px solid currentColor; padding: 1px 6px; border-radius: 4px; }

.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a {
  padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a.router-link-active { color: var(--text); background: var(--surface); }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ============ Inputs / Buttons ============ */
.input, .select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  font-size: 14px;
  width: 100%;
}
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent); }
.input::placeholder { color: var(--text-3); }

.search-hero { position: relative; }
.search-hero .input {
  padding: 14px 46px 14px 46px; font-size: 15px; border-radius: 14px;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  backdrop-filter: blur(10px);
}
.search-hero .icon-l { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search-hero .kbd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-family: var(--fm); font-size: 11px; color: var(--text-3);
  border: 1px solid var(--border); padding: 2px 6px; border-radius: 6px; background: var(--bg-elev);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: transform .1s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent-grad); color: white; border-color: transparent; box-shadow: var(--shadow-glow); }
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--surface); color: var(--text); }
.btn-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; color: var(--text-2);
  border: 1px solid transparent; transition: all .15s;
}
.btn-icon:hover { background: var(--surface); color: var(--text); }
.btn-icon.is-on { color: var(--accent); }

/* ============ Chips / Badges ============ */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--radius-pill);
  font-size: 12px; font-family: var(--fm);
  background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--border);
  transition: all .15s;
}
.tag:hover { color: var(--text); border-color: var(--border-strong); }
.tag.is-active { background: color-mix(in oklab, var(--accent) 22%, var(--surface-2)); color: var(--text); border-color: var(--accent); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase;
}
.badge--free      { background: color-mix(in oklab, #10b981 18%, transparent); color: #34d399; }
.badge--freemium  { background: color-mix(in oklab, #22d3ee 18%, transparent); color: #67e8f9; }
.badge--paid      { background: color-mix(in oklab, #f59e0b 18%, transparent); color: #fbbf24; }
.badge--unknown   { background: var(--surface-2); color: var(--text-3); }
.badge--verified  { background: color-mix(in oklab, #10b981 18%, transparent); color: #34d399; }
.badge--trending  { background: color-mix(in oklab, #ef4444 18%, transparent); color: #f87171; }
.badge--api       { background: color-mix(in oklab, #8b5cf6 18%, transparent); color: #c4b5fd; }

/* ============ Cards ============ */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px 120px at var(--mx,50%) -20%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 60%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card:hover::before { opacity: 1; }
.card__head { display: flex; gap: 12px; align-items: flex-start; }
.card__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px;
  background: var(--surface-2); border: 1px solid var(--border);
  flex-shrink: 0;
}
.card__meta { min-width: 0; flex: 1; }
.card__name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.card__name a:hover { color: var(--accent-2); }
.card__sub { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.card__sub .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.card__desc {
  font-size: 13px; color: var(--text-2); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 3.9em;
}
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card__foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

/* ============ Hero ============ */
.hero { padding: 64px 0 32px; position: relative; }
.hero h1 {
  font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -.03em;
  margin: 0 0 14px; font-weight: 700;
}
.hero h1 .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 17px; color: var(--text-2); max-width: 640px; margin: 0 0 26px; }
.hero__search { max-width: 640px; margin-bottom: 20px; }
.hero__quick { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-3); align-items: center; }
.hero__quick .tag { cursor: pointer; }
.stats-strip {
  display: flex; flex-wrap: wrap; gap: 24px 40px;
  padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-top: 32px;
}
.stats-strip .n { font-family: var(--fm); font-size: 22px; font-weight: 600; color: var(--text); }
.stats-strip .l { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }

/* ============ Sections ============ */
.section { padding: 40px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section__title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.section__sub { color: var(--text-3); font-size: 14px; }

/* ============ Explore ============ */
.explore { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 24px 0; }
@media (max-width: 960px) { .explore { grid-template-columns: 1fr; } .filters { position: fixed !important; } }
.filters {
  position: sticky; top: calc(var(--header-h) + 16px);
  align-self: start; max-height: calc(100dvh - var(--header-h) - 32px);
  overflow-y: auto; padding-right: 6px;
}
.facet { border-bottom: 1px solid var(--border); padding: 14px 0; }
.facet:last-child { border-bottom: none; }
.facet__head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.facet__title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.facet__count { font-family: var(--fm); font-size: 11px; color: var(--text-3); }
.facet__list { display: flex; flex-direction: column; gap: 2px; padding: 8px 0 0; max-height: 220px; overflow-y: auto; }
.facet__item {
  display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px;
  cursor: pointer; font-size: 13px; color: var(--text-2);
  transition: background .12s, color .12s;
}
.facet__item:hover { background: var(--surface); color: var(--text); }
.facet__item.is-on { color: var(--text); background: color-mix(in oklab, var(--accent) 14%, transparent); }
.facet__item input { accent-color: var(--accent); }
.facet__bar { flex: 1; height: 3px; border-radius: 2px; background: var(--border); position: relative; overflow: hidden; min-width: 20px; }
.facet__bar span { position: absolute; inset: 0 auto 0 0; background: var(--accent); opacity: .5; }
.facet__n { font-family: var(--fm); font-size: 11px; color: var(--text-3); min-width: 22px; text-align: right; }

.results { min-width: 0; }
.results__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.results__count { font-size: 13px; color: var(--text-3); font-family: var(--fm); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.view-toggle button { padding: 7px 10px; color: var(--text-3); }
.view-toggle button.is-on { background: var(--surface); color: var(--text); }

/* List view */
.grid--list { grid-template-columns: 1fr !important; }
.grid--list .card { flex-direction: row; align-items: center; gap: 16px; padding: 12px 16px; }
.grid--list .card__head { flex: 0 0 320px; }
.grid--list .card__desc { flex: 1; min-height: 0; -webkit-line-clamp: 2; }
.grid--list .card__foot { margin: 0; flex: 0 0 auto; }

/* Pagination */
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin: 32px 0 16px; flex-wrap: wrap; }
.pager button {
  min-width: 36px; height: 36px; border-radius: 8px; padding: 0 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13px;
}
.pager button:hover:not(:disabled) { border-color: var(--border-strong); color: var(--text); }
.pager button.is-on { background: var(--accent-grad); color: white; border-color: transparent; }
.pager button:disabled { opacity: .35; cursor: not-allowed; }

/* ============ Item detail ============ */
.detail { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 32px 0; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } }
.detail__head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.detail__icon { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; font-size: 36px; background: var(--surface); border: 1px solid var(--border); flex-shrink: 0; }
.detail h1 { font-size: 32px; margin: 0 0 6px; letter-spacing: -.02em; }
.detail__sub { color: var(--text-3); font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.detail__desc { font-size: 16px; line-height: 1.7; color: var(--text-2); margin: 24px 0; }
.spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 20px; }
.spec__row { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.spec__k { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 4px; }
.spec__v { font-size: 14px; color: var(--text); word-break: break-word; }
.spec__v.mono { font-family: var(--fm); font-size: 13px; }
.aside-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.aside-box h3 { margin: 0 0 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

/* ============ Command palette ============ */
.cmd-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: color-mix(in oklab, #000 60%, transparent);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh;
}
.cmd {
  width: min(640px, 92vw);
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: 16px; box-shadow: var(--shadow-2);
  overflow: hidden; animation: cmdIn .18s ease-out;
}
@keyframes cmdIn { from { transform: translateY(-8px) scale(.98); opacity: 0; } }
.cmd__input {
  width: 100%; padding: 18px 20px; font-size: 16px;
  background: transparent; border: none; outline: none;
  border-bottom: 1px solid var(--border);
}
.cmd__list { max-height: 55vh; overflow-y: auto; padding: 8px; }
.cmd__item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  cursor: pointer; color: var(--text-2);
}
.cmd__item.is-on { background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--text); }
.cmd__item small { color: var(--text-3); margin-left: auto; font-family: var(--fm); font-size: 11px; }
.cmd__empty { padding: 30px; text-align: center; color: var(--text-3); font-size: 14px; }

/* ============ Empty / Skeleton ============ */
.empty { padding: 60px 20px; text-align: center; color: var(--text-3); }
.empty h3 { color: var(--text-2); margin: 0 0 6px; font-size: 18px; }
.skel { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: skel 1.4s infinite; border-radius: 10px; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============ Stats view ============ */
.dist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.dist__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.dist__card h3 { margin: 0 0 12px; font-size: 14px; }
.dist__row { display: grid; grid-template-columns: 120px 1fr 40px; gap: 10px; align-items: center; padding: 4px 0; font-size: 12px; }
.dist__bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.dist__bar > span { display: block; height: 100%; background: var(--accent-grad); }
.dist__n { font-family: var(--fm); color: var(--text-3); text-align: right; font-size: 11px; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 32px 0; color: var(--text-3); font-size: 13px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer a:hover { color: var(--text); }

/* ============ Toaster ============ */
.toaster { position: fixed; bottom: 20px; right: 20px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 12px 14px; font-size: 13px;
  box-shadow: var(--shadow-2); animation: toastIn .2s ease-out;
}
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } }

/* ============ Misc ============ */
.kbd { font-family: var(--fm); font-size: 11px; color: var(--text-3); border: 1px solid var(--border); padding: 1px 5px; border-radius: 5px; }
.muted { color: var(--text-3); }
.mono { font-family: var(--fm); }
.hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; }
.hide-sm { display: inline-flex; }
@media (max-width: 640px) { .hide-sm { display: none !important; } .nav { display: none; } }



/* ============ Crossfade SSG → SPA ============ */
#ssg-content.is-leaving { opacity: 0; transition: opacity .18s ease; }
#app.is-entering { animation: appIn .22s ease-out both; }
@keyframes appIn { from { opacity: 0; } to { opacity: 1; } }

/* ============ Page transitions ============ */
.page-enter-active, .page-leave-active { transition: opacity .18s ease, transform .18s ease; }
.page-enter-from { opacity: 0; transform: translateY(6px); }
.page-leave-to   { opacity: 0; transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  .page-enter-active, .page-leave-active { transition: none; }
  #app.is-entering { animation: none; }
}

/* ============ Filtros (nuevo layout) ============ */
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.btn--xs { font-size: 12px; padding: 4px 8px; }
.filters__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; min-height: 26px; }
.filters__hint { font-size: 12px; color: var(--text-3); font-style: italic; }
.filters__body { display: flex; flex-direction: column; }

/* ============ Hero (nuevo) ============ */
.home { display: flex; flex-direction: column; }
.hero { padding: 72px 0 40px; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; gap: 24px; } .hero__art { display: none; } }
.hero__eyebrow { display: inline-block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 16px; font-weight: 600; }
.hero__title { font-size: clamp(36px, 5.5vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 0 0 18px; }
.hero__title em { font-style: normal; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { font-size: var(--fs-lg); color: var(--text-2); max-width: 620px; margin: 0 0 28px; line-height: 1.55; }
.hero__search { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-2); max-width: 640px; position: relative; }
.hero__search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }
.hero__search-icon { color: var(--text-3); flex-shrink: 0; }
.hero__search-input { flex: 1; background: transparent; border: none; outline: none; font-size: var(--fs-lg); padding: 12px 0; color: var(--text); }
.hero__search-input::placeholder { color: var(--text-3); }
.hero__search .btn { padding: 12px 22px; font-size: var(--fs-base); border-radius: 12px; }
.hero__quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.hero__quick-label { font-size: 13px; color: var(--text-3); margin-right: 4px; }
.chip { padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 13px; transition: all .15s; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.hero__art img { width: 100%; height: auto; max-width: 520px; }

/* ============ Stats bar ============ */
.stats-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; margin-top: 32px; background: var(--bg-elev); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 24px; }
.stat { text-align: center; }
.stat__n { font-family: var(--fm); font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.stat__l { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-top: 4px; }

/* ============ Pricing cards ============ */
.pricing-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.price-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; transition: all .18s; }
.price-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.price-card__badge { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.price-card__badge[data-pricing="free"]     { background: color-mix(in oklab, #10b981 20%, transparent); color: #34d399; }
.price-card__badge[data-pricing="freemium"] { background: color-mix(in oklab, #22d3ee 20%, transparent); color: #67e8f9; }
.price-card__badge[data-pricing="paid"]     { background: color-mix(in oklab, #f59e0b 20%, transparent); color: #fbbf24; }
.price-card__badge[data-pricing="open-source"] { background: color-mix(in oklab, #8b5cf6 20%, transparent); color: #c4b5fd; }
.price-card__n { font-family: var(--fm); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.price-card__l { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ============ Category cards ============ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cat-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: all .15s; }
.cat-card:hover { border-color: var(--accent); background: var(--surface-2); transform: translateX(2px); }
.cat-card__ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 12%, var(--surface-2)); color: var(--accent-2); border: 1px solid var(--border); }
.cat-card__meta { min-width: 0; }
.cat-card__name { font-weight: 600; font-size: var(--fs-sm); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-card__n { font-size: 12px; color: var(--text-3); font-family: var(--fm); margin-top: 2px; }

/* Bump sizes for readability */
.card__name { font-size: 16px; }
.card__desc { font-size: 14px; }
.card__sub { font-size: 12.5px; }
.section__title { font-size: 24px; }

