/* ============================================================
   LM Studio satellite — warm dark / editorial-terminal hybrid
   Palette: orange #ff6b35 · magenta #fd3d8a · indigo #6366f1
   ============================================================ */
:root {
  --bg: #07090f;
  --surface: #0f1117;
  --elevated: #161922;
  --border: #1f2533;
  --border-soft: #161c2a;
  --text: #f5f5f7;
  --muted: #9095a3;
  --subtle: #5a6075;
  --orange: #ff6b35;
  --pink: #fd3d8a;
  --indigo: #6366f1;
  --green: #22c55e;
  --amber: #fbbf24;
  --gradient: linear-gradient(135deg, #ff6b35, #fd3d8a);
  --gradient-cool: linear-gradient(135deg, #6366f1, #fd3d8a);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
section[id], h2[id] { scroll-margin-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px; line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 50% -10%, rgba(255, 107, 53, .08), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(253, 61, 138, .06), transparent 60%),
    radial-gradient(700px 400px at 10% 50%, rgba(99, 102, 241, .06), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--orange); text-decoration: none; transition: color .15s; }
a:hover, a:focus-visible { color: var(--pink); text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2.25rem, 6vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.5rem); margin-top: 0; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--orange); color: var(--bg); padding: .75rem 1rem; z-index: 1000; font-weight: 600; }
.skip:focus { left: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 920px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Mono label / eyebrow ─── */
.label {
  font-family: var(--mono); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--orange);
  display: inline-flex; align-items: center; gap: .5rem;
}
.label::before { content: "§"; color: var(--subtle); font-weight: 400; }
.label-pink { color: var(--pink); }
.label-pink::before { content: "//"; letter-spacing: -.05em; }
.label-indigo { color: var(--indigo); }
.label-indigo::before { content: "▸"; }
.label-green { color: var(--green); }
.label-green::before { content: ">_"; letter-spacing: 0; }

