/* ==========================================================================
   LanSync Official Website — Swiss Industrial Precision / Hardware Manual
   www.xiaoquan656.com
   ========================================================================== */

:root {
  --bg: #f4f2ec;
  --bg-alt: #ebe7dd;
  --surface: #faf9f5;
  --surface-inv: #151514;
  --surface-inv-2: #1f1f1d;
  --ink: #161614;
  --ink-muted: #525049;
  --ink-faint: #7c7970;
  --ink-inv: #f2f0e9;
  --ink-inv-muted: #a6a39a;
  --line: #d4cfc3;
  --line-strong: #1c1b18;
  --line-inv: #33322e;
  --signal: #e8451e;
  --signal-hover: #c93613;
  --signal-soft: rgba(232, 69, 30, 0.09);
  --ok: #148543;
  --ok-soft: rgba(20, 133, 67, 0.12);
  --radius: 2px;
  --font-sans: "PingFang SC", "Microsoft YaHei UI", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Mono", "JetBrains Mono", Consolas, ui-monospace, monospace;
}

html.dark {
  --bg: #121211;
  --bg-alt: #181816;
  --surface: #1b1b19;
  --surface-inv: #f2f0e9;
  --surface-inv-2: #e6e2d8;
  --ink: #efede6;
  --ink-muted: #b0ada3;
  --ink-faint: #7e7b73;
  --ink-inv: #161614;
  --ink-inv-muted: #55534b;
  --line: #2d2d29;
  --line-strong: #4e4d46;
  --line-inv: #ccc6b8;
  --signal: #ff5b33;
  --signal-hover: #ff7350;
  --signal-soft: rgba(255, 91, 51, 0.14);
  --ok: #33c46c;
  --ok-soft: rgba(51, 196, 108, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  background-image: radial-gradient(var(--line) 0.75px, transparent 0.75px);
  background-size: 24px 24px;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  padding: 1px 5px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
kbd {
  display: inline-block;
  padding: 0 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 var(--line-strong);
  border-radius: 2px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.muted { color: var(--ink-faint); }
.ok { color: var(--ok); }

.wrap {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 48px);
}

/* Hardware Status LEDs */
.led {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.led-on { background: var(--ok); box-shadow: 0 0 0 2px rgba(20, 133, 67, 0.22); }
.led-orange { background: var(--signal); box-shadow: 0 0 0 2px rgba(232, 69, 30, 0.22); }

/* Top Technical Spec Strip */
.spec-strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.spec-strip-inner {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.spec-strip-left, .spec-strip-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sep { color: var(--line-strong); opacity: 0.35; }
.mode-toggle {
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
}
.mode-toggle:hover { color: var(--signal); }

/* Masthead Navigation */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
}
.masthead-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
}
.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-tag {
  font-size: 10.5px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  color: var(--ink-faint);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.nav a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.14s, border-color 0.14s;
}
.nav a:hover, .nav a.is-current {
  color: var(--ink);
  border-bottom-color: var(--signal);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-btn {
  display: none;
  height: 36px;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.mobile-drawer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.mobile-drawer-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding-top: 12px;
  padding-bottom: 14px;
}
.mobile-drawer-inner a {
  padding: 8px 10px;
  font-size: 12.5px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.mobile-drawer-inner a:hover { border-color: var(--signal); color: var(--signal); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 36px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.08s ease, background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-solid { background: var(--ink); color: var(--surface); }
.btn-solid:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn-signal { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn-signal:hover { background: var(--signal-hover); border-color: var(--signal-hover); }
.btn-outline { background: var(--surface); color: var(--ink); }
.btn-outline:hover { background: var(--bg-alt); }
.btn-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.82;
  padding-left: 8px;
  border-left: 1px solid currentColor;
}

/* ==========================================================================
   00 / HERO
   ========================================================================== */
.hero {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 44px;
  align-items: start;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.kicker-num {
  padding: 1px 6px;
  background: var(--signal);
  color: #fff;
  font-weight: 700;
}
.hero-title {
  margin: 0 0 20px;
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.accent-underline {
  position: relative;
  display: inline-block;
  z-index: 1;
}
.accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 8px;
  background: var(--signal);
  opacity: 0.28;
  z-index: -1;
}
.hero-lead {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.76;
  color: var(--ink-muted);
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.readout-strip {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.readout-cell {
  padding: 11px 12px;
  border-right: 1px solid var(--line);
}
.readout-cell:last-child { border-right: none; }
.readout-cell dt {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-bottom: 3px;
}
.readout-cell dd { margin: 0; font-size: 16px; color: var(--ink); }
.readout-cell dd strong { font-weight: 700; }
.readout-cell dd span { font-size: 11px; color: var(--ink-faint); }

/* Interactive Stage Frame */
.stage-frame {
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--bg-alt), 6px 6px 0 1px var(--line-strong);
}
.reg-mark {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--ink-faint);
  pointer-events: none;
  user-select: none;
}
.reg-tl { top: -15px; left: -3px; }
.reg-tr { top: -15px; right: -3px; }
.reg-bl { bottom: -17px; left: -3px; }
.reg-br { bottom: -17px; right: -3px; }

.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  font-size: 11px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-alt);
}
.stage-bar-l { display: flex; align-items: center; gap: 7px; }
.stage-bar-r { color: var(--signal); font-weight: 700; }

.desk-surface {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 22px 1fr;
  padding: 16px;
  min-height: 296px;
  background: var(--bg);
  overflow: hidden;
  cursor: crosshair;
}
.monitor {
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.monitor.is-active {
  border-color: var(--signal);
  box-shadow: inset 0 0 0 1px var(--signal);
}
.mon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 9px;
  font-size: 10.5px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.mon-badge {
  font-size: 10px;
  padding: 1px 5px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.mon-badge-sys { border-color: var(--ok); color: var(--ok); }
.mon-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.mon-window { border: 1px solid var(--line); background: var(--bg); }
.mon-win-title {
  padding: 5px 8px;
  font-size: 10.5px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.file-list { list-style: none; margin: 0; padding: 4px 0; font-size: 11px; }
.file-row { display: flex; align-items: center; gap: 6px; padding: 4px 8px; }
.file-row span:first-child { color: var(--ok); font-size: 9px; }
.file-sz { margin-left: auto; color: var(--ink-faint); font-size: 10px; }
.file-row.flash { background: var(--signal-soft); color: var(--signal); }
.mon-hint { font-size: 10.5px; color: var(--ink-faint); text-align: right; }

.lock-veil {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 19, 0.88);
  color: #f4f2ec;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  z-index: 4;
  text-align: center;
  padding: 12px;
}
.lock-veil[hidden] { display: none; }
.lock-veil small { color: #a6a39a; font-size: 10.5px; }

.desk-seam {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.seam-line {
  width: 1px;
  height: 100%;
  border-left: 1px dashed var(--line-strong);
  opacity: 0.45;
}
.seam-tag {
  position: absolute;
  font-size: 9px;
  padding: 2px 3px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.desk-seam.crossing .seam-tag {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}
.seam-packet {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--signal);
  opacity: 0;
  pointer-events: none;
}
.seam-packet.fire {
  animation: packetFly 0.55s ease-out;
}
@keyframes packetFly {
  0% { transform: translateX(-60px) scale(0.7); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateX(70px) scale(1.1); opacity: 0; }
}

.uac-mock { border: 1px solid var(--line-strong); background: var(--bg); }
.uac-top {
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
  background: var(--surface-inv);
  color: var(--ink-inv);
}
.uac-desc { padding: 8px; font-size: 11.5px; line-height: 1.5; color: var(--ink-muted); }
.uac-btns { display: flex; align-items: center; gap: 8px; padding: 0 8px 8px; }
.uac-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.uac-btn:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.uac-state { font-size: 10px; color: var(--ink-faint); }
.mon-sync-note {
  font-size: 10.5px;
  color: var(--ok);
  padding: 5px 7px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.sim-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--signal);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.12s ease;
  z-index: 6;
}
.desk-surface:hover .sim-cursor { opacity: 1; }

.stage-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid var(--line-strong);
  background: var(--bg-alt);
}
.stage-ctrl-group { display: flex; flex-wrap: wrap; gap: 6px; }
.ctrl-chip {
  height: 27px;
  padding: 0 9px;
  font-size: 11px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.ctrl-chip:hover { border-color: var(--signal); color: var(--signal); }
.stage-telemetry { font-size: 10.5px; color: var(--ink-faint); }
.stage-caption { margin: 14px 0 0; font-size: 11px; color: var(--ink-faint); }

/* ==========================================================================
   SHARED SECTION CHROME
   ========================================================================== */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.section-alt { background: var(--bg-alt); }
.sec-header {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: baseline;
  margin-bottom: 34px;
}
.sec-index {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--signal);
  font-weight: 700;
}
.sec-title-block h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.sec-title-block p { margin: 0; color: var(--ink-muted); max-width: 820px; }

/* ==========================================================================
   01 / INTERACTIVE ANIMATED TUTORIAL DECK & PROBLEM SOLVER
   ========================================================================== */
.tut-deck {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--bg-alt), 6px 6px 0 1px var(--line-strong);
}
.tut-tracks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-alt);
}
.tut-track {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 13px 15px;
  border: none;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  text-align: left;
  cursor: pointer;
}
.tut-track:last-child { border-right: none; }
.tut-track:hover { background: var(--surface); color: var(--ink); }
.tut-track.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 3px 0 var(--signal);
}
.tut-num { font-size: 10.5px; color: var(--signal); font-weight: 700; }
.tut-track strong { font-size: 13.5px; line-height: 1.3; }
.tut-dur { font-size: 10px; color: var(--ink-faint); }

.tut-body {
  display: grid;
  grid-template-columns: 1.32fr 0.88fr;
}
.tut-screen-col {
  border-right: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
}
.tut-screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  font-size: 11px;
  background: var(--surface-inv);
  color: var(--ink-inv);
}
.tut-screen-left, .tut-screen-right { display: flex; align-items: center; gap: 8px; }
.tut-mode-btn {
  padding: 2px 7px;
  font-size: 10.5px;
  border: 1px solid var(--signal);
  background: transparent;
  color: var(--signal);
  cursor: pointer;
}
.tut-mode-btn:hover { background: var(--signal); color: #fff; }

.tut-canvas {
  flex: 1;
  min-height: 318px;
  padding: 20px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.tut-video-wrap {
  flex: 1;
  min-height: 318px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tut-video-wrap[hidden] { display: none; }
.tut-video-wrap video { width: 100%; height: 100%; max-height: 360px; }

/* Mini Animated Scene Primitives inside Tutorial Canvas */
.scene-window {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  animation: sceneEnter 0.28s ease-out;
}
@keyframes sceneEnter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.scene-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 10.5px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.scene-inner {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scene-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.scene-field {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 7px 10px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.scene-field.is-focus {
  border-color: var(--signal);
  box-shadow: inset 3px 0 0 var(--signal);
}
.scene-btn-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.scene-btn {
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.scene-btn-accent {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
  animation: pulseTap 1.4s ease-in-out infinite;
}
@keyframes pulseTap {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 69, 30, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(232, 69, 30, 0); }
}
.scene-meter {
  height: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  overflow: hidden;
}
.scene-meter-fill {
  height: 100%;
  background: var(--ok);
  width: 0;
  animation: meterGrow 1.6s ease-out forwards;
}
.scene-meter-fill.orange { background: var(--signal); }
@keyframes meterGrow {
  from { width: 8%; }
  to { width: var(--target-w, 100%); }
}
.scene-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-size: 11px;
  border: 1px solid var(--ok);
  background: var(--ok-soft);
  color: var(--ok);
}
.scene-badge.warn {
  border-color: var(--signal);
  background: var(--signal-soft);
  color: var(--signal);
}
.scene-node-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.scene-node {
  border: 1px solid var(--line-strong);
  background: var(--bg);
  padding: 10px;
  font-size: 12px;
}
.scene-node.is-hi {
  border-color: var(--signal);
  background: var(--signal-soft);
}
.scene-link-pill {
  padding: 3px 8px;
  border: 1px solid var(--ok);
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 10.5px;
  white-space: nowrap;
}

.tut-transport {
  padding: 10px 12px;
  border-top: 1px solid var(--line-strong);
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tut-transport-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.ctrl-chip-signal {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}
.ctrl-chip-signal:hover {
  background: var(--signal-hover);
  border-color: var(--signal-hover);
  color: #fff;
}
.tut-progress-track {
  height: 4px;
  background: var(--line);
  overflow: hidden;
}
.tut-progress-fill {
  height: 100%;
  width: 25%;
  background: var(--signal);
  transition: width 0.25s ease;
}

/* Right Step List */
.tut-steps-col {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tut-steps-hd {
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.tut-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tut-step-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  background: var(--bg);
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.14s, background 0.14s;
}
.tut-step-item:hover { border-color: var(--line-strong); }
.tut-step-item.is-active {
  border-color: var(--signal);
  background: var(--signal-soft);
  box-shadow: inset 3px 0 0 var(--signal);
}
.tut-step-idx {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--signal);
  flex-shrink: 0;
  margin-top: 2px;
}
.tut-step-item strong { display: block; font-size: 13px; margin-bottom: 2px; }
.tut-step-item span.tut-step-desc { display: block; font-size: 12px; color: var(--ink-muted); line-height: 1.48; }

.tut-tip-box {
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
}
.tut-tip-tag { display: inline-block; font-size: 10px; font-weight: 700; color: var(--signal); margin-bottom: 3px; }
.tut-tip-box p { margin: 0; font-size: 12.2px; color: var(--ink-muted); line-height: 1.55; }

/* Interactive Problem Troubleshooter */
.solver-wrap {
  margin-top: 32px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.solver-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-alt);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.solver-kicker { font-size: 10.5px; color: var(--signal); font-weight: 700; letter-spacing: 0.06em; margin-bottom: 4px; }
.solver-head h3 { margin: 0; font-size: 18px; }
.solver-hint { font-size: 11px; }

.solver-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
}
.solver-symptoms {
  border-right: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
}
.solver-sym-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.solver-sym-btn:last-child { border-bottom: none; }
.solver-sym-btn:hover { background: var(--bg); }
.solver-sym-btn.is-active {
  background: var(--signal-soft);
  box-shadow: inset 3px 0 0 var(--signal);
  font-weight: 700;
}
.solver-sym-tag { font-size: 10px; color: var(--ink-faint); flex-shrink: 0; }

.solver-answer {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.solver-cause {
  font-size: 12.5px;
  padding: 9px 12px;
  border-left: 3px solid var(--signal);
  background: var(--bg);
  color: var(--ink-muted);
}
.solver-cause strong { color: var(--ink); }
.solver-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.solver-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.solver-steps li strong { color: var(--ink); }
.solver-snum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--signal);
}
.solver-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-faint);
}

/* ==========================================================================
   02 / REAL APP INTERFACE SHOWCASE
   ========================================================================== */
.app-mock {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--bg), 6px 6px 0 1px var(--line-strong);
}
.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  font-size: 11px;
  background: var(--surface-inv);
  color: var(--ink-inv);
}
.app-tb-left, .app-tb-right { display: flex; align-items: center; gap: 8px; }
.app-ico {
  width: 10px;
  height: 10px;
  background: var(--signal);
  display: inline-block;
}
.app-shell {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 310px;
}
.app-sidebar {
  border-right: 1px solid var(--line-strong);
  background: var(--bg);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-sb-group {
  font-size: 10px;
  color: var(--ink-faint);
  padding: 2px 8px 6px;
  letter-spacing: 0.06em;
}
.app-sb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.app-sb-item:hover { background: var(--surface); border-color: var(--line); }
.app-sb-item.is-active {
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: inset 3px 0 0 var(--signal);
  font-weight: 700;
}
.app-sb-cnt {
  font-size: 10px;
  padding: 1px 5px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.app-sb-foot {
  margin-top: auto;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.app-main { padding: 16px 18px; overflow-x: auto; }
.app-view { display: none; }
.app-view.is-active { display: block; }
.app-view-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
}
.app-pill {
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 10.5px;
}
.app-pill.ok { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.app-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  border: 1px solid var(--line);
}
.app-table th, .app-table td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
}
.app-table th:last-child, .app-table td:last-child { border-right: none; }
.app-table tbody tr:last-child td { border-bottom: none; }
.app-table thead th {
  background: var(--bg);
  font-size: 11px;
  color: var(--ink-muted);
}
.app-note-row {
  margin-top: 12px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--bg);
  border: 1px solid var(--line);
}

