:root {
  color-scheme: dark;
  --ground: #080907;
  --surface: #171915;
  --surface-raised: #22241e;
  --yellow: #fff22a;
  --ink: #f1f0e6;
  --on-yellow: #11120d;
  --muted: #b8b7aa;
  --line: rgb(241 240 230 / 18%);
  --line-soft: rgb(241 240 230 / 10%);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --gutter: clamp(22px, 5.2vw, 88px);
  --content-width: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--ground); }
body {
  min-width: 320px;
  margin: 0;
  isolation: isolate;
  overflow-x: clip;
  color: var(--ink);
  background: var(--ground);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a, button { color: inherit; font: inherit; -webkit-tap-highlight-color: rgb(255 242 42 / 15%); touch-action: manipulation; }
a { text-decoration: none; }
button { cursor: pointer; border: 0; }
button, a { scroll-margin-block: 110px; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 5px;
}
main:focus { outline: none; }
svg { display: block; }
button svg, a svg { flex: 0 0 auto; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
::selection { color: var(--on-yellow); background: var(--yellow); }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 120;
  top: 12px;
  left: 16px;
  padding: 12px 20px;
  color: var(--on-yellow);
  background: var(--yellow);
  translate: 0 -160%;
}
.skip-link:focus-visible { translate: 0 0; outline-color: var(--ink); }
.ambient-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: var(--ground);
  pointer-events: none;
}
.ambient-background::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(241 240 230 / 2.2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(241 240 230 / 2.2%) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}
.ambient-background::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--pointer-x, 72%) var(--pointer-y, 20%), rgb(255 242 42 / 5%), transparent 72%);
  content: "";
  opacity: .8;
}
.field-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.pointer-canvas {
  position: fixed;
  z-index: 60;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.scroll-meter { position: fixed; z-index: 90; inset: 0 0 auto; height: 2px; pointer-events: none; }
.scroll-meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line-soft);
  background: rgb(8 9 7 / 88%);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; min-height: 44px; flex: 0 0 auto; align-items: center; gap: 10px; }
.brand-mark { display: block; width: 38px; height: 38px; transition: rotate .45s var(--ease), scale .45s var(--ease); }
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-name { font-size: 18px; font-weight: 900; white-space: nowrap; }
.brand-name span { margin-left: 5px; font-weight: 500; }
.desktop-nav { display: flex; align-items: center; gap: clamp(24px, 4vw, 58px); margin-left: auto; }
.desktop-nav a {
  position: relative;
  display: grid;
  min-height: 48px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  transition: color .25s ease, translate .35s var(--ease);
}
.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  background: var(--yellow);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.desktop-nav a[aria-current="location"] { color: var(--ink); }
.desktop-nav a[aria-current="location"]::after,
.desktop-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: none; }
.menu-toggle { display: none; }
main, .site-footer { position: relative; z-index: 1; }

