/* ============================================================================
   jangq.ai — Console Violet
   The vMLX / MLX Studio Console system (retheme/THEME.md) with the accent moved
   from amber to violet. Same rules: charcoal ground, never pure black; IBM Plex
   Mono everywhere; 1px rules instead of cards; no gradients, glass, glow orbs or
   shadows on flat UI; the accent is scarce and only marks machine output, a
   live measurement, or the thing to click.

   Class names are the site's existing ones on purpose — the i18n swapper
   (assets/i18n.js, build-i18n.py) selects by them, so markup stays put and the
   look moves here.
   ============================================================================ */

:root {
  /* surfaces — a hair cooler than the amber sites so violet sits right */
  --well:   #151518;
  --bg:     #1B1B1F;
  --bg-2:   #222227;
  --bg-3:   #29292F;
  --bg-4:   #323238;

  --line-subtle: #26262B;
  --line:   #323238;
  --line-2: #404047;

  --text:       #EDEDF0;
  --text-dim:   #8D8D99;
  --text-faint: #686873;
  --on-acc:     #17171A;

  /* the accent: violet. scarce by design. */
  --acc:      #B18CFF;
  --acc-hi:   #C8AEFF;
  --acc-dim:  #5F4B8B;
  --acc-wash: #231E2E;
  --acc-line: #3D3356;
  --acc-rgb:  177 140 255;

  /* semantic state — never interchangeable with the accent */
  --ok:   #5FBF7C;  --ok-wash:   #17251B;  --ok-line:   #2C4A34;
  --warn: #F0762A;  --warn-wash: #2C1C13;  --warn-line: #5A3620;
  --err:  #E04A4F;  --err-wash:  #2A1618;  --err-line:  #57262A;
  --info: #6FA8CC;  --info-wash: #161F26;  --info-line: #2C4152;

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1120px;
  --gutter: 28px;

  /* legacy names still referenced by inline styles in the markup */
  --purple: var(--acc);
  --blue: var(--info);
  --blue-bright: var(--info);
  --green: var(--ok);
  --amber: var(--warn);
  --red: var(--err);
  --surface: var(--bg-2);
  --surface-solid: var(--bg-2);
  --surface-hover: var(--bg-3);
  --border: var(--line);
  --border-hover: var(--line-2);
  --text-secondary: var(--text-dim);
  --text-tertiary: var(--text-faint);
  --max-w: var(--maxw);
}

/* ---------------------------------------------------------------- base --- */
html { color-scheme: dark; scroll-behavior: smooth; background: var(--bg); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--mono); font-size: 14px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh;
}
body::before, body::after { content: none !important; display: none !important; }
a { color: var(--acc); text-decoration: none; transition: color 140ms; }
a:hover { color: var(--acc-hi); text-decoration: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
::selection { background: rgb(var(--acc-rgb) / .28); color: var(--text); }
strong, b { font-weight: 600; }
code {
  font-family: var(--mono); font-size: .88em; color: var(--acc);
  background: var(--well); border: 1px solid var(--line); border-radius: 2px;
  padding: .05em .4em;
}
img { max-width: 100%; }
[style*="border-radius"] { border-radius: 0 !important; }
[style*="font-family"] { font-family: var(--mono) !important; }
* { scrollbar-width: thin; scrollbar-color: var(--line) var(--bg); }

/* retired decoration: orbs, noise, dot grid, scroll bar, reveal slide-ins */
.orb, .dot-grid, .scroll-progress { display: none !important; }
.reveal, .reveal.visible { opacity: 1 !important; transform: none !important; transition: none !important; }

@keyframes jq-blink { 0%, 50% { opacity: 1 } 50.01%, 100% { opacity: 0 } }
@keyframes jq-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .45 } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------ the mark --- */
.logo, .models-logo {
  font-family: var(--mono); font-weight: 600; font-size: 16px; letter-spacing: -.02em;
  color: var(--text) !important; text-decoration: none;
}
.logo .accent { color: var(--acc); }

:lang(ko) body, html:lang(ko) body { word-break: keep-all; }
html:lang(ja) body, html:lang(zh-Hans) body { line-break: strict; }