.kvm-layout-demo {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 18px 4px;
}
.kvm-screen {
  border: 1px solid var(--line-strong);
  background: var(--bg);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
}
.kvm-self {
  border-color: var(--signal);
  background: var(--signal-soft);
}
.kvm-tag { font-size: 10px; color: var(--signal); font-weight: 700; }
.kvm-arrow { color: var(--ink-faint); font-size: 16px; }

.send-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
}
.send-box {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 12px;
}
.send-hd {
  font-size: 10.5px;
  color: var(--ink-faint);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.send-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.send-row:last-child { border-bottom: none; }
.qr-mock { display: flex; align-items: center; gap: 14px; padding-top: 4px; }
.qr-grid {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border: 2px solid var(--line-strong);
  background:
    repeating-conic-gradient(var(--ink) 0% 25%, var(--surface) 0% 50%) 50% / 14px 14px;
}
.qr-info { font-size: 11.5px; display: flex; flex-direction: column; gap: 4px; }

/* ==========================================================================
   02 / ENGINEERING SPEC PLATES
   ========================================================================== */
.plate-shell { border: 1px solid var(--line-strong); background: var(--surface); }
.plate-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-alt);
}
.plate-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px;
  border: none;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  text-align: left;
  cursor: pointer;
}
.plate-tab:last-child { border-right: none; }
.plate-tab:hover { background: var(--surface); color: var(--ink); }
.plate-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 3px 0 var(--signal);
}
.tab-num { font-size: 10.5px; color: var(--signal); font-weight: 700; }
.tab-label { font-size: 14.5px; font-weight: 700; }
.tab-sub { font-size: 10px; color: var(--ink-faint); letter-spacing: 0.04em; }