.hero {
  position: relative;
  display: grid;
  width: min(100%, var(--content-width));
  min-height: min(830px, max(690px, calc(100svh - 82px)));
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(38px, 5.5vw, 88px);
  margin: 0 auto;
  padding: 66px var(--gutter) 100px;
}
.hero::before {
  position: absolute;
  z-index: -1;
  top: 13%;
  right: -6%;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgb(255 242 42 / 6%);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgb(255 242 42 / 1.2%), 0 0 0 104px rgb(255 242 42 / .8%);
  content: "";
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 590px; }
.hero-context, .section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 13px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px rgb(255 242 42 / 34%);
}
.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(44px, 4.35vw, 64px);
  font-weight: 900;
  line-height: 1.26;
}
.hero h1 span, .tutorial-main h1 span { color: var(--yellow); }
.hero-description {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 34px; }
.download-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  width: min(100%, 352px);
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px 14px 24px;
  overflow: hidden;
  border: 1px solid var(--yellow);
  border-radius: 6px;
  color: var(--on-yellow);
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgb(255 242 42 / 0%);
  text-align: left;
  transition: box-shadow .35s ease, translate .35s var(--ease), scale .25s var(--ease);
}
.download-cta::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--surface);
  clip-path: circle(0% at var(--fill-x, 50%) var(--fill-y, 50%));
  content: "";
  transition: clip-path .55s var(--ease);
}
.download-cta-copy { display: grid; gap: 3px; }
.download-cta-copy b { font-size: 20px; font-weight: 800; }
.download-cta-copy small { color: currentColor; font-size: 12px; opacity: .78; }
.download-cta-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(17 18 13 / 28%);
  border-radius: 5px;
  transition: rotate .4s var(--ease), background .3s ease, color .3s ease;
}
.download-cta-icon svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.download-cta:focus-visible { color: var(--yellow); }
.download-cta:focus-visible::before { clip-path: circle(160% at 50% 50%); }
.download-cta:active { scale: .975; }
.tutorial-link, .tutorial-back {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 14px;
}
.tutorial-link > span, .tutorial-back { text-decoration-line: underline; text-decoration-color: rgb(241 240 230 / 34%); text-underline-offset: 6px; }
.tutorial-link svg, .tutorial-back span {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: translate .35s var(--ease), color .25s ease;
}
.tutorial-link svg { width: 20px; height: 20px; }
.tutorial-back span { display: inline-block; font-size: 15px; text-decoration: none; }
.download-status { display: flex; align-items: center; gap: 9px; margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.download-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }

.hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  justify-self: end;
  margin: 0;
  padding: 20px 22px 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgb(23 25 21 / 92%);
  box-shadow: 0 28px 90px rgb(0 0 0 / 42%), 6px 6px 0 rgb(255 242 42 / 58%);
  transform-style: preserve-3d;
}
.hero-visual::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at var(--sheen-x, 70%) 48%, rgb(255 242 42 / 6%), transparent 57%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.hero-visual.is-pointer-active::before { opacity: 1; }
.visual-topline, .visual-footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.visual-topline { min-height: 31px; padding: 0 2px 14px; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.visual-topline > span:first-child { display: inline-flex; align-items: center; gap: 11px; }
.visual-topline > span:first-child i { width: 38px; height: 1px; background: var(--yellow); }
.visual-live { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.visual-live b { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); animation: live-blink 1.8s ease-in-out infinite; }
.signal-stage { position: relative; height: 355px; margin: 12px 0 10px; isolation: isolate; }
.signal-stage::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(241 240 230 / 20%) .7px, transparent .8px);
  background-size: 20px 20px;
  content: "";
  opacity: .32;
  mask-image: radial-gradient(ellipse at center, black, transparent 79%);
}
.signal-wires { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: visible; }
.signal-wire { fill: none; stroke: rgb(241 240 230 / 24%); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.signal-wire-accent { stroke: var(--yellow); stroke-dasharray: 5 11; opacity: .52; }
.signal-wire-delayed { opacity: .3; }
.signal-pulse { fill: var(--yellow); filter: drop-shadow(0 0 6px rgb(255 242 42 / 75%)); }
.signal-pulse-secondary { opacity: .7; }
.input-sources { position: absolute; z-index: 2; inset: 0 auto 0 2%; width: 150px; }
.input-source { position: absolute; left: 0; display: flex; min-width: 130px; align-items: center; gap: 12px; }
.source-keys { top: 20%; }
.source-mouse { top: 68%; }
.source-keys-grid {
  display: grid;
  width: 76px;
  grid-template-columns: repeat(3, 22px);
  gap: 4px;
}
.source-keys-grid span { visibility: hidden; }
.source-keys-grid b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-bottom-color: rgb(241 240 230 / 42%);
  border-radius: 3px;
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: 0 2px 0 var(--ground);
  font-family: Consolas, monospace;
  font-size: 10px;
}
.source-keys-grid b:nth-of-type(1) { color: var(--on-yellow); border-color: var(--yellow); background: var(--yellow); }
.input-source small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.source-mouse svg { width: 22px; height: 30px; flex: 0 0 auto; stroke: var(--yellow); stroke-width: 1.5; }
.mapping-core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  width: 84px;
  height: 90px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgb(255 242 42 / 30%);
  background: var(--ground);
  translate: -50% -50%;
}
.mapping-core small { color: var(--muted); font-size: 10px; }
.core-diamond { display: grid; width: 27px; height: 27px; grid-template-columns: 1fr 1fr; gap: 3px; rotate: 45deg; }
.core-diamond i { border: 1px solid var(--yellow); }
.core-diamond i:nth-child(2), .core-diamond i:nth-child(3) { background: var(--yellow); }
.core-orbit { position: absolute; inset: 12px 9px; border: 1px solid rgb(255 242 42 / 30%); rotate: 0deg; }
.core-orbit-b { inset: 8px 13px; border-color: rgb(255 242 42 / 18%); }
.device-preview { position: absolute; z-index: 2; top: 50%; right: 3%; display: grid; justify-items: center; gap: 9px; translate: 0 -50%; }
.device-frame {
  position: relative;
  width: 120px;
  height: 220px;
  padding: 6px;
  border: 1px solid rgb(241 240 230 / 42%);
  border-radius: 16px;
  background: var(--ground);
  box-shadow: 0 14px 32px rgb(0 0 0 / 36%);
}
.device-frame::before { position: absolute; z-index: 2; top: 5px; left: 50%; width: 28px; height: 4px; border-radius: 4px; background: rgb(241 240 230 / 62%); content: ""; translate: -50% 0; }
.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(rgb(241 240 230 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(241 240 230 / 7%) 1px, transparent 1px),
    var(--surface);
  background-size: 19px 19px;
}
.screen-axis { position: absolute; top: 50%; left: 50%; background: rgb(241 240 230 / 18%); }
.screen-axis-x { width: 78%; height: 1px; translate: -50% 0; }
.screen-axis-y { width: 1px; height: 76%; translate: 0 -50%; }
.screen-zone { position: absolute; display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid var(--yellow); border-radius: 50%; background: rgb(255 242 42 / 8%); }
.screen-zone i { width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); }
.screen-zone::after { position: absolute; inset: -1px; border: 1px solid rgb(255 242 42 / 65%); border-radius: 50%; content: ""; animation: touch-echo 2.7s var(--ease) infinite; }
.screen-zone-b::after { animation-delay: -1.35s; }
.screen-zone-c::after { animation-delay: -.7s; }
.screen-zone-a { top: 26%; left: 25%; }
.screen-zone-b { right: 25%; bottom: 25%; }
.screen-zone-c { top: 47%; right: 22%; width: 12px; height: 12px; opacity: .6; }
.screen-coordinates { position: absolute; right: 4px; bottom: 8px; left: 4px; color: var(--muted); font-family: Consolas, monospace; font-size: 8px; font-variant-numeric: tabular-nums; text-align: center; }
.screen-coordinates b { color: var(--yellow); font-weight: 400; }
.screen-coordinates i { margin: 0 2px; color: var(--muted); font-style: normal; }
.device-preview > small { color: var(--muted); font-size: 10px; }
.visual-footer { min-height: 34px; justify-content: flex-start; gap: 12px; padding: 10px 2px 0; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 10px; }
.visual-footer i { width: 18px; height: 1px; background: var(--line); }
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 21px;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.scroll-cue i { width: 1px; height: 25px; background: var(--yellow); transform-origin: top; }