/* ================================================================ HOME === */
/* ---------- nav ---------- */
.jq-home header {
  position: sticky; top: 0; z-index: 60;
  background: rgb(27 27 31 / .96); border-bottom: 1px solid var(--line);
}
.jq-home header.scrolled { background: rgb(27 27 31 / .96); backdrop-filter: none; }
.jq-home nav {
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  height: 58px; display: flex; align-items: center; gap: 22px;
}
.jq-home nav .logo { margin-right: auto; }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; flex-wrap: wrap; }
.nav-links a { font-size: 12.5px; color: var(--text-dim); }
.nav-links a:not(.nav-gh)::before { content: "~/"; color: var(--line-2); }
.nav-links a:hover { color: var(--acc); }
.nav-gh {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--acc); color: var(--on-acc) !important;
  padding: 8px 14px; border-radius: 2px; font-size: 12px !important; font-weight: 600;
  transition: background 140ms;
}
.nav-gh:hover { background: var(--acc-hi); color: var(--on-acc) !important; }
.nav-gh svg { width: 14px; height: 14px; fill: currentColor; }

.lang-switcher { position: relative; order: 3; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; background: none;
  border: 1px solid var(--line); border-radius: 2px;
  color: var(--text-dim); cursor: pointer; font: 500 11.5px var(--mono);
  letter-spacing: .08em; padding: 6px 9px; transition: color 140ms, border-color 140ms;
}
.lang-btn:hover { color: var(--acc); border-color: var(--acc-line); }
.lang-btn svg { width: 13px; height: 13px; }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 140px; z-index: 100;
  background: var(--bg-4); border: 1px solid var(--line-2); border-radius: 0;
  padding: 4px; display: none; box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: block; width: 100%; text-align: left; padding: 7px 10px;
  background: none; border: none; border-radius: 0; cursor: pointer;
  color: var(--text-dim); font: 12.5px var(--mono);
}
.lang-option:hover { background: var(--bg-3); color: var(--text); }
.lang-option.active { color: var(--acc); }
.lang-option.active::before { content: "› "; }

/* ---------- sections ---------- */
.jq-home main > section { padding: 72px var(--gutter); border-top: 1px solid var(--line); }
.jq-home main > section.hero { border-top: 0; }
.jq-home main > section.jq-stats { padding-top: 0; border-top: 0; }
.container { max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 400; letter-spacing: .16em;
  text-transform: uppercase; color: var(--acc) !important; margin-bottom: 12px;
}
.eyebrow::before { content: "# "; color: var(--acc-dim); }
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.95rem); font-weight: 600; letter-spacing: -.03em;
  line-height: 1.15; margin-bottom: 14px; text-wrap: balance;
}
h3.reveal, .container > h3, .section-title + h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.section-desc {
  color: var(--text-dim); font-size: 13px; line-height: 1.8; max-width: 66ch; margin-bottom: 32px;
}

/* ---------- hero ---------- */
.hero { padding: 64px var(--gutter) 48px !important; min-height: 0; text-align: left; display: block; }
.hero::before, .hero::after { content: none !important; }
.hero-grid {
  display: grid; gap: 44px; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.hero-copy { min-width: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px;
  font-size: 10.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  color: var(--acc); background: var(--acc-wash); border: 1px solid var(--acc-line);
  border-radius: 0; padding: 5px 10px;
}
.badge::before { content: none !important; }
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--acc);
  box-shadow: 0 0 7px var(--acc); animation: jq-pulse 2.4s ease-in-out infinite;
}
.jq-home h1 {
  font-size: clamp(3rem, 7.5vw, 4.9rem); font-weight: 600; letter-spacing: -.045em;
  line-height: 1; margin: 0 0 18px;
}
h1 .gradient {
  background: none; -webkit-text-fill-color: currentColor; color: var(--text);
}
h1 .gradient::after {
  content: "_"; color: var(--acc); margin-left: .02em;
  animation: jq-blink 1.15s steps(1) infinite;
}
.hero-kicker {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 500; letter-spacing: -.02em;
  line-height: 1.3; color: var(--text); margin-bottom: 14px; text-wrap: balance;
}
.subtitle { color: var(--text-dim); font-size: 13.5px; line-height: 1.8; max-width: 54ch; margin: 0 0 18px; }
.hero-explain-wrap { max-width: 58ch; margin-bottom: 26px; }
.hero-explain { color: var(--text-dim); font-size: 12.5px; line-height: 1.85; }
.hero-explain + .hero-explain { margin-top: 10px; }
.pills {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; max-width: 64ch;
  justify-content: flex-start;
}
.pill {
  background: var(--well); border: 1px solid var(--line); border-radius: 2px; padding: 2px 8px;
  font-size: 11px; color: var(--text-dim); font-weight: 400;
}