.plate-body { padding: 30px 28px; }
.plate-panel {
  display: none;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 32px;
  align-items: start;
}
.plate-panel.is-active { display: grid; }
.plate-code { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.06em; margin-bottom: 10px; }
.plate-left h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; }
.plate-left p { margin: 0 0 18px; color: var(--ink-muted); }
.spec-bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.spec-bullets li { padding-left: 16px; position: relative; font-size: 13.8px; color: var(--ink-muted); }
.spec-bullets li::before { content: "▪"; position: absolute; left: 0; color: var(--signal); }
.spec-bullets strong { color: var(--ink); }

.blueprint-box { border: 1px solid var(--line-strong); background: var(--bg); font-size: 12px; }
.bp-title {
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--surface-inv);
  color: var(--ink-inv);
}
.bp-step, .bp-kv {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.bp-kv { justify-content: space-between; }
.bp-kv span:first-child { color: var(--ink-faint); }
.bp-idx { color: var(--signal); font-weight: 700; min-width: 30px; }
.bp-foot { padding: 8px 12px; font-size: 11px; color: var(--ink-faint); background: var(--surface); }

/* ==========================================================================
   03 / TOPOLOGY
   ========================================================================== */
.topo-card { border: 1px solid var(--line-strong); background: var(--surface); }
.topo-switch { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line-strong); background: var(--bg); }
.topo-btn {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  font-size: 12px;
  border: none;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}