.capabilities {
  position: relative;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 90px var(--gutter) 74px;
  border-top: 1px solid var(--line-soft);
}
.capabilities-heading { display: flex; align-items: end; justify-content: space-between; gap: 38px; margin-bottom: 40px; }
.capabilities-heading .section-kicker { margin-bottom: 14px; }
.capabilities-heading h2 { margin: 0; font-size: 48px; font-weight: 850; line-height: 1.3; }
.capabilities-heading > p { max-width: 330px; margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.capability {
  position: relative;
  min-width: 0;
  min-height: 266px;
  padding: 24px 21px 27px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: transparent;
  transition: background .35s ease, translate .4s var(--ease);
}
.capability:nth-child(n+4) { border-top: 1px solid var(--line); }
.capability::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--yellow);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease);
}
.feature-visual { position: relative; height: 116px; margin-bottom: 17px; overflow: hidden; }
.capability h3 { margin: 0 0 7px; font-size: 17px; font-weight: 750; }
.capability p { max-width: 270px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.cast-visual, .offline-visual { display: grid; place-items: center; }
.cast-visual svg, .offline-visual svg { position: relative; width: min(100%, 260px); height: 100%; overflow: visible; }
.cast-outline, .cast-stand, .offline-device { stroke: var(--muted); stroke-width: 1.3; }
.cast-outline, .offline-device { transition: stroke .3s ease; }
.cast-route { stroke: var(--line); stroke-width: 1.5; }
.cast-packet { fill: var(--yellow); }
.cast-content { stroke: var(--yellow); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cast-content circle { fill: var(--yellow); stroke: none; }
.offline-keys { stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.offline-route { stroke: var(--yellow); stroke-width: 1.5; stroke-dasharray: 4 5; }
.offline-hub { fill: var(--yellow); }
.offline-mark { stroke: var(--on-yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.offline-touch { fill: rgb(255 242 42 / 12%); stroke: var(--yellow); }
.offline-check { stroke: var(--yellow); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.offline-halo { position: absolute; top: 50%; left: 50%; width: 62px; height: 62px; border: 1px solid rgb(255 242 42 / 30%); border-radius: 50%; translate: -50% -50%; }
.capability-cast:hover .cast-outline, .capability-offline:hover .offline-device { stroke: var(--yellow); }
.platform-visual { display: flex; align-items: center; justify-content: center; gap: 11px; }
.platform-pill {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 54px;
  min-height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  transition: color .3s ease, border-color .3s ease, translate .4s var(--ease);
}
.platform-pill-ios { border-color: var(--yellow); color: var(--on-yellow); background: var(--yellow); }
.platform-link { position: relative; width: 30px; height: 1px; background: var(--line); }
.platform-link::before { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); content: ""; }
.platform-link i { position: absolute; top: -3px; right: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.platform-signal { position: absolute; inset: 8px auto auto 50%; width: 56px; height: 56px; border: 1px solid rgb(255 242 42 / 25%); border-radius: 50%; opacity: 0; translate: -50% 0; }

.wheel-visual { display: grid; place-items: center; }
.wheel-track, .wheel-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  border: 1px solid rgb(255 242 42 / 64%);
  border-radius: 50%;
  translate: -50% -50%;
}
.wheel-inner { width: 46px; height: 46px; border-color: var(--line); }
.wheel-center { position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); translate: -50% -50%; }
.wheel-point { position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border: 2px solid var(--on-yellow); border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 7px rgb(255 242 42 / 11%); translate: -50% -50%; }
.wheel-cross { position: absolute; top: 50%; left: 50%; background: var(--line); }
.wheel-cross-x { width: 150px; height: 1px; translate: -50% 0; }
.wheel-cross-y { width: 1px; height: 106px; translate: 0 -50%; }

.touch-visual { display: grid; place-items: center; }
.touch-boundary { position: absolute; width: 154px; height: 76px; border: 1px dashed rgb(241 240 230 / 30%); border-radius: 50%; rotate: -8deg; }
.touch-boundary::before, .touch-boundary::after { position: absolute; inset: 8px 18px; border: 1px solid rgb(255 242 42 / 13%); border-radius: 50%; content: ""; }
.touch-boundary::after { inset: 18px 42px; border-color: rgb(255 242 42 / 23%); }
.touch-point { position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border: 1px solid var(--yellow); border-radius: 50%; background: rgb(255 242 42 / 35%); box-shadow: 0 0 0 6px rgb(255 242 42 / 7%); translate: -50% -50%; }
.touch-point-a { transform: translate(-24px, 8px); }
.touch-point-b { width: 8px; height: 8px; opacity: .75; transform: translate(23px, -15px); }
.touch-point-c { width: 6px; height: 6px; opacity: .55; transform: translate(36px, 16px); }
.touch-center { position: absolute; top: 50%; left: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--ink); translate: -50% -50%; }

.bluetooth-visual { display: flex; align-items: center; justify-content: center; gap: 15px; }
.bluetooth-node { position: relative; z-index: 1; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--ground); }
.bluetooth-node i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 14px rgb(255 242 42 / 40%); }
.bluetooth-node-b i { width: 6px; height: 6px; background: var(--ink); box-shadow: none; }
.bluetooth-route { position: relative; width: min(46%, 132px); height: 76px; }
.bluetooth-route svg { width: 100%; height: 100%; overflow: visible; }
.bluetooth-path { fill: none; stroke: rgb(255 242 42 / 45%); stroke-width: 1.3; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.bluetooth-route circle { fill: var(--yellow); filter: drop-shadow(0 0 5px rgb(255 242 42 / 70%)); }
.site-footer {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px var(--gutter) max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  background: rgb(8 9 7 / 86%);
}
.brand-footer .brand-mark { width: 31px; height: 31px; }
.brand-footer .brand-name { font-size: 15px; }
.footer-caption { color: var(--muted); font-size: 12px; }
.site-footer { flex-wrap: wrap; }
.site-registration { flex-basis: 100%; text-align: center; color: var(--muted); font-size: 12px; }
.site-registration a { display: inline-flex; align-items: center; min-height: 36px; transition: color .25s ease; }
.site-registration a:hover { color: var(--yellow); }
.footer-top { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.footer-top span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--yellow);
  transition: translate .35s var(--ease), color .25s ease, background .25s ease;
}

.download-dialog {
  position: fixed;
  width: min(430px, calc(100% - 36px));
  max-height: calc(100dvh - 44px);
  padding: 34px 30px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 28px 100px rgb(0 0 0 / 58%);
}
.download-dialog::backdrop { background: rgb(0 0 0 / 80%); backdrop-filter: blur(7px); }
.download-dialog form { position: absolute; top: 9px; right: 9px; }
.dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  transition: rotate .35s var(--ease), color .25s ease, background .25s ease;
}
.dialog-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.dialog-mark { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 5px; color: var(--on-yellow); background: var(--yellow); }
.dialog-mark svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dialog-kicker { margin: 24px 0 8px; color: var(--yellow); font-size: 12px; }
.download-dialog h2 { margin: 0; font-size: 26px; line-height: 1.45; }
.dialog-description { margin: 13px 0 25px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.dialog-confirm {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--yellow);
  border-radius: 4px;
  color: var(--on-yellow);
  background: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  transition: color .25s ease, background .25s ease, translate .3s var(--ease);
}

