:root {
  --bg: #0c0e12;
  --bg-2: #101319;
  --panel: #151922;
  --panel-2: #1b202b;
  --line: #242a36;
  --line-2: #313848;
  --text: #eceef2;
  --text-2: #c3c8d2;
  --muted: #8a92a0;
  --accent: #5ab4e6;
  --accent-2: #7cc4ec;
  --accent-soft: rgba(90, 180, 230, .12);
  --accent-text: #08151e;
  --radius: 12px;
  --radius-sm: 8px;
  --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#view { flex: 1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { letter-spacing: -.01em; }
code, kbd { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--text); }
kbd { background: var(--panel-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 24px; }
.eyebrow { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.lead { color: var(--text-2); font-size: 17px; margin: 0; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(12, 14, 18, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: var(--accent-text); font-size: 15px; }
.brand-accent { color: var(--accent); }
.topnav { display: flex; gap: 4px; flex: 1; }
.topnav a { color: var(--muted); padding: 6px 12px; border-radius: 7px; font-weight: 500; }
.topnav a:hover { color: var(--text); }
.topnav a.active { color: var(--text); background: var(--panel); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.lang { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 7px; height: 36px; padding: 0 10px; font-size: 13px; font-weight: 600; }
.lang:hover { color: var(--text); border-color: var(--line-2); }
.cart-btn { position: relative; display: grid; place-items: center; width: 40px; height: 36px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.cart-btn:hover { border-color: var(--line-2); }
.badge { position: absolute; top: -6px; right: -6px; background: var(--accent); color: var(--accent-text); border-radius: 99px; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 5px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-text); border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: 9px 16px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--panel-2); border-color: #414a5c; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-full { width: 100%; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.icon-btn:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.hero-inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px; padding-top: 88px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 18px; max-width: 760px; font-weight: 800; }
.hero .lead { max-width: 560px; font-size: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.stats { display: flex; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.stats div { padding: 18px 26px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats dt { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.stats dd { margin: 0; color: var(--muted); font-size: 13px; }

.why { border-bottom: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.why-item { padding: 28px 24px 28px 0; }
.why-item + .why-item { padding-left: 24px; border-left: 1px solid var(--line); }
.why-item h3 { font-size: 15px; margin: 0 0 6px; }
.why-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- shop ---------- */
.demo-note { background: var(--panel); border: 1px dashed var(--line-2); color: var(--muted); padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 14px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: none; border: 0; color: var(--muted); padding: 7px 14px; border-radius: 7px; white-space: nowrap; font-weight: 500; font-size: 14px; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tab .count { color: var(--muted); margin-left: 7px; font-size: 12px; }
.tab.active .count { color: var(--accent); }
.cat-info { margin: 14px 0 28px; min-height: 1.6em; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card-media { position: relative; }
.cover { aspect-ratio: 16 / 9; background: var(--panel-2); display: grid; place-items: center; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .cover img { transform: scale(1.03); }
.cover-initials { font-size: 40px; font-weight: 800; color: #3a4252; letter-spacing: -.04em; }
.card .cover { border-bottom: 1px solid var(--line); }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px 3px 6px; border-radius: 99px; }
.chip svg { width: 14px; height: 14px; }
.chip-video { left: 12px; top: 12px; background: rgba(12, 14, 18, .82); border: 1px solid var(--line-2); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 18px; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.price { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.card-link { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); transition: all .2s; }
.card:hover .card-link { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

/* ---------- product page ---------- */
.product { padding-top: 28px; padding-bottom: 80px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.crumbs a:hover { color: var(--text); }
.crumbs span:last-child { color: var(--text-2); }
.product-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "media buy" "info buy"; column-gap: 40px; align-items: start; }
.product-media { grid-area: media; }
.buybox { grid-area: buy; }
.product-info { grid-area: info; min-width: 0; }

.stage { position: relative; aspect-ratio: 16 / 9; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stage .cover { height: 100%; aspect-ratio: auto; }
.cover-lg .cover-initials { font-size: 84px; }
.stage-img, .video-frame { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.stage-note { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; background: rgba(12, 14, 18, .82); border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 12px 5px 8px; font-size: 13px; color: var(--muted); }
.stage-note svg { width: 16px; height: 16px; }
.video-poster { position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: #000; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video-poster:hover img { opacity: 1; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--accent-text); transition: transform .2s; }
.play svg { width: 30px; height: 30px; margin-left: 3px; }
.video-poster:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumb { position: relative; flex: 0 0 120px; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--panel); opacity: .65; }
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .3); }

.buybox { position: sticky; top: 88px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.buybox h1 { font-size: 32px; line-height: 1.15; margin: 6px 0 10px; letter-spacing: -.025em; }
.buybox .lead { font-size: 15px; }
.buy-price { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 22px 0 16px; }
.buy-soon { display: grid; gap: 10px; }
.buy-soon .tax-note { margin: 0; }
.tax-note { color: var(--muted); font-size: 12px; margin: -14px 0 16px; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.specs { margin: 24px 0 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--text-2); }
.buy-links { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.buy-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; font-size: 14px; }
.buy-links a:hover { color: var(--accent-2); }
.buy-links svg { width: 16px; height: 16px; }

.ptabs { display: flex; gap: 4px; margin-top: 32px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ptab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 12px 16px; margin-bottom: -1px; font-weight: 600; white-space: nowrap; }
.ptab:hover { color: var(--text); }
.ptab.active { color: var(--text); border-bottom-color: var(--accent); }
.ppanel { padding-top: 32px; max-width: 860px; }

.prose { color: var(--text-2); font-size: 16px; line-height: 1.75; }
.prose h1, .prose h2, .prose h3 { color: var(--text); line-height: 1.3; margin: 1.6em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--accent); }
.prose img { border-radius: var(--radius-sm); margin: 16px 0; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feature-check { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent); }
.feature h4 { margin: 2px 0 4px; font-size: 15px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.related { margin-top: 80px; }
.related h2 { font-size: 22px; margin: 0 0 20px; }

/* ---------- steps / code ---------- */
.steps { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: s; }
.step { position: relative; display: flex; gap: 18px; padding-bottom: 28px; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 1px; background: var(--line); }
.step-num { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; color: var(--accent); }
.step-body { min-width: 0; flex: 1; padding-top: 4px; }
.step-body h4 { margin: 0 0 6px; font-size: 16px; }
.step-body p { margin: 0; color: var(--text-2); }
.step-body a { color: var(--accent); }

.code { margin-top: 14px; background: #090b0e; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); font: 12px var(--mono); color: var(--muted); }
.copy { background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 12px; padding: 2px 10px; }
.copy:hover { color: var(--text); border-color: var(--line-2); }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 13px/1.65 var(--mono); color: #d6dbe4; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; background: var(--bg-2); }
.table th, .table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { white-space: nowrap; }
.table td { color: var(--text-2); }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 80px; }
.docs-nav { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.docs-nav a { color: var(--muted); padding: 7px 12px; border-radius: 7px; font-size: 14px; font-weight: 500; border-left: 2px solid transparent; }
.docs-nav a:hover { color: var(--text); }
.docs-nav a.active { color: var(--text); background: var(--panel); border-left-color: var(--accent); border-radius: 0 7px 7px 0; }
.docs-nav-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; padding: 18px 12px 6px; }
.docs-body { max-width: 820px; }
.docs-body h1 { font-size: 38px; letter-spacing: -.03em; margin: 6px 0 10px; }
.docs-body h2 { font-size: 22px; margin: 44px 0 20px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-2); }
.help-box { margin-top: 36px; padding: 16px 18px; background: var(--accent-soft); border: 1px solid rgba(90, 180, 230, .25); border-radius: var(--radius-sm); color: var(--text-2); font-size: 14px; }
.help-box a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; margin-left: 4px; }
.help-box svg { width: 14px; height: 14px; vertical-align: middle; }

.notfound { text-align: center; }
.notfound h1 { font-size: 72px; margin: 0; letter-spacing: -.04em; }
.loading { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.yt-note { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); font-size: 12px; color: var(--muted); background: rgba(12, 14, 18, .82); border-radius: 6px; padding: 3px 10px; }
.video-poster { background: var(--panel-2); }

.legal { padding-top: 48px; padding-bottom: 80px; }
.legal-body { max-width: 760px; font-size: 15px; }
.legal-body h1 { font-size: 36px; letter-spacing: -.03em; margin-bottom: 24px; }
.legal-body h2 { font-size: 20px; margin-top: 2em; }
.legal-body h3 { font-size: 16px; }
.hint a { color: var(--text-2); text-decoration: underline; }

/* ---------- drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 50; display: flex; }
.drawer-overlay { justify-content: flex-end; }
.drawer { background: var(--panel); border-left: 1px solid var(--line); width: 100%; max-width: 420px; display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 18px; }
.cart-list { list-style: none; margin: 0; padding: 8px 22px; flex: 1; overflow-y: auto; }
.cart-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cover-xs { flex: 0 0 72px; border-radius: 6px; border: 1px solid var(--line); }
.cover-xs .cover-initials { font-size: 16px; }
.cart-info { flex: 1; display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.cart-info .name { font-weight: 600; }
.remove { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 4px; }
.remove:hover { color: #e5767a; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.total strong { font-size: 22px; }
.hint { color: var(--muted); font-size: 12px; margin: 12px 0 0; text-align: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 48px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-grid p { max-width: 380px; margin: 12px 0 0; }
.footer h4 { margin: 0 0 12px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: var(--text-2); }
.footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line-2); padding: 11px 18px; border-radius: 10px; z-index: 60; font-size: 14px; max-width: calc(100% - 32px); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; padding-top: 64px; padding-bottom: 52px; gap: 36px; }
  .stats { align-self: start; width: max-content; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item, .why-item + .why-item { padding: 22px 20px 22px 0; border-left: 0; }
  .why-item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .why-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .product-top { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "media" "buy" "info"; gap: 24px; }
  .ptabs { margin-top: 8px; }
  .buybox { position: static; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .docs-nav a, .docs-nav a.active { border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; }
  .docs-nav a.active { border-color: var(--accent); }
  .docs-nav-label { display: none; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 44px 16px; }
  .topbar-inner { gap: 12px; }
  .brand { font-size: 16px; }
  .topnav a { padding: 6px 8px; font-size: 14px; }
  .hide-sm { display: none; }
  .brand-accent { display: none; }
  .stats { width: 100%; }
  .stats div { flex: 1; padding: 14px 16px; }
  .stats dt { font-size: 24px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item, .why-item + .why-item, .why-item:nth-child(even) { padding: 18px 0; border-left: 0; }
  .why-item + .why-item { border-top: 1px solid var(--line); }
  .section-head h2 { font-size: 24px; }
  .buybox { padding: 22px 18px; }
  .buybox h1 { font-size: 26px; }
  .buy-actions { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 100px 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .docs-body h1 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .table td:first-child { white-space: normal; word-break: break-word; }
}

/* ---------- motion ---------- */
:root { --ease: cubic-bezier(.22, .8, .24, 1); }
html { scroll-behavior: smooth; }
body.no-scroll { overflow: hidden; }

.topbar { transition: background .25s, box-shadow .25s; }
.topbar.scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .6); }

/* page enter */
.page-enter { animation: page-in .45s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in { transition: opacity .6s var(--ease) var(--d, 0ms), transform .6s var(--ease) var(--d, 0ms), border-color .2s; }
.card.reveal.in:hover { transform: translateY(-3px); transition-delay: 0ms; }

/* category swap */
#shop-body { transition: opacity .16s ease, transform .16s ease; }
#shop-body.is-leaving { opacity: 0; transform: translateY(6px); }

/* tabs */
.tab, .ptab, .topnav a, .docs-nav a, .thumb, .lang, .cart-btn, .icon-btn, .copy, .remove { transition: color .18s, background .18s, border-color .18s, box-shadow .18s, opacity .18s, transform .18s; }
.panel-enter { animation: page-in .35s var(--ease); }

/* buttons */
.btn { transition: background .18s, border-color .18s, transform .12s, box-shadow .18s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled), .cart-btn:active, .tab:active, .thumb:active { transform: scale(.97); }
.card { transition: border-color .2s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .8); }
.card .card-link svg { transition: transform .25s var(--ease); }
.card:hover .card-link svg { transform: translateX(2px); }

/* images */
.cover img, .stage-img, .video-poster img, .thumb img { opacity: 0; transition: opacity .45s ease, transform .4s; }
.cover img.loaded, .stage-img.loaded, .video-poster img.loaded, .thumb img.loaded { opacity: 1; }
.video-poster img.loaded { opacity: .85; }
.video-poster:hover img.loaded { opacity: 1; }
.stage > * { transition: opacity .14s ease; }
.stage.is-swapping > * { opacity: 0; }

/* cart drawer */
.overlay { opacity: 0; transition: opacity .26s ease; }
.overlay.open { opacity: 1; }
.drawer { transform: translateX(100%); transition: transform .3s var(--ease); }
.overlay.open .drawer { transform: none; }
.badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } }
.cart-item { animation: page-in .3s var(--ease); }

/* toast */
.toast { opacity: 0; transform: translate(-50%, 14px); transition: opacity .25s ease, transform .3s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (hover: none) {
  .btn:hover:not(:disabled), .card.reveal.in:hover, .card:hover { transform: none; }
}

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

@media (max-width: 640px) {
  .copy { padding: 6px 12px; }
  .crumbs a { padding: 4px 0; }
  .buy-links a { padding: 4px 0; }
  .drawer { max-width: 100%; }
  .toast { bottom: 16px; }
}
@media (max-width: 640px) {
  .hero-cta .btn { flex: 1 1 100%; }
}