.topo-btn:last-child { border-right: none; }
.topo-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--signal);
}
.topo-diagram {
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.9fr 1.1fr 1fr;
  align-items: center;
  padding: 36px 24px;
  border-bottom: 1px solid var(--line);
}
.topo-node, .topo-relay {
  border: 1px solid var(--line-strong);
  background: var(--bg);
  padding: 14px;
}
.topo-relay { border-style: dashed; opacity: 0.45; transition: opacity 0.2s, border-color 0.2s, background 0.2s; }
.topo-diagram[data-mode="relay"] .topo-relay {
  opacity: 1;
  border-style: solid;
  border-color: var(--signal);
  background: var(--signal-soft);
}
.node-id { font-size: 10px; color: var(--ink-faint); letter-spacing: 0.06em; }
.node-title { font-size: 15px; font-weight: 700; margin: 4px 0 3px; }
.node-meta { font-size: 11px; color: var(--ink-muted); }

.topo-wire { position: relative; padding: 0 6px; }
.wire-track { position: relative; height: 2px; background: var(--line-strong); overflow: hidden; }
.wire-pulse {
  position: absolute;
  top: 0;
  left: -35%;
  width: 35%;
  height: 100%;
  background: var(--ok);
  animation: wireFlow 1.6s linear infinite;
}
.topo-diagram[data-mode="relay"] .wire-pulse { background: var(--signal); animation-duration: 2.3s; }
@keyframes wireFlow { 0% { left: -35%; } 100% { left: 105%; } }
.wire-badge {
  position: absolute;
  left: 50%;
  top: -26px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10.5px;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ok);
  z-index: 2;
}
.topo-diagram[data-mode="relay"] .wire-badge { color: var(--signal); border-color: var(--signal); }

.topo-notes { display: grid; grid-template-columns: repeat(3, 1fr); }
.topo-note { padding: 18px 20px; border-right: 1px solid var(--line); }
.topo-note:last-child { border-right: none; }
.note-tag { display: inline-block; font-size: 10px; font-weight: 700; color: var(--signal); margin-bottom: 6px; }
.topo-note p { margin: 0; font-size: 13px; color: var(--ink-muted); }

/* ==========================================================================
   04 / LEDGER
   ========================================================================== */
.ledger-wrap { border: 1px solid var(--line-strong); background: var(--surface); overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 13.5px; text-align: left; }
.ledger th, .ledger td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
}
.ledger th:last-child, .ledger td:last-child { border-right: none; }
.ledger tbody tr:last-child td { border-bottom: none; }
.ledger thead th { background: var(--bg-alt); font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--line-strong); }
.ledger .col-lansync {
  background: var(--signal-soft);
  border-left: 2px solid var(--signal);
  border-right: 2px solid var(--signal);
}
.ledger thead .col-lansync { background: var(--signal); color: #fff; }

/* ==========================================================================
   05 / PLANS & SUPPORT CONTACT
   ========================================================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.plan-card {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
}
.plan-featured {
  box-shadow: inset 0 4px 0 var(--signal);
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  color: var(--ink-faint);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.plan-tag {
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.plan-tag-signal {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
  font-weight: 700;
}
.plan-card h3 { margin: 0 0 8px; font-size: 19px; }
.plan-desc { margin: 0 0 16px; font-size: 13.5px; color: var(--ink-muted); }

.contact-banner {
  margin-top: 20px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.contact-kicker { font-size: 10.5px; color: var(--signal); font-weight: 700; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-text { font-size: 14px; color: var(--ink); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   06 / CARBON CHASSIS DOWNLOAD CARD
   ========================================================================== */
.chassis-card {
  background: var(--surface-inv);
  color: var(--ink-inv);
  border: 1px solid var(--line-strong);
  padding: 36px 34px;
}
.chassis-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-inv);
  margin-bottom: 28px;
}
.chassis-kicker { font-size: 11px; letter-spacing: 0.08em; color: var(--signal); margin-bottom: 8px; }
.chassis-title { margin: 0 0 10px; font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -0.02em; }
.chassis-desc { margin: 0; max-width: 600px; color: var(--ink-inv-muted); font-size: 14.5px; }
.chassis-version {
  text-align: right;
  flex-shrink: 0;
  padding: 10px 14px;
  border: 1px solid var(--line-inv);
  background: var(--surface-inv-2);
}
.ver-big { font-size: 26px; font-weight: 800; line-height: 1.1; }
.ver-sub { font-size: 10.5px; color: var(--ink-inv-muted); margin-top: 4px; }

.chassis-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: start;
}
.os-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.os-tab {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line-inv);
  background: var(--surface-inv-2);
  color: var(--ink-inv);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}