.mobile-nav, .menu-scrim { display: none; }
.pointer-follower {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  opacity: 0;
  pointer-events: none;
  translate: -50% -50%;
  transition: opacity .2s ease;
}
.pointer-follower::before, .pointer-follower::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 242 42 / 72%);
  border-radius: 50%;
  content: "";
  transition: scale .32s var(--ease), border-color .25s ease, border-radius .25s ease;
}
.pointer-follower::after { inset: 9px; border-color: var(--yellow); }
.pointer-visible .pointer-follower { opacity: .85; }
.pointer-follower.is-over-control::before { scale: 1.5; border-color: var(--yellow); }
.pointer-follower.is-over-control::after { scale: .55; border-radius: 2px; }

.tutorial-page { min-height: 100svh; }
.tutorial-header { justify-content: space-between; }
.tutorial-back { min-height: 44px; color: var(--muted); font-size: 13px; }
.tutorial-main {
  display: flex;
  min-height: min(720px, calc(100svh - 82px));
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 80px var(--gutter);
  max-width: 1000px;
  margin: 0 auto;
}
.tutorial-main .section-kicker { margin-bottom: 18px; }
.tutorial-main h1 { margin: 0; font-size: 62px; font-weight: 900; line-height: 1.25; }
.tutorial-main > p:not(.section-kicker) { margin: 20px 0 14px; color: var(--muted); }
.tutorial-back-main { color: var(--ink); }