/* ─── Nav (top) ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 15, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(7, 9, 15, .94); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; font-size: 1.05rem; color: var(--text); font-family: var(--mono); letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 6px; }
.brand .dim { color: var(--subtle); }
.nav-cta {
  background: var(--gradient); color: var(--bg) !important;
  padding: .55rem 1rem; border-radius: 4px;
  font-size: .85rem; font-weight: 700; letter-spacing: .01em;
  font-family: var(--mono); text-transform: uppercase;
  box-shadow: 0 6px 18px -4px rgba(255, 107, 53, .45);
  transition: transform .15s, box-shadow .2s, filter .2s;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px;
}
.nav-cta:hover, .nav-cta:focus-visible { color: var(--bg) !important; transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 10px 22px -4px rgba(255, 107, 53, .55); }

/* ─── HERO ─── */
.hero { position: relative; padding: 6rem 0 5rem; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255, 107, 53, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 53, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero .wrap { position: relative; }
.hero-top { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.hero-top .label { font-size: .8rem; }
.hero-top .sep { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .mono-em { font-family: var(--mono); font-weight: 700; }
.hero .lede { font-size: 1.25rem; color: var(--muted); max-width: 660px; margin-bottom: 2rem; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .9rem 1.4rem; border-radius: 4px; font-weight: 700; font-size: .95rem; transition: transform .15s, box-shadow .2s, filter .2s, background .2s; white-space: nowrap; font-family: var(--mono); text-transform: uppercase; letter-spacing: .02em; min-height: 44px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: var(--bg); box-shadow: 0 12px 28px -10px rgba(255, 107, 53, .55); }
.btn-primary:hover { box-shadow: 0 16px 32px -10px rgba(255, 107, 53, .65); filter: brightness(1.08); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--orange); background: rgba(255, 107, 53, .05); color: var(--text); }
.btn-sm { padding: .55rem 1rem; font-size: .8rem; min-height: 36px; }

/* Hero embedded terminal */
.hero-term { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; max-width: 760px; margin-top: 1rem; overflow: hidden; box-shadow: 0 32px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04); }
.hero-term .term-head { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; background: rgba(255, 255, 255, .02); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: .75rem; color: var(--subtle); }
.hero-term .term-head .dots { display: flex; gap: 5px; }
.hero-term .term-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.hero-term .term-head .dots i:nth-child(1) { background: #f87171; }
.hero-term .term-head .dots i:nth-child(2) { background: var(--amber); }
.hero-term .term-head .dots i:nth-child(3) { background: var(--green); }
.hero-term .term-body { padding: 1rem 1.1rem; font-family: var(--mono); font-size: .85rem; line-height: 1.55; color: var(--text); min-height: 220px; }
.hero-term .line { display: block; }
.hero-term .prompt-mark { color: var(--green); }
.hero-term .cmd { color: var(--orange); }
.hero-term .str { color: var(--pink); }
.hero-term .out { color: var(--muted); }
.hero-term .ai-out { color: var(--text); }
.hero-term .cursor { display: inline-block; width: 8px; height: 1.1rem; background: var(--orange); vertical-align: text-bottom; animation: blink 1s steps(2) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-term .meter { display: flex; gap: 1rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px dashed var(--border); font-size: .75rem; color: var(--subtle); }
.hero-term .meter b { color: var(--green); font-weight: 600; }

/* ─── Section anatomy ─── */
section.block { padding: 5rem 0; position: relative; }
@media (max-width: 700px) { section.block { padding: 3.5rem 0; } }
.section-head { margin-bottom: 3rem; max-width: 720px; }
.section-head .label { margin-bottom: .85rem; }
.section-head h2 { margin-bottom: .6rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ─── LIVE PLAYGROUND ─── */
.playground {
  background: var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.pg-grid { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; }
@media (max-width: 880px) { .pg-grid { grid-template-columns: 1fr; } }
.pg-models { background: var(--elevated); border: 1px solid var(--border); border-radius: 6px; padding: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.pg-models .pg-models-title { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); padding: .3rem .5rem .6rem; border-bottom: 1px solid var(--border); }
.pg-model-btn { display: flex; align-items: center; gap: .5rem; padding: .6rem .65rem; border-radius: 4px; font-family: var(--mono); font-size: .82rem; color: var(--muted); transition: background .15s, color .15s, border-color .15s; border: 1px solid transparent; text-align: left; cursor: pointer; }
.pg-model-btn:hover { background: rgba(255, 107, 53, .05); color: var(--text); }
.pg-model-btn[aria-pressed=true] { background: rgba(255, 107, 53, .1); border-color: var(--orange); color: var(--text); }
.pg-model-btn .pg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--subtle); flex-shrink: 0; }
.pg-model-btn[aria-pressed=true] .pg-dot { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.pg-model-btn .pg-meta { font-size: .68rem; color: var(--subtle); margin-left: auto; }
.pg-chat { background: var(--elevated); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; display: grid; grid-template-rows: 1fr auto; min-height: 360px; }
.pg-stream { padding: 1rem 1.15rem; font-family: var(--mono); font-size: .85rem; line-height: 1.6; overflow: auto; display: flex; flex-direction: column; gap: .85rem; min-height: 280px; max-height: 480px; }
.pg-msg { padding: .65rem .85rem; border-radius: 6px; max-width: 90%; }
.pg-msg.user { background: rgba(255, 107, 53, .12); border: 1px solid rgba(255, 107, 53, .3); color: var(--text); align-self: flex-end; font-family: var(--sans); }
.pg-msg.ai { background: rgba(99, 102, 241, .08); border: 1px solid rgba(99, 102, 241, .2); color: var(--text); align-self: flex-start; font-family: var(--sans); white-space: pre-wrap; }
.pg-msg.ai .pg-cur { display: inline-block; width: 7px; height: 1em; background: var(--orange); vertical-align: text-bottom; animation: blink 1s steps(2) infinite; margin-left: 2px; }
.pg-msg.ai .pg-stat { display: block; margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed rgba(255, 255, 255, .08); font-family: var(--mono); font-size: .72rem; color: var(--subtle); }
.pg-msg.ai .pg-stat b { color: var(--green); }
.pg-empty { text-align: center; color: var(--subtle); font-style: italic; padding: 2rem 1rem; }
.pg-form { display: grid; grid-template-columns: 1fr auto; gap: .5rem; padding: .85rem; background: var(--surface); border-top: 1px solid var(--border); }
.pg-form input { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: .7rem .9rem; color: var(--text); font: inherit; font-family: var(--mono); font-size: .85rem; }
.pg-form input:focus-visible { outline-color: var(--orange); border-color: var(--orange); }
.pg-form button { background: var(--gradient); color: var(--bg); padding: .7rem 1.1rem; border-radius: 4px; font-family: var(--mono); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; transition: filter .15s; }
.pg-form button:hover:not(:disabled) { filter: brightness(1.1); }
.pg-form button:disabled { opacity: .5; cursor: not-allowed; }
.pg-chips { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 .85rem .75rem; background: var(--surface); }
.pg-chip { background: var(--elevated); border: 1px solid var(--border); color: var(--muted); padding: .35rem .7rem; border-radius: 999px; font-size: .72rem; font-family: var(--mono); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.pg-chip:hover { color: var(--text); border-color: var(--orange); background: rgba(255, 107, 53, .06); }
.pg-disclaimer { font-size: .72rem; color: var(--subtle); margin-top: .85rem; font-family: var(--mono); padding: .5rem .85rem; }

/* ─── HARDWARE SIZER ─── */
.sizer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 880px) { .sizer-grid { grid-template-columns: 1fr; } }
.sizer-controls { background: var(--elevated); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.sizer-field label { display: block; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); margin-bottom: .6rem; }
.sizer-field .val { font-family: var(--mono); color: var(--orange); font-weight: 700; }
.sizer-range { width: 100%; -webkit-appearance: none; appearance: none; background: transparent; height: 32px; cursor: pointer; }
.sizer-range::-webkit-slider-runnable-track { height: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 3px; }
.sizer-range::-moz-range-track { height: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 3px; }
.sizer-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gradient); border: 2px solid var(--bg); margin-top: -8px; box-shadow: 0 4px 12px rgba(255, 107, 53, .4); cursor: pointer; }
.sizer-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #ff6b35; border: 2px solid var(--bg); box-shadow: 0 4px 12px rgba(255, 107, 53, .4); cursor: pointer; border: none; }
.sizer-segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--bg); padding: 4px; border: 1px solid var(--border); border-radius: 4px; }
.sizer-segmented button { font-family: var(--mono); font-size: .8rem; padding: .55rem .5rem; border-radius: 3px; color: var(--muted); transition: background .15s, color .15s; min-height: 40px; }
.sizer-segmented button[aria-pressed=true] { background: var(--gradient); color: var(--bg); font-weight: 700; }
.sizer-output { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem; min-height: 360px; }
.sizer-budget { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .8rem; margin-bottom: .5rem; color: var(--muted); }
.sizer-budget b { color: var(--text); }
.sizer-bar { height: 8px; border-radius: 4px; background: var(--bg); border: 1px solid var(--border); overflow: hidden; margin-bottom: 1.5rem; position: relative; }
.sizer-bar .fill { height: 100%; background: var(--gradient); transition: width .35s ease, background .25s; }
.sizer-bar .fill.warn { background: linear-gradient(135deg, var(--amber), var(--orange)); }
.sizer-bar .fill.bad { background: linear-gradient(135deg, #ef4444, var(--pink)); }
.sizer-recs { display: flex; flex-direction: column; gap: .5rem; }
.sizer-rec { display: grid; grid-template-columns: auto 1fr auto; gap: .85rem; align-items: center; padding: .65rem .85rem; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; font-family: var(--mono); font-size: .82rem; }
.sizer-rec .badge { width: 10px; height: 10px; border-radius: 50%; }
.sizer-rec .name { color: var(--text); }
.sizer-rec .verdict { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sizer-rec.good .badge { background: var(--green); box-shadow: 0 0 8px var(--green); }
.sizer-rec.good .verdict { color: var(--green); }
.sizer-rec.ok .badge { background: var(--amber); }
.sizer-rec.ok .verdict { color: var(--amber); }
.sizer-rec.bad .badge { background: #ef4444; }
.sizer-rec.bad .verdict { color: #ef4444; }

/* ─── MODEL CATALOGUE ─── */
.cat-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2rem; }
.cat-chip { background: var(--surface); border: 1px solid var(--border); color: var(--muted); padding: .5rem 1rem; border-radius: 4px; font-size: .82rem; font-family: var(--mono); cursor: pointer; transition: color .15s, border-color .15s, background .15s; min-height: 38px; }
.cat-chip:hover { color: var(--text); border-color: var(--orange); }
.cat-chip[aria-pressed=true] { background: var(--gradient); color: var(--bg); border-color: transparent; font-weight: 700; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.model-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.25rem; transition: transform .2s, border-color .2s, box-shadow .2s; cursor: pointer; }
.model-card:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: 0 18px 36px -22px rgba(255, 107, 53, .35); }
.model-card.hidden { display: none; }
.model-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: .35rem; }
.model-card-head .name { font-family: var(--mono); font-size: .95rem; font-weight: 700; color: var(--text); }
.model-card-head .params { font-family: var(--mono); font-size: .72rem; color: var(--pink); font-weight: 700; padding: .15rem .45rem; background: rgba(253, 61, 138, .12); border-radius: 3px; }
.model-card .family { font-family: var(--mono); font-size: .7rem; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; }
.model-card .desc { color: var(--muted); font-size: .88rem; margin: .75rem 0 .85rem; line-height: 1.45; }
.model-card-foot { display: flex; gap: 1rem; font-family: var(--mono); font-size: .72rem; color: var(--subtle); padding-top: .65rem; border-top: 1px dashed var(--border); }
.model-card-foot span b { color: var(--text); font-weight: 600; }

/* ─── PERFORMANCE WALL ─── */
.perf { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.perf-hw { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2rem; }
.perf-hw-btn { background: var(--elevated); border: 1px solid var(--border); color: var(--muted); padding: .55rem 1rem; border-radius: 4px; font-family: var(--mono); font-size: .8rem; cursor: pointer; transition: color .15s, border-color .15s, background .15s; min-height: 40px; }
.perf-hw-btn:hover { color: var(--text); border-color: var(--orange); }
.perf-hw-btn[aria-pressed=true] { background: var(--gradient-cool); color: var(--bg); border-color: transparent; font-weight: 700; }
.perf-bars { display: flex; flex-direction: column; gap: .85rem; }
.perf-row { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; align-items: center; }
@media (max-width: 700px) { .perf-row { grid-template-columns: 1fr; gap: .35rem; } }
.perf-row .perf-name { font-family: var(--mono); font-size: .85rem; color: var(--text); }
.perf-row .perf-name b { color: var(--pink); font-weight: 600; margin-right: .35rem; }
.perf-track { position: relative; height: 26px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.perf-fill { height: 100%; background: var(--gradient); border-radius: 3px; display: flex; align-items: center; padding: 0 .65rem; font-family: var(--mono); font-size: .74rem; font-weight: 700; color: var(--bg); transition: width 1s cubic-bezier(.4, 0, .2, 1); }
.perf-fill .tok { margin-left: auto; }

/* ─── MAC × WINDOWS SIDE-BY-SIDE ─── */
.platforms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 820px) { .platforms-grid { grid-template-columns: 1fr; } }
.platform-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.75rem; position: relative; overflow: hidden; }
.platform-card.mac { border-color: rgba(99, 102, 241, .3); }
.platform-card.win { border-color: rgba(34, 197, 94, .3); }
.platform-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-cool); }
.platform-card.win::before { background: linear-gradient(135deg, var(--green), var(--indigo)); }
.platform-card .plat-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.platform-card .plat-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; }
.platform-card.mac .plat-icon { background: rgba(99, 102, 241, .12); color: var(--indigo); }
.platform-card.win .plat-icon { background: rgba(34, 197, 94, .12); color: var(--green); }
.platform-card h3 { margin: 0; font-size: 1.15rem; }
.platform-card .plat-req { font-family: var(--mono); font-size: .75rem; color: var(--subtle); }
.platform-card p { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.platform-card .plat-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.platform-card .plat-list li { display: flex; align-items: flex-start; gap: .55rem; padding: .45rem 0; border-bottom: 1px dashed var(--border); font-size: .88rem; color: var(--text); }
.platform-card .plat-list li:last-child { border-bottom: 0; }
.platform-card .plat-list li svg { flex-shrink: 0; margin-top: 4px; }
.platform-card.mac .plat-list li svg { color: var(--indigo); }
.platform-card.win .plat-list li svg { color: var(--green); }
.platform-card .plat-foot { display: flex; gap: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.platform-card .plat-foot b { color: var(--text); display: block; font-size: 1rem; }

/* ─── PLUGIN MARKETPLACE ─── */
.plug-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.plug-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.25rem; transition: transform .2s, border-color .2s, box-shadow .2s; display: flex; flex-direction: column; gap: .75rem; }
.plug-card:hover { transform: translateY(-3px); border-color: var(--pink); box-shadow: 0 18px 36px -22px rgba(253, 61, 138, .35); }
.plug-card.hidden { display: none; }
.plug-card .plug-head { display: flex; align-items: center; gap: .65rem; }
.plug-card .plug-icon { width: 38px; height: 38px; display: grid; place-items: center; background: rgba(253, 61, 138, .1); border-radius: 6px; color: var(--pink); font-family: var(--mono); font-size: 1.1rem; font-weight: 700; }
.plug-card .plug-name { font-family: var(--mono); font-size: .92rem; font-weight: 700; color: var(--text); }
.plug-card .plug-cat { font-family: var(--mono); font-size: .68rem; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.plug-card .plug-desc { color: var(--muted); font-size: .85rem; line-height: 1.5; flex: 1; margin: 0; }
.plug-card .plug-foot { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .72rem; color: var(--subtle); padding-top: .65rem; border-top: 1px dashed var(--border); }
.plug-card .plug-install { font-family: var(--mono); font-size: .72rem; color: var(--pink); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; padding: .25rem .5rem; border: 1px solid var(--pink); border-radius: 3px; transition: background .15s, color .15s; }
.plug-card .plug-install:hover, .plug-card .plug-install.installed { background: var(--pink); color: var(--bg); }
.plug-card .plug-install.installed::after { content: " ✓"; }

/* ─── QUANTIZATION EXPLAINER ─── */
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
@media (max-width: 880px) { .q-grid { grid-template-columns: 1fr; } }
.q-card { background: var(--elevated); border: 1px solid var(--border); border-radius: 6px; padding: 1.75rem; }
.q-controls .q-slider-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .65rem; }
.q-controls .q-slider-label .q-now { font-family: var(--mono); font-size: 1.5rem; color: var(--orange); font-weight: 700; }
.q-controls .q-slider-label .q-name { font-family: var(--mono); font-size: .9rem; color: var(--muted); }
.q-output { display: flex; flex-direction: column; gap: 1.25rem; }
.q-stat { display: flex; flex-direction: column; gap: .5rem; }
.q-stat .q-stat-label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); display: flex; justify-content: space-between; }
.q-stat .q-stat-label b { color: var(--text); font-family: var(--mono); font-size: 1.1rem; }
.q-meter { height: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.q-meter .q-fill { height: 100%; transition: width .4s cubic-bezier(.4, 0, .2, 1); }
.q-meter .q-fill.size { background: var(--gradient); }
.q-meter .q-fill.quality { background: linear-gradient(135deg, var(--green), var(--indigo)); }
.q-rec { padding: 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; font-family: var(--mono); font-size: .85rem; color: var(--text); border-left: 3px solid var(--orange); }
.q-rec b { color: var(--orange); }

/* ─── DEEP-DIVE ARTICLE (editorial) ─── */
.dive { background: var(--bg); position: relative; }
.dive-grid { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .dive-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.dive-toc { position: sticky; top: 84px; align-self: start; }
@media (max-width: 900px) { .dive-toc { position: static; } }
.dive-toc .label { display: block; margin-bottom: 1rem; }
.dive-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; counter-reset: toc; }
.dive-toc li { counter-increment: toc; }
.dive-toc a { display: flex; align-items: baseline; gap: .65rem; font-size: .88rem; color: var(--muted); padding: .25rem 0; border-left: 2px solid transparent; padding-left: .65rem; transition: color .15s, border-color .15s; }
.dive-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: .72rem; color: var(--subtle); }
.dive-toc a:hover, .dive-toc a:focus-visible { color: var(--orange); border-left-color: var(--orange); }
.dive-body { font-size: 1.05rem; line-height: 1.7; color: var(--text); }
.dive-body .lede {
  font-size: 1.2rem; line-height: 1.55; color: var(--text);
  border-left: 3px solid var(--orange);
  padding: .5rem 0 .5rem 1.5rem; margin: 0 0 3rem;
  font-weight: 400;
}
.dive-body .lede::first-letter {
  font-family: var(--mono); font-size: 3rem; font-weight: 800;
  float: left; line-height: 1; padding: .35rem .5rem 0 0;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dive-body section { padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.dive-body section:last-of-type { border-bottom: 0; }
.dive-body h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 1.25rem; display: flex; align-items: baseline; gap: .75rem; }
.dive-body h2::before { content: attr(data-num); font-family: var(--mono); font-size: .85rem; color: var(--orange); font-weight: 600; letter-spacing: .04em; }
.dive-body h3 { font-size: 1.1rem; margin-top: 1.5rem; color: var(--muted); font-family: var(--mono); font-weight: 600; }
.dive-body p { color: var(--text); margin-bottom: 1em; }
.dive-body ul { padding-left: 0; list-style: none; margin: 1rem 0; }
.dive-body ul li { position: relative; padding: .35rem 0 .35rem 1.25rem; color: var(--text); border-left: 2px solid var(--border); padding-left: 1rem; margin-left: .25rem; }
.dive-body ul li::before { content: "▸"; color: var(--orange); position: absolute; left: -8px; top: .4rem; background: var(--bg); padding: 0 4px; font-size: .75rem; }
.dive-body strong { color: var(--orange); font-weight: 700; }
.dive-body code { background: var(--surface); padding: .15rem .4rem; border-radius: 3px; font-size: .88em; color: var(--pink); border: 1px solid var(--border); }

/* Pull-quote inside dive */
.pq-inline { position: relative; margin: 2.5rem 0; padding: 1.75rem 1.75rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--pink); border-radius: 0 4px 4px 0; font-size: 1.1rem; line-height: 1.55; color: var(--text); font-family: var(--mono); }
.pq-inline::before { content: "\201C"; position: absolute; left: 1.25rem; top: -.6rem; font-size: 3rem; font-family: Georgia, serif; color: var(--pink); line-height: 1; background: var(--bg); padding: 0 .35rem; }
.pq-inline cite { display: flex; align-items: center; gap: .65rem; margin-top: 1rem; font-style: normal; font-size: .8rem; color: var(--muted); font-family: var(--mono); flex-wrap: wrap; }
.pq-inline cite img { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); }
.pq-inline cite b { color: var(--text); font-weight: 600; }

