/* ============================================================
   LKXSAI — Design System v2
   Aesthetic: engineering catalogue / technical paper.
   Bone paper, ink type, one signal-orange accent.
   Hairlines, sharp corners, dotted leaders, numbered sections.
   No gradients. No glass. No glow.
   ============================================================ */

:root {
  --paper: #f4f1ea;
  --paper-2: #ece8dd;
  --card: #fbfaf5;
  --ink: #191813;
  --ink-2: #565248;
  --ink-3: #8b8577;
  --line: #d9d4c5;
  --accent: #e8490f;
  --accent-dark: #c53a08;
  --green: #256d45;
  --red: #b3261e;
  --dark: #16150f;
  --dark-2: #211f17;
  --dark-line: rgba(244, 241, 234, 0.16);
  --font-display: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Cascadia Mono', Consolas, monospace;
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--paper); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--accent); color: var(--paper); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border: 2px solid var(--paper-2); }
::-webkit-scrollbar-thumb:hover { background: var(--ink); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; text-transform: uppercase; }

.mono { font-family: var(--font-mono); }

/* ---------- bg (plain) ---------- */
.bg-fx { display: none; }
.noise { display: none; }

/* ---------- scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 80; background: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 70;
  display: flex; align-items: center;
  padding: 0 clamp(16px, 4vw, 48px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--ink); }
.nav-inner { display: flex; align-items: center; gap: 28px; width: 100%; max-width: 1360px; margin: 0 auto; }
.logo { font-family: var(--font-mono); font-weight: 700; font-size: 17px; letter-spacing: .06em; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo .logo-mark { width: 28px; height: 28px; }
.logo b { color: var(--accent); }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover, .nav-links a.is-current { color: var(--ink); border-bottom-color: var(--accent); }
.nav-cta { margin-left: 8px; padding: 9px 16px !important; box-shadow: 2px 2px 0 var(--ink); }
.nav-burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--ink); background: none; position: relative; }
.nav-burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: .25s; }
.nav-burger span:nth-child(1) { top: 14px; } .nav-burger span:nth-child(2) { top: 20px; } .nav-burger span:nth-child(3) { top: 26px; }
.nav.open .nav-burger span:nth-child(1) { top: 20px; rotate: 45deg; }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { top: 20px; rotate: -45deg; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border: 1px solid var(--ink); border-radius: 0;
  font-family: var(--font-mono); font-weight: 600; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  text-decoration: none; white-space: nowrap; background: transparent; color: var(--ink);
}
.btn-primary { background: var(--accent); border-color: var(--ink); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); background: var(--accent-dark); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 9px 14px; font-size: 11.5px; }
.btn-lg { padding: 16px 28px; font-size: 13.5px; }
.btn .btn-arrow { transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }
a.btn, button.btn { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
section { position: relative; padding: clamp(64px, 8vw, 110px) 0; }
.section-head { max-width: 1100px; margin-bottom: clamp(36px, 4.5vw, 56px); border-top: 2px solid var(--ink); padding-top: 18px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px 48px; align-items: end; }
.eyebrow { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.eyebrow::before { content: ''; width: 10px; height: 10px; background: var(--accent); flex-shrink: 0; }
.section-title { font-size: clamp(32px, 4.4vw, 58px); }
.section-sub { color: var(--ink-2); font-size: 15.5px; max-width: 46ch; padding-bottom: 6px; }
.section-head.center { display: block; }
.section-head.center .section-sub { margin-top: 14px; }
.grad-text { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh); display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--nav-h) + 32px); padding-bottom: 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--ink); padding: 8px 14px; margin-bottom: 30px; }
.hero-badge .pulse-dot { width: 8px; height: 8px; background: var(--accent); animation: none; box-shadow: none; border-radius: 0; }
.hero-title { font-size: clamp(52px, 7.6vw, 118px); letter-spacing: -0.015em; }
.hero-title .line { display: block; }
.rotator { display: inline-block; position: relative; color: var(--accent); min-width: 6.4ch; height: 1.06em; vertical-align: bottom; }
.rotator .rot-word { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; transform: translateY(0.35em); transition: opacity .35s, transform .35s; }
.rotator .rot-word.on { opacity: 1; transform: none; transition: opacity .35s, transform .35s; }
.rotator .rot-word.off { opacity: 0; transform: translateY(-0.35em); }
.hero-sub { margin-top: 28px; font-size: clamp(15.5px, 1.6vw, 18.5px); color: var(--ink-2); max-width: 56ch; }
.hero-sub b { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* figure plate */
.fig-plate { border: 1px solid var(--ink); background: var(--card); position: relative; padding: clamp(16px, 2vw, 28px) clamp(16px, 2vw, 28px) 12px; }
.fig-plate::before, .fig-plate::after,
.fig-plate .reg-mark::before, .fig-plate .reg-mark::after {
  content: '+'; position: absolute; font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); line-height: 1;
}
.fig-plate::before { top: 6px; left: 8px; } .fig-plate::after { top: 6px; right: 8px; }
.fig-plate .reg-mark::before { bottom: 6px; left: 8px; } .fig-plate .reg-mark::after { bottom: 6px; right: 8px; }
.fig-plate .fig-body { border: 1px solid var(--line); background: var(--paper); display: flex; align-items: center; justify-content: center; padding: clamp(10px, 1.6vw, 22px); }
.fig-plate .fig-body svg { width: 100%; height: auto; }
.fig-caption { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding-top: 10px; }
.fig-caption b { color: var(--accent); }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); border-left: none; margin-top: clamp(40px, 5vw, 64px); }
.hero-stat { border-left: 1px solid var(--ink); padding: 16px 20px 14px; background: var(--card); }
.hero-stat .num { font-family: var(--font-mono); font-size: clamp(20px, 2.2vw, 27px); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-stat .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.scroll-hint { display: none; }

/* ---------- spec ticker (ex-marquee) ---------- */
.marquee { border-block: 1px solid var(--line); padding: 11px 0; overflow: hidden; background: var(--paper); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; padding: 0 18px; border-right: 1px solid var(--line); }
.marquee-item .m-dot { display: none; }
.marquee-item.hot { color: var(--accent); font-weight: 600; }

/* ---------- grids / cards ---------- */
.panel { background: var(--card); border: 1px solid var(--line); }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Product cards */
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.product-card:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.product-visual { position: relative; aspect-ratio: 16 / 10.5; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-visual svg { width: 74%; height: auto; transition: transform .35s; }
.product-visual img { width: 88%; max-height: 94%; object-fit: contain; transition: transform .35s; }
.product-card:hover .product-visual svg, .product-card:hover .product-visual img { transform: scale(1.025); }
.product-chip { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; z-index: 2; pointer-events: none; }
.chip { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); padding: 3px 8px; }
.chip.accent { color: var(--accent-dark); border-color: var(--accent); }
.chip.green { color: var(--green); border-color: var(--green); }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-brand { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.product-name { font-size: 21px; line-height: 1.08; text-transform: none; letter-spacing: 0; }
.product-tag { font-size: 13.5px; color: var(--ink-2); min-height: 42px; }
.spec-pills { display: flex; flex-wrap: wrap; gap: 4px 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-2); text-transform: uppercase; }
.spec-pill { padding: 0; background: none; border: none; }
.spec-pill + .spec-pill::before { content: '\00b7'; margin: 0 8px; color: var(--ink-3); }
.spec-pill b { color: var(--ink); font-weight: 600; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0; }
.price .from { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 10px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.vram-badge { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--accent-dark); display: inline-flex; align-items: center; gap: 6px; }
.vram-badge svg { width: 14px; height: 14px; }

/* ---------- VRAM Ladder ---------- */
.ladder { padding: clamp(24px, 3.5vw, 44px); background: var(--paper-2); border: 1px solid var(--ink); position: relative; overflow: hidden; }
.ladder::before { display: none; }
.ladder-top { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.ladder-vram { font-family: var(--font-display); font-size: clamp(44px, 6vw, 72px); font-weight: 700; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.ladder-vram small { font-size: .5em; color: var(--accent); }
.ladder-caption { color: var(--ink-2); font-size: 14px; max-width: 62ch; }
.ladder-caption b { color: var(--ink); }
.ladder-slider-wrap { margin: 26px 0 8px; position: relative; }
input[type="range"].ladder-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; outline: none; background:
  repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px 10%) center / 100% 8px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat; cursor: pointer; }
input[type="range"].ladder-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 22px; border-radius: 0; background: var(--ink); border: none; box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 8px var(--accent); cursor: grab; }
input[type="range"].ladder-range::-moz-range-thumb { width: 16px; height: 20px; border-radius: 0; background: var(--ink); border: none; box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 7px var(--accent); cursor: grab; }
.ladder-scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: .08em; margin-top: 8px; }
.ladder-results { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 26px; margin-top: 26px; }
.ladder-col h4 { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); display: flex; align-items: center; gap: 8px; }
.ladder-col h4 .dotc { width: 8px; height: 8px; background: var(--ink); flex-shrink: 0; }
.ladder-list { display: flex; flex-direction: column; gap: 0; min-height: 60px; }
.ladder-model { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0 6px 14px; font-size: 13px; color: var(--ink-3); position: relative; border-bottom: 1px dotted var(--line); transition: color .25s, opacity .25s; }
.ladder-model::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: transparent; transition: background .25s; }
.ladder-model .m-q { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.ladder-model.runs { color: var(--ink); }
.ladder-model.runs::before { background: var(--accent); }
.ladder-model.runs .m-q { color: var(--accent-dark); }
.ladder-matches { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--ink); }
.ladder-matches-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.ladder-matches-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ladder-match { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px; border: 1px solid var(--line); background: var(--card); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); transition: all .2s; }
.ladder-match .lm-vram { font-size: 10px; color: var(--ink-3); }
.ladder-match.hit { color: var(--ink); border-color: var(--ink); background: var(--card); box-shadow: 2px 2px 0 var(--accent); }
.ladder-match.hit .lm-vram { color: var(--accent-dark); }