@media (hover: hover) {
  .brand:hover .brand-mark { rotate: -8deg; scale: 1.07; }
  .desktop-nav a:hover { color: var(--yellow); translate: 0 -2px; }
  .desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .download-cta:hover { translate: 0 -4px; box-shadow: 0 8px 0 rgb(255 242 42 / 15%); }
  .download-cta:hover { color: var(--yellow); }
  .download-cta:hover::before { clip-path: circle(165% at var(--fill-x, 50%) var(--fill-y, 50%)); }
  .download-cta:hover .download-cta-icon { rotate: -7deg; color: var(--yellow); background: rgb(255 242 42 / 8%); }
  .tutorial-link:hover { color: var(--yellow); }
  .tutorial-link:hover svg { translate: 4px 0; color: var(--yellow); }
  .scroll-cue:hover { color: var(--yellow); }
  .scroll-cue:hover i { scale: 1 1.45; }
  .capability:hover, .capability:focus-within { background: rgb(255 242 42 / 2.5%); }
  .capability:hover::before, .capability:focus-within::before { transform: scaleX(1); }
  .capability-platform:hover .platform-pill-android, .capability-platform:focus-within .platform-pill-android { border-color: var(--yellow); color: var(--on-yellow); background: var(--yellow); translate: 0 -2px; }
  .capability-platform:hover .platform-pill-ios, .capability-platform:focus-within .platform-pill-ios { color: var(--ink); background: var(--surface); }
  .capability-platform:hover .platform-signal, .capability-platform:focus-within .platform-signal { animation: platform-ripple .8s var(--ease) both; }
  .capability-wheel:hover .wheel-track, .capability-wheel:focus-within .wheel-track { border-style: dashed; rotate: 38deg; }
  .capability-touch:hover .touch-boundary, .capability-touch:focus-within .touch-boundary { border-color: rgb(255 242 42 / 68%); scale: 1.04; }
  .capability-bluetooth:hover .bluetooth-path, .capability-bluetooth:focus-within .bluetooth-path { stroke-dasharray: 5 4; }
  .footer-top:hover { color: var(--ink); }
  .footer-top:hover span { translate: 0 -3px; color: var(--on-yellow); background: var(--yellow); }
  .dialog-close:hover { rotate: 90deg; color: var(--yellow); background: var(--surface-raised); }
  .dialog-confirm:hover { translate: 0 -2px; color: var(--yellow); background: var(--surface); }
  .tutorial-back:hover { color: var(--yellow); }
  .tutorial-back:hover span { translate: 4px -4px; color: var(--yellow); }
}

.motion-paused .pointer-canvas, .motion-paused .pointer-follower { display: none; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.motion-paused .hero-visual { rotate: none !important; }
.motion-paused .ambient-background::after { opacity: 0; }
.motion-paused .field-canvas { display: none; }
.menu-open { overflow: hidden; }

@media (max-width: 1120px) {
  .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; }
  .hero h1 { font-size: clamp(42px, 4.7vw, 54px); }
  .hero-visual { padding-inline: 15px; }
  .signal-stage { height: 318px; }
  .input-sources { left: 0; }
  .device-frame { width: 105px; height: 198px; }
  .mapping-core { width: 72px; height: 82px; }
  .capability { padding-inline: 16px; }
}

@media (max-width: 920px) {
  .site-header { min-height: 76px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 46px; padding-top: 72px; padding-bottom: 104px; }
  .hero-copy { max-width: 690px; }
  .hero h1 { font-size: 64px; }
  .hero-visual { width: min(100%, 760px); justify-self: center; padding-inline: 22px; }
  .signal-stage { height: 360px; }
  .device-frame { width: 120px; height: 220px; }
  .input-sources { left: 2%; }
  .mapping-core { width: 84px; height: 90px; }
  .capabilities { padding-top: 74px; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability:nth-child(n+3) { border-top: 1px solid var(--line); }
  .capability { min-height: 252px; padding-inline: 24px; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 78px; }
  .site-header { min-height: 70px; gap: 12px; padding-inline: max(18px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .brand { gap: 8px; }
  .brand-mark { width: 33px; height: 33px; }
  .brand-name { font-size: 16px; }
  .desktop-nav { display: none; }
  .header-actions { display: flex; align-items: center; margin-left: auto; }
  .menu-toggle { display: grid; width: 44px; height: 44px; align-content: center; justify-items: center; gap: 6px; padding: 8px; background: transparent; }
  .menu-toggle span { width: 23px; height: 2px; border-radius: 2px; background: var(--ink); transition: translate .3s var(--ease), rotate .3s var(--ease), background .2s ease; }
  .menu-open .menu-toggle span:first-child { translate: 0 4px; rotate: 45deg; }
  .menu-open .menu-toggle span:last-child { translate: 0 -4px; rotate: -45deg; }
  .mobile-nav {
    position: fixed;
    z-index: 49;
    top: 70px;
    right: 0;
    left: 0;
    display: grid;
    padding: 10px 22px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    clip-path: inset(0 0 100%);
    visibility: hidden;
    transition: clip-path .4s var(--ease), visibility .4s;
  }
  .mobile-nav a { display: flex; min-height: 60px; align-items: center; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-size: 17px; transition: color .25s ease, translate .3s var(--ease); }
  .mobile-nav a:last-child { border-bottom: 0; }
  .menu-open .mobile-nav { clip-path: inset(0); visibility: visible; }
  .menu-scrim { position: fixed; z-index: 48; inset: 70px 0 0; display: block; background: rgb(0 0 0 / 72%); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
  .menu-open .menu-scrim { opacity: 1; pointer-events: auto; }

  .hero { gap: 38px; padding: 55px max(20px, env(safe-area-inset-left)) 88px; }
  .hero-context { margin-bottom: 20px; font-size: 12px; }
  .hero h1 { margin-bottom: 20px; font-size: 48px; line-height: 1.32; }
  .hero-description { max-width: 520px; font-size: 15px; line-height: 1.85; }
  .hero-actions { align-items: flex-start; gap: 14px; margin-top: 25px; }
  .download-cta { width: min(100%, 390px); min-height: 82px; padding-left: 19px; }
  .download-cta-copy b { font-size: 19px; }
  .tutorial-link { min-height: 42px; }
  .download-status { margin-top: 10px; }
  .hero-visual { padding: 15px 12px 13px; box-shadow: 4px 4px 0 rgb(255 242 42 / 52%); }
  .visual-topline { font-size: 11px; }
  .visual-live { font-size: 10px; }
  .signal-stage { height: 278px; margin-block: 10px 8px; }
  .input-sources { left: 0; width: 120px; }
  .input-source { min-width: 0; gap: 8px; }
  .source-keys { top: 18%; }
  .source-mouse { top: 68%; }
  .source-keys-grid { width: 67px; grid-template-columns: repeat(3, 19px); gap: 4px; }
  .source-keys-grid b { width: 19px; height: 19px; font-size: 9px; }
  .input-source small { font-size: 9px; }
  .source-mouse svg { width: 18px; height: 26px; }
  .mapping-core { width: 62px; height: 70px; gap: 6px; }
  .core-diamond { width: 23px; height: 23px; }
  .core-orbit { inset: 10px 7px; }
  .core-orbit-b { inset: 7px 10px; }
  .mapping-core small { font-size: 9px; }
  .device-preview { right: 0; }
  .device-frame { width: 86px; height: 166px; padding: 5px; border-radius: 12px; }
  .device-frame::before { top: 4px; width: 23px; height: 3px; }
  .device-screen { border-radius: 8px; background-size: 15px 15px; }
  .screen-zone { width: 16px; height: 16px; }
  .screen-zone-c { width: 10px; height: 10px; }
  .screen-coordinates { font-size: 7px; }
  .device-preview > small { font-size: 9px; }
  .visual-footer { gap: 8px; font-size: 9px; }
  .visual-footer i { width: 12px; }
  .scroll-cue { right: max(20px, env(safe-area-inset-right)); bottom: 18px; }

  .capabilities { padding: 64px max(20px, env(safe-area-inset-left)) 48px; }
  .capabilities-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 28px; }
  .capabilities-heading .section-kicker { margin-bottom: 11px; }
  .capabilities-heading h2 { font-size: 36px; line-height: 1.35; }
  .capabilities-heading > p { max-width: 420px; font-size: 14px; }
  .capability { min-height: 244px; padding: 18px 14px 21px; }
  .feature-visual { height: 104px; margin-bottom: 13px; }
  .capability h3 { font-size: 15px; }
  .capability p { font-size: 12px; line-height: 1.7; }
  .platform-visual { gap: 5px; }
  .platform-pill { min-width: 45px; min-height: 32px; flex: 0 0 auto; font-size: 11px; }
  .platform-link { width: 22px; min-width: 12px; }
  .wheel-track { width: 78px; height: 78px; }
  .wheel-inner { width: 39px; height: 39px; }
  .touch-boundary { width: 134px; height: 67px; }
  .bluetooth-node { width: 34px; height: 34px; flex: 0 0 34px; }
  .bluetooth-visual { gap: 9px; }
  .bluetooth-route { min-width: 20px; max-width: 104px; flex: 1; }
  .site-footer { min-height: 88px; gap: 10px 18px; padding-inline: max(20px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .brand-footer .brand-name { font-size: 14px; }
  .footer-caption { display: none; }
  .footer-top { margin-left: auto; font-size: 11px; }
  .download-dialog { padding: 32px 23px 24px; }
  .download-dialog h2 { font-size: 23px; }
  .tutorial-main { min-height: calc(100svh - 70px); padding: 70px 24px; }
  .tutorial-main h1 { font-size: 48px; }
}

@media (max-width: 375px) {
  :root { --gutter: 18px; }
  .hero h1 { font-size: 42px; }
  .signal-stage { height: 255px; }
  .input-sources { width: 104px; }
  .input-source { gap: 6px; }
  .source-keys-grid { width: 60px; grid-template-columns: repeat(3, 17px); gap: 3px; }
  .source-keys-grid b { width: 17px; height: 18px; }
  .source-keys { flex-direction: column; align-items: flex-start; gap: 6px; }
  .device-frame { width: 78px; height: 154px; }
  .visual-footer { gap: 6px; font-size: 8px; }
  .visual-footer i { width: 9px; }
  .capabilities-heading h2 { font-size: 32px; }
  .capability { padding-inline: 10px; }
  .capability p { font-size: 12px; }
}

@keyframes live-blink {
  0%, 100% { opacity: .45; box-shadow: 0 0 0 0 rgb(255 242 42 / 0%); }
  50% { opacity: 1; box-shadow: 0 0 0 6px rgb(255 242 42 / 8%); }
}
@keyframes platform-ripple {
  0% { opacity: 0; scale: .75; }
  40% { opacity: 1; }
  100% { opacity: 0; scale: 1.45; }
}
@keyframes touch-echo {
  0% { opacity: .75; transform: scale(.85); }
  85%, 100% { opacity: 0; transform: scale(2.5); }
}

@media (hover: none), (pointer: coarse) {
  .pointer-canvas, .pointer-follower { display: none; }
  .hero-visual::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .pointer-canvas, .pointer-follower { display: none !important; }
  .field-canvas { display: none; }
  .hero-visual::before { display: none; }
  .download-cta, .brand-mark, .desktop-nav a, .tutorial-link, .capability, .footer-top span, .tutorial-back, .scroll-cue i {
    translate: none !important;
    rotate: none !important;
    scale: none !important;
  }
  .skip-link { translate: 0 -160% !important; }
  .skip-link:focus-visible { translate: 0 0 !important; }
}
