/* ============================================================
   MOUSE - landing page (light)
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f5;
  --bg-soft-2: #ececed;
  --text: #0a0a0a;
  --text-2: #565656;
  --text-3: #8a8a8a;
  --line: #e6e6e6;
  --accent: #0a84ff;         /* single flat accent, camera boxes / active */
  --ok: #1f9d55;
  --radius: 22px;
  --maxw: 1160px;
  --font: "Helvetica Neue", Helvetica, "Inter", system-ui, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.loading { overflow: hidden; height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: #dcdcdc; }

/* ============================================================
   Loader
   ============================================================ */
#loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-inner { width: min(380px, 78vw); text-align: center; }
.loader-mark { font-weight: 800; letter-spacing: .5em; text-indent: .5em; font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.loader-track { height: 3px; width: 100%; background: var(--bg-soft-2); border-radius: 99px; overflow: hidden; }
.loader-fill { height: 100%; width: 0%; background: var(--text); }
.loader-meta { display: flex; justify-content: space-between; margin-top: 13px; font-size: 12px; color: var(--text-3); letter-spacing: .04em; }
.loader-pct { font-variant-numeric: tabular-nums; }

/* ============================================================
   Nav (floating pill)
   ============================================================ */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%) translateY(-16px);
  z-index: 200; width: min(1080px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 12px 10px 20px;
  background: #ffffff; border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  opacity: 0; transition: opacity .5s ease .15s, transform .5s ease .15s;
}
body.entered .nav { opacity: 1; transform: translateX(-50%) translateY(0); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--text-2); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.nav-cta:hover { background: #222; }
.nav-cta svg { width: 15px; height: 15px; fill: #fff; }

/* ============================================================
   Buttons
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary svg { fill: #fff; }
.btn-primary:hover { background: #222; }
.btn-outline { background: #fff; color: var(--text); border-color: var(--line); }
.btn-outline svg { fill: var(--text); }
.btn-outline:hover { border-color: #cfcfcf; background: var(--bg-soft); }

/* ============================================================
   Hero
   ============================================================ */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 120px clamp(18px,4vw,40px) 40px; position: relative; }
.wordmark {
  font-weight: 800; line-height: .9; letter-spacing: -0.045em; color: var(--text);
  font-size: 30vw; white-space: nowrap;
  transition: font-size .85s cubic-bezier(.16,1,.3,1);
}
.wordmark span { display: inline-block; }
body.entered .wordmark { font-size: clamp(72px, 15vw, 230px); }

.hero-body { max-height: 0; opacity: 0; overflow: hidden; transition: opacity .6s ease .25s, max-height .8s ease .1s; }
body.entered .hero-body { max-height: 900px; opacity: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.hero-eyebrow svg { width: 16px; height: 16px; fill: var(--text); }
.hero-sub { margin: 18px auto 0; max-width: 620px; color: var(--text-2); font-size: clamp(16px,1.7vw,19px); }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-meta { margin-top: 18px; color: var(--text-3); font-size: 13px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-meta .mid { color: var(--line); }

/* ============================================================
   Sections
   ============================================================ */
section.block { padding: clamp(70px, 9vw, 130px) clamp(18px,4vw,40px); }
section.soft { background: var(--bg-soft); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.center { text-align: center; }
.eyebrow { font-size: 13px; letter-spacing: .06em; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.h2 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.03; margin-top: 12px; }
.lead { color: var(--text-2); font-size: clamp(16px,1.6vw,19px); max-width: 640px; margin-top: 16px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* chips row */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
.chip { background: #fff; border: 1px solid var(--line); color: var(--text-2); font-size: 14px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; }
section.soft .chip { background: #fff; }

/* feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,72px); align-items: center; margin-top: 64px; }
.feature-row:first-of-type { margin-top: 54px; }
.feature-row.reverse .feature-media { order: -1; }
.feature-copy h3 { font-size: clamp(24px,3vw,38px); font-weight: 800; letter-spacing: -0.025em; }
.feature-copy p { color: var(--text-2); margin-top: 14px; font-size: 17px; max-width: 460px; }
.feature-copy ul { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.feature-copy li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 15px; }
.feature-copy li i { width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--text); flex: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Device frame and demos
   ============================================================ */
.device { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0,0,0,.12); }
.device-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px;
  background: #fbfbfb; border-bottom: 1px solid var(--line); }
.tl { width: 11px; height: 11px; border-radius: 50%; background: #dcdcdc; }
.device-title { margin-left: 8px; font-size: 12px; color: var(--text-3); }

/* two panel: camera left, screen right */
.demo-split { display: grid; grid-template-columns: 1fr 1fr; }
.demo-split > div { position: relative; }
.demo-split .panel-cam { border-right: 1px solid var(--line); }
.panel-label { position: absolute; top: 12px; left: 12px; z-index: 5; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; color: #fff; background: rgba(0,0,0,.55); padding: 4px 9px; border-radius: 7px; }
.panel-cam .panel-label { }
.panel-screen .panel-label { color: var(--text); background: var(--bg-soft); }

/* camera feed (flat dark, no gradient) */
.cam { position: relative; aspect-ratio: 4/3; background: #17181c; overflow: hidden; }
.cam .scanline { display: none; }

/* hand skeleton */
.skeleton { position: absolute; inset: 0; }
.skeleton.hand { animation: sway 6s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes sway { 0%,100%{ transform: translate(0,0);} 50%{ transform: translate(3%, -2%);} }
.bone { stroke: rgba(255,255,255,.85); stroke-width: 1.6; stroke-linecap: round; fill: none; }
.joint { fill: #ffffff; }
.tip { fill: var(--accent); }

/* bounding box (ONLY in camera) */
.cbox { position: absolute; border: 2px solid var(--accent); border-radius: 8px; }
.cbox .clabel { position: absolute; top: -22px; left: 0; white-space: nowrap; font-size: 11px; font-weight: 700;
  background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 6px; }
.cbox.handbox { left: 30%; top: 24%; width: 44%; height: 56%; animation: boxSway 6s ease-in-out infinite; }
@keyframes boxSway { 0%,100%{ left: 30%; top: 24%;} 50%{ left: 33%; top: 22%;} }
.cbox.facebox { left: 32%; top: 16%; width: 36%; height: 62%; }

/* iris dots */
.irisdot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.irisdot.l { left: 43%; top: 40%; animation: look 5s ease-in-out infinite; }
.irisdot.r { left: 55%; top: 40%; animation: look 5s ease-in-out infinite; }
@keyframes look { 0%,100%{ transform: translateX(-2px);} 50%{ transform: translateX(3px);} }

/* the screen panel: cursor moves, NO box around it */
.screen { position: relative; aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden; }
.screen .win { position: absolute; inset: 26px 22px 22px 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.06); overflow: hidden; }
.screen .win-bar { height: 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 10px; gap: 6px; }
.screen .win-bar i { width: 8px; height: 8px; border-radius: 50%; background: #e0e0e0; }
.screen .win-body { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.screen .line { height: 9px; border-radius: 5px; background: var(--bg-soft-2); }
.screen .line.s { width: 55%; } .screen .line.m { width: 78%; } .screen .line.btn { width: 96px; height: 26px; background: var(--text); border-radius: 8px; margin-top: 6px; }
.screen .line.btn.b2 { background: var(--bg-soft-2); width: 120px; }
.cursor { position: absolute; z-index: 6; width: 20px; height: 20px; transform: translate(-50%,-50%); filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.cursor.hand { animation: curHand 6s ease-in-out infinite; }
@keyframes curHand { 0%{ left:40%; top:44%;} 22%{ left:62%; top:70%;} 30%{ left:62%; top:70%;} 55%{ left:48%; top:52%;} 78%{ left:70%; top:40%;} 100%{ left:40%; top:44%;} }
.cursor.eye { animation: curEye 5s ease-in-out infinite; }
@keyframes curEye { 0%,100%{ left:44%; top:46%;} 50%{ left:64%; top:52%;} }
.tapring { position: absolute; z-index: 5; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--text); transform: translate(-50%,-50%); opacity: 0; }
.tapring.hand { animation: tap 6s ease-in-out infinite; }
@keyframes tap { 0%,20%,34%,100%{ opacity:0; left:62%; top:70%; transform: translate(-50%,-50%) scale(.5);} 26%{ opacity:.8; transform: translate(-50%,-50%) scale(1);} }

/* gesture list demo */
.glist { padding: 20px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.grow { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.grow .badge { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--bg-soft); color: var(--text-2); }
.grow .gname { font-weight: 600; font-size: 14px; }
.grow .arrow { color: var(--text-3); }
.grow .act { color: var(--text-2); font-size: 14px; }
.grow .sw { margin-left: auto; width: 40px; height: 23px; border-radius: 99px; background: var(--bg-soft-2); position: relative; }
.grow .sw::after { content:""; position:absolute; top:3px; left:3px; width:17px; height:17px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.2); transition:left .3s; }
.grow.on .sw { background: var(--accent); }
.grow.on .sw::after { left: 20px; }

/* boot demo */
.boot { aspect-ratio: 16/10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: #fff; }
.boot .bmark { font-weight: 800; letter-spacing: .35em; text-indent: .35em; font-size: clamp(26px,4vw,44px); color: var(--text); }
.boot .btrack { width: 56%; height: 5px; background: var(--bg-soft-2); border-radius: 99px; overflow: hidden; }
.boot .bfill { height: 100%; width: 20%; background: var(--text); border-radius: 99px; animation: boot 3.4s ease-in-out infinite; }
@keyframes boot { 0%{width:6%;} 70%{width:92%;} 100%{width:100%;} }
.boot .bpct { color: var(--text-3); font-size: 12px; letter-spacing: .1em; }

/* ============================================================
   Feature cards (no emoji, simple line icons)
   ============================================================ */
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 50px; }
.card { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: 26px; }
section.soft .card { background: #fff; }
.card .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--line); }
.card .ic svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 1.8; }
.card h4 { margin-top: 16px; font-size: 19px; font-weight: 700; }
.card p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; }

/* ============================================================
   Download
   ============================================================ */
.dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 46px; }
.dl-card { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; transition: border-color .2s, transform .2s; }
.dl-card.active { border-color: var(--text); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.dl-card .os-ic { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 8px; }
.dl-card .os-ic svg { width: 34px; height: 34px; fill: var(--text); }
.dl-os { font-size: 21px; font-weight: 800; }
.dl-file { color: var(--text-3); font-size: 13px; }
.dl-tag { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; min-height: 14px; }
.dl-card .btn { margin-top: 16px; width: 100%; }
.dl-note { text-align: center; margin-top: 24px; color: var(--text-3); font-size: 13px; }
.dl-note a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* CTA */
.cta { border-radius: 28px; border: 1px solid var(--line); background: var(--text); color: #fff; text-align: center; padding: clamp(44px,6vw,80px); }
.cta h2 { font-size: clamp(30px,5vw,52px); font-weight: 800; letter-spacing: -0.03em; }
.cta p { color: rgba(255,255,255,.7); margin-top: 12px; }
.cta .btn { margin-top: 26px; background: #fff; color: var(--text); }
.cta .btn svg { fill: var(--text); }

/* ============================================================
   Footer
   ============================================================ */
footer { border-top: 1px solid var(--line); padding: 56px clamp(18px,4vw,40px) 44px; }
.foot { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { color: var(--text-2); font-size: 14px; }
.foot-links a:hover { color: var(--text); }
.foot-bottom { max-width: var(--maxw); margin: 30px auto 0; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--text-3); font-size: 13px; }
.made b { color: var(--text); }

/* ============================================================
   Legal
   ============================================================ */
.legal { max-width: 760px; margin: 0 auto; padding: 150px 24px 100px; }
.legal h1 { font-size: clamp(38px,6vw,60px); font-weight: 800; letter-spacing: -0.03em; }
.legal .updated { color: var(--text-3); margin-top: 10px; font-size: 14px; }
.legal h2 { font-size: 22px; font-weight: 700; margin-top: 40px; }
.legal p { color: var(--text-2); margin-top: 13px; }
.legal ul { margin-top: 13px; padding-left: 20px; color: var(--text-2); display: flex; flex-direction: column; gap: 8px; }
.legal a { color: var(--accent); }

/* ============================================================
   Live in-browser MediaPipe demo
   ============================================================ */
.live { position: relative; aspect-ratio: 4/3; background: #0e0f13; overflow: hidden; }
.live-mirror { position: absolute; inset: 0; transform: scaleX(-1); }
.live-mirror video, .live-mirror canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-mirror canvas { z-index: 2; }
.live-hud { position: absolute; top: 12px; left: 12px; z-index: 5; display: flex; gap: 8px; flex-wrap: wrap; }
.live-chip { font-size: 11px; font-weight: 700; letter-spacing: .03em; color: #fff;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.18); padding: 5px 10px; border-radius: 999px; }
.live-target { position: absolute; z-index: 4; width: 44px; height: 44px; border-radius: 50%;
  transform: translate(-50%, -50%); background: rgba(10,132,255,.18); border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(10,132,255,.08); transition: transform .12s ease; }
.live-target.hit { animation: pop .3s ease forwards; }
@keyframes pop { 0%{ transform: translate(-50%,-50%) scale(1);} 100%{ transform: translate(-50%,-50%) scale(1.8); opacity: 0; } }
.live-pointer { position: absolute; z-index: 6; width: 18px; height: 18px; border-radius: 50%;
  transform: translate(-50%, -50%); background: #fff; border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.live-pointer.pinch { background: var(--accent); }
.live-overlay { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px;
  background: rgba(14,15,19,.82); }
.live-overlay .live-note { color: #b9bcc4; font-size: 13px; max-width: 320px; }
.live-msg { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: #d7d9de; font-size: 14px; background: rgba(14,15,19,.9); }
.demo-cap { text-align: center; margin-top: 14px; color: var(--text-3); font-size: 13px; }

/* eye demo: a cursor drifting in a window, with a direction label */
.eyescene { position: relative; aspect-ratio: 16/10; background: var(--bg-soft); overflow: hidden; }
.eyescene .es-win { position: absolute; inset: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.06); overflow: hidden; }
.eyescene .win-bar { height: 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 10px; gap: 6px; }
.eyescene .win-bar i { width: 8px; height: 8px; border-radius: 50%; background: #e0e0e0; }
.eyescene .win-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.eyescene .line { height: 10px; border-radius: 5px; background: var(--bg-soft-2); }
.eyescene .line.s { width: 52%; } .eyescene .line.m { width: 80%; }
.es-cursor { position: absolute; left: 50%; top: 50%; z-index: 5; width: 26px; height: 26px;
  transform: translate(-50%, -50%); will-change: left, top; }
.es-cursor svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.es-label { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 6;
  background: var(--text); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 13px; border-radius: 999px; }

/* ============================================================
   macOS menu-bar stats widget demo
   ============================================================ */
.menubar-demo { position: relative; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); background: #d9d5cd; }
.menubar { position: absolute; top: 0; left: 0; right: 0; height: 28px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 12px; color: #fff; font-size: 12.5px;
  background: rgba(24,24,26,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mb-left { display: flex; align-items: center; gap: 14px; }
.mb-left b { font-weight: 700; } .mb-left span { opacity: .8; }
.mb-apple svg { width: 13px; height: 13px; fill: #fff; display: block; }
.mb-right { display: flex; align-items: center; gap: 12px; }
.mb-mouse { width: 18px; height: 18px; border-radius: 5px; overflow: hidden; display: block; }
.mb-mouse img { width: 100%; height: 100%; object-fit: cover; }
.mb-clock { font-variant-numeric: tabular-nums; }
.mb-panel { position: absolute; top: 36px; right: 14px; width: min(270px, 74%);
  background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 14px;
  box-shadow: 0 22px 55px rgba(0,0,0,.28); }
.mb-head { display: flex; align-items: center; gap: 11px; }
.mb-ic { width: 34px; height: 34px; border-radius: 9px; }
.mb-name { font-weight: 800; font-size: 15px; }
.mb-state { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.mb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(31,157,85,.15); }
.mb-stats { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mb-stat { background: var(--bg-soft); border-radius: 10px; padding: 9px 11px; }
.mb-stat .k { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.mb-stat .v { font-weight: 800; font-size: 15px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.mb-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 14px; font-weight: 600; }
.mb-sw { width: 38px; height: 22px; border-radius: 99px; background: var(--bg-soft-2); position: relative; flex: none; }
.mb-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .25s; }
.mb-sw.on { background: var(--accent); } .mb-sw.on::after { left: 19px; }
.mb-off { margin-top: 14px; width: 100%; padding: 10px; border-radius: 11px; background: var(--text); color: #fff; font-weight: 700; font-size: 14px; }

/* ============================================================
   Hero critters (roaming mouse + chasing cursor)
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero-critters { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.critter { position: absolute; top: 0; left: 0; transform-origin: center; will-change: transform;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.18)); }
.critter.mouse { width: 52px; height: 32px; margin: -16px 0 0 -26px; }
.critter.cursor { width: 22px; height: 22px; margin: -4px 0 0 -4px; }

/* ============================================================
   Cursor swarm (section right after hero)
   ============================================================ */
/* single cursor that scrubs across as you scroll: in from left, big in the
   middle, then shrinks and exits right. Driven by JS from scroll progress. */
.cursor-scene { position: relative; height: 90vh; overflow: hidden; }
.cs-cursor { position: absolute; top: 50%; left: 0; width: 26px; height: auto;
  transform: translate(-120px, -50%) scale(.4); opacity: 0; will-change: transform, opacity;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.22)); }
.cs-cursor svg { width: 100%; height: auto; display: block; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .feature-row, .demo-split, .grid3, .dl { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
  .demo-split .panel-cam { border-right: none; border-bottom: 1px solid var(--line); }
  body.entered .wordmark { font-size: clamp(60px, 22vw, 180px); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
