/*
 * SPDX-FileCopyrightText: 2026 ybblab
 * SPDX-License-Identifier: Apache-2.0
 */

/* ---------- Tokens: the Droidance site's neutral monochrome system ----------
   Light or dark follows the browser; the header switch changes only the current view. The app's
   amber marks what happened in the background, as it does in the app. */
:root{
  --ds-bg:#fafafa;--ds-bg-2:#f2f2f2;--ds-surface:#ffffff;--ds-fg:#0a0a0a;--ds-muted:#5f5f5f;--ds-faint:#b4b4b4;
  --ds-line:rgba(0,0,0,.08);--ds-line-strong:rgba(0,0,0,.18);--ds-accent-soft:rgba(0,0,0,.05);
  --ds-bubble:#ededed;--ds-card-line:rgba(0,0,0,.07);
  --ds-hero-from:#000000;--ds-hero-to:#6b6b6b;
  --warn:#e5900f;--warn-soft:rgba(229,144,15,.12);
  --display:"Geist","PingFang SC","HarmonyOS Sans SC","Hiragino Sans GB","Microsoft YaHei",-apple-system,sans-serif;
  --sans:"Geist",-apple-system,BlinkMacSystemFont,"PingFang SC","HarmonyOS Sans SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --mono:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --ease:cubic-bezier(.22,1,.36,1);
  --dur-feedback:300ms;--dur-page:500ms;--dur-reveal:700ms;
  --weight-heading:600;--weight-bold:700;
  --gutter:48px;
  --ds-handset-rim:rgba(0,0,0,.08);
  --ds-handset-key:#9a9a9a;
  color-scheme:light;
}
:root[data-appearance=dark]{
  --ds-bg:#000000;--ds-bg-2:#0e0e0e;--ds-surface:#181818;--ds-fg:#ededed;--ds-muted:#a3a3a3;--ds-faint:#4a4a4a;
  --ds-line:rgba(255,255,255,.08);--ds-line-strong:rgba(255,255,255,.18);--ds-accent-soft:rgba(255,255,255,.06);
  --ds-bubble:#272727;--ds-card-line:rgba(255,255,255,.09);
  --ds-hero-from:#ffffff;--ds-hero-to:#9b9b9b;
  --warn-soft:rgba(229,144,15,.18);
  --weight-heading:580;--weight-bold:660;
  --ds-handset-rim:rgba(255,255,255,.1);
  --ds-handset-key:#313131;
  color-scheme:dark;
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{margin:0;overflow-x:hidden;overflow-wrap:anywhere;background:var(--ds-bg);color:var(--ds-fg);font:14px/20px var(--sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;transition:background-color var(--dur-feedback) var(--ease),color var(--dur-feedback) var(--ease)}
::selection{background:var(--ds-fg);color:var(--ds-bg)}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}
h1,h2,h3{text-wrap:balance}
p{text-wrap:pretty}
a,button{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
a{text-decoration:none}
button{border:0;background:transparent;cursor:pointer;padding:0}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--ds-fg);outline-offset:4px;border-radius:6px}
svg{width:17px;height:17px;flex:none}
img{display:block}
.ds-skip{position:fixed;top:-64px;left:16px;z-index:200;background:var(--ds-fg);color:var(--ds-bg);padding:8px 16px;border-radius:8px}
.ds-skip:focus{top:8px}
.ds-wrap{max-width:1280px;margin:0 auto;padding:0 var(--gutter);position:relative}
.ds-progress{position:fixed;z-index:120;top:0;left:0;right:0;height:1px;opacity:.6;background:var(--ds-fg);transform:scaleX(var(--p,0));transform-origin:left;pointer-events:none}

/* ---------- Type ---------- */
h2{font-family:var(--display);font-weight:var(--weight-heading);font-size:36px;line-height:40px;letter-spacing:-.03em}
h3{font-family:var(--display);font-weight:var(--weight-heading);font-size:18px;line-height:28px;letter-spacing:-.015em}