.cta-group { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 2px;
  padding: 11px 17px; font: 600 12.5px var(--mono); text-decoration: none;
  transition: background 140ms, color 140ms, border-color 140ms; transform: none !important;
}
.btn-primary { background: var(--text) !important; color: var(--on-acc) !important; border: 1px solid var(--text); }
.btn-primary:hover { background: #fff !important; color: var(--on-acc) !important; filter: none; }
.btn-primary svg { width: 14px; height: 14px; fill: currentColor; }
.btn-secondary { background: none; color: var(--text-dim) !important; border: 1px solid var(--line); font-weight: 400; }
.btn-secondary:hover { border-color: var(--acc); color: var(--acc) !important; background: none; }

/* hero readout — a terminal window over the page's own headline numbers */
.term { background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.term-bar {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  border-bottom: 1px solid var(--line); font-size: 11px; color: var(--text-dim);
}
.term-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.term-bar .t { margin-left: 6px; letter-spacing: .04em; }
.term-body { padding: 14px 15px 16px; font-size: 12.5px; line-height: 1.85; overflow-x: auto; }
.term-body .p { color: var(--acc); }
.term-body .cmd { color: var(--text); }
.term-body .out { color: var(--text-dim); }
.term-body .cur {
  display: inline-block; width: 7px; height: 14px; background: var(--acc);
  vertical-align: -2px; animation: jq-blink 1.15s steps(1) infinite;
}
.rd { margin-top: 12px; border-top: 1px solid var(--line-subtle); padding-top: 12px; }
.rd:first-of-type { margin-top: 10px; }
.rd-h { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--text-faint); letter-spacing: .02em; }
.rd-h b { color: var(--text); font-weight: 500; }
.rd-row { display: grid; grid-template-columns: 11ch minmax(0, 1fr) 8.5ch; gap: 12px; align-items: center; margin-top: 7px; font-variant-numeric: tabular-nums; }
.rd-row .q { color: var(--text-dim); white-space: nowrap; font-size: 12px; }
.rd-row .q small { display: block; font-size: 10.5px; color: var(--text-faint); line-height: 1.3; }
.rd-row .n { text-align: right; color: var(--text-dim); white-space: nowrap; }
.rd-row.j .q { color: var(--text); }
.rd-row.j .n { color: var(--acc); font-weight: 600; }
.meter { height: 5px; background: var(--well); border: 1px solid #2E2E34; position: relative; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--acc-dim); }
.rd-row.nm { margin-top: 5px; }
.rd-row.j .meter i { background: var(--acc); box-shadow: 0 0 8px rgb(var(--acc-rgb) / .4); }
.rd-d { margin-top: 8px; font-size: 11.5px; color: var(--acc); }
.rd-d span { color: var(--text-faint); }

/* ---------- stat strip ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-radius: 0; overflow: visible; margin-bottom: 0;
}
.stat { background: none; padding: 20px 22px; text-align: left; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat:hover { background: none; }
.stat-num {
  font-family: var(--mono); font-size: 1.75rem !important; font-weight: 500; color: var(--text);
  letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-bottom: 6px;
}
.stat:first-child .stat-num { color: var(--acc); }
.stat-label { font-size: 10.5px; color: var(--text-dim); letter-spacing: .12em; text-transform: uppercase; line-height: 1.6; font-weight: 400; }

/* ---------- how it works ---------- */
.how-grid > .app-frame ~ .app-frame { grid-column: 2; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.layer-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 12px; }
.layer-label { width: 76px; flex: none; color: var(--text-dim); font-size: 11.5px; text-align: right; }
.layer-fill {
  height: 28px; border-radius: 0 !important; display: flex; align-items: center;
  padding: 0 10px; font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden;
}
.layer-fill.attn { background: var(--acc); color: var(--on-acc); border: 0; }
.layer-fill.mlp { background: var(--acc-wash); color: var(--acc); border: 1px solid var(--acc-line); }
.layer-fill.embed { background: var(--bg-3); color: var(--text-dim); border: 1px solid var(--line-2); }

/* ---------- curated results ---------- */
.test-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.test-card {
  display: block; background: var(--bg-2); border: 1px solid var(--line); border-radius: 0;
  overflow: hidden; transition: border-color 140ms;
}
.test-card:hover { border-color: var(--line-2); }
.test-card.featured { grid-column: span 2; border-color: var(--acc-line); }
.test-meta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.test-model { font-weight: 500; font-size: 13px; color: var(--text); }
.test-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.test-tag {
  font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 2px; border: 1px solid var(--line); color: var(--text-dim); background: var(--well);
}
.test-tag.profile { color: var(--acc); background: var(--acc-wash); border-color: var(--acc-line); }
.test-tag.arch { color: var(--info); background: var(--info-wash); border-color: var(--info-line); }
.compare-specs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 1rem; font-size: 12px; }
.test-body { padding: 14px; }
.test-prompt { font-size: 12px; color: var(--text-faint); margin-bottom: 10px; font-style: normal; }
.test-prompt::before { content: "> "; color: var(--acc-dim); }
.test-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.test-col h5 { font-size: 10.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 7px; color: var(--text-dim); }
.test-col h5.win { color: var(--ok); }
.test-col h5.fail { color: var(--err); }
.test-output {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7; padding: 10px 12px;
  border-radius: 0; background: var(--well); min-height: 44px; color: var(--text-dim);
}
.test-output.good { color: var(--text); border-left: 2px solid var(--ok); }
.test-output.bad { color: var(--err); border-left: 2px solid var(--err-line); opacity: 1; }
.test-verdict { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-dim); }
.test-verdict strong { color: var(--text); }

