/* macos-app.dev — design system (light by default, dark via toggle) */

:root {
  --bg: #f5f6fa;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f2f8;
  --surface-3: #e9ebf4;
  --border: rgba(18, 24, 48, .09);
  --border-2: rgba(18, 24, 48, .16);
  --text: #16192a;
  --muted: #5b6076;
  --faint: #8b90a5;
  --indigo: #5865f2;
  --indigo-2: #8b5cf6;
  --flame: #f4570f;
  --flame-2: #f59e0b;
  --green: #16a34a;
  --radius: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --accent: var(--indigo);
  --accent-2: var(--indigo-2);
  --accent-soft: rgba(88,101,242,.10);
  --accent-line: rgba(88,101,242,.38);
  --nav-bg: rgba(245,246,250,.8);
  --shadow: 0 2px 6px rgba(18,24,48,.04), 0 18px 44px -18px rgba(18,24,48,.12);
  --shadow-lg: 0 30px 70px -28px rgba(18,24,48,.25);
  --glow-1: rgba(88,101,242,.10);
  --glow-2: rgba(244,87,15,.08);
  --glow-3: rgba(139,92,246,.07);
}
[data-theme="dark"] {
  --bg: #08080d;
  --bg-2: #0c0c14;
  --surface: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --surface-3: rgba(255,255,255,.09);
  --border: rgba(255,255,255,.09);
  --border-2: rgba(255,255,255,.16);
  --text: #eceef4;
  --muted: #9a9db0;
  --faint: #6b6e80;
  --indigo: #6d7cff;
  --indigo-2: #9d6bff;
  --flame: #ff5f1f;
  --flame-2: #ffa11f;
  --green: #3ddc84;
  --accent-soft: rgba(109,124,255,.14);
  --accent-line: rgba(109,124,255,.4);
  --nav-bg: rgba(8,8,13,.75);
  --shadow: none;
  --shadow-lg: 0 40px 90px -30px rgba(0,0,0,.85);
  --glow-1: rgba(109,124,255,.15);
  --glow-2: rgba(255,95,31,.12);
  --glow-3: rgba(157,107,255,.07);
}
.theme-flame {
  --accent: var(--flame);
  --accent-2: var(--flame-2);
  --accent-soft: rgba(244,87,15,.09);
  --accent-line: rgba(244,87,15,.38);
}
[data-theme="dark"] .theme-flame,
[data-theme="dark"].theme-flame {
  --accent-soft: rgba(255,95,31,.13);
  --accent-line: rgba(255,95,31,.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .25s ease, color .25s ease;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 420px at 18% -8%, var(--glow-1), transparent 62%),
    radial-gradient(700px 420px at 85% -5%, var(--glow-2), transparent 62%),
    radial-gradient(900px 600px at 50% 118%, var(--glow-3), transparent 60%);
}
::selection { background: rgba(120,130,255,.35); }
a { color: var(--accent); }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-3); padding: 2px 7px; border-radius: 7px; }
kbd {
  font-family: var(--mono); font-size: 12px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-2); border-bottom-width: 2.5px;
  padding: 3px 8px; border-radius: 8px; color: var(--text);
}

/* ============ NAV ============ */
nav.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 48px);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--indigo), var(--flame)); font-size: 15px; color: #fff;
}
nav.top .links { display: flex; gap: 20px; font-size: 14px; align-items: center; }
nav.top .links a { color: var(--muted); text-decoration: none; transition: color .15s; }
nav.top .links a:hover, nav.top .links a.active { color: var(--text); }
nav.top .links a.cta {
  color: #fff; font-weight: 600; padding: 7px 16px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.theme-toggle {
  font-size: 15px; width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  display: grid; place-items: center; transition: border-color .15s;
}
.theme-toggle:hover { border-color: var(--border-2); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ============ BUTTONS / PILLS ============ */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted);
  border: 1px solid var(--border); background: var(--surface);
  padding: 6px 15px; border-radius: 999px; box-shadow: var(--shadow);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  color: #fff !important; text-decoration: none;
  padding: 14px 28px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 32px -12px var(--accent-line);
  transition: transform .15s ease, filter .15s ease;
  border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.ghost {
  background: var(--surface); color: var(--text) !important;
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
}
.ver-badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
}