/* ---------- Header ---------- */
.ds-header{position:fixed;z-index:60;top:0;left:0;right:0;height:64px;display:flex;align-items:center;gap:12px;padding:0 max(var(--gutter),calc((100% - 1280px)/2 + var(--gutter)));border-bottom:1px solid transparent;transition:transform var(--dur-page) var(--ease),background-color var(--dur-feedback) var(--ease),border-color var(--dur-feedback) var(--ease)}
.ds-header.is-scrolled{background:color-mix(in srgb,var(--ds-bg) 72%,transparent);backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);border-bottom-color:var(--ds-line)}
.ds-header.is-hidden{transform:translateY(-100%)}
.ds-wordmark{display:flex;align-items:center;gap:10px;width:max-content;white-space:nowrap;font:var(--weight-heading) 18px/28px var(--display);letter-spacing:-.02em}
.ds-wordmark .ds-logo{width:28px;height:28px;flex:none;object-fit:contain;border-radius:7px;display:block;box-shadow:0 2px 6px rgba(0,0,0,.15);transition:transform var(--dur-feedback) var(--ease)}
.ds-wordmark:hover .ds-logo{transform:scale(1.08)}
.ds-header nav{display:flex;align-items:center;gap:16px;margin-left:auto}
.ds-header-link{display:inline-flex;align-items:center;gap:4px;min-height:36px;white-space:nowrap;transition:opacity var(--dur-feedback) var(--ease)}
.ds-header-link:hover{opacity:.7}
.ds-header-link[aria-current=page]{text-decoration:underline;text-underline-offset:6px}
.ds-header-link svg{width:14px;height:14px}
.ds-appearance,.ds-language{display:flex;align-items:center;padding:2px;border:1px solid var(--ds-line);border-radius:9999px}
.ds-appearance button,.ds-language a{width:32px;height:32px;display:grid;place-items:center;color:var(--ds-muted);border-radius:9999px;transition:background-color var(--dur-feedback) var(--ease),color var(--dur-feedback) var(--ease)}
.ds-appearance button:hover,.ds-language a:hover{color:var(--ds-fg)}
.ds-appearance svg{width:16px;height:16px}
.ds-language a{font:var(--weight-heading) 12px/16px var(--sans)}
.ds-appearance button[aria-pressed=true],.ds-language a[aria-current=true]{color:var(--ds-fg);background:var(--ds-bubble)}

/* ---------- Buttons ---------- */
.ds-actions{display:flex;flex-wrap:wrap;gap:12px}
.ds-actions--center{justify-content:center}
.ds-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 24px;border-radius:9999px;font-size:16px;line-height:24px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;transition:opacity var(--dur-feedback) var(--ease),transform var(--dur-page) var(--ease),background-color var(--dur-feedback) var(--ease)}
.ds-button svg{width:16px;height:16px}
.ds-button--sm{padding:8px 12px;font-size:14px;line-height:20px}
.ds-button--ink{background:var(--ds-fg);color:var(--ds-bg)}
.ds-button--ink:hover{opacity:.88;transform:translateY(-2px)}
.ds-button--line{box-shadow:inset 0 0 0 1px var(--ds-line-strong)}
.ds-button--line:hover{background:var(--ds-accent-soft);transform:translateY(-2px)}
.ds-get svg{transition:transform var(--dur-page) var(--ease)}
.ds-get:hover svg{transform:translateY(2px)}
.ds-stars{display:inline-flex;align-items:center;gap:4px;margin-left:4px;padding-left:12px;border-left:1px solid var(--ds-line-strong);color:var(--ds-muted);font-variant-numeric:tabular-nums}
.ds-stars svg{width:14px;height:14px}

/* ---------- Home: figures beside the real case, and the closing title ----------*/
.hx-title{word-break:keep-all;font:var(--weight-bold) clamp(36px,4.6vw,60px)/1.1 var(--display);letter-spacing:-.04em}
.hx-stats{display:grid;grid-template-columns:repeat(3,max-content);gap:24px 40px;margin:16px 0 0}
.hx-stats div{display:flex;flex-direction:column-reverse;gap:6px}
.hx-stats dd{margin:0;font:var(--weight-bold) clamp(32px,3.4vw,44px)/1 var(--display);letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.hx-stats dd.is-warn{color:var(--warn)}
.hx-stats dt{max-width:8.5em;font-size:14px;line-height:20px;color:var(--ds-muted)}
.ds-rise{animation:ds-rise var(--dur-reveal) var(--ease) both;animation-delay:calc(var(--d)*70ms + 80ms)}
@keyframes ds-rise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}