/* ─── TABBED FAQ ─── */
.faq-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.faq-tab { background: transparent; border: 0; padding: .75rem 1.1rem; font-family: var(--mono); font-size: .85rem; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; margin-bottom: -1px; min-height: 44px; }
.faq-tab:hover { color: var(--text); }
.faq-tab[aria-selected=true] { color: var(--orange); border-bottom-color: var(--orange); }
.faq-panel { display: none; flex-direction: column; gap: .5rem; }
.faq-panel.active { display: flex; animation: faqFade .35s ease-out; }
@keyframes faqFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.faq-qa { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.faq-qa summary { padding: 1rem 1.15rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; list-style: none; color: var(--text); font-family: var(--sans); }
.faq-qa summary::-webkit-details-marker { display: none; }
.faq-qa summary::after { content: "+"; color: var(--orange); font-family: var(--mono); font-size: 1.4rem; transition: transform .3s; line-height: 1; }
.faq-qa[open] summary::after { transform: rotate(45deg); }
.faq-qa[open] { border-color: var(--orange); }
.faq-qa-body { padding: 0 1.15rem 1rem; color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* ─── AUTHOR strip (different from imazing) ─── */
.author-strip {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.author-strip .author-inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.75rem; align-items: center;
}
@media (max-width: 700px) { .author-strip .author-inner { grid-template-columns: 1fr; text-align: center; gap: 1rem; } }
.author-strip img { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--border); justify-self: center; }
.author-strip .author-meta { display: flex; flex-direction: column; gap: .25rem; }
.author-strip .author-name { font-family: var(--mono); font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0; }
.author-strip .author-role { font-family: var(--mono); font-size: .8rem; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.author-strip .author-bio { color: var(--muted); font-size: .9rem; margin: .35rem 0 0; }
.author-strip .author-cta { font-family: var(--mono); font-size: .8rem; color: var(--text); border: 1px solid var(--border); padding: .65rem 1rem; border-radius: 4px; transition: border-color .15s, background .15s; white-space: nowrap; }
.author-strip .author-cta:hover { border-color: var(--orange); background: rgba(255, 107, 53, .05); }

/* ─── FINAL CTA / walkthrough strip ─── */
.final-cta { padding: 5rem 0; text-align: center; position: relative; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: var(--gradient); opacity: .08; pointer-events: none; }
.final-cta .wrap { position: relative; }
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); margin-bottom: .75rem; }
.final-cta p { color: var(--muted); max-width: 540px; margin: 0 auto 2rem; }
.final-cta .cta-row { justify-content: center; }
.walk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
@media (max-width: 700px) { .walk { grid-template-columns: 1fr; } }
.walk-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem; text-align: left; }
.walk-step .n { font-family: var(--mono); font-size: .8rem; color: var(--orange); font-weight: 700; margin-bottom: .5rem; }
.walk-step h3 { font-size: 1rem; margin-bottom: .35rem; }
.walk-step p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ─── Footer ─── */
footer { background: #04060c; color: var(--muted); padding: 2.5rem 0; border-top: 1px solid var(--border); }
.foot-inner { display: flex; flex-direction: column; align-items: center; gap: .85rem; text-align: center; }
.foot-inner .brand { color: var(--text); }
.foot-inner .tagline { font-size: .88rem; color: var(--muted); max-width: 520px; margin: 0; font-family: var(--mono); }
.foot-inner .copy { font-size: .82rem; color: var(--subtle); margin: .65rem 0 0; font-family: var(--mono); }
.foot-inner .copy a, .foot-inner .copy button { color: var(--muted); }
.foot-inner .copy a:hover, .foot-inner .copy button:hover { color: var(--text); }
.link-btn { color: var(--muted); font: inherit; padding: .15rem .25rem; text-align: left; }
.link-btn:hover { color: var(--text); text-decoration: underline; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ─── Cookie ─── */
.cookie { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 520px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1rem 1.25rem; box-shadow: 0 24px 40px -10px rgba(0, 0, 0, .6); z-index: 100; display: flex; align-items: center; gap: 1rem; font-size: .88rem; color: var(--muted); animation: slideup .4s ease-out; }
@keyframes slideup { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie button { background: var(--gradient); color: var(--bg); padding: .55rem 1rem; border-radius: 4px; font-weight: 700; font-size: .8rem; flex-shrink: 0; font-family: var(--mono); text-transform: uppercase; }
.cookie button:hover { filter: brightness(1.1); }
.hidden { display: none !important; }
@media (max-width: 460px) {
  .cookie { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie button { width: 100%; padding: .65rem 1rem; }
}

/* ─── Reveal-on-scroll ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }
