/* ============================================================
   Cane Official Website — Graphite & Paper Studio Design System
   ============================================================ */

:root,
[data-theme="graphite"] {
  --bg: #17181b;
  --bg-alt: #1d1e22;
  --surface: #25262a;
  --surface-alt: #2e2f34;
  --surface-float: #2a2b30;
  --surface-sunken: #18191d;
  --control: #36383e;
  --control-hover: #43464e;
  --text: #e8e9ec;
  --text-muted: #9da1aa;
  --text-subtle: #787d87;
  --accent: #21a5e8;
  --accent-soft: rgba(33, 165, 232, 0.14);
  --primary: #0f8bc4;
  --primary-hover: #179cd8;
  --primary-ink: #ffffff;
  --positive: #37cb6e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.44);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.28);
  --grid-line: rgba(255, 255, 255, 0.032);
  --checker-a: #1a1c20;
  --checker-b: #202328;
  --radius-sm: 5px;
  --radius: 8px;
  --radius-lg: 12px;
  --font-sans: "Inter", "Segoe UI Variable", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[data-theme="paper"] {
  --bg: #fdf6e3;
  --bg-alt: #f5edd8;
  --surface: #eee8d5;
  --surface-alt: #e4ddc8;
  --surface-float: #f7f0e0;
  --surface-sunken: #dfd8c2;
  --control: #e5dec7;
  --control-hover: #dad1b4;
  --text: #3d5157;
  --text-muted: #657b83;
  --text-subtle: #7f9196;
  --accent: #268bd2;
  --accent-soft: rgba(38, 139, 210, 0.13);
  --primary: #217bbd;
  --primary-hover: #1b6ca8;
  --primary-ink: #fdf6e3;
  --positive: #5b7800;
  --border: rgba(88, 110, 117, 0.16);
  --border-strong: rgba(88, 110, 117, 0.28);
  --shadow: 0 16px 40px rgba(74, 65, 45, 0.14);
  --shadow-sm: 0 4px 14px rgba(74, 65, 45, 0.09);
  --grid-line: rgba(88, 110, 117, 0.06);
  --checker-a: #f5eedb;
  --checker-b: #ece4ce;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.brand-mark.small {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 140ms ease;
}

.main-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-pill {
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-pill:hover {
  background: var(--control);
  color: var(--text);
  border-color: var(--border-strong);
}

.theme-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, transform 100ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  height: 32px;
  padding: 0 13px;
  font-size: 13px;
}

.btn-lg {
  height: 42px;
  padding: 0 20px;
  font-size: 14.5px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--control);
}

.mobile-menu-btn {
  display: none;
  width: 34px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-menu-btn span {
  width: 15px;
  height: 1.5px;
  background: var(--text);
}

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 12px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer a {
  padding: 6px 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ---------- Hero ---------- */

.hero {
  padding: 52px 0 60px;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  border-bottom: 1px solid var(--border);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  margin: 0 0 18px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-subtitle {
  margin: 0 0 24px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-muted);
}

.hero-subtitle code,
.stage-caption code,
.plugin-card code,
.faq-item code {
  font-size: 0.9em;
  background: var(--surface-alt);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-pillars {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.hero-pillars li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-pillars strong {
  font-size: 13.5px;
  color: var(--text);
}

.hero-pillars span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Live ts-core Player ---------- */

.hero-stage {
  margin: 0;
}

.player-window {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.player-topbar {
  min-height: 44px;
  padding: 6px 12px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.char-switcher {
  display: inline-flex;
  gap: 4px;
  background: var(--surface-sunken);
  padding: 3px;
  border-radius: 6px;
}

.char-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.char-tab:hover {
  color: var(--text);
}

.char-tab.active {
  background: var(--control);
  color: var(--text);
  font-weight: 600;
}

.char-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.char-dot.ivory { background: #faf1db; }
.char-dot.cyan { background: #8ae0ff; }

.runtime-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 4px;
}

.player-viewport {
  position: relative;
  height: 390px;
  background-color: var(--checker-a);
  background-image:
    linear-gradient(45deg, var(--checker-b) 25%, transparent 25%),
    linear-gradient(-45deg, var(--checker-b) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--checker-b) 75%),
    linear-gradient(-45deg, transparent 75%, var(--checker-b) 75%);
  background-size: 28px 28px;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
  overflow: hidden;
}

.player-viewport canvas,
.mcp-viewport canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}


.viewport-hud {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.hud-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface-float) 88%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 9px;
  cursor: pointer;
  user-select: none;
}

.hud-check input {
  accent-color: var(--accent);
  margin: 0;
}

.player-stats {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface-float) 86%, transparent);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 8px;
}

.player-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface-sunken) 78%, transparent);
}

.player-loading[hidden] {
  display: none;
}

.noscript-note {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
}

.clip-bar,
.clip-picker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-muted);
}