/* ---------- Sections: the Droidance site's heading, showcase and question list ---------- */
.ds-section{padding:clamp(56px,9svh,96px) 0}
.ds-band{background:var(--ds-bg-2)}
.ds-heading{display:flex;flex-direction:column;align-items:center;gap:16px;max-width:880px;margin:0 auto clamp(36px,6svh,64px);text-align:center}
.ds-heading h2{word-break:keep-all;font-size:clamp(32px,4vw,48px);line-height:1.12;letter-spacing:-.04em}
.ds-heading p{max-width:680px;font-size:18px;line-height:28px;color:var(--ds-muted)}
.ds-hero{display:flex;align-items:center;min-height:min(100svh,860px);padding:88px 0 40px;overflow:hidden}
.ds-hero-grid{width:100%;max-width:1040px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.18fr) auto;align-items:center;gap:40px 56px}
.ds-hero-heading{display:flex;flex-direction:column;font-family:var(--display)}
.ds-brand-name,.ds-hero-title{display:block;width:fit-content;max-width:100%;background:linear-gradient(90deg,var(--ds-hero-from),var(--ds-hero-to));-webkit-background-clip:text;background-clip:text;color:transparent}
.ds-brand-name{font-weight:var(--weight-bold);font-size:clamp(54px,6.8vw,92px);line-height:1.08;letter-spacing:-.05em;padding-bottom:.06em}
.ds-hero-title{max-width:660px;word-break:keep-all;font-weight:var(--weight-heading);font-size:clamp(26px,3.2vw,38px);line-height:1.24;letter-spacing:-.03em}
.ds-hero-sub{display:block;margin-top:16px;font:var(--weight-heading) clamp(19px,2.1vw,26px)/1.42 var(--display);letter-spacing:-.015em;color:var(--ds-fg)}
.ds-lead{max-width:540px;margin-top:22px;font-size:17px;line-height:1.72;letter-spacing:-.005em;color:var(--ds-muted)}
.ds-hero-copy .ds-actions{margin-top:38px;gap:14px}
.ds-assurance{display:grid;grid-template-columns:repeat(4,max-content);gap:12px 28px;margin:32px 0 0;padding:0;list-style:none;font-size:14px}
.ds-assurance li{display:inline-flex;align-items:center;gap:8px}
/* English points run longer: two columns keep them beside the phone. */
html[lang="en"] .ds-assurance{grid-template-columns:repeat(2,max-content)}
.ds-assurance li:before{content:"";width:4px;height:4px;border-radius:9999px;background:var(--ds-muted)}
.ds-assurance [data-release-version]{font-variant-numeric:tabular-nums}
.ds-device{margin:0;display:flex;flex-direction:column;align-items:center;gap:16px;--handset:min(276px,calc((100svh - 160px)/2.2),72vw)}
.ds-device .ds-handset,.ds-showcase-device .ds-handset{width:var(--handset)}
.ds-showcase-device{flex-direction:column;align-items:center;gap:16px;--handset:min(276px,72vw)}
.ds-caption{font-size:12px;line-height:16px;color:var(--ds-muted)}
.ds-showcase{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:40px 72px;max-width:1080px;margin:0 auto}
.ds-showcase--rev{grid-template-columns:auto minmax(0,1fr)}
.ds-showcase-copy{display:flex;flex-direction:column;gap:16px;min-width:0}
.ds-showcase-copy h2{font-size:clamp(28px,3.6vw,44px);line-height:1.16;letter-spacing:-.035em}
.ds-showcase-copy .ds-lead{margin-top:0}
.ds-showcase-copy h2+.ds-lead{margin-top:4px}
.ds-showcase-device{display:flex;justify-content:center}