.os-tab:hover {
  border-color: var(--signal);
}
.os-tab.is-active {
  border-color: var(--signal);
  box-shadow: inset 0 3px 0 var(--signal);
  background: rgba(232, 69, 30, 0.12);
}
.os-tab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
}
.os-tab-badge {
  font-size: 10px;
  padding: 1px 6px;
  border: 1px solid var(--line-inv);
  color: var(--ink-inv-muted);
}
.os-tab.is-active .os-tab-badge {
  border-color: var(--signal);
  color: var(--signal);
}
.os-tab-sub {
  font-size: 11.5px;
  color: var(--ink-inv-muted);
  line-height: 1.4;
}
.dl-btn-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}
.os-tip-box {
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px dashed var(--line-inv);
  background: var(--surface-inv-2);
  font-size: 11px;
  color: var(--ink-inv-muted);
  line-height: 1.55;
}
.os-tip-box code {
  border-color: var(--line-inv);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-inv);
}
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 11.5px; color: var(--ink-inv-muted); }
.sha-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-inv);
  background: var(--surface-inv-2);
  font-size: 11px;
}
.sha-lbl { color: var(--signal); font-weight: 700; flex-shrink: 0; }
.sha-val {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--ink-inv-muted);
}
.sha-copy {
  border: 1px solid var(--line-inv);
  background: transparent;
  color: var(--ink-inv);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
}
.sha-copy:hover { border-color: var(--signal); color: var(--signal); }

.release-notes-box {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line-inv);
  background: var(--surface-inv-2);
}
.rn-hd { font-size: 10.5px; color: var(--signal); margin-bottom: 4px; font-weight: 700; }
.rn-body { font-size: 12.5px; color: var(--ink-inv-muted); line-height: 1.6; white-space: pre-line; }

.steps-hd { font-size: 11px; letter-spacing: 0.06em; color: var(--ink-inv-muted); margin-bottom: 12px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps-list li { display: flex; align-items: flex-start; gap: 12px; }
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1px solid var(--signal);
  color: var(--signal);
  font-size: 11px;
  font-weight: 700;
}
.steps-list strong { display: block; font-size: 14px; margin-bottom: 2px; }
.steps-list p { margin: 0; font-size: 12.8px; color: var(--ink-inv-muted); }

/* ==========================================================================
   07 / FAQ & FOOTER
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.faq-intro h2 { margin: 10px 0 10px; font-size: 24px; line-height: 1.3; }
.faq-intro p { margin: 0; font-size: 13.8px; color: var(--ink-muted); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); background: var(--surface); padding: 0 18px; }
.faq-item summary {
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 16px; color: var(--signal); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 16px; font-size: 13.8px; color: var(--ink-muted); line-height: 1.72; }

.footer { padding: 26px 0; background: var(--bg-alt); font-size: 11.5px; color: var(--ink-faint); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-links { display: flex; align-items: center; gap: 10px; }
.footer-links a:hover { color: var(--ink); }

/* Prevent CSS Grid intrinsic min-content (e.g. 64-char SHA-256 / code blocks)
   from forcing 1fr tracks wider than their parent card on narrow viewports. */
.hero-grid > *,
.tut-body > *,
.solver-grid > *,
.app-shell > *,
.plate-panel > *,
.topo-diagram > *,
.topo-notes > *,
.plans-grid > *,
.chassis-grid > *,
.os-tabs > *,
.faq-grid > *,
.send-split > *,
.scene-grid-2 > *,
.scene-node-pair > *,
.desk-surface > * {
  min-width: 0;
}

.chassis-card,
.stage-frame,
.tut-deck,
.solver-wrap,
.app-mock,
.plate-shell,
.topo-card,
.plan-card {
  max-width: 100%;
}

/* ==========================================================================
   LARGE & ULTRAWIDE DESKTOP SCREENS (1600px / 1920px / 2560px+)
   ========================================================================== */
@media (min-width: 1600px) {
  html { font-size: 15.5px; }
  .wrap { max-width: min(92vw, 1840px); }
  .hero { padding: 64px 0 76px; }
  .hero-grid { grid-template-columns: 1fr 1.15fr; gap: 56px; }
  .hero-title { font-size: clamp(38px, 3.2vw, 52px); }
  .hero-lead { max-width: 660px; font-size: 15.5px; }
  .desk-surface { min-height: 340px; padding: 20px; }
  .tut-canvas { min-height: 360px; padding: 26px; }
  .app-shell { grid-template-columns: 256px 1fr; min-height: 340px; }
  .sec-header { grid-template-columns: 280px 1fr; gap: 36px; }
  .faq-grid { grid-template-columns: 360px 1fr; gap: 52px; }
  .chassis-card { padding: 42px 44px; }
  .chassis-desc { max-width: 760px; }
  .chassis-grid { gap: 48px; }
}