/* ---------- Calculator (dark instrument panel) ---------- */
.theme-dark { background: var(--dark); color: var(--paper); }
.theme-dark .section-head { border-top-color: var(--paper); }
.theme-dark .eyebrow { color: rgba(244,241,234,.6); }
.theme-dark .section-sub { color: rgba(244,241,234,.62); }
.calc { display: grid; grid-template-columns: 440px 1fr; gap: clamp(18px, 2.6vw, 36px); align-items: start; }
.calc-controls { padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 24px; background: var(--dark-2); border: 1px solid var(--dark-line); }
.calc-field label, .calc-label { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,241,234,.6); margin-bottom: 10px; }
.calc-field .val { color: var(--paper); font-size: 12.5px; font-weight: 600; }
input[type="range"].calc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; border-radius: 0; outline: none; background:
  linear-gradient(var(--accent), var(--accent)) left center / var(--fill, 50%) 2px no-repeat,
  linear-gradient(rgba(244,241,234,.25), rgba(244,241,234,.25)) center / 100% 2px no-repeat; }
input[type="range"].calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 18px; border-radius: 0; background: var(--accent); border: 1px solid var(--paper); cursor: grab; }
input[type="range"].calc-range::-moz-range-thumb { width: 12px; height: 16px; border-radius: 0; background: var(--accent); border: 1px solid var(--paper); cursor: grab; }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; appearance: none; -webkit-appearance: none; background: var(--dark); color: var(--paper); border: 1px solid var(--dark-line); border-radius: 0; padding: 12px 40px 12px 14px; font-family: var(--font-mono); font-size: 12.5px; outline: none; cursor: pointer; transition: border-color .15s; }
.select-wrap select:focus { border-color: var(--accent); outline: none; }
.select-wrap select option { background: var(--dark); color: var(--paper); }
.select-wrap::after { content: ''; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.calc-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,241,234,.65); }
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--dark); border: 1px solid var(--dark-line); transition: .2s; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: rgba(244,241,234,.4); transition: .2s; }
.switch input:checked + .track { border-color: var(--accent); }
.switch input:checked + .track::after { left: 21px; background: var(--accent); }
.calc-results { display: grid; gap: 16px; }
.calc-hero-result { padding: clamp(26px, 3vw, 40px); text-align: left; background: var(--dark-2); border: 1px solid var(--dark-line); position: relative; }
.calc-hero-result::before { display: none; }
.calc-be-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.calc-be-value { font-family: var(--font-display); font-size: clamp(52px, 6.5vw, 92px); font-weight: 700; line-height: 1; margin: 12px 0 8px; color: var(--paper); font-variant-numeric: tabular-nums; }
.calc-be-sub { color: rgba(244,241,234,.62); font-size: 14.5px; }
.calc-be-sub b { color: var(--paper); }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--dark-line); background: var(--dark-2); }
.calc-stat { padding: 16px 20px; border-right: 1px solid var(--dark-line); }
.calc-stat:last-child { border-right: none; }
.calc-stat .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244,241,234,.5); margin-bottom: 6px; }
.calc-stat .v { font-family: var(--font-mono); font-size: clamp(17px, 1.8vw, 22px); font-weight: 700; color: var(--paper); font-variant-numeric: tabular-nums; }
.calc-stat .v em { font-style: normal; font-size: .62em; color: rgba(244,241,234,.5); margin-left: 2px; }
.calc-stat.good .v { color: var(--accent); }
.calc-chart-panel { padding: clamp(18px, 2.2vw, 26px); background: var(--dark-2); border: 1px solid var(--dark-line); }
.calc-chart-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.calc-chart-head h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(244,241,234,.7); }
.chart-legend { display: flex; gap: 18px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(244,241,234,.6); }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend .sw { width: 14px; height: 2px; }
#calc-chart { width: 100%; height: 260px; }
.calc-note { font-size: 12px; color: rgba(244,241,234,.45); margin-top: 14px; line-height: 1.6; }
.calc-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.theme-dark .btn-primary { box-shadow: 3px 3px 0 rgba(244,241,234,.25); }
.theme-dark .btn-primary:hover { box-shadow: 5px 5px 0 rgba(244,241,234,.25); }
.theme-dark .btn-ghost { color: var(--paper); border-color: rgba(244,241,234,.4); }
.theme-dark .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.mono-note { font-family: var(--font-mono); font-size: 11px; color: rgba(244,241,234,.45); margin-top: 0; }