.clip-bar {
  padding: 9px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.clip-select {
  min-width: 0;
  max-width: 100%;
  height: 30px;
  padding: 0 8px;
  font: inherit;
  color: var(--text);
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
}

.player-timeline {
  height: 42px;
  padding: 0 12px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tl-play {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--control);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tl-play:hover {
  background: var(--control-hover);
}

.tl-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  min-width: 92px;
  flex-shrink: 0;
}

.tl-track {
  position: relative;
  flex: 1;
  height: 20px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
}

.tl-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--accent-soft);
  pointer-events: none;
}

.tl-head {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--accent);
  pointer-events: none;
}

.stage-caption {
  margin: 10px 4px 0;
  font-size: 12.5px;
  color: var(--text-subtle);
  line-height: 1.6;
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head-row .section-head {
  margin-bottom: 0;
}

.section-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 750;
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- AI x MCP Demo ---------- */

.mcp-scenarios {
  display: inline-flex;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  margin-bottom: 16px;
  background: var(--surface-sunken);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.seg-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 5px;
}

.seg-tab:hover {
  color: var(--text);
}

.seg-tab.active {
  background: var(--control);
  color: var(--text);
  font-weight: 600;
}

.mcp-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
  align-items: start;
}

.chat-panel,
.mcp-preview-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.panel-bar {
  height: 42px;
  padding: 0 14px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.mcp-preview-panel {
  margin: 0;
}

.case-transcript {
  height: 460px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  scrollbar-color: var(--text-subtle) transparent;
}

.case-transcript:focus-visible {
  outline-offset: -2px;
}

html:lang(zh) .case-transcript [lang="en"],
html:lang(en) .case-transcript [lang="zh-CN"] {
  display: none;
}

.chat-feed {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.chat-msg p {
  margin: 0;
}

.chat-msg p + p,
.chat-msg table + p {
  margin-top: 0.7em;
}

.chat-msg.user {
  background: var(--surface-alt);
  border-color: var(--border-strong);
  align-self: flex-end;
  max-width: 90%;
}

.chat-msg.assistant {
  background: var(--surface-sunken);
  align-self: flex-start;
  max-width: 95%;
}

.chat-role {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
  margin-bottom: 4px;
}

.chat-msg.assistant .chat-role {
  color: var(--accent);
}

.chat-reference {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 225px;
  margin: 4px 0 10px;
  border-radius: var(--radius-sm);
}

.chat-msg a,
.chat-preview-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-preview-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: inherit;
}

.chat-table {
  border-collapse: collapse;
  margin-top: 0.7em;
  font-variant-numeric: tabular-nums;
}

.chat-table :is(th, td) {
  padding: 0.25em 0.8em;
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.chat-table th:first-child {
  padding-left: 0;
  text-align: left;
}

.mcp-viewport {
  position: relative;
  height: clamp(240px, 33vw, 440px);
  background-color: var(--checker-a);
  background-image:
    linear-gradient(45deg, var(--checker-b) 25%, transparent 25%),
    linear-gradient(-45deg, var(--checker-b) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--checker-b) 75%),
    linear-gradient(-45deg, transparent 75%, var(--checker-b) 75%);
  background-size: 28px 28px;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
}


/* ---------- Supported Engines & Runtimes ---------- */

.core-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.core-label {
  font-size: 13px;
  color: var(--text-muted);
}

.core-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 4px 10px;
}

.engine-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.engine-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 140ms ease, transform 140ms ease;
}

.engine-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.engine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.engine-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.engine-lang {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 4px;
}

.engine-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.62;
}

.repo-banner {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.repo-banner strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 2px;
}

.repo-banner p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
}

.repo-banner a {
  color: var(--accent);
}

.repo-banner a:hover {
  text-decoration: underline;
}

/* ---------- Plugins ---------- */

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plugin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plugin-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.plugin-card h3 {
  margin: 0;
  font-size: 17.5px;
}

.plugin-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.68;
}

/* ---------- Download & FAQ ---------- */

.download-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 42px;
}

.download-copy {
  max-width: 600px;
  margin-bottom: 24px;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dl-card {
  text-align: left;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

a.dl-card:hover {
  border-color: var(--accent);
  background: var(--control);
  transform: translateY(-2px);
}

.dl-card.primary-dl {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}

.dl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dl-os {
  font-size: 16.5px;
  font-weight: 700;
}

.dl-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 4px;
}

.dl-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
}

.dl-action {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}

.faq-block {
  max-width: 820px;
}

.faq-heading {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 16px;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.68;
}

.faq-item a {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
}


/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-layout,
  .mcp-stage {
    grid-template-columns: 1fr;
  }

  .mcp-preview-panel {
    grid-row: 1;
  }

  .mcp-viewport {
    max-height: 300px;
  }

  .engine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plugin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .case-transcript {
    height: min(360px, 60svh);
  }

  .main-nav,
  .header-actions .btn-primary {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .engine-grid,
  .download-cards {
    grid-template-columns: 1fr;
  }

  .download-panel {
    padding: 24px 18px;
  }
}