@media (min-width: 2100px) {
  html { font-size: 16px; }
  .wrap { max-width: min(92vw, 2160px); }
  .hero-grid { gap: 72px; }
  .plans-grid { gap: 24px; }
  .os-tabs { gap: 14px; }
}

/* ==========================================================================
   TOUCH DEVICES
   ========================================================================== */
@media (hover: none) {
  .sim-cursor { display: none !important; }
  .desk-surface { cursor: default; }
}

/* ==========================================================================
   TABLET & MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 1040px) {
  .hero-grid, .sec-header, .plate-panel.is-active, .chassis-grid, .faq-grid, .plans-grid, .tut-body, .solver-grid {
    grid-template-columns: 1fr;
  }
  .sec-header { gap: 10px; margin-bottom: 26px; }
  .os-tabs { grid-template-columns: repeat(2, 1fr); }
  .tut-tracks { grid-template-columns: repeat(2, 1fr); }
  .tut-track { border-bottom: 1px solid var(--line); }
  .tut-track:nth-child(2n) { border-right: none; }
  .tut-track:nth-last-child(-n+2) { border-bottom: none; }
  .tut-screen-col, .solver-symptoms { border-right: none; border-bottom: 1px solid var(--line-strong); }
  .scene-grid-2, .scene-node-pair { grid-template-columns: 1fr; }
  .scene-link-pill { justify-self: center; }
  .plate-tabs { grid-template-columns: repeat(2, 1fr); }
  .plate-tab { border-bottom: 1px solid var(--line); }
  .plate-tab:nth-child(2n) { border-right: none; }
  .plate-tab:nth-last-child(-n+2) { border-bottom: none; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { border-right: none; border-bottom: 1px solid var(--line-strong); }
  .app-sb-foot { display: none; }
  .kvm-layout-demo, .send-split { grid-template-columns: 1fr; }
  .kvm-arrow { text-align: center; transform: rotate(90deg); }
  .topo-diagram { grid-template-columns: 1fr; gap: 14px; padding: 24px 18px; }
  .topo-wire { padding: 12px 0; }
  .wire-badge { position: static; transform: none; display: inline-block; margin-top: 6px; }
  .topo-notes { grid-template-columns: 1fr; }
  .topo-note { border-right: none; border-bottom: 1px solid var(--line); }
  .topo-note:last-child { border-bottom: none; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
}

@media (max-width: 640px) {
  html { font-size: 14.5px; }
  .wrap { padding: 0 14px; }

  /* Header & Spec Strip */
  .spec-strip-inner { height: auto; min-height: 32px; padding: 5px 14px; gap: 8px; }
  .spec-strip-left .muted, .spec-strip-left .sep,
  .spec-strip-right .muted, .spec-strip-right .sep { display: none; }
  .masthead-inner { height: 54px; gap: 10px; }
  .brand { gap: 7px; min-width: 0; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-name { font-size: 15.5px; }
  .brand-tag { font-size: 10px; padding: 1px 4px; }
  .nav-dl-btn { height: 34px; padding: 0 10px; font-size: 12px; gap: 6px; }
  .nav-dl-btn .btn-sub { display: none; }
  .menu-btn { height: 34px; padding: 0 10px; }
  .mobile-drawer-inner { gap: 8px; }
  .mobile-drawer-inner a { padding: 10px 10px; font-size: 12.5px; }

  /* Hero */
  .hero { padding: 26px 0 38px; }
  .hero-grid { gap: 24px; }
  .kicker { font-size: 10px; gap: 7px; margin-bottom: 12px; flex-wrap: wrap; }
  .hero-title { font-size: clamp(25px, 7.2vw, 33px); line-height: 1.22; margin-bottom: 14px; }
  .hero-lead { font-size: 13.8px; line-height: 1.68; margin-bottom: 20px; }
  .hero-actions { flex-direction: column; gap: 10px; margin-bottom: 22px; }
  .hero-actions .btn {
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 10px 14px;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
  .readout-strip { grid-template-columns: repeat(2, 1fr); }
  .readout-cell { padding: 10px; }
  .readout-cell:nth-child(2) { border-right: none; }
  .readout-cell:nth-child(1), .readout-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .readout-cell dd { font-size: 14.5px; }

  /* Interactive Stage */
  .stage-frame, .tut-deck, .app-mock {
    box-shadow: 3px 3px 0 var(--bg-alt), 3px 3px 0 1px var(--line-strong);
  }
  .reg-mark { display: none; }
  .stage-bar { flex-wrap: wrap; gap: 6px; padding: 8px 10px; font-size: 10.5px; }
  .desk-surface { grid-template-columns: 1fr; gap: 10px; padding: 10px; min-height: auto; }
  .desk-seam { display: none; }
  .stage-controls { padding: 9px 10px; gap: 8px; }
  .ctrl-chip { height: auto; min-height: 32px; padding: 4px 10px; font-size: 11.5px; }
  .stage-telemetry { width: 100%; font-size: 10.5px; }
  .stage-caption { font-size: 11px; line-height: 1.5; }

  /* Sections */
  .section { padding: 44px 0; }
  .sec-title-block h2 { font-size: clamp(21px, 5.8vw, 26px); }
  .sec-title-block p { font-size: 13.8px; }

  /* Tutorials & Solver */
  .tut-track { padding: 10px 11px; }
  .tut-track strong { font-size: 12.5px; }
  .tut-screen-bar { flex-wrap: wrap; gap: 6px; padding: 8px 10px; font-size: 10.5px; }
  .tut-canvas { min-height: 220px; padding: 12px; gap: 10px; }
  .scene-inner { padding: 10px; gap: 8px; }
  .scene-field { flex-wrap: wrap; font-size: 11.5px; padding: 7px 8px; word-break: break-word; }
  .scene-btn-row { flex-wrap: wrap; }
  .tut-steps-col { padding: 12px; }
  .tut-step-item { padding: 9px 10px; }
  .solver-wrap { margin-top: 22px; }
  .solver-head { padding: 14px; }
  .solver-head h3 { font-size: 16px; }
  .solver-sym-btn { padding: 11px 14px; font-size: 13px; }
  .solver-answer { padding: 14px; gap: 12px; }

  /* App Interface Showcase */
  .app-titlebar { flex-wrap: wrap; gap: 6px; padding: 8px 10px; font-size: 10.5px; }
  .app-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 10px;
  }
  .app-sb-group { grid-column: 1 / -1; padding: 0 2px 4px; }
  .app-sb-item {
    height: auto;
    min-height: 36px;
    padding: 6px 8px;
    font-size: 12px;
    border-color: var(--line);
    background: var(--surface);
  }
  .app-main { padding: 12px; -webkit-overflow-scrolling: touch; }
  .app-table { min-width: 500px; font-size: 12px; }
  .app-table th, .app-table td { padding: 8px 9px; }
  .send-row { flex-wrap: wrap; gap: 4px; }
  .qr-mock { flex-wrap: wrap; gap: 10px; }

  /* Spec Plates */
  .plate-tab { padding: 11px 12px; }
  .tab-label { font-size: 13.5px; }
  .plate-body { padding: 16px 14px; }
  .plate-left h3 { font-size: 18px; }
  .bp-kv { flex-wrap: wrap; gap: 4px 10px; }

  /* Topology */
  .topo-btn {
    min-width: 0;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 11px 12px;
    font-size: 11.5px;
    justify-content: flex-start;
  }
  .topo-btn:last-child { border-bottom: none; }
  .topo-diagram { padding: 16px 14px; }
  .topo-note { padding: 14px; }

  /* Comparison Ledger */
  .ledger-wrap { -webkit-overflow-scrolling: touch; }
  .ledger { min-width: 620px; font-size: 12.5px; }
  .ledger th, .ledger td { padding: 10px 11px; }
  .ledger th:first-child, .ledger td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface);
    box-shadow: 2px 0 0 var(--line);
  }
  .ledger thead th:first-child { background: var(--bg-alt); }

  /* Plans & Contact */
  .plan-card { padding: 18px 16px; }
  .contact-banner { padding: 16px; }
  .contact-actions { width: 100%; }
  .contact-actions .btn { flex: 1; min-width: 140px; }

  /* Download Chassis */
  .chassis-card { padding: 20px 14px; }
  .chassis-top { flex-direction: column; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; }
  .chassis-title { font-size: 22px; }
  .chassis-desc { font-size: 13.5px; }
  .chassis-version {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
  }
  .ver-big { font-size: 21px; }
  .os-tabs { grid-template-columns: 1fr; gap: 8px; margin-bottom: 18px; }
  .os-tab { padding: 11px 12px; }
  .dl-btn-wrap .btn {
    width: 100%;
    height: auto;
    min-height: 46px;
    padding: 10px 14px;
    white-space: normal;
    flex-wrap: wrap;
    text-align: center;
    gap: 6px 10px;
  }
  .dl-btn-wrap .btn-sub { border-left: none; padding-left: 0; }
  .sha-row { flex-wrap: wrap; gap: 6px 8px; min-width: 0; max-width: 100%; }
  .sha-val {
    flex: 1 1 100%;
    order: 3;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    word-break: break-all;
    overflow: visible;
    text-overflow: clip;
    font-size: 10.5px;
    line-height: 1.45;
  }
  .sha-copy { margin-left: auto; padding: 4px 10px; }
  .release-notes-box, .os-tip-box { max-width: 100%; overflow-wrap: anywhere; }
  .chassis-grid { gap: 24px; }

  /* FAQ & Footer */
  .faq-intro h2 { font-size: 21px; }
  .faq-item { padding: 0 14px; }
  .faq-item summary { font-size: 14px; padding: 14px 0; }
  .footer { padding: 22px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; line-height: 1.7; }
  .footer-links { flex-wrap: wrap; gap: 8px; }
}