.six-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 0; overflow: hidden; margin-top: 16px; }
.six-cell { background: var(--bg); padding: 14px; }
.six-cell .prompt { font-size: 11.5px; color: var(--text-faint); margin-bottom: 6px; }
.six-cell .jang-ans { font-size: 12px; color: var(--ok); margin-bottom: 3px; }
.six-cell .mix-ans { font-size: 12px; color: var(--warn); margin-bottom: 3px; }
.six-cell .uni-ans { font-size: 12px; color: var(--err); }

/* comparison cards */
.vs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; margin-bottom: 20px; }
.vs-card {
  background: var(--bg-2) !important; border: 1px solid var(--line) !important; border-radius: 0;
  padding: 18px 18px 20px; position: relative; overflow: hidden;
}
.vs-card.jang, .vs-card.jang-alt, .vs-card.jang-gold { border-top: 2px solid var(--acc) !important; }
.vs-card.mlx { border-top: 2px solid var(--line-2) !important; }
.vs-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint) !important; font-weight: 400; margin-bottom: 8px; }
.vs-card.jang .vs-label, .vs-card.jang-alt .vs-label, .vs-card.jang-gold .vs-label { color: var(--acc) !important; }
.vs-name { font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 3px; }
.vs-card.mlx .vs-name { color: var(--text-dim); }
.vs-size { font-size: 12px; color: var(--text-dim); margin-bottom: 14px; }
.vs-score { font-size: 2.2rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.vs-card.jang .vs-score, .vs-card.jang-alt .vs-score, .vs-card.jang-gold .vs-score { color: var(--acc); }
.vs-card.mlx .vs-score { color: var(--text-faint); }
.vs-metric { font-size: 11.5px; color: var(--text-faint); margin-top: 5px; }
.vs-bar { height: 5px; border-radius: 0; background: var(--well); border: 1px solid #2E2E34; margin-top: 14px; overflow: hidden; }
.vs-bar-fill { height: 100%; border-radius: 0; }
.vs-card.jang .vs-bar-fill, .vs-card.jang-alt .vs-bar-fill, .vs-card.jang-gold .vs-bar-fill { background: var(--acc); box-shadow: 0 0 8px rgb(var(--acc-rgb) / .4); }
.vs-card.mlx .vs-bar-fill { background: var(--line-2); }
.vs-badge {
  display: inline-block; margin-top: 14px; padding: 3px 8px; border-radius: 2px;
  font-size: 11px; font-weight: 500; color: var(--acc) !important; background: var(--acc-wash) !important;
  border: 1px solid var(--acc-line);
}
.vs-divider { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-faint); padding: 0 8px; }

/* tables — no zebra, no cell borders, rules only */
.profile-table-wrap {
  border: 0; border-radius: 0; background: none; overflow-x: auto;
}
.profile-table, .jq-home table { width: 100%; border-collapse: collapse; font-size: 13px; }
.profile-table thead, .jq-home table thead { background: none; }
.profile-table th, .jq-home table th {
  padding: 0 14px 9px 0; text-align: left; font-weight: 400; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim);
  border-bottom: 1px solid var(--line-2); background: none;
}
.profile-table td, .jq-home table td {
  padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); font-size: 12.5px;
  font-variant-numeric: tabular-nums; color: var(--text-dim);
}
.profile-table td:first-child, .jq-home table td:first-child { color: var(--text); font-weight: 500; }
.profile-table tr:last-child td { border-bottom: 1px solid var(--line); }
.profile-table tr:hover, .jq-home table tr:hover { background: none; }
.profile-table .pn { color: var(--acc); font-weight: 600; }
.profile-table .hi { color: var(--text); font-weight: 600; }