/* ---------- What Jiumi records: the app's twelve groups, one lit at a time ---------- */
.mx{margin-top:12px;padding:20px;border-radius:28px;background:var(--ds-surface);box-shadow:inset 0 0 0 1px var(--ds-card-line),0 24px 48px -36px rgba(0,0,0,.35)}
.mx-figures{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 28px;padding:4px 4px 18px}
.mx-figures p{display:flex;align-items:baseline;gap:6px;font-size:15px;color:var(--ds-muted)}
.mx-figures b{font:var(--weight-bold) 44px/1 var(--display);letter-spacing:-.045em;color:var(--ds-fg);font-variant-numeric:tabular-nums}
.mx-figures .mx-live{align-self:center;margin-left:auto;align-items:center;gap:8px;font-size:14px}
.mx-live i{position:relative;width:8px;height:8px;border-radius:50%;background:var(--warn)}
.mx-live i:after{content:"";position:absolute;inset:-5px;border-radius:50%;background:var(--warn);opacity:0;animation:mx-halo 2s var(--ease) infinite}
@keyframes mx-halo{from{transform:scale(.3);opacity:.5}to{transform:scale(1);opacity:0}}
.mx-grid{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.mx-glide{position:absolute;top:0;left:0;border-radius:16px;background:var(--ds-fg);transition:transform 640ms var(--ease),width 640ms var(--ease),height 640ms var(--ease)}
.mx-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:14px 12px 12px;border-radius:16px;box-shadow:inset 0 0 0 1px var(--ds-line);text-align:left;font-size:14px;line-height:20px;font-weight:500;color:var(--ds-fg);transition:color 400ms var(--ease),box-shadow 400ms var(--ease)}
.mx-tile svg{width:22px;height:22px;color:var(--ds-muted);transition:color 400ms var(--ease)}
.mx-tile.is-on{color:var(--ds-bg);box-shadow:none}
.mx-tile.is-on svg{color:var(--ds-bg)}
.mx-tile.is-on svg path{stroke-dasharray:100;animation:mx-draw 1.1s var(--ease) both}
@keyframes mx-draw{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
.mx-tile:after{content:attr(data-n);position:absolute;top:12px;right:12px;font:500 12px/16px var(--mono);color:var(--ds-faint);transition:color 400ms var(--ease)}
.mx-tile.is-on:after{color:color-mix(in srgb,var(--ds-bg) 55%,transparent)}
.mx-detail{min-height:92px;margin-top:16px;padding:16px 4px 2px;border-top:1px solid var(--ds-line)}
.mx-detail.is-swap{animation:mx-swap 520ms var(--ease)}
@keyframes mx-swap{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.mx-detail-head{display:flex;align-items:center;gap:10px}
.mx-detail-head b{font:var(--weight-heading) 17px/24px var(--display);letter-spacing:-.01em}
.mx-detail-head em{padding:2px 8px;border-radius:9999px;background:var(--ds-bubble);font:500 12px/16px var(--sans);font-style:normal;color:var(--ds-muted)}
.mx-detail p{margin-top:6px;font-size:15px;line-height:24px;color:var(--ds-muted)}

/* ---------- Managing an app: one row disabled, deleted into the backups, then restored ---------- */
.mg{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.mg-stage{padding:8px;border-radius:28px;background:var(--ds-surface);box-shadow:inset 0 0 0 1px var(--ds-card-line),0 24px 48px -36px rgba(0,0,0,.35)}
.mg-list{display:flex;flex-direction:column;min-height:186px}
.mg-row{display:flex;align-items:center;gap:12px;padding:10px 12px}
.mg-row.is-target{display:grid;grid-template-rows:1fr;padding:0;transition:grid-template-rows 640ms var(--ease) 120ms}
.mg-row-inner{position:relative;min-height:0;overflow:hidden;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:18px;transition:opacity 420ms var(--ease),transform 640ms var(--ease),background-color 420ms var(--ease)}
.mg-icon{width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:13px;background:var(--ds-bubble);color:var(--ds-fg);transition:filter 420ms var(--ease),opacity 420ms var(--ease)}
.mg-icon svg{width:21px;height:21px}
.mg-name{flex:1;min-width:0;display:flex;flex-direction:column;transition:opacity 420ms var(--ease)}
.mg-name b{font-size:15px;line-height:21px;font-weight:600}
.mg-name small{font-size:13px;line-height:18px;color:var(--ds-muted)}
.mg-chip{position:absolute;right:14px;top:50%;padding:3px 10px;border-radius:9999px;font-size:12.5px;line-height:18px;font-weight:600;opacity:0;transform:translate(10px,-50%);transition:opacity 360ms var(--ease),transform 480ms var(--ease)}
.mg-chip.is-off{background:var(--ds-bubble);color:var(--ds-muted)}
.mg-chip.is-back{background:rgba(47,163,107,.14);color:#2fa36b}
.mg-tray{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;margin-top:4px;min-height:56px;padding:8px 10px 8px 14px;border-radius:20px;background:var(--ds-bg-2)}
.mg-tray-label{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--ds-muted)}
.mg-tray-label svg{width:16px;height:16px}
.mg-pack,.mg-empty{grid-area:1/2;justify-self:end}
.mg-pack{display:flex;align-items:center;gap:8px;max-width:100%;padding:7px 12px 7px 8px;border-radius:14px;background:var(--ds-surface);box-shadow:0 8px 20px -12px rgba(0,0,0,.4);font-size:13px;line-height:18px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transform:translateY(-34px) scale(.9);transition:opacity 420ms var(--ease),transform 640ms cubic-bezier(.34,1.4,.64,1)}
.mg-pack svg{width:18px;height:18px;padding:4px;box-sizing:content-box;border-radius:8px;background:var(--ds-bubble)}
.mg-empty{font-size:13px;color:var(--ds-faint);transition:opacity 300ms var(--ease)}
.mg-stage[data-step="1"] .mg-row.is-target .mg-icon{filter:grayscale(1);opacity:.4}
.mg-stage[data-step="1"] .mg-row.is-target .mg-name{opacity:.45}
.mg-stage[data-step="1"] .mg-chip.is-off,.mg-stage[data-step="3"] .mg-chip.is-back{opacity:1;transform:translate(0,-50%)}
.mg-stage[data-step="2"] .mg-row.is-target{grid-template-rows:0fr}
.mg-stage[data-step="2"] .mg-row-inner{opacity:0;transform:translateY(28px) scale(.92)}
.mg-stage[data-step="2"] .mg-pack{opacity:1;transform:none;transition-delay:260ms}
.mg-stage[data-step="2"] .mg-empty{opacity:0}
.mg-stage[data-step="3"] .mg-row-inner{background:rgba(47,163,107,.07)}
.mg-stage[data-step="3"] .mg-pack{transform:translateY(-34px) scale(.9)}
.mg-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mg-step{position:relative;display:flex;flex-direction:column;gap:6px;padding:16px 16px 20px;border-radius:20px;background:var(--ds-surface);box-shadow:inset 0 0 0 1px var(--ds-card-line);text-align:left;transition:box-shadow 400ms var(--ease),transform var(--dur-feedback) var(--ease)}
.mg-step b{display:flex;align-items:center;gap:8px;font:var(--weight-heading) 16px/22px var(--display)}
.mg-step b svg{width:18px;height:18px}
.mg-step>span{font-size:13.5px;line-height:20px;color:var(--ds-muted)}
.mg-step s{position:absolute;left:16px;right:16px;bottom:10px;height:2px;border-radius:2px;background:var(--ds-line);overflow:hidden;opacity:0;transition:opacity 300ms var(--ease)}
.mg-step s:after{content:"";position:absolute;inset:0;background:var(--ds-fg);transform:scaleX(0);transform-origin:left}
.mg-step.is-on{box-shadow:inset 0 0 0 1.5px var(--ds-fg)}
.mg-step.is-on s{opacity:1}
.mg-step.is-on s:after{animation:mg-hold var(--hold,3s) linear both}
@keyframes mg-hold{to{transform:scaleX(1)}}

/* ---------- How it works: apps → Android's own records → the probe → Jiumi ----------
   One type scale: column labels 13 semibold muted, item titles 14 semibold, notes 12.5 muted.
   The wires are dashed straight lines and the moving dots travel exactly along them. */
.ar{position:relative;display:grid;grid-template-columns:112px minmax(0,1fr) 320px;grid-template-areas:"apps android app" "local local local";align-items:stretch;column-gap:48px;row-gap:20px;max-width:1160px;margin:0 auto;padding:40px 40px 24px;border-radius:36px;background:var(--ds-bg-2)}
.ar-wires{position:absolute;z-index:1;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.ar-base{fill:none;stroke:var(--ds-line-strong);stroke-width:1.5;stroke-dasharray:3 5;stroke-linecap:round}
.ar-base{transition:stroke 300ms var(--ease)}
.ar-base.is-live{stroke:var(--warn);animation:ar-flow 500ms linear infinite}
@keyframes ar-flow{to{stroke-dashoffset:-16}}
.ar-dot{fill:var(--warn);filter:drop-shadow(0 0 6px var(--warn))}
.ar-card,.ar-local{position:relative;z-index:2}
.ar-label{display:block;margin-bottom:12px;font-size:13px;line-height:18px;font-weight:600;color:var(--ds-muted)}
.ar-card{padding:16px;border-radius:22px;background:var(--ds-surface);box-shadow:inset 0 0 0 1px var(--ds-card-line),0 18px 36px -28px rgba(0,0,0,.35)}
.ar-card b{font-size:14px;line-height:20px;font-weight:600}
.ar-card small{display:block;font-size:12.5px;line-height:18px;color:var(--ds-muted)}
.ar-card.is-hit{animation:ar-hit 700ms var(--ease)}
@keyframes ar-hit{30%{box-shadow:inset 0 0 0 1.5px var(--warn),0 18px 36px -24px rgba(0,0,0,.4)}}

/* Apps: icons as a phone draws them, a name under each. */
.ar-apps{grid-area:apps;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.ar-tiles{display:grid;gap:14px;justify-items:center}
.ar-tile{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;line-height:16px;color:var(--ds-fg)}
.ar-tile-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:var(--ds-bg-2);color:var(--ds-fg);box-shadow:inset 0 0 0 1px var(--ds-card-line);transition:box-shadow 300ms var(--ease)}
.ar-tile-icon svg{width:24px;height:24px}
.ar-tile.is-hit .ar-tile-icon{animation:ar-pop 600ms var(--ease)}
@keyframes ar-pop{35%{transform:scale(1.12);box-shadow:inset 0 0 0 1.5px var(--warn)}}

/* Android: the system's records and the probe, inside one box. */
.ar-android{grid-area:android;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"label label" "sys probe" "dns dns";column-gap:40px;row-gap:14px;padding:16px;border-radius:28px;box-shadow:inset 0 0 0 1.5px var(--ds-line-strong)}
.ar-android-label{grid-area:label;display:flex;align-items:center;gap:6px;margin:0 0 2px 4px}
.ar-android-label svg{width:16px;height:16px}
.ar-sys{grid-area:sys}
.ar-sys ul{display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none}
.ar-sys li,.ar-dns{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:14px}
.ar-sys li svg,.ar-dns>svg{width:20px;height:20px;flex:none;color:var(--ds-muted)}
.ar-sys li>span,.ar-dns>span{min-width:0;display:flex;flex-direction:column}
.ar-sys li.is-hit{animation:ar-row 900ms var(--ease)}
@keyframes ar-row{25%{background:var(--warn-soft)}}
.ar-dns{grid-area:dns;padding:12px 16px}
.ar-probe{grid-area:probe;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center}
.ar-probe b{font-size:16px;line-height:22px}
.ar-cat{position:relative;width:72px;height:72px;margin-bottom:10px}
.ar-cat svg{position:relative;width:72px;height:72px;display:block;filter:drop-shadow(0 10px 16px rgba(125,105,240,.35))}
.ar-probe-ring{position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 2px #8f7cf6;opacity:0;animation:ar-ring 2.6s var(--ease) infinite}
@keyframes ar-ring{from{transform:scale(1);opacity:.5}to{transform:scale(1.7);opacity:0}}
.ar-cat-eyes{animation:ar-look 6s ease-in-out infinite}
.ar-cat-eyes ellipse{transform-box:fill-box;transform-origin:center;animation:ar-blink 6s ease-in-out infinite}
@keyframes ar-look{0%,12%{transform:none}22%,40%{transform:translateX(-2.2px)}52%,70%{transform:translateX(2.2px)}82%,100%{transform:none}}
@keyframes ar-blink{0%,44%,48%,100%{transform:none}46%{transform:scaleY(.1)}}
.ar-cat-head{transform-origin:32px 40px;transition:transform 300ms var(--ease)}
.ar-probe.is-hit .ar-cat-head{animation:ar-nod 600ms var(--ease)}
@keyframes ar-nod{40%{transform:rotate(-6deg) translateY(-1px)}}
.ar-ways{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:14px;padding:10px 12px 8px;border-radius:14px;box-shadow:inset 0 0 0 1px var(--ds-line-strong)}
.ar-ways-list{display:flex;flex-wrap:nowrap;gap:4px;white-space:nowrap}
.ar-ways span{padding:3px 10px;border-radius:9999px;background:var(--ds-bubble);font-size:12.5px;line-height:18px;font-weight:500;color:var(--ds-muted)}
.ar-ways span.is-on{background:var(--ds-fg);color:var(--ds-bg)}
.ar-probe .ar-ways small{font-size:12px;line-height:16px}

/* Jiumi: the newest records, each with the app that made it. */
.ar-app{grid-area:app;display:flex;flex-direction:column}
.ar-app{padding:18px}
.ar-app-head{display:flex;align-items:center;gap:12px;padding:0 2px 14px;border-bottom:1px solid var(--ds-line)}
.ar-app-head img{width:40px;height:40px;border-radius:11px}
.ar-app-head b{font-size:16px;line-height:22px}
.ar-feed{flex:1;display:flex;flex-direction:column;justify-content:space-between;gap:6px;margin:14px 0 0;padding:0;list-style:none;overflow:hidden}
.ar-feed li{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:14px;background:var(--ds-bg-2)}
.ar-feed li.is-new{animation:ar-in 640ms var(--ease)}
@keyframes ar-in{from{opacity:0;transform:translateY(-12px) scale(.97)}}
.ar-feed .ar-tile-icon{width:34px;height:34px;border-radius:10px;flex:none;background:var(--ds-surface);box-shadow:none}
.ar-feed .ar-tile-icon svg{width:17px;height:17px}
.ar-feed li>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column}
.ar-feed b,.ar-feed small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ar-feed b{font-size:13.5px;line-height:19px}
.ar-feed small{font-size:12.5px;line-height:17px}
.ar-feed em{flex:none;padding:2px 8px;border-radius:9999px;background:var(--ds-bubble);font-size:11.5px;line-height:16px;font-style:normal;font-weight:600;color:var(--ds-muted)}
.ar-feed em.is-bg{background:var(--warn-soft);color:var(--warn)}
.ar-local{grid-area:local;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px;font-size:14px;line-height:20px;color:var(--ds-muted)}

/* Narrower: one column, top to bottom. */
@media (max-width:1100px){
  .ar{grid-template-columns:minmax(0,1fr);grid-template-areas:"apps" "android" "app" "local";row-gap:40px;max-width:560px;padding:24px 22px 20px;border-radius:28px}
  .ar-tiles{grid-auto-flow:column;gap:10px;justify-content:space-around;width:100%}
  .ar-android{grid-template-columns:minmax(0,1fr);grid-template-areas:"label" "sys" "probe" "dns";row-gap:36px;padding:14px 26px 16px}
  .ar-feed{flex:none}
}
.ar-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 48px;max-width:1040px;margin:56px auto 0}
.ar-points svg{width:26px;height:26px;margin-bottom:14px}
.ar-points p{margin-top:6px;font-size:15px;line-height:24px;color:var(--ds-muted)}

.ds-faq{max-width:800px;margin:0 auto;border-top:1px solid var(--ds-line)}
.ds-faq details{border-bottom:1px solid var(--ds-line)}
.ds-faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 0;font:var(--weight-heading) 17px/26px var(--display);letter-spacing:-.01em;cursor:pointer;list-style:none}
.ds-faq summary::-webkit-details-marker{display:none}
.ds-faq summary svg{transition:transform var(--dur-page) var(--ease)}
.ds-faq details[open] summary svg{transform:rotate(45deg)}
.ds-faq p{padding:0 40px 22px 0;color:var(--ds-muted);font-size:15px;line-height:25px}
.ds-showcase-copy .hx-stats{margin-top:12px}

/* ---------- Handset: a shell drawn from the virtual display's own corner radius ----------
   The recordings show the virtual display's rounded edge at 7.4% of its width. With an ultra-narrow 1.8% bezel
   the screen is 96.4% of the handset: screen radius 7.03cqw, outer radius 8.83cqw. */
.ds-handset{container-type:inline-size;width:var(--handset,280px);max-width:100%;flex:none}
.ds-handset-body{position:relative;display:block;padding:1.8cqw;border-radius:8.83cqw;background:#181818;box-shadow:inset 0 0 0 1px rgba(255,255,255,.09),0 0 0 1px var(--ds-handset-rim),0 36px 64px -36px rgba(0,0,0,.6),0 16px 28px -18px rgba(0,0,0,.35)}
.ds-handset-screen{position:relative;display:block;width:100%;aspect-ratio:1080/2376;border-radius:7.03cqw;overflow:hidden;background:#000000;transform:translateZ(0)}
.ds-handset-screen>video{display:block;width:100%;height:100%;object-fit:cover;background:#000000}
.ds-punch{position:absolute;z-index:4;top:6.4cqw;left:50%;width:3.3cqw;height:3.3cqw;margin-left:-1.65cqw;border-radius:50%;pointer-events:none;background:#000000;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.ds-handset-button{position:absolute;display:block;right:-.8cqw;width:1cqw;border-radius:0 1cqw 1cqw 0;background:var(--ds-handset-key)}
.ds-handset-volume{top:19%;height:9%}
.ds-handset-power{top:31%;height:5.5%}
.ds-handset--mini{width:min(100%,260px)}

/* ---------- Reveal on scroll ---------- */
[data-reveal]{opacity:0;transform:translateY(32px);transition:opacity var(--dur-reveal) var(--ease),transform var(--dur-reveal) var(--ease);transition-delay:var(--stagger,0ms)}
[data-reveal].is-in{opacity:1;transform:none}

/* ---------- Finale ---------- */
.ds-finale{padding:clamp(64px,10svh,112px) 0}
.ds-finale-inner{display:flex;flex-direction:column;align-items:center;gap:28px;text-align:center}
.ds-finale-mascot{position:relative;display:flex;align-items:center;justify-content:center;user-select:none;pointer-events:none}
.ds-finale-mascot::after{content:"";position:absolute;inset:15% 10% -20% 10%;background:radial-gradient(ellipse at center,rgba(138,92,246,.28),transparent 70%);filter:blur(32px);z-index:-1;pointer-events:none}
:root[data-appearance=dark] .ds-finale-mascot::after{background:radial-gradient(ellipse at center,rgba(167,139,250,.35),transparent 70%);filter:blur(36px)}
.ds-mascot-media{width:160px;height:160px;object-fit:contain;display:block;animation:ds-float 4.5s var(--ease) infinite alternate}
@keyframes ds-float{from{transform:translateY(0) rotate(-2deg)}to{transform:translateY(-12px) rotate(2deg)}}

/* ---------- Footer ---------- */
.ds-footer{padding:40px 0 56px;border-top:1px solid var(--ds-line)}
.ds-footer-row{display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px}
.ds-footer-links{display:flex;flex-wrap:wrap;gap:8px 24px;margin-left:auto}
.ds-footer-links a{display:inline-flex;align-items:center;gap:4px;color:var(--ds-muted);transition:color var(--dur-feedback) var(--ease)}
.ds-footer-links a:hover{color:var(--ds-fg)}
.ds-footer-links svg{width:14px;height:14px}
.ds-footer-note{width:100%;color:var(--ds-muted);font-size:12px;line-height:16px}

/* ---------- Guide (download page) ---------- */
.gd{padding:112px 0 96px}
.gd-head{max-width:760px}
.gd-head h1{font:var(--weight-bold) clamp(40px,5vw,64px)/1.1 var(--display);letter-spacing:-.045em}
.gd-head p{margin-top:16px;font-size:18px;line-height:28px;color:var(--ds-muted)}
.gd-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:64px;margin-top:56px}
.gd-toc{position:sticky;top:88px;align-self:start;display:flex;flex-direction:column;gap:2px}
.gd-toc a{display:flex;gap:10px;padding:7px 12px;border-radius:10px;color:var(--ds-muted);font-size:14px;line-height:20px;transition:background-color var(--dur-feedback) var(--ease),color var(--dur-feedback) var(--ease)}
.gd-toc a b{font:500 12px/20px var(--mono)}
.gd-toc a:hover{color:var(--ds-fg)}
.gd-toc a[aria-current=true]{color:var(--ds-fg);background:var(--ds-bubble)}
.gd-toc summary{display:none}
.gd-body{max-width:720px}
.gd-section{padding:8px 0 48px;margin-bottom:40px;border-bottom:1px solid var(--ds-line)}
.gd-section:last-child{border-bottom:0}
.gd-num{margin-right:.6em;font-family:var(--mono);font-weight:600;color:var(--ds-faint);letter-spacing:-.02em}
.gd-section h2{font-size:30px;line-height:36px}
.gd-method{margin-top:16px;border-radius:20px;background:var(--ds-surface);box-shadow:inset 0 0 0 1px var(--ds-card-line)}
.gd-method summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;cursor:pointer;list-style:none}
.gd-method summary::-webkit-details-marker{display:none}
.gd-method summary>span{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.gd-method summary b{font:var(--weight-heading) 17px/26px var(--display)}
.gd-method summary small{font-size:14px;line-height:20px;color:var(--ds-muted)}
.gd-method summary svg{transition:transform var(--dur-page) var(--ease)}
.gd-method[open] summary svg{transform:rotate(45deg)}
.gd-section .gd-method ol{margin:0;padding:0 22px 6px 44px}
.gd-method li b{display:block;font-weight:600}
.gd-method li span{display:block;color:var(--ds-muted)}
.gd-method li+li{margin-top:12px}
.gd-section .gd-method .gd-note{margin:16px 22px 22px}
.gd-section h3{margin-top:28px;font-size:17px;line-height:26px}
.gd-section p,.gd-section li{font-size:16px;line-height:27px;color:var(--ds-fg)}
.gd-section p{margin-top:12px}
.gd-section ol,.gd-section ul{margin:12px 0 0;padding-left:22px}
.gd-section li+li{margin-top:6px}
.gd-section .muted{color:var(--ds-muted)}
.gd-section code{font:14px/1 var(--mono);padding:2px 6px;border-radius:6px;background:var(--ds-bubble)}
.gd-key{display:inline-block;padding:0 6px;border-radius:6px;background:var(--ds-bubble);font-weight:500}
.gd-note{margin-top:20px;padding:16px 18px;border-radius:16px;background:var(--ds-bg-2);color:var(--ds-muted);font-size:15px;line-height:25px}
.gd-download{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;margin-top:24px;padding:24px;border-radius:24px;background:var(--ds-surface);box-shadow:inset 0 0 0 1px var(--ds-card-line)}
.gd-download img{width:64px;height:64px;border-radius:16px}
.gd-download-meta{display:flex;flex-direction:column;gap:4px;margin-right:auto}
.gd-download-meta b{font:var(--weight-heading) 18px/26px var(--display)}
.gd-download-meta span{font:13px/18px var(--mono);color:var(--ds-muted);font-variant-numeric:tabular-nums}
.gd-download-links{display:flex;flex-wrap:wrap;gap:12px}
.gd-figure{margin:24px 0 0;display:flex;justify-content:center;padding:28px;border-radius:24px;background:var(--ds-bg-2)}

/* ---------- 404 ---------- */
.nf{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:120px 24px;text-align:center}
.nf img{width:96px;height:96px;border-radius:24px}
.nf h1{font:var(--weight-bold) 44px/1.1 var(--display);letter-spacing:-.04em}
.nf p{color:var(--ds-muted);font-size:17px;line-height:27px}


/* ---------- Narrow screens ---------- */
@media (max-width:980px){
  :root{--gutter:24px}
  .ds-hero{min-height:auto;padding-top:104px}
  .ds-hero-grid,.ds-showcase,.ds-showcase--rev{grid-template-columns:minmax(0,1fr);gap:40px}
  .ds-showcase-device{order:2}
  .ar-points{grid-template-columns:minmax(0,1fr);gap:28px;margin-top:40px}
  .gd-layout{grid-template-columns:1fr;gap:24px}
  .gd-toc{position:static;padding:4px;border-radius:16px;background:var(--ds-bg-2)}
  .gd-toc summary{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;font-weight:500;cursor:pointer;list-style:none}
  .gd-toc summary::-webkit-details-marker{display:none}
}
@media (max-width:640px){
  :root{--gutter:16px}
  .ds-header{gap:8px}
  .ds-header nav{gap:12px}
  .ds-header .ds-wordmark span,.ds-header .ds-get span{display:none}
  .ds-header .ds-get{padding:8px}
  .ds-hide-sm{display:none!important}
  .hx-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:40px}
  .hx-stats div{max-width:none}
  .hx-stats dd{font-size:30px}
  .hx-stats dt{font-size:13px;line-height:18px}
  .ds-faq p{padding-right:0}
  .mx{padding:16px;border-radius:24px}
  .mx-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mx-figures b{font-size:38px}
  .mx-figures .mx-live{margin-left:0;width:100%}
  .mg-steps{grid-template-columns:minmax(0,1fr)}
  .mg-step{padding:14px 16px 18px}
  .ds-heading p,.ds-lead{font-size:16px;line-height:26px}
  .ds-assurance,html[lang="en"] .ds-assurance{grid-template-columns:repeat(2,minmax(0,max-content));gap:10px 24px}
  .gd-section h2{font-size:26px;line-height:32px}
}
@media (prefers-reduced-motion:reduce){
  *,*:before,*:after{animation:none!important;transition:none!important}
  [data-reveal]{opacity:1;transform:none}
  html{scroll-behavior:auto}
}