/* ============ HERO (app pages) ============ */
.app-hero { display: flex; align-items: center; gap: clamp(24px, 4vw, 46px); padding: clamp(56px, 9vh, 96px) 0 48px; flex-wrap: wrap; }
.app-hero img.icon {
  width: clamp(120px, 16vw, 176px); height: auto;
  filter: drop-shadow(0 26px 44px rgba(18,24,48,.28));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-9px) } }
.app-hero .info { flex: 1; min-width: 300px; }
.app-hero h1 { font-size: clamp(36px, 5.5vw, 58px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.app-hero .tagline { font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin: 14px 0 24px; max-width: 560px; }
.app-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.app-hero .meta { font-size: 13px; color: var(--faint); margin-top: 14px; }

/* ============ SECTIONS ============ */
.sec-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.sec-sub { color: var(--muted); margin-bottom: 34px; max-width: 660px; }
section { padding: 44px 0; }

.grid { display: grid; gap: 18px; }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cell {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.cell:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.cell .ic { font-size: 22px; margin-bottom: 10px; display: block; }
.cell h4 { font-size: 15px; margin-bottom: 6px; letter-spacing: -.01em; }
.cell p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ============ WINDOW MOCKUP (always dark — reads like a screenshot) ============ */
.window {
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md); overflow: hidden;
  background: #101018; color: #eceef4;
  box-shadow: var(--shadow-lg);
}
.window .titlebar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); }
.window .titlebar .tl { width: 11px; height: 11px; border-radius: 50%; }
.window .titlebar .tl:nth-child(1) { background: #ff5f57; }
.window .titlebar .tl:nth-child(2) { background: #febc2e; }
.window .titlebar .tl:nth-child(3) { background: #28c840; }
.window .titlebar .title { margin-left: 8px; font-size: 12px; color: #8b90a5; }
.window .body { padding: 18px; font-size: 13.5px; }

/* ============ CODE BLOCKS (always dark) ============ */
.codeblock { position: relative; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); overflow: hidden; background: #0d0d15; margin: 14px 0; box-shadow: var(--shadow); }
.codeblock .cb-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); }
.codeblock .cb-lang { font-family: var(--mono); font-size: 11px; color: #9a9db0; font-weight: 600; }
.codeblock pre { padding: 16px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: #dfe2ee; }
.codeblock pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.copy-btn {
  font-size: 11.5px; color: #9a9db0; background: none; border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: 3px 10px; cursor: pointer; font-family: inherit;
  transition: color .15s, border-color .15s;
}
.copy-btn:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.copy-btn.ok { color: #3ddc84; border-color: rgba(61,220,132,.4); }
.tok-k { color: #c792ea; } .tok-s { color: #ecc48d; } .tok-c { color: #697098; } .tok-n { color: #82aaff; } .tok-f { color: #7fdbca; }

/* ============ TABS ============ */
.tabs { margin: 18px 0; }
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab-bar button {
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted);
  background: none; border: none; cursor: pointer;
  padding: 9px 16px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s;
}
.tab-bar button:hover { color: var(--text); }
.tab-bar button.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; padding-top: 4px; }
.tab-panel.active { display: block; }

/* ============ ACCORDION ============ */
.acc { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.acc summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  font-weight: 600; font-size: 14.5px; display: flex; justify-content: space-between; align-items: center;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 20px; color: var(--muted); transition: transform .2s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc .acc-body { padding: 0 20px 18px; color: var(--muted); font-size: 14px; }

/* ============ CALLOUTS ============ */
.callout {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  border-radius: var(--radius-sm); padding: 14px 18px; margin: 16px 0; font-size: 14px;
}
.callout.green { border-color: rgba(22,163,74,.35); background: rgba(22,163,74,.08); }
[data-theme="dark"] .callout.green { border-color: rgba(61,220,132,.3); background: rgba(61,220,132,.07); }
.callout .ci { font-size: 17px; }

/* ============ TABLES ============ */
table.nice { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; margin: 16px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
table.nice th, table.nice td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--border); }
table.nice tr:last-child td { border-bottom: none; }
table.nice th { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; background: var(--surface-2); }
table.nice td:first-child { white-space: nowrap; }

/* ============ DOCS LAYOUT ============ */
.docs-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; padding-top: 34px; }
.docs-side { position: sticky; top: 86px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 8px; }
.docs-side .search {
  width: 100%; font-family: inherit; font-size: 13.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 11px;
  padding: 9px 13px; margin-bottom: 18px; outline: none; box-shadow: var(--shadow);
}
.docs-side .search:focus { border-color: var(--accent-line); }
.docs-side .side-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 18px 0 7px; font-weight: 700; }
.docs-side a {
  display: block; font-size: 13.5px; color: var(--muted); text-decoration: none;
  padding: 5.5px 12px; border-left: 2px solid transparent; border-radius: 0 10px 10px 0;
  transition: color .12s, background .12s;
}
.docs-side a:hover { color: var(--text); background: var(--surface-2); }
.docs-side a.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.docs-side a.hidden-by-search { display: none; }
.docs-main { min-width: 0; padding-bottom: 100px; }
.docs-main section { padding: 26px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 90px; }
.docs-main section:last-child { border-bottom: none; }
.docs-main h2 { font-size: 26px; letter-spacing: -.025em; margin-bottom: 12px; }
.docs-main h3 { font-size: 18px; letter-spacing: -.015em; margin: 24px 0 10px; }
.docs-main p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.docs-main ul, .docs-main ol { padding-left: 22px; color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.docs-main li { margin-bottom: 5px; }
[data-theme="dark"] .docs-main p, [data-theme="dark"] .docs-main ul, [data-theme="dark"] .docs-main ol { color: #c3c6d4; }
section.search-hidden { display: none; }
mark { background: rgba(255,214,60,.45); color: inherit; border-radius: 3px; padding: 0 1px; }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; max-height: none; }
  nav.top .links a:not(.cta) { display: none; }
}

/* ============ INTERACTIVE: pipeline ============ */
.pipeline { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.pipeline button {
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 17px; cursor: pointer; transition: all .15s; box-shadow: var(--shadow);
}
.pipeline button:hover { color: var(--text); border-color: var(--border-2); }
.pipeline button.active {
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}
.pipeline-detail {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: var(--radius-sm); padding: 20px 24px; min-height: 120px;
  box-shadow: var(--shadow);
}
.pipeline-detail h4 { font-size: 16px; margin-bottom: 8px; }
.pipeline-detail p { margin-bottom: 0 !important; }

/* ============ INTERACTIVE: RAM calculator ============ */
.calc { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 28px; margin: 18px 0; box-shadow: var(--shadow); }
.calc .row { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.calc label { font-size: 13px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 6px; }
.calc input[type=range] { width: 240px; accent-color: var(--accent); }
.calc select {
  font-family: inherit; font-size: 14px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 8px 12px;
}
.calc .result { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.calc .result span { color: var(--accent); }
.ram-dots { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ram-dot { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.ram-dot i { width: 10px; height: 10px; border-radius: 50%; background: #b6bac9; display: inline-block; }
.ram-dot.ok i { background: var(--green); box-shadow: 0 0 8px rgba(22,163,74,.5); }
.ram-dot.no i { background: #e5484d; }

/* ============ INTERACTIVE: chat demo ============ */
.chat-demo .msg { display: flex; gap: 10px; margin-bottom: 14px; }
.chat-demo .avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.chat-demo .bubble { border-radius: 15px; padding: 10px 14px; max-width: 85%; font-size: 13px; line-height: 1.55; }
.chat-demo .user { justify-content: flex-end; }
.chat-demo .user .bubble { background: linear-gradient(135deg, var(--indigo), var(--indigo-2)); color: #fff; }
.chat-demo .ai .avatar { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.chat-demo .ai .bubble { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0 } }

/* ============ SEGMENTED (permission demo) ============ */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px; padding: 3px; gap: 3px; }
.seg button {
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted);
  background: none; border: none; border-radius: 10px; padding: 6px 18px; cursor: pointer;
}
.seg button.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }

/* ============ FOOTER ============ */
footer.site {
  border-top: 1px solid var(--border); margin-top: 60px;
  padding: 34px clamp(20px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--muted);
}
footer.site a { color: var(--muted); }

/* ============ LANDING CARDS ============ */
.app-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 26px; padding: 20px 0 60px; }
.app-card {
  position: relative; display: block; text-decoration: none; color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius); padding: 36px 34px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.app-card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow-lg); }
.app-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.app-card img { width: 84px; height: 84px; margin-bottom: 16px; filter: drop-shadow(0 12px 22px rgba(18,24,48,.25)); }
.app-card h2 { font-size: 25px; letter-spacing: -.02em; margin-bottom: 6px; }
.app-card .tagline { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.app-card .go { font-weight: 700; font-size: 14px; color: var(--accent); }

/* ============ AURA theme + Space halo demo ============ */
.theme-aura {
  --accent: #7c6cf0;
  --accent-2: #38bdf8;
  --accent-soft: rgba(124,108,240,.10);
  --accent-line: rgba(124,108,240,.38);
}
[data-theme="dark"] .theme-aura, [data-theme="dark"].theme-aura {
  --accent-soft: rgba(124,108,240,.16);
  --accent-line: rgba(124,108,240,.45);
}
.space-chips { display: flex; gap: 9px; flex-wrap: wrap; margin: 18px 0; }
.space-chip {
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 17px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s; box-shadow: var(--shadow);
}
.space-chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: currentColor; }
.space-chip.active { color: var(--text); border-color: var(--border-2); transform: translateY(-1px); }
.space-window { transition: box-shadow .45s ease; }
.space-name { font-weight: 700; transition: color .45s ease; }

/* ============ MOBILE NAV (hamburger) ============ */
.nav-burger {
  display: none; font-size: 19px; width: 38px; height: 38px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px;
  color: var(--text);
}
@media (max-width: 900px) {
  .nav-burger { display: grid; place-items: center; }
  nav.top .links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 18px 18px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -20px rgba(18,24,48,.25);
  }
  nav.top .links.open { display: flex; }
  nav.top .links a, nav.top .links a:not(.cta) { display: block; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
  nav.top .links a:not(.cta):active, nav.top .links a:not(.cta):hover { background: var(--surface-2); }
  nav.top .links a.cta { text-align: center; margin-top: 4px; }
  nav.top .links .theme-toggle { width: 100%; height: 42px; }
}

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ SMALL SCREENS ============ */
@media (max-width: 640px) {
  section { padding: 30px 0; }
  .app-hero { text-align: center; justify-content: center; padding-top: 44px; }
  .app-hero .info { min-width: 0; }
  .app-hero .tagline { margin-inline: auto; }
  .app-hero .actions { flex-direction: column; width: 100%; }
  .app-hero .actions .btn { width: 100%; justify-content: center; }
  .app-cards { grid-template-columns: 1fr; }
  .app-card { padding: 28px 24px; }
  table.nice { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .calc { padding: 20px; }
  .calc input[type=range] { width: 100%; }
  .calc .row { gap: 14px; }
  .calc .result { font-size: 24px; }
  .window .body { padding: 14px; }
  .chat-demo .bubble { max-width: 100%; }
  .docs-main h2 { font-size: 22px; }
  .pipeline button, .space-chip { padding: 9px 15px; }
  footer.site { flex-direction: column; align-items: flex-start; }
}
* { -webkit-tap-highlight-color: transparent; }