/* benchmark bars */
.bench-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.bench-label { width: 120px; flex: none; font-size: 12px; color: var(--text-dim); text-align: right; }
.bench-bar-track { flex: 1; height: 26px; background: var(--well); border: 1px solid #2E2E34; border-radius: 0; overflow: hidden; }
.bench-bar-fill {
  height: 100%; border-radius: 0; display: flex; align-items: center; padding: 0 10px;
  font-size: 11.5px; font-weight: 600; color: var(--on-acc); white-space: nowrap;
}
.bench-bar-fill.jang { background: var(--acc); }
.bench-bar-fill.uniform { background: var(--bg-4); color: var(--text-dim); }

/* terminal windows (runtime, quantize) */
.app-frame {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 0;
  overflow: hidden; box-shadow: none; margin-left: 0 !important; margin-right: 0 !important;
}
.app-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.app-dot, .app-dot.r, .app-dot.y, .app-dot.g { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.app-title { flex: 1; text-align: left; margin-left: 6px; font-size: 11px; color: var(--text-dim); letter-spacing: .04em; }
.app-content { padding: 14px 15px 16px; overflow-x: auto; }
.app-frame img { display: block; width: 100%; }
.tl { font-size: 12.5px; line-height: 1.85; color: var(--text-dim); white-space: pre-wrap; }
.tl .p { color: var(--acc); font-weight: 400; }
.tl .c { color: var(--text); }
.tl .f { color: var(--text-dim); }
.tl .v { color: var(--text); }
.tl .d { color: var(--text-faint); }

.callout {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  background: var(--acc-wash); border: 1px solid var(--acc-line); border-radius: 0;
  padding: 7px 12px; font-size: 11.5px; color: var(--acc); font-weight: 400;
}

/* kernel list */
.bento {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 0; overflow: hidden;
}
.bento-card { background: var(--bg); padding: 18px 18px 20px; position: relative; overflow: hidden; }
.bento-card::after { content: none !important; }
.bento-card:hover { background: var(--bg-2); }
.bento-wide { grid-column: span 3; }
.bento-2 { grid-column: span 2; }
.bento-card h3 { font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 6px; }
.bento-card h3::before { content: "▸ "; color: var(--acc-dim); }
.bento-card p { font-size: 12px; color: var(--text-dim); line-height: 1.75; }
.bento-icon { display: none; }

/* expanders */
.more-results { display: none; }
.more-results.open { display: block; }
.expand-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin: 28px 0; padding: 13px;
  background: none; border: 1px solid var(--line); border-radius: 0;
  color: var(--text-dim); font: 12.5px var(--mono); cursor: pointer;
  transition: border-color 140ms, color 140ms;
}
.expand-btn::before { content: "+"; color: var(--acc); }
.expand-btn.open::before { content: "−"; }
.expand-btn:hover { border-color: var(--acc); color: var(--acc); background: none; }
.expand-btn .arrow { display: none; }

/* home FAQ — native <details>, same look as vmlx.net */
.home-faq { margin-top: 28px; border-top: 1px solid var(--line); max-width: 860px; }
.home-faq details { border-bottom: 1px solid var(--line); }
.home-faq summary {
  padding: 17px 0; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text);
  list-style: none; display: flex; gap: 14px; align-items: baseline;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::before { content: "+"; color: var(--acc); width: 12px; flex: none; }
.home-faq details[open] summary::before { content: "−"; }
.home-faq summary:hover { color: var(--acc); }
.home-faq .a { padding: 0 0 20px 26px; color: var(--text-dim); font-size: 13px; line-height: 1.85; max-width: 74ch; }
.home-faq .a a { border-bottom: 1px solid var(--acc-line); }

/* HF model cards (hf-recent-models.js) */
.hf-model-card { display: block; background: var(--bg-2); border: 1px solid var(--line); padding: 14px; color: var(--text); }
.hf-model-card:hover { border-color: var(--acc-line); }
.hf-model-card-meta, .hf-model-loading { font-size: 11.5px; color: var(--text-faint); }
.hf-model-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- footer ---------- */
.jq-home footer, .jq-vs footer {
  border-top: 1px solid var(--line); padding: 36px var(--gutter) 56px;
  font-size: 11.5px; color: var(--text-faint);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner .logo { font-size: 14px !important; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-links a, footer a { color: var(--text-faint) !important; font-size: 11.5px; }
.footer-links a:hover, footer a:hover { color: var(--acc) !important; }

/* ============================================================= /vs/* === */
.jq-vs nav {
  position: sticky; top: 0; z-index: 60; height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(var(--gutter), calc((100% - 880px) / 2 + var(--gutter)));
  background: rgb(27 27 31 / .96); border-bottom: 1px solid var(--line); backdrop-filter: none;
}
.nav-back { font-size: 12.5px; color: var(--text-dim); padding: 0; border-radius: 0; }
.nav-back:hover { color: var(--acc); background: none; }
.jq-vs .wrap { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.jq-vs .page { padding: 56px 0 24px; }
.jq-vs .hero { text-align: left; margin-bottom: 40px; padding: 0 !important; }
.hero-badge {
  display: inline-block; font-size: 10.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  color: var(--acc); background: var(--acc-wash); border: 1px solid var(--acc-line); border-radius: 0;
  padding: 5px 10px; margin-bottom: 22px;
}
.jq-vs .hero h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; margin-bottom: 14px; text-wrap: balance; }
.jq-vs .hero h1 .vs { color: var(--text-faint); font-weight: 400; }
.jq-vs .hero .subtitle { font-size: 13.5px; color: var(--text-dim); max-width: 62ch; margin: 0; line-height: 1.8; }

.verdict {
  background: var(--bg-2); border: 1px solid var(--line); border-left: 2px solid var(--acc);
  border-radius: 0; padding: 20px 22px; margin-bottom: 48px; position: relative;
}
.verdict::before { content: none !important; }
.verdict-label { font-size: 10.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); margin-bottom: 10px; }
.verdict p { font-size: 13px; line-height: 1.85; color: var(--text); }
.verdict strong { color: var(--acc); font-weight: 600; }

.jq-vs .section { margin-bottom: 48px; }
.jq-vs .section h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 600; letter-spacing: -.03em;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.jq-vs .section h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.jq-vs .section p { font-size: 13px; color: var(--text-dim); line-height: 1.85; margin-bottom: 12px; }
.jq-vs .section p strong { color: var(--text); }

.cmp-table, .bench-table {
  width: 100%; border-collapse: collapse; border: 0; border-radius: 0; margin: 16px 0;
  font-family: var(--mono); font-size: 12.5px;
}
.cmp-table thead th, .bench-table thead th {
  background: none; font: 400 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); padding: 0 14px 9px 0; border: 0; border-bottom: 1px solid var(--line-2);
}
.cmp-table thead th.col-jang { color: var(--acc); }
.cmp-table tbody td, .bench-table tbody td {
  padding: 12px 14px 12px 0; border: 0; border-bottom: 1px solid var(--line);
  vertical-align: top; line-height: 1.6; font-variant-numeric: tabular-nums;
}
.cmp-table tbody td:first-child, .bench-table tbody td:first-child { font: 500 12.5px var(--mono); color: var(--text); }
.cmp-table tbody td:nth-child(2) { color: var(--text); }
.cmp-table tbody td:nth-child(3) { color: var(--text-dim); }
.cmp-table tbody tr:last-child td, .bench-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.cmp-table tbody tr:hover, .bench-table tbody tr:hover { background: none; }
.bench-table thead th { text-align: right; }
.bench-table thead th:first-child { text-align: left; }
.bench-table tbody td { text-align: right; color: var(--text-dim); }
.bench-table tbody td:first-child { text-align: left; }
.cmp-yes { color: var(--ok); font-weight: 500; }
.cmp-no { color: var(--err); opacity: 1; }
.cmp-note { font-size: 11.5px; color: var(--text-faint); display: block; margin-top: 3px; }
.bench-table .val-best { color: var(--acc); font-weight: 600; }
.bench-table .val-good { color: var(--text); }
.bench-table .val-poor { color: var(--err); opacity: 1; }
.bench-note { font-size: 11.5px; color: var(--text-faint); margin-top: 8px; font-style: normal; }

.highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 28px 0; }
.highlight-box { background: var(--bg); border: 0; border-radius: 0; padding: 20px; text-align: left; }
.highlight-value { font-size: 2.2rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.highlight-value.jang { color: var(--acc); }
.highlight-value.mlx { color: var(--text-faint); }
.highlight-value.green { color: var(--text); }
.highlight-label { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.highlight-label strong { color: var(--text); }
.highlight-diff { font-size: 11.5px; color: var(--acc); font-weight: 400; margin-top: 6px; }

.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.approach-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 0; padding: 18px; }
.approach-card:hover { border-color: var(--line-2); }
.approach-card.jang { border-top: 2px solid var(--acc); }
.approach-card.other, .approach-card.gguf { border-top: 2px solid var(--line-2); }
.approach-label { font-size: 10.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; color: var(--text-dim); }
.approach-card.jang .approach-label { color: var(--acc); }
.approach-card ul { list-style: none; padding: 0; }
.approach-card li { font-size: 12.5px; color: var(--text-dim); line-height: 1.75; padding-left: 18px; position: relative; margin-bottom: 6px; }
.approach-card li::before {
  content: "" !important; position: absolute; left: 0; top: .62em; width: 6px; height: 6px;
  border-radius: 0 !important; background: var(--line-2) !important;
}
.approach-card.jang li::before { background: var(--acc) !important; }

.bar-chart { margin: 24px 0; }
.bar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.bar-label { width: 140px; flex: none; font-size: 12px; font-weight: 400; color: var(--text-dim); text-align: right; }
.bar-track { flex: 1; height: 26px; background: var(--well); border: 1px solid #2E2E34; border-radius: 0; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 0; display: flex; align-items: center; padding-left: 10px; font-size: 11.5px; font-weight: 600; color: var(--on-acc); }
.bar-fill.jang { background: var(--acc); }
.bar-fill.mlx { background: var(--bg-4); color: var(--text-dim); }
.bar-fill.baseline { background: var(--line-2); color: var(--text); }

.fair-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 0; padding: 18px 20px; margin: 20px 0; }
.fair-box h3 { color: var(--text) !important; }
.fair-list { list-style: none; padding: 0; }
.fair-list li { font-size: 12.5px; color: var(--text-dim); line-height: 1.75; padding-left: 20px; position: relative; margin-bottom: 7px; }
.fair-list li::before { content: "+"; position: absolute; left: 0; color: var(--acc); font-weight: 400; }

.faq { margin: 24px 0; border-top: 1px solid var(--line); }
.faq-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; }
.faq-q {
  font-size: 13.5px; font-weight: 500; padding: 16px 0; cursor: pointer; color: var(--text);
  display: flex; gap: 14px; align-items: baseline; justify-content: flex-start;
}
.faq-q::after { content: none !important; }
.faq-q::before { content: "+"; color: var(--acc); width: 12px; flex: none; }
.faq-item.open .faq-q::before { content: "−"; }
.faq-q:hover { color: var(--acc); }
.faq-a { padding: 0 0 18px 26px; font-size: 12.5px; color: var(--text-dim); line-height: 1.85; display: none; max-width: 74ch; }
.faq-item.open .faq-a { display: block; }

