/* ---------- Tokens ---------- */
:root {
  --bg: #f6f8fb;
  --bg-alt: #edf1f6;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --border: #d9e1ea;
  --text: #1f3146;
  --muted: #546579;
  --accent: #d9620b;       /* 圖示橘，加深以符合淺色對比 */
  --accent-ink: #ffffff;
  --accent-soft: #fdeadb;
  --teal: #00705e;
  --teal-soft: #d2ece6;
  --code-bg: #0f1722;
  --code-text: #d7e5f0;
  --shadow: 0 1px 2px rgba(20, 35, 55, .06), 0 8px 24px rgba(20, 35, 55, .08);
  --shadow-lg: 0 2px 6px rgba(20, 35, 55, .06), 0 30px 60px -12px rgba(20, 35, 55, .22);
  --desk-bg: #cfd9e4;
  --desk-win: #ffffff;
  --radius: 14px;
  --font: "Segoe UI", "Microsoft JhengHei UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1119;
    --bg-alt: #0f1722;
    --surface: #141d29;
    --surface-2: #1a2533;
    --border: #253446;
    --text: #d7e5f0;
    --muted: #9aaabe;
    --accent: #f5821f;
    --accent-ink: #1a0d02;
    --accent-soft: rgba(245, 130, 31, .14);
    --teal: #4ed7b9;
    --teal-soft: rgba(78, 215, 185, .14);
    --code-bg: #0a0f16;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 70px -12px rgba(0, 0, 0, .6);
    --desk-bg: #1b2736;
    --desk-win: #233042;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b1119;
  --bg-alt: #0f1722;
  --surface: #141d29;
  --surface-2: #1a2533;
  --border: #253446;
  --text: #d7e5f0;
  --muted: #9aaabe;
  --accent: #f5821f;
  --accent-ink: #1a0d02;
  --accent-soft: rgba(245, 130, 31, .14);
  --teal: #4ed7b9;
  --teal-soft: rgba(78, 215, 185, .14);
  --code-bg: #0a0f16;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 70px -12px rgba(0, 0, 0, .6);
  --desk-bg: #1b2736;
  --desk-win: #233042;
  color-scheme: dark;
}

/* 依主題切換實際截圖：預設（淺色）顯示 light，深色時顯示 dark */
.shot__img--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot__img--dark { display: block; }
  :root:not([data-theme="light"]) .shot__img--light { display: none; }
}
:root[data-theme="dark"] .shot__img--dark { display: block; }
:root[data-theme="dark"] .shot__img--light { display: none; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
a { color: inherit; }
p a, .lead a { color: var(--accent); text-underline-offset: 3px; }
code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: .05em .4em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
kbd {
  font-family: var(--mono);
  font-size: .8em;
  display: inline-block;
  min-width: 1.6em;
  text-align: center;
  padding: .1em .45em;
  border-radius: 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  background: var(--surface);
  color: var(--text);
  line-height: 1.5;
  white-space: nowrap;
}
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  text-decoration: none; color: var(--muted); font-size: .92rem;
  padding: 6px 12px; border-radius: 8px; white-space: nowrap;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }

.theme-switch {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
}
.theme-switch button {
  width: 30px; height: 28px; display: grid; place-items: center;
  border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer;
}
.theme-switch button svg { width: 17px; height: 17px; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-checked="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }

/* GitHub mark: filled path from the inline sprite */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.gh-mark { fill: currentColor; stroke: none; }
.gh-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.gh-link .gh-mark { width: 18px; height: 18px; flex: none; }
.gh-link:hover { border-color: var(--accent); }
.nav .gh-link { margin-right: -10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; stroke-width: 2.2; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn--ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--lg { padding: 14px 28px; flex-direction: column; gap: 2px; font-size: 1.02rem; }
.btn__row { display: inline-flex; align-items: center; gap: 8px; }
.btn--lg small { font-weight: 500; font-size: .78rem; opacity: .85; white-space: nowrap; }

/* ---------- Screenshots ---------- */
.shot { margin: 0; }
.shot__img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.shot figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 340px at 50% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(600px 300px at 0% 75%, color-mix(in srgb, var(--teal) 10%, transparent), transparent 70%),
    radial-gradient(600px 300px at 100% 70%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
}
.hero__copy { max-width: 780px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 20px; }
.hl { color: var(--accent); white-space: nowrap; }
.lead { color: var(--muted); font-size: 1.08rem; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 28px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; color: var(--muted); font-size: .88rem; }
.facts strong { display: block; color: var(--text); font-size: 1.15rem; }
.shot--hero { margin-top: 56px; }
.shot--hero .shot__img { max-width: 1040px; margin: 0 auto; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { margin-bottom: 44px; max-width: 720px; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
.section__lead { color: var(--muted); margin-top: 14px; }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.mode h3 { font-size: 1.15rem; margin: 18px 0 8px; }
.mode p { color: var(--muted); font-size: .95rem; }
.mode__art {
  position: relative; aspect-ratio: 16 / 8; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, var(--desk-bg), color-mix(in srgb, var(--desk-bg) 75%, var(--teal)));
}
.mode__art span { position: absolute; border: 2px solid var(--accent); border-radius: 3px; }
.mode__art--region span { left: 22%; top: 24%; width: 42%; height: 50%; box-shadow: 0 0 0 999px rgba(5,10,18,.5); }
.mode__art--region span::after { content: "640 × 360"; position: absolute; left: -2px; top: calc(100% + 4px); font: 600 10px/1 var(--mono); color: #fff; background: var(--accent); padding: 3px 5px; border-radius: 3px; }
.mode__art--desktop { display: flex; gap: 6%; padding: 9% 7%; }
.mode__art--desktop span { position: relative; flex: 1.2; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.mode__art--desktop span + span { flex: 1; margin-top: 4%; }
.mode__art--window span { left: 20%; top: 18%; width: 52%; height: 62%; background: var(--desk-win); box-shadow: 0 0 0 4px var(--accent-soft); }
.mode__art--window::before { content: ""; position: absolute; left: 50%; top: 40%; width: 40%; height: 46%; background: color-mix(in srgb, var(--desk-win) 60%, transparent); border-radius: 3px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature svg {
  width: 40px; height: 40px; padding: 8px; border-radius: 10px;
  color: var(--accent); background: var(--accent-soft); margin-bottom: 14px;
}
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .9rem; }

/* Tabs（標註展示、MCP 用戶端） */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 14px; }
.tabs button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 600;
  padding: 6px 14px; border-radius: 7px; cursor: pointer;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.tabs--sm { margin-bottom: 0; }
.tabs--sm button { font-size: .82rem; padding: 4px 12px; }

/* Annotate */
.annotate { display: grid; grid-template-columns: .78fr 1.22fr; gap: 56px; align-items: center; }
.annotate__copy > p { color: var(--muted); margin-top: 16px; }
.annotate__stage { min-width: 0; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: .95rem; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg);
}

.playground { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.toolbar__group { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); }
.toolbar button {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 9px;
  border: 0; border-radius: 7px; background: transparent; color: var(--muted);
  font: inherit; font-size: .84rem; cursor: pointer;
}
.toolbar button svg { width: 17px; height: 17px; }
.toolbar button:hover { color: var(--text); background: var(--surface-2); }
.toolbar button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.toolbar button:disabled { opacity: .35; cursor: default; background: transparent; }
#fillToggle[aria-pressed="true"] svg { fill: currentColor; }
.swatches { align-items: center; padding: 2px 6px; gap: 4px; }
.toolbar .swatch { width: 22px; height: 22px; padding: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.toolbar .swatch:hover { background: var(--c); transform: scale(1.1); }
.toolbar .swatch[aria-pressed="true"] { background: var(--c); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
#board { display: block; width: 100%; height: auto; aspect-ratio: 960 / 600; cursor: crosshair; touch-action: none; background: var(--desk-bg); }
.playground__foot { font-size: .8rem; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--border); }

/* ---------- MCP ---------- */
.section--mcp { position: relative; }
.section--mcp::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 320px at 100% 0%, var(--teal-soft), transparent 70%);
}
.mcp { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.mcp h3 { font-size: 1.05rem; margin-bottom: 14px; }
.mcp__tools, .mcp__setup { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; min-width: 0; }
.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tools li { padding: 12px 0; border-top: 1px dashed var(--border); }
.tools li:first-child { border-top: 0; padding-top: 0; }
.tools li > code { font-size: .86rem; font-weight: 600; color: var(--teal); background: var(--teal-soft); border-color: transparent; }
.tools p { color: var(--muted); font-size: .9rem; margin-top: 6px; }

.setup-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: .95rem; }
.setup-steps + .code-tabs { margin-top: 12px; }
.code-tabs + .setup-steps { margin-top: 18px; }
.setup-steps a { color: var(--accent); }
.code-tabs { display: grid; gap: 8px; }
.code { position: relative; background: var(--code-bg); color: var(--code-text); border-radius: 10px; padding: 14px 16px; border: 1px solid var(--border); }
.code pre { margin: 0; overflow-x: auto; }
.code pre code { background: none; border: 0; padding: 0; color: inherit; font-size: .84rem; overflow-wrap: normal; white-space: pre; }
.code__note { font-size: .8rem; color: #9aaabe; margin-bottom: 6px; padding-right: 60px; }
.code__note code { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: inherit; }
.copy {
  position: absolute; top: 8px; right: 8px; font: inherit; font-size: .75rem; font-weight: 600;
  color: #d7e5f0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px; padding: 3px 9px; cursor: pointer;
}
.copy:hover { background: rgba(255,255,255,.16); }
#cpanel-code pre { padding-right: 56px; }
#cmd-code { white-space: pre-wrap; overflow-wrap: anywhere; }

.chat { margin-top: 12px; display: grid; gap: 8px; font-size: .88rem; }
.chat p { padding: 9px 13px; border-radius: 12px; max-width: 92%; }
.chat__you { justify-self: end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.chat__call { font-family: var(--mono); font-size: .78rem; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--border); }
.chat__call span { color: var(--teal); font-weight: 700; margin-right: 6px; }
.chat__ai { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }

.mcp-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.mcp-points article { padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.mcp-points h3 { font-size: 1rem; margin-bottom: 8px; }
.mcp-points p { color: var(--muted); font-size: .9rem; }
.mcp-points article:first-child { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }

.callout {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 18px 22px;
  border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.callout svg { width: 24px; height: 24px; flex: none; color: var(--accent); margin-top: 2px; }
.callout strong { display: block; margin-bottom: 4px; }
.callout p { font-size: .93rem; color: var(--text); }

/* Workflow */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { position: relative; padding: 24px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps__n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .92rem; }

.keys { margin-top: 48px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; }
.keys h3 { font-size: 1.05rem; margin-bottom: 14px; }
.keys dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.keys dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border); align-items: center; }
.keys dt { white-space: nowrap; font-size: .9rem; }
.keys dd { margin: 0; color: var(--muted); font-size: .9rem; text-align: right; }

/* Download */
.downloads { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.dl {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 18px 20px; align-items: start;
  padding: 28px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow);
}
.dl--main { background: radial-gradient(500px 200px at 100% 0%, var(--accent-soft), transparent 70%), var(--surface); }
.dl img { border-radius: 16px; }
.dl__icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 16px; background: var(--code-bg); color: #4ed7b9; }
.dl__icon svg { width: 34px; height: 34px; stroke-width: 2.2; }
.dl h3 { font-size: 1.2rem; }
.dl__copy p { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.dl .btn { grid-column: 1 / -1; justify-self: start; }
.repo {
  display: flex; align-items: center; gap: 16px; margin-top: 20px;
  padding: 18px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  color: var(--text); text-decoration: none; transition: border-color .15s;
}
.repo:hover { border-color: var(--accent); }
.repo > .gh-mark { width: 32px; height: 32px; flex: none; }
.repo__copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.repo__copy strong { font-size: 1rem; }
.repo__copy > span { color: var(--muted); font-size: .9rem; }
.repo__path { white-space: nowrap; }
.repo__arrow { width: 20px; height: 20px; flex: none; margin-left: auto; color: var(--muted); transition: color .15s; }
.repo:hover .repo__arrow { color: var(--accent); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.specs > div { padding: 24px 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.specs h3 { font-size: 1rem; margin-bottom: 10px; }
.specs ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .93rem; }
.specs li + li { margin-top: 4px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: .95rem; }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: .85rem; }
.footer .gh-link { border: 0; padding: 0; color: var(--muted); font-weight: 500; font-size: .85rem; }
.footer .gh-link:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .mcp-points { grid-template-columns: repeat(2, 1fr); }
  .annotate { grid-template-columns: 1fr; gap: 36px; }
  .mcp { grid-template-columns: 1fr; }
  .downloads { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav .gh-link { margin-left: auto; }
  .hero { padding: 48px 0 64px; }
  .shot--hero { margin-top: 40px; }
  .modes { grid-template-columns: 1fr; }
  .keys dl { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav .gh-link { padding: 5px 7px; }
  .gh-link__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .repo { padding: 16px 18px; gap: 14px; }
  .features, .steps, .mcp-points { grid-template-columns: 1fr; }
  .facts { gap: 12px 24px; }
  .toolbar button span { display: none; }
  .toolbar #fillToggle span { display: inline; }
  .keys { padding: 20px; }
  .keys dl div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .keys dd { text-align: left; }
  .mcp__tools, .mcp__setup { padding: 20px; }
  .dl { padding: 22px; grid-template-columns: 1fr; }
  .dl img, .dl__icon { width: 56px; height: 56px; }
  .dl .btn { justify-self: stretch; }
  .shot__img { border-radius: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