/* light-context mono note */
:root .mono-note:not(.theme-dark *) { color: var(--ink-3); }

/* ---------- Feature blocks ---------- */
.feature-card { padding: 22px 22px 24px; background: var(--card); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.feature-card:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.feature-icon { width: 40px; height: 40px; border: 1px solid var(--ink); display: grid; place-items: center; margin-bottom: 16px; background: var(--paper); }
.feature-icon svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--ink-2); font-size: 14px; }

/* ---------- Models page ---------- */
.model-tabs { display: inline-flex; gap: 0; border: 1px solid var(--ink); background: var(--card); }
.model-tab { padding: 10px 18px; border: none; background: transparent; border-right: 1px solid var(--line); color: var(--ink-2); font-family: var(--font-mono); font-weight: 600; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; transition: .15s; }
.model-tab:last-child { border-right: none; }
.model-tab:hover { color: var(--ink); }
.model-tab.is-active { background: var(--ink); color: var(--paper); }
.model-table-wrap { overflow-x: auto; border: 1px solid var(--ink); background: var(--card); }
table.model-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.model-table th { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--ink); white-space: nowrap; background: var(--paper-2); }
.model-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.model-table tr:last-child td { border-bottom: none; }
.model-table tbody tr { transition: background .12s; }
.model-table tbody tr:hover { background: var(--paper-2); }
.model-table .m-name { font-weight: 600; color: var(--ink); white-space: nowrap; }
.model-table .m-org { font-size: 11px; color: var(--ink-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.model-table .m-vram { font-family: var(--font-mono); white-space: nowrap; font-size: 12.5px; }
.model-table .m-vram b { color: var(--accent-dark); }
.vbar { position: relative; width: 140px; height: 4px; background: var(--paper-2); border: 1px solid var(--line); }
.vbar > i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.model-table .m-lic { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.runs-chip { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 0; border: none; background: none; color: var(--ink-3); white-space: nowrap; display: inline-block; margin: 2px 12px 2px 0; text-decoration: underline dotted var(--ink-3); text-underline-offset: 3px; }
.runs-chip.yes { color: var(--accent-dark); text-decoration-color: var(--accent); font-weight: 600; }
.runs-chip.no { color: var(--ink-3); opacity: .7; }
.models-filter-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.models-filter-note b { color: var(--accent-dark); }

/* ---------- Product detail ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 26px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.crumbs a { color: var(--ink-2); } .crumbs a:hover { color: var(--accent-dark); }
.crumbs .sep { opacity: .6; }
.pd-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.pd-visual { border: 1px solid var(--ink); background: var(--card); position: sticky; top: calc(var(--nav-h) + 20px); padding: clamp(16px, 2vw, 30px) clamp(16px, 2vw, 30px) 12px; }
.pd-visual svg { width: 100%; height: auto; }
.pd-visual img { width: 100%; height: auto; display: block; }
.pd-visual .pd-visual-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 10px; }
.pd-brand { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 12px; }
.pd-title { font-size: clamp(34px, 4vw, 54px); margin-bottom: 14px; }
.pd-tagline { color: var(--ink-2); font-size: clamp(15px, 1.6vw, 18px); margin-bottom: 24px; }
.pd-price-row { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; padding: 14px 0; border-block: 1px solid var(--ink); }
.pd-price { font-family: var(--font-display); font-size: clamp(34px, 3.6vw, 46px); font-weight: 700; }
.pd-price small { font-size: 14px; color: var(--ink-3); font-weight: 400; font-family: var(--font-mono); }
.pd-from { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.pd-highlights { display: grid; gap: 9px; margin-bottom: 24px; }
.pd-hl { display: flex; gap: 11px; align-items: baseline; font-size: 14.5px; color: var(--ink-2); }
.pd-hl svg { width: 13px; height: 13px; flex-shrink: 0; transform: translateY(1px); stroke: var(--accent-dark); fill: none; stroke-width: 2.4; stroke-linecap: square; }
.pd-buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.pd-trust { display: flex; gap: 20px; flex-wrap: wrap; font-size: 11px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.pd-trust span { display: inline-flex; align-items: center; gap: 7px; }
.pd-trust svg { width: 14px; height: 14px; stroke: var(--ink-2); fill: none; stroke-width: 1.6; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--ink); background: var(--card); }
.spec-cell { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.spec-cell:nth-child(odd) { border-right: 1px solid var(--line); }
.spec-cell:nth-last-child(-n+2) { border-bottom: none; }
.spec-cell .k { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; display: flex; align-items: center; gap: 8px; }
.spec-cell .k svg { width: 14px; height: 14px; stroke: var(--accent-dark); fill: none; stroke-width: 1.6; }
.spec-cell .v { font-size: 15px; font-weight: 600; }
.spec-cell .v small { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 400; margin-top: 3px; }
.pd-section { margin-top: clamp(44px, 5.5vw, 72px); }
.pd-section > h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 6px; padding-top: 16px; border-top: 2px solid var(--ink); }
.pd-section > .section-sub { margin-bottom: 22px; }
.usecase-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border: 1px solid var(--ink); }
.usecase { display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; background: var(--card); border-right: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.usecase:last-child { border-right: none; }
.usecase .uc-num { font-family: var(--font-mono); color: var(--accent-dark); font-size: 11px; font-weight: 600; }

/* model compat on product page */
.compat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.compat-card { padding: 20px; border: 1px solid var(--ink); background: var(--card); }
.compat-card h3 { font-size: 15px; margin-bottom: 2px; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .02em; }
.compat-card h3 .cc-icon { width: 28px; height: 28px; border: 1px solid var(--ink); display: grid; place-items: center; background: var(--paper-2); }
.compat-card h3 .cc-icon svg { width: 15px; height: 15px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.compat-card .cc-sub { font-size: 11.5px; color: var(--ink-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.compat-card ul { list-style: none; display: flex; flex-direction: column; }
.compat-card li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--ink-3); padding: 7px 0; border-bottom: 1px dotted var(--line); }
.compat-card li.runs { color: var(--ink); }
.compat-card li .lq { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.compat-card li.runs .lq { color: var(--green); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; max-width: 900px; border-top: 2px solid var(--ink); counter-reset: faq; }
.faq-item { border-bottom: 1px solid var(--line); counter-increment: faq; background: transparent; }
.faq-item[open] { border-bottom-color: var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 64px; font-family: var(--font-body); font-weight: 600; font-size: 16.5px; display: block; position: relative; transition: color .15s; }
.faq-item summary:hover { color: var(--accent-dark); }
.faq-item summary::before { content: 'Q.' counter(faq, decimal-leading-zero); position: absolute; left: 0; top: 22px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent-dark); letter-spacing: .04em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .fx { position: absolute; right: 4px; top: 24px; width: 14px; height: 14px; border: none; background: none; transition: .2s; }
.faq-item summary .fx::before, .faq-item summary .fx::after { content: ''; position: absolute; background: var(--ink); transition: .2s; }
.faq-item summary .fx::before { width: 14px; height: 2px; top: 6px; left: 0; }
.faq-item summary .fx::after { width: 2px; height: 14px; left: 6px; top: 0; }
.faq-item[open] summary .fx { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 40px 24px 64px; color: var(--ink-2); font-size: 14.5px; max-width: 68ch; }
.faq-item .faq-a a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA band ---------- */
.cta-band { border: 1px solid var(--ink); padding: clamp(40px, 5.5vw, 72px) clamp(24px, 5vw, 72px); text-align: left; position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.cta-band::before { display: none; }
.cta-band h2 { font-size: clamp(30px, 4.2vw, 54px); margin-bottom: 12px; color: var(--paper); }
.cta-band h2 .grad-text { color: var(--accent); }
.cta-band p { color: rgba(244,241,234,.65); font-size: 16.5px; max-width: 54ch; margin: 0 0 28px; }
.cta-band > * { position: relative; }

/* ---------- Footer ---------- */
footer { border-top: 2px solid var(--ink); margin-top: 40px; background: var(--paper); position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: clamp(40px, 5vw, 64px) 0 40px; }
.footer-brand p { color: var(--ink-2); font-size: 13.5px; margin-top: 14px; max-width: 34ch; }
.footer-col h5 { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.footer-col a { display: block; color: var(--ink-2); font-size: 13.5px; padding: 4px 0; transition: color .12s; }
.footer-col a:hover { color: var(--accent-dark); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 0 26px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 11px; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.footer-status { display: none; }
.footer-status .pulse-dot { display: none; }

/* ---------- Reveal on scroll (micro) ---------- */
.reveal { opacity: 0; transition: opacity .5s ease; transition-delay: var(--reveal-delay, 0s); }
.reveal.in { opacity: 1; }

/* ---------- Catalog page ---------- */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(22px, 3vw, 44px); align-items: start; }
.catalog-filters { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 24px; padding: 20px; border: 1px solid var(--ink); background: var(--card); }
.filter-group h4 { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.filter-opts { display: flex; flex-direction: column; gap: 8px; }
.filter-opt { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; transition: color .12s; user-select: none; }
.filter-opt:hover { color: var(--ink); }
.filter-opt input { accent-color: var(--accent); width: 14px; height: 14px; cursor: pointer; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.catalog-count { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.catalog-grid .product-card.is-hidden { display: none; }

/* light-context selects on paper pages */
.select-wrap select { background: var(--card); color: var(--ink); border-color: var(--ink); }
.select-wrap select:focus { border-color: var(--accent-dark); }
.theme-dark .select-wrap select { background: var(--dark); color: var(--paper); border-color: var(--dark-line); }
.theme-dark .select-wrap select:focus { border-color: var(--accent); }
.catalog-filters .select-wrap::after { border-color: var(--ink); }
.catalog-filters .select-wrap::after { border-right-color: var(--ink); border-bottom-color: var(--ink); }
#vram-filter { min-width: 130px; }

/* ---------- Checkout / misc pages ---------- */
.page-shell { min-height: 100svh; display: flex; flex-direction: column; }
.page-main { flex: 1; padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px)); }
.success-panel { max-width: 640px; margin: 0 auto; text-align: center; padding: clamp(32px, 5vw, 52px); border: 1px solid var(--ink); background: var(--card); position: relative; }
.success-panel::before { display: none; }
.success-icon { width: 60px; height: 60px; margin: 0 auto 20px; border: 1px solid var(--ink); display: grid; place-items: center; background: var(--paper-2); animation: popIn .4s ease; }
.success-icon svg { width: 28px; height: 28px; stroke: var(--green); fill: none; stroke-width: 2.4; stroke-linecap: square; }
@keyframes popIn { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.order-lines { margin: 24px 0; text-align: left; display: grid; gap: 0; border: 1px solid var(--line); }
.order-line { display: flex; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; background: var(--paper); }
.order-line:last-child { border-bottom: none; }
.order-line .ol-name { color: var(--ink); font-weight: 600; }
.order-line .ol-price { font-family: var(--font-mono); color: var(--accent-dark); }
.success-panel .mono-note { color: var(--ink-3); }
.checkout-error { max-width: 640px; margin: 0 auto; text-align: center; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--ink); background: var(--card); }
.checkout-error h2 { color: var(--red); margin-bottom: 10px; }
.checkout-error p { color: var(--ink-2); }
.checkout-error .mono-note { color: var(--ink-3); }

/* ---------- Legal ---------- */
.legal-body { max-width: 820px; margin: 0 auto; }
.legal-body h2 { font-size: 22px; margin: 36px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.legal-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-2); font-size: 14.5px; }
.legal-body ul { padding-left: 20px; display: grid; gap: 6px; }
.legal-body .updated { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .ladder-results { grid-template-columns: 1fr 1fr; }
  .ladder-col:last-child { grid-column: 1 / -1; }
  .compat-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .fig-plate { max-width: 560px; }
}
@media (max-width: 980px) {
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 24px 24px; background: var(--paper); border-bottom: 2px solid var(--ink); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s; }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 8px; font-size: 13px; border-bottom: 1px solid var(--line); }
  .nav-burger { display: block; }
  .nav-cta { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .pd-hero { grid-template-columns: 1fr; }
  .pd-visual { position: static; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filters { position: static; flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .filter-group { min-width: 150px; flex: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .catalog-grid, .spec-grid, .calc-grid, .ladder-results, .compat-grid { grid-template-columns: 1fr; }
  .rotator { display: block; width: 100%; }
  .hero-title { font-size: clamp(44px, 12.5vw, 60px); }
  .spec-cell:nth-child(odd) { border-right: none; }
  .spec-cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .spec-cell:last-child { border-bottom: none; }
  .hero-ctas .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; border-left: 1px solid var(--ink); }
  .hero-stat { border-top: 1px solid var(--ink); }
  .hero-stat:nth-child(-n+2) { border-top: none; }
  .product-visual svg { width: 82%; }
  .faq-item summary { padding: 18px 36px 18px 46px; }
  .faq-item .faq-a { padding: 0 20px 20px 46px; }
  .usecase { border-right: none; border-bottom: 1px solid var(--line); }
  .usecase:last-child { border-bottom: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; }
  .marquee-track { animation: none; }
}