.cta { text-align: left; padding: 40px 0 16px; border-top: 1px solid var(--line); }
.cta h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; margin-bottom: 8px; border: 0; padding: 0; }
.cta p { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px var(--mono);
  padding: 11px 17px; border-radius: 2px; border: 0; cursor: pointer;
  background: var(--acc); color: var(--on-acc) !important; box-shadow: none; transform: none !important;
  transition: background 140ms;
}
.cta-btn:hover { background: var(--acc-hi); filter: none; box-shadow: none; }
.cta-btn svg { width: 15px; height: 15px; }
.cta-sub { font-size: 11.5px; color: var(--text-faint); margin-top: 14px; }
.jq-vs footer { text-align: left; padding-left: 0; padding-right: 0; }

/* ============================================================ /models === */
.models-page { width: min(var(--maxw), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 0 0 56px; }
.models-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  height: 58px; border-bottom: 1px solid var(--line); margin-bottom: 56px;
}
.models-links { display: flex; flex-wrap: wrap; gap: 20px; }
.models-links a { font-size: 12.5px; color: var(--text-dim); border: 0; padding: 0; }
.models-links a::before { content: "~/"; color: var(--line-2); }
.models-links a:hover { color: var(--acc); }
.models-hero { border: 0; background: none; padding: 0 0 40px; margin-bottom: 0; }
.models-hero h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; margin: 4px 0 16px; max-width: 24ch; text-wrap: balance; }
.models-hero p { max-width: 64ch; font-size: 13.5px; line-height: 1.8; color: var(--text-dim); }
.curated-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); margin-bottom: 28px; }
.curated-card { display: grid; gap: 8px; padding: 18px; background: var(--bg); color: var(--text); }
.curated-card:hover { background: var(--bg-2); color: var(--text); }
.curated-card h2 { font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: var(--acc); }
.curated-card p { font-size: 12.5px; color: var(--text-dim); line-height: 1.75; }
.models-cta {
  display: inline-block; background: var(--acc); color: var(--on-acc) !important;
  padding: 11px 17px; border-radius: 2px; font-size: 12.5px; font-weight: 600;
}
.models-cta:hover { background: var(--acc-hi); }
.models-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--text-faint); }

