:root {
  --paper: #fffaf0;
  --paper-warm: #fff6e6;
  --surface: #fffdf9;
  --ink: #2c2b28;
  --ink-soft: #363736;
  --muted: #726d63;
  --line: #ebe0cd;
  --gold: #ffb90f;
  --gold-deep: #e89a08;
  --amber: #f5a623;
  --shadow-sm: 0 10px 30px rgba(90, 66, 20, .08);
  --shadow-md: 0 22px 55px rgba(90, 66, 20, .14);
  --radius: 20px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 88% 4%, rgba(255, 185, 15, .16), transparent 65%),
    radial-gradient(700px 460px at 4% 38%, rgba(245, 166, 35, .08), transparent 70%);
}

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

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

:focus-visible { outline: 3px solid rgba(255, 185, 15, .7); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 240, .86);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(90, 66, 20, .05); }
.nav-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 600; color: #625d53; }
.nav-links a { position: relative; padding: 8px 0; transition: color .2s; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .22s;
}
.nav-links a:hover, .nav-links a.is-current { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-link {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  transition: border-color .2s, transform .2s;
}
.icon-link:hover { border-color: var(--gold); transform: translateY(-2px); }
.menu-toggle { display: none; border: 0; background: none; color: var(--ink); padding: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .22s, box-shadow .22s, background .22s, border-color .22s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #ffc93c, var(--gold)); color: #302b20; box-shadow: 0 10px 24px rgba(255, 185, 15, .32); }
.btn-primary:hover { box-shadow: 0 14px 28px rgba(255, 185, 15, .42); }
.btn-outline { background: rgba(255, 255, 255, .7); border-color: #ddd0b9; color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); background: #fff; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 78px 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg span { position: absolute; display: block; border-radius: 50%; filter: blur(2px); }
.hero-bg span:first-child {
  width: 560px; height: 560px; top: -230px; right: -110px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 203, 80, .42), rgba(255, 185, 15, 0) 68%);
}
.hero-bg span:last-child {
  width: 520px; height: 380px; bottom: -180px; left: -140px;
  background: radial-gradient(circle, rgba(255, 185, 15, .13), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.06fr .94fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid #f0dcae;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #8a6510;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}
.pulse-dot { width: 12px; height: 12px; }
.pulse-ring { fill: rgba(255, 185, 15, .45); transform-origin: 6px 6px; animation: pulse 2.2s ease-out infinite; }
.pulse-core { fill: var(--gold); }
@keyframes pulse { 0% { transform: scale(.7); opacity: .9; } 75%, 100% { transform: scale(2.6); opacity: 0; } }
.hero h1 {
  margin: 24px 0 20px;
  font-size: clamp(2.6rem, 4.1vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--gold-deep); }
.hero-lead { margin: 0 0 32px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.hero-lead code { background: #f8edd7; padding: 1px 7px; border-radius: 6px; font-size: .92em; color: #7d5c16; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-platforms { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 32px; color: #655f54; font-size: 13px; }
.platform-label { color: #9b9488; }
.platform { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.platform .icon { width: 17px; height: 17px; }

.hero-visual { position: relative; }
.app-window {
  position: relative;
  z-index: 1;
  border: 1px solid #e8dcc8;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-md), 0 2px 0 rgba(255, 255, 255, .8) inset;
  overflow: hidden;
}
.window-bar { height: 38px; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #f7f4ee; border-bottom: 1px solid #eee7db; }
.traffic { display: flex; gap: 6px; }
.traffic i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }
.window-title { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #6c675f; }
.window-spacer { flex: 1; }
.window-toolbar { height: 38px; display: flex; align-items: center; gap: 13px; padding: 0 16px; border-bottom: 1px solid #f0eadd; color: #7c776e; font-size: 12px; background: #fffdfa; }
.window-toolbar span { min-width: 13px; text-align: center; }
.window-toolbar b { font-weight: 800; color: #514c44; }
.window-toolbar i { font-style: italic; }
.window-toolbar .strike { text-decoration: line-through; }
.window-toolbar .divider { width: 1px; height: 17px; background: #e9e1d3; }
.window-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 328px; }
.editor-pane { display: flex; gap: 12px; padding: 18px 10px 18px 16px; background: #fffefb; border-right: 1px solid #f2ece1; overflow: hidden; }
.gutter { color: #c6bfb2; font: 12px/22px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-align: right; user-select: none; }
.code { flex: 1; font: 12px/22px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #5f5b53; white-space: nowrap; }
.t-meta { color: var(--gold-deep); font-weight: 700; }
.t-title { color: #2c2b28; font-weight: 800; }
.t-strong { color: #d88706; font-weight: 700; }
.t-check { color: #2f9e6d; }
.t-quote { color: #9b8e75; }
.preview-pane { padding: 22px 24px; background: #fff; overflow: hidden; }
.preview-pane h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.02em; }
.preview-pane p { margin: 0 0 10px; font-size: 11px; color: #888279; }
.preview-pane .strong { color: var(--gold-deep); font-weight: 700; }
.preview-art { position: relative; height: 92px; display: grid; place-items: center; overflow: hidden; }
.preview-art img { position: relative; z-index: 1; width: 88px; height: 88px; }
.preview-art svg { position: absolute; inset: auto 0 -6px; width: 100%; height: 78px; }
.preview-pane h4 { margin: 4px 0 10px; font-size: 13px; }
.preview-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 11.5px; color: #5c574f; }
.preview-list li { display: flex; align-items: center; gap: 8px; }
.preview-list .icon { width: 14px; height: 14px; color: var(--gold-deep); stroke-width: 2.6; }
.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px;
  border: 1px solid #efe4d0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 700;
  color: #5e574a;
}
.float-chip .icon { width: 16px; height: 16px; color: var(--gold-deep); }
.chip-a { top: -20px; right: -18px; transform: rotate(3deg); }
.chip-b { bottom: -18px; left: -24px; transform: rotate(-3deg); }

/* ---------- Shared sections ---------- */
.section { padding: 100px 0; }
.section-head { margin-bottom: 52px; }
.section-head.centered { max-width: 680px; margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; color: var(--gold-deep); font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.section-head h2, .workbench-copy h2, .theme-copy h2, .docs-intro h2, .about-brand h2 {
  margin: 14px 0 16px;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -.035em;
  font-weight: 800;
}
.section-head p, .workbench-copy p, .theme-copy p, .docs-intro p, .about-brand p { margin: 0; color: var(--muted); line-height: 1.85; }

/* ---------- Feature grid ---------- */
.features { border-top: 1px solid rgba(235, 224, 205, .6); }
.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.feature-card {
  padding: 28px 20px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-5px); border-color: #efd199; box-shadow: var(--shadow-sm); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 14px; background: #fff1d2; color: var(--gold-deep); }
.feature-icon .icon { width: 23px; height: 23px; }
.feature-card h3 { margin: 0 0 9px; font-size: 16px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

/* ---------- Workbench ---------- */
.workbench { background: linear-gradient(180deg, #fff8ea, #fffaf0); border-block: 1px solid rgba(235, 224, 205, .7); }
.workbench-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 68px; align-items: center; }
.text-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; font-size: 14px; color: #5d574d; }
.text-list li { display: flex; gap: 10px; align-items: flex-start; }
.text-list .icon { width: 18px; height: 18px; color: var(--gold-deep); margin-top: 3px; stroke-width: 2.4; }
.panel-demo { padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: #fffdf8; box-shadow: var(--shadow-md); }
.demo-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.demo-tab { padding: 7px 16px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #8a8375; font-size: 13px; font-weight: 700; }
.demo-tab.is-active { background: #fff0cd; border-color: #f3d99c; color: #8a6510; }
.demo-screen { height: 290px; overflow: hidden; border: 1px solid #efe7d9; border-radius: 14px; background: #fbfaf6; }
.demo-panel { display: flex; height: 100%; }
.demo-panel[hidden] { display: none; }
.demo-side { width: 34%; padding: 20px 14px; background: #f5f2ea; border-right: 1px solid #ece5d9; display: flex; flex-direction: column; gap: 10px; }
.demo-side-title { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #a49b8c; margin-bottom: 4px; }
.demo-file { font-size: 11px; color: #777066; padding: 5px 8px; border-radius: 6px; }
.demo-file.active { background: #ffe9b5; color: #6f5210; font-weight: 700; }
.demo-main { flex: 1; padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.demo-main.split { flex-direction: row; gap: 18px; }
.demo-main.split > div { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.demo-main.split > div:last-child { border-left: 1px dashed #e5dccc; padding-left: 18px; }
.demo-line { display: block; height: 9px; border-radius: 5px; background: #e9e3d7; }
.demo-line.w40 { width: 40%; } .demo-line.w45 { width: 45%; } .demo-line.w55 { width: 55%; }
.demo-line.w60 { width: 60%; } .demo-line.w65 { width: 65%; } .demo-line.w70 { width: 70%; }
.demo-line.w75 { width: 75%; } .demo-line.w80 { width: 80%; } .demo-line.w85 { width: 85%; }
.demo-line.w90 { width: 90%; } .demo-line.w95 { width: 95%; } .demo-line.w96 { width: 96%; }
.accent-line { background: #f7d88e; }
.demo-caret { position: absolute; left: calc(28px + 76%); top: 122px; width: 2px; height: 15px; background: var(--gold-deep); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-main.reading { max-width: 520px; margin: auto; }
.title-line { height: 18px; background: #d9cfbc; margin-bottom: 8px; }
.demo-caption { display: flex; align-items: center; gap: 8px; padding: 13px 6px 2px; color: #928a7c; font-size: 12px; }
.demo-caption .icon { width: 15px; height: 15px; color: var(--gold-deep); }

/* ---------- Capabilities ---------- */
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cap-card { padding: 28px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fffdf9; }
.cap-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: #fff1d2; color: var(--gold-deep); margin-bottom: 18px; }
.cap-card h3 { margin: 0 0 10px; font-size: 17px; }
.cap-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.cap-card code { font-size: .92em; background: #f8edd7; padding: 1px 5px; border-radius: 5px; color: #8a6510; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag-row span { padding: 4px 9px; border: 1px solid #f0e3c9; border-radius: 999px; background: #fff9ea; color: #9a7524; font-size: 11px; font-weight: 600; }

/* ---------- Themes ---------- */
.theme-section { background: var(--paper-warm); border-block: 1px solid rgba(235, 224, 205, .8); }
.theme-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.theme-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 30px; }
.swatch { display: inline-flex; align-items: center; gap: 7px; padding: 8px 9px; border: 1px solid #ecdfc6; border-radius: 10px; background: #fffdf8; color: #746d60; font-size: 11px; font-weight: 600; white-space: nowrap; transition: border-color .2s, transform .2s; }
.swatch:hover { transform: translateY(-2px); border-color: #e9c97f; }
.swatch.is-active { border-color: var(--gold-deep); box-shadow: 0 0 0 2px rgba(255, 185, 15, .18); color: var(--ink); }
.swatch span { width: 17px; height: 17px; flex: none; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); background: linear-gradient(135deg, var(--sw-bg) 0 58%, var(--sw-accent) 58%); }
.theme-preview {
  --demo-bg: #ffffff; --demo-panel: #f3f3f3; --demo-accent: #006ab1; --demo-fg: #1f2328; --demo-muted: #6b7280;
  border: 1px solid #e6d9c2;
  border-radius: 20px;
  background: var(--demo-bg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  color: var(--demo-fg);
  transition: background .3s, color .3s;
}
.theme-preview-bar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: var(--demo-panel); border-bottom: 1px solid color-mix(in srgb, var(--demo-fg) 12%, transparent); }
.theme-preview-bar span { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; opacity: .8; }
.theme-preview-bar span:nth-child(2) { background: #febc2e; }
.theme-preview-bar span:nth-child(3) { background: #28c840; }
.theme-preview-bar b { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--demo-muted); }
.theme-preview-body { display: flex; min-height: 260px; }
.theme-preview-rail { width: 76px; display: grid; align-content: start; gap: 12px; padding: 22px 16px; background: var(--demo-panel); }
.theme-preview-rail i { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--demo-fg) 16%, transparent); }
.theme-preview-rail i:first-child { background: var(--demo-accent); }
.theme-preview-page { flex: 1; padding: 30px 34px; }
.theme-preview-page h3 { margin: 0 0 12px; font-size: 21px; letter-spacing: -.02em; color: var(--demo-accent); }
.theme-preview-page p { margin: 0; font-size: 13px; color: var(--demo-muted); }
.theme-preview-code { display: grid; gap: 9px; margin-top: 24px; padding: 14px; border-radius: 10px; background: color-mix(in srgb, var(--demo-accent) 9%, transparent); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.theme-preview-code span:first-child { color: var(--demo-accent); font-weight: 700; }

/* ---------- Download ---------- */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.download-card { position: relative; padding: 34px 30px 30px; border: 1px solid var(--line); border-radius: 22px; background: #fffdf9; text-align: center; }
.download-card.is-featured { border-color: #f0c76f; box-shadow: var(--shadow-sm); }
.card-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: var(--gold); color: #4a3709; font-size: 11px; font-weight: 800; }
.download-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 16px; background: #fff1d2; color: var(--gold-deep); }
.download-icon .icon { width: 28px; height: 28px; }
.download-card h3 { margin: 0 0 5px; font-size: 20px; }
.download-card p { margin: 0; color: var(--muted); font-size: 13px; }
.artifact { display: inline-block; margin-top: 16px; padding: 5px 12px; border-radius: 999px; background: #faf3e4; color: #90703a; font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.download-note { margin: 32px auto 16px; text-align: center; color: var(--muted); font-size: 13px; }
.download-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; }
.download-links a { display: inline-flex; align-items: center; gap: 7px; color: #8a6510; font-size: 14px; font-weight: 700; }
.download-links a:hover { text-decoration: underline; }
.download-links .icon { width: 17px; height: 17px; }

/* ---------- Docs ---------- */
.docs { background: #fff8ec; border-block: 1px solid rgba(235, 224, 205, .7); }
.docs-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.doc-links { display: grid; gap: 12px; }
.doc-link { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf9; transition: border-color .2s, transform .2s, box-shadow .2s; }
.doc-link:hover { border-color: #f0c76f; transform: translateX(4px); box-shadow: var(--shadow-sm); }
.doc-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border-radius: 12px; background: #fff1d2; color: var(--gold-deep); }
.doc-link b { display: block; font-size: 15px; }
.doc-link small { display: block; color: var(--muted); font-size: 12px; }
.doc-arrow { margin-left: auto; color: #b0a693; width: 18px; height: 18px; }

/* ---------- About & footer ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; }
.about-brand img { width: 76px; height: 76px; margin-bottom: 20px; }
.about-brand p { max-width: 520px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-stats div { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf9; }
.about-stats strong { display: block; font-size: 30px; letter-spacing: -.03em; color: var(--gold-deep); }
.about-stats span { font-size: 13px; color: var(--muted); }
.site-footer { padding: 52px 0; background: #2b2a27; color: #f5efe3; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-brand .brand { font-size: 18px; }
.footer-brand p { margin: 10px 0 0; color: #a8a195; font-size: 12px; }
.footer-nav { display: flex; gap: 26px; font-size: 13px; color: #d7cfc0; }
.footer-nav a:hover { color: var(--gold); }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; color: #a8a195; }
.footer-meta a { color: #d7cfc0; }
.footer-meta a:hover { color: var(--gold); }
.footer-meta small { font-size: 11px; }

.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  z-index: 100;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 20px;
  border-radius: 999px;
  background: #2c2b28;
  color: #fffaf0;
  font-size: 13px;
  box-shadow: var(--shadow-md);
  transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { gap: 38px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .workbench-grid, .theme-grid, .docs-grid, .about-grid { gap: 42px; }
  .theme-swatches { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 78px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 18px;
    background: #fffaf0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links a::after { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .nav-actions .btn { display: none; }
  .hero { padding-top: 54px; }
  .hero-grid, .workbench-grid, .theme-grid, .docs-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .hero-visual { margin-top: 20px; }
  .download-grid { grid-template-columns: repeat(3, 1fr); }
  .download-card { padding: 28px 18px; }
  .footer-inner { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1180px); }
  .section { padding: 72px 0; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .hero-lead { font-size: 15px; }
  .feature-grid, .capability-grid, .theme-swatches { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .float-chip { display: none; }
  .window-body { min-height: 280px; }
  .preview-pane { padding: 16px; }
  .preview-art { height: 70px; }
  .preview-art img { width: 68px; height: 68px; }
  .code { font-size: 10px; }
  .gutter { font-size: 10px; }
  .demo-side { width: 40%; }
  .theme-preview-page { padding: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { align-items: flex-start; }
}

@media (max-width: 420px) {
  .feature-grid, .capability-grid, .theme-swatches, .about-stats { grid-template-columns: 1fr; }
  .hero-platforms { gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .editor-pane { gap: 6px; padding-left: 10px; }
  .window-toolbar { gap: 9px; }
}

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