/* ========================================================= responsive === */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .how-grid > .app-frame ~ .app-frame { grid-column: auto; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .jq-home nav { height: auto; flex-wrap: wrap; row-gap: 10px; padding-top: 11px; padding-bottom: 11px; }
  .jq-home nav .logo { order: 1; }
  .lang-switcher { order: 2; }
  .nav-links { display: flex !important; order: 3; width: 100%; gap: 16px; row-gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .nav-links a { font-size: 12px; }
  .nav-links li:last-child { margin-left: auto; }
  .jq-home header, .jq-vs nav { position: static; }
  .nav-gh { padding: 5px 10px; font-size: 11.5px !important; }
  .jq-home main > section { padding: 52px var(--gutter); }
  .hero { padding: 40px var(--gutter) 32px !important; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .test-grid { grid-template-columns: 1fr; }
  .test-card.featured { grid-column: span 1; }
  .test-row { grid-template-columns: 1fr; }
  .compare-specs { grid-template-columns: 1fr; }
  .six-grid { grid-template-columns: 1fr 1fr !important; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-wide { grid-column: span 2; }
  .bento-2 { grid-column: span 2; }
  .profile-table { min-width: 620px; }
  .highlight-grid, .approach-grid { grid-template-columns: 1fr; }
  .cmp-table, .bench-table { display: block; overflow-x: auto; }
  .bench-label, .bar-label { width: 84px; font-size: 11px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .jq-home h1 { font-size: clamp(2.6rem, 14vw, 3.3rem); }
  .stats-grid { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .six-grid { grid-template-columns: 1fr !important; }
  .bento { grid-template-columns: 1fr; }
  .bento-wide, .bento-2 { grid-column: span 1; }
  .cta-group, .cta-group a { width: 100%; justify-content: center; }
  .rd-row { grid-template-columns: 9ch minmax(0, 1fr) 7ch; gap: 9px; }
  .term-body, .tl { font-size: 11.5px; }
  .layer-label { width: 60px; font-size: 10.5px; }
  .layer-fill { font-size: 10.5px; }
}
