/* ==========================================================================
   言渡翻译 · site.css (REDESIGN-V2, 2026-11-14)

   Concept — 「渡线」The crossing line.
   One idea runs through the whole site: a lower shore (此岸, the words you
   type), a higher shore (彼岸, the translation) and one smooth line that
   crosses between them. It is the brand mark, the light route under the hero
   demo, the progress route of the status section and the CTA band.

   Rules this stylesheet keeps:
   - dark, restrained, precise: 1px hairlines, layered glass, soft shadows,
     fine grain (first-party /brand/grain.svg), one accent (青) + one support
     colour (蓝紫) used sparingly; no neon stacks, no rainbow gradients, no
     big blurred blobs;
   - zero JavaScript: every motion is CSS keyframes animating transform and
     opacity only, on named cubic-bezier curves, with staggered delays;
   - nothing that animates takes part in layout (no CLS);
   - CSP-safe: no inline styles are needed, no data: URIs, no external URLs;
   - `prefers-reduced-motion: reduce` stops every loop and shows a readable
     static end state of both demos.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Surfaces */
  --bg-0: #05070c;
  --bg-1: #080b12;
  --bg-2: #0c111b;
  --bg-3: #111826;
  --glass: rgba(14, 20, 32, 0.62);
  --glass-strong: rgba(12, 17, 27, 0.86);

  /* Lines */
  --line-1: rgba(148, 170, 210, 0.1);
  --line-2: rgba(148, 170, 210, 0.16);
  --line-3: rgba(148, 170, 210, 0.26);
  --line-hi: rgba(214, 236, 255, 0.14);

  /* Text */
  --text-1: #eef3fb;
  --text-2: #a9b6cb;
  --text-3: #8592a8;

  /* Accent (青) and support (蓝紫) */
  --accent: #46d2f0;
  --accent-hi: #8beefc;
  --accent-ink: #7fe0f2;
  --accent-soft: rgba(70, 210, 240, 0.12);
  --accent-line: rgba(70, 210, 240, 0.38);
  --blue: #4ea7ff;
  --violet: #9a8cff;
  --violet-soft: rgba(154, 140, 255, 0.12);

  /* Status */
  --ok: #5ad8a6;
  --progress: #f0b866;
  --soon: #a9a5ff;
  --planned: #8a96ab;

  /* The brand gradient follows the crossing: source (青) → target (蓝紫) */
  --brand-gradient: linear-gradient(100deg, #5fe3f3 0%, #4ea7ff 52%, #9a8cff 100%);

  /* Type */
  --font-sans:
    'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI',
    'PingFang SC', 'HarmonyOS Sans SC', 'MiSans', 'Microsoft YaHei UI', 'Microsoft YaHei',
    'Noto Sans CJK SC', 'Source Han Sans SC', sans-serif;
  --font-display:
    'Inter Display', 'SF Pro Display', -apple-system, BlinkMacSystemFont,
    'Segoe UI Variable Display', 'Segoe UI', 'PingFang SC', 'HarmonyOS Sans SC', 'MiSans',
    'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --font-mono:
    'JetBrains Mono', 'SF Mono', 'Cascadia Code', ui-monospace, Consolas, 'Microsoft YaHei UI',
    monospace;
  --font-ui: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei UI', sans-serif;

  --fs-display: clamp(2.125rem, 1.15rem + 3.5vw, 4.25rem);
  --fs-h1: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --fs-h2: clamp(1.625rem, 1.2rem + 1.5vw, 2.5rem);
  --fs-h3: 1.1875rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.875rem;
  --lh-body: 1.75;
  --lh-tight: 1.16;

  /* Space (4px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --content: 72rem;
  --section-y: clamp(4.5rem, 9vw, 8rem);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -22px rgba(0, 0, 0, 0.75);
  --shadow-float:
    0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 0 0 1px rgba(148, 170, 210, 0.14),
    0 44px 90px -30px rgba(0, 0, 0, 0.85), 0 18px 36px -18px rgba(0, 0, 0, 0.6);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.33, 0, 0.2, 1);
  --ease-press: cubic-bezier(0.3, 0, 0.5, 1.6);
  --dur-1: 160ms;
  --dur-2: 260ms;
  --dur-3: 480ms;
  --loop-instant: 10.5s;
  --loop-screen: 11s;
}

/* ---------- 2. Base ------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--accent-ink);
  text-decoration-color: rgba(127, 224, 242, 0.35);
  text-underline-offset: 0.22em;
  transition:
    color var(--dur-1) var(--ease-soft),
    text-decoration-color var(--dur-1) var(--ease-soft);
}

a:hover {
  color: var(--accent-hi);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(70, 210, 240, 0.28);
  color: #fff;
}

kbd {
  font-family: var(--font-mono);
}

.icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-sm);
  background: var(--accent-hi);
  color: #031018;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Fixed decorative layers: a faint top light and first-party film grain. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(90rem 38rem at 50% -14rem, rgba(78, 167, 255, 0.075), transparent 70%),
    radial-gradient(40rem 26rem at 88% 4rem, rgba(154, 140, 255, 0.045), transparent 70%),
    var(--bg-0);
}

.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/brand/grain.svg');
  background-size: 180px 180px;
  opacity: 0.045;
}

/* ---------- 3. Shared text pieces --------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 var(--s-4);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
}

.eyebrow::before {
  content: '';
  width: 1.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  text-decoration: none;
}

.text-link::after {
  content: '→';
  transition: transform var(--dur-2) var(--ease-out);
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* ---------- 4. Header ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 12, 0.72);
  border-bottom: 1px solid var(--line-1);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  width: min(100% - 2 * var(--gutter), var(--content));
  height: 4rem;
  margin-inline: auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: var(--text-1);
  text-decoration: none;
  white-space: nowrap;
}

.brand-lockup:hover {
  color: var(--text-1);
}

.brand-mark {
  flex: none;
  filter: drop-shadow(0 0 10px rgba(78, 167, 255, 0.22));
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
}

.brand-sep {
  width: 1px;
  height: 0.85rem;
  background: var(--line-3);
}

.brand-en {
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition:
    color var(--dur-1) var(--ease-soft),
    background-color var(--dur-1) var(--ease-soft);
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-1);
}

.nav-list a[aria-current='page'] {
  color: var(--text-1);
}

.nav-list a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: -0.78rem;
  height: 1px;
  background: var(--brand-gradient);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(70, 210, 240, 0.14), rgba(70, 210, 240, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #c9f6fd;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color var(--dur-1) var(--ease-soft),
    background-color var(--dur-1) var(--ease-soft);
}

.nav-cta:hover {
  border-color: rgba(139, 238, 252, 0.7);
  color: #fff;
}

.nav-cta svg {
  transition: transform var(--dur-2) var(--ease-out);
}

.nav-cta:hover svg {
  transform: translateX(2px);
}

/* Mobile menu: native <details>, no script. */
.nav-menu {
  position: relative;
  display: none;
}

.nav-menu-button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  list-style: none;
}

.nav-menu-button::-webkit-details-marker {
  display: none;
}

.menu-glyph {
  position: relative;
  display: block;
  width: 1.05rem;
  height: 0.6rem;
}

.menu-glyph i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text-1);
  transition: transform var(--dur-2) var(--ease-out);
}

.menu-glyph i:first-child {
  top: 0;
}

.menu-glyph i:last-child {
  bottom: 0;
}

.nav-menu[open] .menu-glyph i:first-child {
  transform: translateY(0.24rem) rotate(45deg);
}

.nav-menu[open] .menu-glyph i:last-child {
  transform: translateY(-0.24rem) rotate(-45deg);
}

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: min(20rem, calc(100vw - 2 * var(--gutter)));
  padding: 0.5rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: #0a0e16;
  box-shadow: var(--shadow-float);
}

.nav-menu-panel ul {
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.nav-menu-panel li a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: var(--fs-body);
  text-decoration: none;
}

.nav-menu-panel li a:hover,
.nav-menu-panel li a[aria-current='page'] {
  background: rgba(255, 255, 255, 0.05);
}

.nav-menu-panel li a[aria-current='page']::before {
  content: '';
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
}

.menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #8beefc, #46d2f0);
  color: #031018;
  font-weight: 650;
  text-decoration: none;
}

.menu-cta:hover {
  color: #031018;
}

/* ---------- 5. Buttons and status --------------------------------------- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--dur-2) var(--ease-out),
    border-color var(--dur-1) var(--ease-soft),
    background-color var(--dur-1) var(--ease-soft),
    color var(--dur-1) var(--ease-soft);
}

.button.primary {
  background: linear-gradient(180deg, #92effc 0%, #46d2f0 100%);
  border-color: rgba(139, 238, 252, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 28px -12px rgba(70, 210, 240, 0.65);
  color: #031018;
}

.button.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity var(--dur-1) var(--ease-soft);
}

.button.primary:hover {
  color: #031018;
  transform: translateY(-1px);
}

.button.primary:hover::after {
  opacity: 1;
}

.button.ghost {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-1);
}

.button.ghost:hover {
  border-color: rgba(214, 236, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.button.ghost svg {
  transition: transform var(--dur-2) var(--ease-out);
}

.button.ghost:hover svg {
  transform: translateX(2px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.status-dot {
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.status--ok {
  border-color: rgba(90, 216, 166, 0.28);
  background: rgba(90, 216, 166, 0.07);
  color: var(--ok);
}

.status--progress {
  border-color: rgba(240, 184, 102, 0.3);
  background: rgba(240, 184, 102, 0.07);
  color: var(--progress);
}

.status--soon {
  border-color: rgba(169, 165, 255, 0.32);
  background: rgba(169, 165, 255, 0.08);
  color: var(--soon);
}

.status--planned {
  color: var(--planned);
}

.status-dot--progress {
  color: var(--progress);
}

/* ---------- 6. Page frame ------------------------------------------------ */
main {
  display: block;
}

.section,
.hero,
.page-head,
.page-body,
.band,
.notice,
.panel {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
}

/* Nested frames take the width of their parent frame. */
:is(.section, .page-body, .page-head, .band) :is(.panel, .notice, .section) {
  width: auto;
  margin-inline: 0;
}

.section {
  padding-top: var(--section-y);
}

.section-head {
  max-width: 46rem;
  margin: 0 auto var(--s-7);
  text-align: center;
}

.section-head .eyebrow {
  justify-content: center;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.section-head--left .eyebrow {
  justify-content: flex-start;
}

.section-title {
  font-size: var(--fs-h2);
}

/* Keeps a Chinese heading from breaking inside a clause. */
.clause {
  display: inline-block;
}

.section-lead {
  margin-top: var(--s-4);
  color: var(--text-2);
  font-size: var(--fs-lead);
}

.section-foot {
  margin-top: var(--s-6);
  text-align: center;
}

/* ---------- 7. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: clamp(3rem, 6vw, 5rem);
}

.hero-glow {
  position: absolute;
  inset: 0 calc(-1 * var(--gutter)) auto;
  z-index: -1;
  height: 46rem;
  pointer-events: none;
  background:
    radial-gradient(42rem 22rem at 50% 0%, rgba(95, 227, 243, 0.12), transparent 70%),
    radial-gradient(30rem 18rem at 72% 12%, rgba(154, 140, 255, 0.08), transparent 70%),
    radial-gradient(26rem 16rem at 26% 18%, rgba(78, 167, 255, 0.06), transparent 70%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 62rem;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: var(--s-5);
  padding: 0.32rem 0.85rem 0.32rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(12, 17, 27, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-size: var(--fs-xs);
}

.hero-badge .status-dot {
  box-shadow: 0 0 0 3px rgba(240, 184, 102, 0.14);
}

.hero-title {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.012em;
}

.hero-line {
  display: block;
}

.hero-line--accent {
  background: linear-gradient(100deg, #f4f8ff 0%, #b9eefa 38%, #9fc6ff 68%, #b8b1ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 40rem;
  margin-top: var(--s-5);
  color: var(--text-2);
  font-size: var(--fs-lead);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: var(--s-6);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.5rem;
  margin: var(--s-6) 0 0;
  padding: 0;
  color: var(--text-3);
  font-size: var(--fs-xs);
  list-style: none;
}

.hero-facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}

.hero-facts li + li::before {
  content: '';
  align-self: center;
  width: 3px;
  height: 3px;
  margin-right: 1.2rem;
  margin-left: -0.3rem;
  border-radius: 50%;
  background: var(--line-3);
}

.hero-facts strong {
  color: var(--text-1);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ---------- 8. Demo A · 输入即翻译 ---------------------------------------- */
.demo {
  margin: 0;
}

.demo--instant {
  margin-top: clamp(2.5rem, 4.5vw, 3.75rem);
}

/* Geometry (all in em of --d, so the whole illustration scales as one):
   floating window top 4em / height 25em (bottom 29em, the lower shore);
   target app top 0 / height 22em (bottom 22em, the higher shore);
   the route box puts its low shore 0.8em under the floating window and its
   high shore 0.8em under the target app: top 21.44em, height 9.72em. */
.instant-stage {
  --d: 13px;
  --route-top: 21.44em;
  --route-h: 9.72em;
  position: relative;
  height: 31.5em;
  font-family: var(--font-ui);
  font-size: var(--d);
  line-height: 1.5;
}

@media (min-width: 1280px) {
  .instant-stage {
    --d: 14px;
  }
}

/* Soft pool of light under the windows (reflection on still water). */
.instant-stage::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -3em;
  height: 12em;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(78, 167, 255, 0.11), transparent 72%);
}

/* The crossing line under the two windows. */
.route {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--route-top);
  width: 100%;
  height: var(--route-h);
  overflow: visible;
}

/* The runner's box travels with it, so the lane is clipped (with vertical
   padding for the glow) to keep the document from growing sideways. */
.route-track {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--route-top) - 1.5em);
  height: calc(var(--route-h) + 3em);
  overflow: hidden;
  pointer-events: none;
}

.route-lane {
  position: absolute;
  left: 0;
  right: 0;
  top: 1.5em;
  height: var(--route-h);
}

.route-echo {
  opacity: 0.35;
}

.route-runner {
  position: absolute;
  inset: 0;
  animation: ia-run-x var(--loop-instant) linear infinite both;
}

.route-rise {
  position: absolute;
  inset: 0;
  animation: ia-run-y var(--loop-instant) linear infinite both;
}

.route-dot {
  position: absolute;
  left: 0;
  top: 86%;
  width: 0.5em;
  height: 0.5em;
  margin: -0.25em 0 0 -0.25em;
  border-radius: 50%;
  background: #eafcff;
  box-shadow:
    0 0 0 3px rgba(95, 227, 243, 0.16),
    0 0 14px 3px rgba(95, 227, 243, 0.55),
    -18px 0 22px -4px rgba(95, 227, 243, 0.35);
  animation: ia-run-fade var(--loop-instant) linear infinite both;
}

.route-landing {
  position: absolute;
  left: 78%;
  top: 14%;
  width: 2.4em;
  height: 2.4em;
  border: 1px solid rgba(154, 140, 255, 0.7);
  border-radius: 50%;
  animation: ia-land var(--loop-instant) var(--ease-out) infinite both;
}

/* Window chrome shared by the target app and the floating window. */
.win-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.5em;
  padding: 0 0.6em 0 1em;
  border-bottom: 1px solid rgba(148, 170, 210, 0.12);
  color: #94a3b8;
  font-size: 0.92em;
}

.win-title {
  overflow: hidden;
  color: #cbd5e1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-ctl {
  display: flex;
  gap: 0.2em;
}

.ctl {
  position: relative;
  display: block;
  width: 2.2em;
  height: 1.6em;
  border-radius: 4px;
}

.ctl::before,
.ctl::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.75em;
  height: 1px;
  background: #94a3b8;
  transform: translate(-50%, -50%);
}

.ctl--max::before {
  height: 0.65em;
  width: 0.7em;
  border: 1px solid #94a3b8;
  background: transparent;
}

.ctl--max::after,
.ctl--min::after {
  display: none;
}

.ctl--close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.ctl--close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Target app (back layer, glass). */
.app-window {
  position: absolute;
  top: 0;
  left: 31em;
  right: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 22em;
  overflow: hidden;
  border: 1px solid rgba(148, 170, 210, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 28, 43, 0.72), rgba(12, 17, 27, 0.66));
  box-shadow:
    var(--shadow-2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}

.app-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.app-rail {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  width: 4.6em;
  padding: 1.2em 0;
  align-items: center;
  border-right: 1px solid rgba(148, 170, 210, 0.08);
}

.rail-item {
  width: 1.9em;
  height: 1.9em;
  border-radius: 0.6em;
  background: rgba(148, 170, 210, 0.08);
}

.rail-item.is-active {
  background: rgba(70, 210, 240, 0.18);
  box-shadow: inset 0 0 0 1px rgba(70, 210, 240, 0.35);
}

.app-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 1.4em 1.6em 1.3em 2.6em;
}

.app-thread {
  display: flex;
  gap: 0.8em;
  align-items: flex-start;
}

.app-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a3a55, #1b2638);
  color: #cbd5e1;
  font-size: 0.92em;
  font-weight: 600;
}

.app-bubble {
  max-width: 30em;
  padding: 0.7em 1em;
  border: 1px solid rgba(148, 170, 210, 0.12);
  border-radius: 0.3em 1em 1em 1em;
  background: rgba(30, 41, 59, 0.55);
}

.app-from {
  color: #e2e8f0;
  font-size: 0.92em;
  font-weight: 600;
}

.app-from span {
  margin-left: 0.4em;
  color: #64748b;
  font-weight: 400;
}

.app-text {
  margin-top: 0.15em;
  color: #cbd5e1;
  font-size: 1.04em;
}

.app-reply-label {
  margin-bottom: 0.45em;
  color: #94a3b8;
  font-size: 0.85em;
}

.app-field {
  position: relative;
  min-height: 4.9em;
  padding: 0.75em 0.95em;
  border: 1px solid rgba(148, 170, 210, 0.2);
  border-radius: 0.7em;
  background: rgba(8, 12, 20, 0.55);
}

.app-inserted {
  position: relative;
  color: #f1f5f9;
  font-size: 1.04em;
  line-height: 1.55;
  animation: ia-inserted var(--loop-instant) var(--ease-out) infinite both;
}

.app-flash {
  position: absolute;
  inset: -0.35em -0.5em;
  border-radius: 0.5em;
  background: linear-gradient(90deg, rgba(70, 210, 240, 0.2), rgba(154, 140, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(70, 210, 240, 0.25);
  animation: ia-flash var(--loop-instant) var(--ease-soft) infinite both;
}

.app-inserted-text {
  position: relative;
}

.app-caret {
  display: inline-block;
  width: 1.5px;
  height: 1.2em;
  vertical-align: -0.2em;
}

.app-caret i {
  display: block;
  width: 100%;
  height: 100%;
  background: #e2e8f0;
  animation: caret-blink 1.06s steps(1, end) infinite;
}

.app-caret--before {
  position: absolute;
  top: 0.95em;
  left: 0.95em;
  animation: ia-caret-before var(--loop-instant) linear infinite both;
}

.app-caret--after {
  margin-left: 2px;
  animation: ia-caret-after var(--loop-instant) linear infinite both;
}

.app-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.7em;
}

.app-send {
  padding: 0.35em 1.1em;
  border-radius: 0.5em;
  background: rgba(148, 170, 210, 0.12);
  color: #cbd5e1;
  font-size: 0.85em;
}

/* Floating window (front layer) — colours follow the real app. */
.fw-wrap {
  position: absolute;
  top: 4em;
  left: 0;
  z-index: 3;
  width: 36em;
}

.fw {
  display: flex;
  flex-direction: column;
  height: 25em;
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 12px;
  background: #0f172a;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.08),
    0 50px 100px -30px rgba(0, 0, 0, 0.9),
    0 24px 50px -24px rgba(2, 6, 23, 0.9),
    0 0 60px -10px rgba(56, 189, 248, 0.12);
  color: #f8fafc;
  transform-origin: 50% 80%;
  animation: ia-window var(--loop-instant) var(--ease-out) infinite both;
}

.fw-titlebar {
  background: #0b1222;
}

.fw-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  padding: 0.45em 0.9em;
  border-bottom: 1px solid #334155;
}

.fw-scenes {
  display: flex;
  gap: 0.15em;
}

.fw-scene {
  padding: 0.15em 0.6em;
  border: 1px solid transparent;
  border-radius: 0.45em;
  color: #94a3b8;
  font-size: 0.92em;
  white-space: nowrap;
}

.fw-scene.is-active {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.fw-dir {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: #94a3b8;
  font-size: 0.92em;
  white-space: nowrap;
}

.fw-swap {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 0.1em 0.45em;
  border: 1px solid #475569;
  border-radius: 0.45em;
  color: #cbd5e1;
}

.fw-swap svg {
  width: 1.05em;
  height: 1.05em;
}

.fw-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45em;
  min-height: 0;
  padding: 0.6em 0.9em;
}

.fw-src,
.fw-out {
  position: relative;
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 0.6em;
  padding: 0.55em 0.75em;
}

.fw-src {
  height: 5.1em;
  background: #161f32;
}

.fw-out {
  flex: 1;
  background: #1e293b;
}

.fw-focus {
  position: absolute;
  inset: -1px;
  border: 1px solid #38bdf8;
  border-radius: inherit;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
  pointer-events: none;
  animation: ia-focus var(--loop-instant) var(--ease-soft) infinite both;
}

.fw-ph {
  position: absolute;
  top: 0.55em;
  left: 0.75em;
  z-index: 3;
  color: #64748b;
  font-size: 1.12em;
  white-space: nowrap;
}

.fw-ph--src {
  animation: ia-ph-src var(--loop-instant) linear infinite both;
}

.fw-ph--out {
  animation: ia-ph-out var(--loop-instant) linear infinite both;
}

/* Typing: the text is laid out once; a curtain of the field colour steps
   right in IME-sized chunks (CJK glyphs are exactly 1em wide). */
.fw-typed {
  position: relative;
  display: inline-block;
  color: #cbd5e1;
  font-size: 1.12em;
  line-height: 1.6;
  white-space: nowrap;
}

.fw-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 24em;
  background: #161f32;
  animation: ia-type var(--loop-instant) step-end infinite both;
}

.fw-caret {
  position: absolute;
  top: 0.18em;
  bottom: 0.18em;
  left: 0;
  width: 1.5px;
  background: #e2e8f0;
  animation: caret-blink 1.06s steps(1, end) infinite;
}

/* Live translation: each line is revealed by a feathered wipe whose leading
   edge carries a thin glint — light passes, the translation develops. */
.fw-line {
  position: relative;
  overflow: hidden;
  color: #f8fafc;
  font-size: 1.12em;
  line-height: 1.55;
}

.fw-line-text {
  position: relative;
}

.fw-wipe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -3em;
  width: calc(100% + 3em);
  z-index: 2;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0) 0, #1e293b 3em);
}

.fw-wipe::before {
  content: '';
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 1.5em;
  width: 1.5px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, #8beefc 30%, #c4bdff 70%, transparent);
  box-shadow: 0 0 10px 2px rgba(95, 227, 243, 0.45);
}

.fw-line--1 .fw-wipe {
  animation: ia-wipe-1 var(--loop-instant) linear infinite both;
}

.fw-line--2 .fw-wipe {
  animation: ia-wipe-2 var(--loop-instant) linear infinite both;
}

.fw-foot {
  display: flex;
  align-items: center;
  gap: 0.4em;
  height: 3em;
  padding: 0 0.9em;
  border-top: 1px solid #334155;
}

.fw-btn {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.3em;
  height: 2.15em;
  padding: 0 0.6em;
  border: 1px solid #475569;
  border-radius: 0.45em;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 0.92em;
  white-space: nowrap;
}

.fw-btn kbd {
  padding: 0.1em 0.3em;
  border-radius: 0.25em;
  background: rgba(148, 163, 184, 0.15);
  font-size: 0.78em;
  line-height: 1;
}

.fw-btn--primary {
  border-color: #38bdf8;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
}

.fw-btn--primary kbd {
  background: rgba(15, 23, 42, 0.15);
}

.fw-insert {
  animation: ia-press var(--loop-instant) var(--ease-press) infinite both;
}

.fw-insert::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.25),
    0 0 18px 2px rgba(56, 189, 248, 0.45);
  animation: ia-insert-glow var(--loop-instant) var(--ease-soft) infinite both;
}

.fw-ring {
  position: absolute;
  inset: -3px;
  border: 1.5px solid rgba(139, 238, 252, 0.85);
  border-radius: 0.6em;
  pointer-events: none;
  animation: ia-ring var(--loop-instant) var(--ease-out) infinite both;
}

.fw-target {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #94a3b8;
  font-size: 0.85em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fw-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.15em;
  height: 2.15em;
  border: 1px solid #475569;
  border-radius: 0.45em;
  background: #1e293b;
  color: #cbd5e1;
}

.fw-icon svg {
  width: 1.1em;
  height: 1.1em;
}

.hotkey {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.7em 0.9em;
  border: 1px solid rgba(148, 170, 210, 0.22);
  border-radius: 0.9em;
  background: rgba(12, 17, 27, 0.85);
  box-shadow: var(--shadow-float);
  color: var(--text-3);
  font-size: 1.05em;
  animation: ia-hotkey var(--loop-instant) var(--ease-out) infinite both;
}

.hotkey kbd {
  min-width: 2.3em;
  padding: 0.35em 0.6em;
  border: 1px solid rgba(148, 170, 210, 0.3);
  border-bottom-width: 2px;
  border-radius: 0.45em;
  background: linear-gradient(180deg, #1b2436, #121a29);
  color: var(--text-1);
  font-size: 0.92em;
  text-align: center;
}

/* Caption: three steps whose highlight follows the animation. */
.instant-steps {
  margin-top: var(--s-6);
}

.instant-steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-2);
}

.step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--brand-gradient);
  transform-origin: 0 50%;
}

.step--1 {
  animation: ia-step-1 var(--loop-instant) var(--ease-soft) infinite both;
}

.step--2 {
  animation: ia-step-2 var(--loop-instant) var(--ease-soft) infinite both;
}

.step--3 {
  animation: ia-step-3 var(--loop-instant) var(--ease-soft) infinite both;
}

.step--1::before {
  animation: ia-bar-1 var(--loop-instant) linear infinite both;
}

.step--2::before {
  animation: ia-bar-2 var(--loop-instant) linear infinite both;
}

.step--3::before {
  animation: ia-bar-3 var(--loop-instant) linear infinite both;
}

.step-index {
  grid-row: span 2;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

.step-title {
  color: var(--text-1);
  font-weight: 600;
}

.step-text {
  color: var(--text-2);
  font-size: var(--fs-xs);
}

/* Demo A timeline (10.5 s loop, generated from a seconds-based spec):
   0.2–1.2 s hotkey Ctrl+Alt+T · 1.0–1.46 s window opens · 1.4–1.62 s input
   focus · 1.93–4.48 s typing in IME chunks · 3.03 s / 4.72 s translation
   lines wipe in (≈ 0.2 s after a pause) · 5.1 s 插入 highlights, 5.72 s
   pressed · 6.05–6.45 s window closes · 6.12–6.55 s text lands in the target
   app · hold to 9.2 s · 9.65 s reset. Light runner crosses 1.9–6.1 s. */
@keyframes ia-hotkey {
  0%,
  2.1% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(0.6em) scale(0.96);
  }
  4.57% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
  6.48% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  7.43% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.94);
  }
  8.76% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  11.62%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.03);
  }
}

@keyframes ia-window {
  0%,
  9.33% {
    opacity: 0;
    transform: translateY(1.2em) scale(0.975);
  }
  13.9%,
  57.62% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  61.43%,
  100% {
    opacity: 0;
    transform: translateY(0.6em) scale(0.985);
  }
}

@keyframes ia-focus {
  0%,
  13.33% {
    opacity: 0;
  }
  15.43%,
  59.05% {
    opacity: 1;
  }
  61.43%,
  100% {
    opacity: 0;
  }
}

@keyframes ia-ph-src {
  0%,
  18.29% {
    opacity: 1;
  }
  18.38%,
  65.71% {
    opacity: 0;
  }
  67.62%,
  100% {
    opacity: 1;
  }
}

@keyframes ia-ph-out {
  0%,
  28.57% {
    opacity: 1;
  }
  28.95%,
  65.71% {
    opacity: 0;
  }
  67.62%,
  100% {
    opacity: 1;
  }
}

@keyframes ia-type {
  0% {
    transform: translateX(0);
  }
  18.38% {
    transform: translateX(3em);
  }
  22.67% {
    transform: translateX(6em);
  }
  26.95% {
    transform: translateX(9em);
  }
  33.62% {
    transform: translateX(12em);
  }
  37.9% {
    transform: translateX(16em);
  }
  42.67% {
    transform: translateX(20em);
  }
  66.67%,
  100% {
    transform: translateX(0);
  }
}

@keyframes ia-wipe-1 {
  0%,
  28.86% {
    transform: translateX(0);
    animation-timing-function: cubic-bezier(0.22, 0.75, 0.3, 1);
  }
  34.86%,
  65.71% {
    transform: translateX(101%);
  }
  65.81%,
  100% {
    transform: translateX(0);
  }
}

@keyframes ia-wipe-2 {
  0%,
  44.95% {
    transform: translateX(0);
    animation-timing-function: cubic-bezier(0.22, 0.75, 0.3, 1);
  }
  51.9%,
  65.71% {
    transform: translateX(101%);
  }
  65.81%,
  100% {
    transform: translateX(0);
  }
}

@keyframes ia-insert-glow {
  0%,
  48.57% {
    opacity: 0;
  }
  50.86%,
  56.67% {
    opacity: 1;
  }
  60%,
  100% {
    opacity: 0;
  }
}

@keyframes ia-press {
  0%,
  53.52% {
    transform: scale(1);
  }
  54.48% {
    transform: scale(0.94);
  }
  56%,
  100% {
    transform: scale(1);
  }
}

@keyframes ia-ring {
  0%,
  54.1% {
    opacity: 0;
    transform: scale(1);
  }
  54.76% {
    opacity: 0.9;
    transform: scale(1);
  }
  59.52%,
  100% {
    opacity: 0;
    transform: scale(1.18, 1.55);
  }
}

@keyframes ia-inserted {
  0%,
  58.29% {
    opacity: 0;
    transform: translateY(0.3em);
  }
  62.38%,
  87.62% {
    opacity: 1;
    transform: translateY(0);
  }
  91.9%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

@keyframes ia-flash {
  0%,
  58.29% {
    opacity: 0;
  }
  60.57% {
    opacity: 1;
  }
  78.1%,
  100% {
    opacity: 0;
  }
}

@keyframes ia-caret-before {
  0%,
  58.1% {
    opacity: 1;
  }
  58.19%,
  92.29% {
    opacity: 0;
  }
  92.38%,
  100% {
    opacity: 1;
  }
}

@keyframes ia-caret-after {
  0%,
  62.38% {
    opacity: 0;
  }
  62.48%,
  87.62% {
    opacity: 1;
  }
  87.71%,
  100% {
    opacity: 0;
  }
}

@keyframes ia-run-x {
  0%,
  18.1% {
    transform: translateX(0);
  }
  58.1%,
  100% {
    transform: translateX(78%);
  }
}

@keyframes ia-run-y {
  0%,
  37.58% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  49.89%,
  100% {
    transform: translateY(-72%);
  }
}

@keyframes ia-run-fade {
  0%,
  18.1% {
    opacity: 0;
  }
  21.43%,
  54.48% {
    opacity: 1;
  }
  58.29%,
  100% {
    opacity: 0;
  }
}

@keyframes ia-land {
  0%,
  57.33% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  59.05% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.6);
  }
  65.71%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8);
  }
}

@keyframes ia-step-1 {
  0%,
  0.95% {
    opacity: 0.5;
  }
  3.24%,
  15.43% {
    opacity: 1;
  }
  17.71%,
  100% {
    opacity: 0.5;
  }
}

@keyframes ia-step-2 {
  0%,
  16% {
    opacity: 0.5;
  }
  18.29%,
  51.43% {
    opacity: 1;
  }
  53.71%,
  100% {
    opacity: 0.5;
  }
}

@keyframes ia-step-3 {
  0%,
  52% {
    opacity: 0.5;
  }
  54.29%,
  87.62% {
    opacity: 1;
  }
  90.48%,
  100% {
    opacity: 0.5;
  }
}

@keyframes ia-bar-1 {
  0%,
  0.95% {
    opacity: 1;
    transform: scaleX(0);
  }
  16% {
    opacity: 1;
    transform: scaleX(1);
  }
  18.86%,
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes ia-bar-2 {
  0%,
  16.57% {
    opacity: 1;
    transform: scaleX(0);
  }
  52% {
    opacity: 1;
    transform: scaleX(1);
  }
  54.86%,
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes ia-bar-3 {
  0%,
  52.57% {
    opacity: 1;
    transform: scaleX(0);
  }
  87.62% {
    opacity: 1;
    transform: scaleX(1);
  }
  90.48%,
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

/* ---------- 9. Bento ----------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-4);
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  grid-column: span 2;
  padding: var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(17, 24, 38, 0.9), rgba(10, 14, 22, 0.9)) padding-box,
    linear-gradient(
        160deg,
        rgba(214, 236, 255, 0.18),
        rgba(148, 170, 210, 0.06) 40%,
        rgba(148, 170, 210, 0.1)
      )
      border-box;
  box-shadow: var(--shadow-2);
  transition: transform var(--dur-3) var(--ease-out);
}

.tile--wide {
  grid-column: span 4;
}

.tile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-3);
}

.tile-title {
  font-size: var(--fs-h3);
}

.tile-text {
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.tile-list {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: var(--fs-xs);
}

.tile-list li {
  display: flex;
  gap: 0.55rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--line-1);
}

.tile-list li::before {
  content: '';
  flex: none;
  width: 0.7rem;
  height: 1px;
  margin-top: 0.8em;
  background: var(--accent);
}

.tile--link {
  color: inherit;
  text-decoration: none;
}

.tile--link:hover {
  color: inherit;
  transform: translateY(-2px);
}

.tile--screen {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-2) var(--s-6);
  background:
    linear-gradient(100deg, rgba(240, 184, 102, 0.06), rgba(10, 14, 22, 0.9) 45%) padding-box,
    linear-gradient(
        160deg,
        rgba(240, 184, 102, 0.28),
        rgba(148, 170, 210, 0.08) 45%,
        rgba(148, 170, 210, 0.1)
      )
      border-box;
}

.tile--screen .tile-head {
  justify-content: flex-start;
}

.tile--screen .tile-more {
  grid-row: span 2;
  grid-column: 2;
}

.tile-more {
  color: var(--accent-ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 0.18rem 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

.chips--dense .chip {
  padding: 0.1rem 0.5rem;
}

.latency {
  display: grid;
  grid-template-columns: auto minmax(5rem, 1fr) auto;
  align-items: center;
  gap: var(--s-4);
  margin-top: auto;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  background: rgba(5, 7, 12, 0.45);
}

.latency-side {
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.latency-side--src {
  color: var(--text-1);
}

.latency-side--dst {
  color: #c9c3ff;
}

.latency-bridge {
  position: relative;
  display: block;
  height: 2.6rem;
  color: rgba(127, 224, 242, 0.7);
}

.latency-bridge svg {
  width: 100%;
  height: 2rem;
}

.latency-bridge span {
  position: absolute;
  left: 50%;
  bottom: -0.35rem;
  transform: translateX(-50%);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: nowrap;
}

.keys {
  display: grid;
  gap: 0.6rem;
  margin-top: auto;
}

.keys p {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.keys p span:last-child {
  margin-left: 0.35rem;
}

.keys-plus {
  color: var(--text-3);
}

.keycap {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.1rem;
  padding: 0 0.6rem;
  border: 1px solid var(--line-3);
  border-bottom-width: 2px;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #1a2333, #111826);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text-1);
  font-size: 0.8125rem;
}

.keycap--wide {
  min-width: 4.2rem;
}

/* ---------- 10. Demo B · 屏幕区域翻译 ------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.split-copy .section-lead {
  margin-bottom: var(--s-5);
}

.check-list {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 var(--s-5);
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.scr {
  --d: 14px;
  position: relative;
  padding: 1.1em;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.92), rgba(6, 9, 15, 0.92));
  box-shadow: var(--shadow-2);
  font-size: var(--d);
}

.scr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 0.9em;
}

.scr-label {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.78em;
  letter-spacing: 0.16em;
}

.scr .status {
  font-size: 0.82em;
}

.scr-canvas {
  position: relative;
  padding: 1.6em;
  overflow: hidden;
  border: 1px dashed rgba(148, 170, 210, 0.2);
  border-radius: var(--r-md);
  background-color: #070a11;
  background-image: radial-gradient(rgba(148, 170, 210, 0.16) 1px, transparent 1.3px);
  background-size: 1.15em 1.15em;
}

.scr-media {
  position: relative;
  padding: 1.3em 1.4em 1.5em;
  border-radius: 0.8em;
  background: linear-gradient(145deg, #1b2235 0%, #121725 55%, #0d111b 100%);
  box-shadow:
    0 20px 40px -24px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.scr-kicker {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.9em;
  color: #9aa6bb;
  font-size: 0.86em;
  letter-spacing: 0.02em;
}

.scr-kicker span {
  font-family: var(--font-mono);
}

.scr-device {
  position: absolute;
  right: 1.4em;
  top: 1.2em;
  display: none;
}

.scr-region {
  position: relative;
  padding: 0.9em 1em;
}

.corner {
  --cx: 0;
  --cy: 0;
  position: absolute;
  width: 0.9em;
  height: 0.9em;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  animation: sb-corner var(--loop-screen) var(--ease-out) infinite both;
}

.corner--tl {
  --cx: -0.5em;
  --cy: -0.5em;
  top: 0;
  left: 0;
  border-top-width: 2px;
  border-left-width: 2px;
  border-top-left-radius: 3px;
}

.corner--tr {
  --cx: 0.5em;
  --cy: -0.5em;
  top: 0;
  right: 0;
  border-top-width: 2px;
  border-right-width: 2px;
  border-top-right-radius: 3px;
}

.corner--bl {
  --cx: -0.5em;
  --cy: 0.5em;
  bottom: 0;
  left: 0;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-bottom-left-radius: 3px;
}

.corner--br {
  --cx: 0.5em;
  --cy: 0.5em;
  bottom: 0;
  right: 0;
  border-bottom-width: 2px;
  border-right-width: 2px;
  border-bottom-right-radius: 3px;
}

.scr-size {
  position: absolute;
  top: -1.75em;
  left: 0;
  padding: 0.1em 0.45em;
  border-radius: 0.3em;
  background: rgba(70, 210, 240, 0.14);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.72em;
  animation: sb-size var(--loop-screen) var(--ease-out) infinite both;
}

.scan-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 2px;
  pointer-events: none;
}

.scan {
  position: absolute;
  inset: 0;
  animation:
    sb-scan var(--loop-screen) linear infinite both,
    sb-scan-fade var(--loop-screen) linear infinite both;
}

.scan::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.2em;
  background: linear-gradient(
    180deg,
    rgba(70, 210, 240, 0),
    rgba(70, 210, 240, 0.1) 75%,
    rgba(70, 210, 240, 0.16)
  );
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(139, 238, 252, 0),
    rgba(139, 238, 252, 0.95) 22%,
    rgba(196, 189, 255, 0.95) 78%,
    rgba(196, 189, 255, 0)
  );
  box-shadow: 0 0 10px 1px rgba(95, 227, 243, 0.45);
}

.scr-lines {
  position: relative;
  display: grid;
  gap: 0.7em;
}

.ocr-line {
  position: relative;
  width: fit-content;
  max-width: 100%;
  color: #e7ecf5;
  font-size: 1.02em;
  line-height: 1.5;
  white-space: nowrap;
}

.ocr-src {
  position: relative;
  display: block;
  animation: sb-src var(--loop-screen) var(--ease-soft) infinite both;
}

.ocr-box {
  position: absolute;
  inset: -0.22em -0.45em;
  border: 1px solid rgba(95, 227, 243, 0.6);
  border-radius: 0.35em;
  background: rgba(95, 227, 243, 0.07);
  box-shadow: 0 0 0 3px rgba(95, 227, 243, 0.06);
  animation: sb-box var(--loop-screen) var(--ease-out) infinite both;
}

.ocr-dst {
  position: absolute;
  left: -0.45em;
  top: 50%;
  margin-top: -0.85em;
  height: 1.7em;
  padding: 0 0.55em;
  border-radius: 0.35em;
  background: rgba(3, 6, 12, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 6px 14px -8px rgba(0, 0, 0, 0.9);
  color: #ffffff;
  font-weight: 500;
  line-height: 1.7;
  animation: sb-dst var(--loop-screen) var(--ease-out) infinite both;
}

.ocr-line--2 > * {
  animation-delay: 0.45s;
}

.ocr-line--3 > * {
  animation-delay: 0.9s;
}

.scr-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.9em;
  color: var(--text-2);
  font-size: 0.86em;
}

.pipe {
  padding: 0.15em 0.65em;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.02);
}

.pipe--1 {
  animation: sb-pipe-1 var(--loop-screen) var(--ease-soft) infinite both;
}

.pipe--2 {
  animation: sb-pipe-2 var(--loop-screen) var(--ease-soft) infinite both;
}

.pipe--3 {
  animation: sb-pipe-3 var(--loop-screen) var(--ease-soft) infinite both;
}

.pipe-sep {
  width: 1.2em;
  height: 1px;
  background: var(--line-3);
}

/* Demo B timeline (11 s): 0–0.55 s corners lock · 0.9–2.75 s scan ·
   1.25 / 1.7 / 2.15 s recognition frames · 3.0 / 3.45 / 3.9 s subtitles
   replace the lines · hold · 9.4 s reset. */
@keyframes sb-corner {
  0% {
    opacity: 0;
    transform: translate(var(--cx), var(--cy));
  }
  5% {
    opacity: 1;
    transform: translate(0, 0);
  }
  87% {
    opacity: 1;
    transform: translate(0, 0);
  }
  91%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes sb-size {
  0%,
  4% {
    opacity: 0;
    transform: translateY(0.3em);
  }
  8%,
  86% {
    opacity: 1;
    transform: translateY(0);
  }
  90%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

@keyframes sb-scan {
  0%,
  8.2% {
    transform: translateY(-100%);
    animation-timing-function: cubic-bezier(0.45, 0.05, 0.4, 1);
  }
  25%,
  100% {
    transform: translateY(0);
  }
}

@keyframes sb-scan-fade {
  0%,
  8.2% {
    opacity: 0;
  }
  10%,
  22.5% {
    opacity: 1;
  }
  26%,
  100% {
    opacity: 0;
  }
}

@keyframes sb-box {
  0%,
  11.4% {
    opacity: 0;
    transform: scale(0.97);
  }
  13.2%,
  27.3% {
    opacity: 1;
    transform: scale(1);
  }
  30.5%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes sb-src {
  0%,
  27.3% {
    opacity: 1;
  }
  30.5%,
  85.5% {
    opacity: 0;
  }
  90%,
  100% {
    opacity: 1;
  }
}

@keyframes sb-dst {
  0%,
  27.8% {
    opacity: 0;
    transform: translateY(0.35em);
  }
  31.5%,
  85.5% {
    opacity: 1;
    transform: translateY(0);
  }
  89.5%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

@keyframes sb-pipe-1 {
  0% {
    opacity: 0.5;
  }
  1.5%,
  8% {
    opacity: 1;
  }
  10%,
  100% {
    opacity: 0.5;
  }
}

@keyframes sb-pipe-2 {
  0%,
  8.5% {
    opacity: 0.5;
  }
  10%,
  26% {
    opacity: 1;
  }
  28.5%,
  100% {
    opacity: 0.5;
  }
}

@keyframes sb-pipe-3 {
  0%,
  27% {
    opacity: 0.5;
  }
  29.5%,
  85% {
    opacity: 1;
  }
  88%,
  100% {
    opacity: 0.5;
  }
}

/* ---------- 11. Prices --------------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6) var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(17, 24, 38, 0.92), rgba(10, 14, 22, 0.92)) padding-box,
    linear-gradient(
        170deg,
        rgba(214, 236, 255, 0.16),
        rgba(148, 170, 210, 0.06) 45%,
        rgba(148, 170, 210, 0.1)
      )
      border-box;
  box-shadow: var(--shadow-2);
}

.price-card--pro {
  background:
    linear-gradient(180deg, rgba(18, 27, 43, 0.94), rgba(10, 14, 22, 0.94)) padding-box,
    linear-gradient(
        170deg,
        rgba(95, 227, 243, 0.4),
        rgba(78, 167, 255, 0.12) 40%,
        rgba(154, 140, 255, 0.24)
      )
      border-box;
}

.price-name {
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.price-value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.8rem + 1.4vw, 2.875rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
}

.price-cycle {
  color: var(--text-3);
  font-size: var(--fs-sm);
}

.price-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: var(--s-4) 0 0;
  border-top: 1px solid var(--line-1);
  color: var(--text-2);
  font-size: var(--fs-sm);
  list-style: none;
}

.price-list li {
  position: relative;
  padding-left: 1.2rem;
}

.price-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 0.55rem;
  height: 1px;
  background: var(--accent);
}

.price-note {
  margin-top: auto;
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.trial-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-top: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  background: rgba(12, 17, 27, 0.6);
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.trial-strip strong {
  color: var(--text-1);
}

/* ---------- 12. Status route -------------------------------------------- */
.stations {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
  margin: 0;
  padding: 2.4rem 0 0;
  list-style: none;
}

/* The crossing line: low on the left, stepping up to the right. */
.stations::before {
  content: '';
  position: absolute;
  top: 0.9rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(90, 216, 166, 0.6),
    rgba(240, 184, 102, 0.5) 35%,
    rgba(169, 165, 255, 0.5) 65%,
    rgba(138, 150, 171, 0.25)
  );
}

.station {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-5);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  background: rgba(10, 14, 22, 0.7);
}

.station::before {
  content: '';
  position: absolute;
  top: -1.88rem;
  left: var(--s-5);
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--bg-0);
  box-shadow:
    0 0 0 1.5px currentColor,
    0 0 12px currentColor;
}

.station--ok {
  color: var(--ok);
}

.station--progress {
  color: var(--progress);
}

.station--soon {
  color: var(--soon);
}

.station--planned {
  color: var(--planned);
}

.station-title {
  margin-top: var(--s-2);
  color: var(--text-1);
  font-size: var(--fs-h3);
}

.station-text {
  color: var(--text-2);
  font-size: var(--fs-sm);
}

/* ---------- 13. FAQ teaser and data note -------------------------------- */
.faq-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.faq-split .section-head {
  margin-bottom: 0;
}

.data-note {
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border-left: 1px solid var(--accent-line);
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.faq-teaser {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-2);
}

.faq-teaser a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 1.15rem 0.25rem;
  border-bottom: 1px solid var(--line-2);
  color: var(--text-1);
  text-decoration: none;
}

.faq-teaser a:hover {
  color: #fff;
}

.link-arrow {
  color: var(--text-3);
  transition:
    transform var(--dur-2) var(--ease-out),
    color var(--dur-1) var(--ease-soft);
}

.faq-teaser a:hover .link-arrow {
  color: var(--accent-ink);
  transform: translateX(4px);
}

/* ---------- 14. CTA band ------------------------------------------------- */
.band {
  position: relative;
  margin-top: var(--section-y);
  padding: clamp(3rem, 7vw, 5.5rem) var(--s-5);
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(95, 227, 243, 0.1), transparent 70%) padding-box,
    linear-gradient(180deg, rgba(14, 20, 32, 0.96), rgba(7, 10, 16, 0.96)) padding-box,
    linear-gradient(
        170deg,
        rgba(95, 227, 243, 0.32),
        rgba(148, 170, 210, 0.08) 45%,
        rgba(154, 140, 255, 0.24)
      )
      border-box;
  text-align: center;
}

.band-route {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  width: 100%;
  height: 40%;
  color: rgba(127, 224, 242, 0.22);
  pointer-events: none;
}

.band .eyebrow {
  justify-content: center;
}

.band-title {
  position: relative;
  font-size: var(--fs-h2);
}

.band-text {
  position: relative;
  max-width: 34rem;
  margin: var(--s-4) auto 0;
  color: var(--text-2);
}

.band-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: var(--s-6);
}

/* ---------- 15. Sub-pages ----------------------------------------------- */
.page-head {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 var(--s-6);
}

.page-head-route {
  position: absolute;
  right: 0;
  top: 2.5rem;
  z-index: -1;
  width: min(36rem, 70%);
  height: 7.5rem;
  color: rgba(127, 224, 242, 0.22);
  pointer-events: none;
}

.page-head h1 {
  max-width: 44rem;
  font-size: var(--fs-h1);
}

.page-lead {
  max-width: 44rem;
  margin-top: var(--s-4);
  color: var(--text-2);
  font-size: var(--fs-lead);
}

.page-body {
  padding-bottom: var(--s-4);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border: 1px solid rgba(240, 184, 102, 0.28);
  border-radius: var(--r-md);
  background: rgba(240, 184, 102, 0.05);
  color: var(--text-1);
  font-size: var(--fs-sm);
}

.notice::before {
  content: '';
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--progress);
  box-shadow: 0 0 0 4px rgba(240, 184, 102, 0.12);
}

.notice--info {
  border-color: rgba(70, 210, 240, 0.28);
  background: rgba(70, 210, 240, 0.05);
}

.notice--info::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(70, 210, 240, 0.12);
}

.panel {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line-1);
  border-radius: var(--r-xl);
  background: rgba(9, 13, 21, 0.78);
  box-shadow: var(--shadow-2);
}

.doc-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.doc-layout > .panel {
  width: auto;
  margin: 0;
}

.doc-aside {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: var(--s-5);
}

.toc {
  display: block;
}

.toc-title,
.doc-aside h2 {
  margin-bottom: var(--s-3);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.toc ol,
.toc-mobile ol,
.doc-aside ul {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line-2);
}

.toc a,
.toc-mobile a,
.doc-aside ul a {
  display: block;
  margin-left: -1px;
  padding: 0.3rem 0 0.3rem 0.9rem;
  border-left: 1px solid transparent;
  color: var(--text-2);
  font-size: var(--fs-xs);
  line-height: 1.5;
  text-decoration: none;
}

.toc a:hover,
.toc-mobile a:hover,
.doc-aside ul a:hover,
.doc-aside ul a[aria-current='page'] {
  border-left-color: var(--accent);
  color: var(--text-1);
}

.doc-aside p {
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.toc-mobile {
  display: none;
  margin-bottom: var(--s-5);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: rgba(10, 14, 22, 0.7);
}

.toc-mobile summary {
  color: var(--text-1);
  font-weight: 600;
  cursor: pointer;
}

.toc-mobile[open] summary {
  margin-bottom: var(--s-3);
}

/* Long-form text. */
.prose {
  max-width: 46rem;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  position: relative;
  margin-top: 2.6em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line-1);
  color: var(--text-1);
  font-size: 1.5rem;
  scroll-margin-top: 5.5rem;
}

.prose h2::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 3rem;
  height: 1px;
  background: var(--brand-gradient);
}

.prose > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose > h2:first-child::before {
  display: none;
}

.prose h3 {
  margin-top: 1.9em;
  color: var(--text-1);
  font-size: 1.125rem;
  scroll-margin-top: 5.5rem;
}

.prose p,
.prose li {
  font-size: var(--fs-body);
}

.prose strong {
  color: var(--text-1);
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul > li {
  position: relative;
  padding-left: 1.3em;
}

.prose ul > li::before {
  content: '';
  position: absolute;
  left: 0.1em;
  top: 0.85em;
  width: 0.6em;
  height: 1px;
  background: var(--accent);
}

.prose li + li {
  margin-top: 0.45em;
}

.prose ol > li::marker {
  color: var(--accent-ink);
  font-family: var(--font-mono);
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 0.9em 1.2em;
  border: 1px solid rgba(70, 210, 240, 0.22);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(70, 210, 240, 0.04);
  color: var(--text-1);
}

.prose blockquote p {
  margin: 0;
}

.prose hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--line-2);
}

.prose code {
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
  background: rgba(148, 170, 210, 0.12);
  color: var(--text-1);
  font-size: 0.9em;
}

.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.4em 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: var(--fs-xs);
}

.prose th,
.prose td {
  padding: 0.7em 0.9em;
  border: 1px solid var(--line-2);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: rgba(148, 170, 210, 0.06);
  color: var(--text-1);
  font-weight: 600;
  white-space: nowrap;
}

.prose a {
  word-break: break-word;
}

/* FAQ questions read as cards with a Q marker. */
.prose--faq h3 {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.prose--faq h3::before {
  content: 'Q';
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--accent-line);
  border-radius: 0.4rem;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  transform: translateY(-0.1em);
}

/* Features page status summary. */
.state-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0 0 var(--s-6);
  padding: 0;
  list-style: none;
}

.state-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  background: rgba(10, 14, 22, 0.75);
}

.state-card h2 {
  font-size: 1.0625rem;
}

.state-card p {
  color: var(--text-2);
  font-size: var(--fs-xs);
}

/* Download. */
.release-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.release-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(17, 24, 38, 0.92), rgba(10, 14, 22, 0.92)) padding-box,
    linear-gradient(
        170deg,
        rgba(214, 236, 255, 0.16),
        rgba(148, 170, 210, 0.06) 45%,
        rgba(148, 170, 210, 0.1)
      )
      border-box;
}

.release-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-ink);
}

.release-card h3 {
  font-size: 1.0625rem;
}

.release-missing {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line-2);
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.release-origin {
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.release-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.3rem 0.8rem;
  margin: 0;
  font-size: var(--fs-xs);
}

.release-meta dt {
  color: var(--text-3);
}

.release-meta dd {
  margin: 0;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.release-meta code,
.release-origin code {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.empty-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-5);
  align-items: center;
  margin-bottom: var(--s-5);
  padding: var(--s-5) var(--s-6);
  border: 1px dashed rgba(240, 184, 102, 0.32);
  border-radius: var(--r-lg);
  background: rgba(240, 184, 102, 0.04);
}

.empty-state-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-md);
  background: rgba(240, 184, 102, 0.1);
  color: var(--progress);
}

.empty-state p {
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.empty-state strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-1);
  font-size: var(--fs-body);
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--s-4);
  align-items: start;
  margin-top: var(--s-7);
}

.info-card {
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  background: rgba(10, 14, 22, 0.75);
}

.info-card h2 {
  margin-bottom: var(--s-3);
  font-size: var(--fs-h3);
}

.info-card p,
.info-card li {
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.info-card .price-list {
  padding-top: 0;
  border-top: 0;
}

/* Changelog timeline. */
.timeline {
  position: relative;
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0 0 0 2.25rem;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.55rem;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(154, 140, 255, 0.5) 60%, transparent);
}

.timeline-item {
  position: relative;
}

.timeline-mark {
  position: absolute;
  top: 1.35rem;
  left: -2.05rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--bg-0);
  box-shadow: 0 0 0 1.5px var(--accent);
}

.timeline-card {
  padding: var(--s-5);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  background: rgba(10, 14, 22, 0.75);
}

.timeline-card h2 {
  font-size: var(--fs-h3);
}

.timeline-card p {
  margin-top: var(--s-2);
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.timeline-index {
  margin-right: 0.6rem;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

/* 404 — the bridge that does not reach here (yet). */
.lost {
  display: grid;
  justify-items: center;
  gap: var(--s-5);
  padding: var(--s-6) 0 var(--s-4);
  text-align: center;
}

.lost h1 {
  font-size: var(--fs-h1);
}

.lost .eyebrow {
  margin: 0;
}

.lost-route {
  width: min(28rem, 100%);
  height: 6rem;
  color: rgba(127, 224, 242, 0.55);
}

.lost-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lost-links a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  color: var(--text-1);
  font-size: var(--fs-sm);
  text-decoration: none;
}

.lost-links a:hover {
  border-color: var(--accent-line);
}

.lost p {
  max-width: 34rem;
  color: var(--text-2);
}

/* Pay return. */
.return-card {
  display: grid;
  gap: var(--s-4);
}

.return-card p {
  color: var(--text-2);
}

/* ---------- 16. Footer --------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: var(--section-y);
  border-top: 1px solid var(--line-1);
  background: linear-gradient(180deg, rgba(8, 11, 18, 0.6), rgba(5, 7, 12, 0.9));
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(32rem, 70%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(95, 227, 243, 0.5),
    rgba(154, 140, 255, 0.5),
    transparent
  );
  transform: translateX(-50%);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem var(--s-6);
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
  padding: var(--s-7) 0 var(--s-6);
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.footer-inner > p {
  grid-column: 1;
}

.footer-brandline {
  margin-bottom: 0.4rem;
  color: var(--text-1);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-brandline .brand-en {
  margin-left: 0.5rem;
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.footer-contact a,
.footer-icp a,
.footer-police a {
  color: var(--text-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  grid-column: 2;
  grid-row: 1 / span 4;
  align-content: start;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-1);
}

.footer-inner > .footer-note {
  grid-column: 1 / -1;
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-1);
  color: var(--text-3);
}

/* ---------- 17. Responsive ---------------------------------------------- */
@media (max-width: 1080px) {
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tile--wide,
  .tile--screen {
    grid-column: span 4;
  }

  .stations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
  }

  .stations::before,
  .station::before {
    display: none;
  }
}

/* Below 1024px the floating window floats over the lower part of the target
   app (as it does on a real desktop) and reveals the inserted text when it
   closes; no empty gap is left behind. */
@media (max-width: 1023px) {
  .instant-stage {
    --d: 12.5px;
    max-width: 46em;
    height: 27em;
    margin-inline: auto;
  }

  .route,
  .route-track {
    display: none;
  }

  .app-window {
    left: 0;
    height: 24em;
  }

  .fw-wrap {
    top: 5.6em;
    left: 3%;
    width: min(36em, 94%);
  }

  .fw {
    height: 21em;
  }

  .app-main {
    padding-left: 1.6em;
  }

  .split,
  .faq-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-aside {
    position: static;
  }

  .doc-aside .toc {
    display: none;
  }

  .toc-mobile {
    display: block;
  }

  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .nav-menu {
    display: block;
  }

  .header-inner {
    gap: var(--s-3);
  }

  .price-grid,
  .release-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .instant-steps ol {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-3);
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile,
  .tile--wide,
  .tile--screen {
    grid-column: auto;
  }

  .tile--screen {
    display: flex;
  }

  .stations,
  .state-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .latency {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .latency-bridge {
    width: 9rem;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    margin-top: var(--s-4);
  }

  .empty-state {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--s-5);
  }

  .hero-facts li + li::before {
    display: none;
  }

  .hero-facts {
    gap: 0.35rem 1.1rem;
  }
}

/* Phones: the demo scales with the viewport (all of it is in em). */
@media (max-width: 560px) {
  .instant-stage {
    --d: min(12px, calc((100vw - 2.5rem) / 31));
  }

  .fw-wrap {
    left: 2.5%;
    width: 95%;
  }

  .fw-icon--extra {
    display: none;
  }

  .fw-scene {
    padding: 0.15em 0.45em;
  }

  .app-rail {
    display: none;
  }

  .scr {
    --d: min(13px, calc((100vw - 2.5rem) / 27));
    padding: 0.9em;
  }

  .scr-canvas {
    padding: 1em;
  }

  .scr-media {
    padding: 1em 0.9em 1.2em;
  }

  .band {
    padding-inline: var(--s-4);
  }

  .button {
    padding: 0 1.1rem;
  }
}

@media (max-width: 400px) {
  .nav-cta svg {
    display: none;
  }

  .nav-cta {
    padding: 0.42rem 0.75rem;
  }

  .brand-lockup {
    gap: 0.5rem;
  }
}

/* ---------- 18. Reduced motion: no loops, readable end states ------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }

  /* Demo A end state: window open with the full sentence and its
     translation, and the translation already inserted in the target app. */
  .fw,
  .fw-focus,
  .fw-line,
  .app-inserted,
  .step,
  .pipe,
  .corner,
  .scr-size,
  .ocr-src,
  .ocr-dst,
  .ocr-box,
  .scan,
  .hotkey,
  .fw-insert,
  .fw-insert::after,
  .fw-ring,
  .fw-curtain,
  .fw-wipe,
  .fw-ph,
  .fw-caret,
  .app-caret,
  .app-caret i,
  .app-flash,
  .route-runner,
  .route-rise,
  .route-dot,
  .route-landing,
  .step::before {
    animation: none !important;
  }

  .fw {
    opacity: 1;
    transform: none;
  }

  .fw-focus {
    opacity: 1;
  }

  .fw-curtain,
  .fw-wipe,
  .fw-ph,
  .hotkey,
  .fw-ring,
  .fw-insert::after,
  .app-caret--before,
  .app-flash,
  .route-track,
  .step::before {
    display: none;
  }

  .app-inserted {
    opacity: 1;
    transform: none;
  }

  .app-caret--after,
  .step {
    opacity: 1;
  }

  /* Demo B end state: region framed, subtitles shown, scan line hidden. */
  .corner,
  .scr-size,
  .pipe {
    opacity: 1;
    transform: none;
  }

  .scan {
    display: none;
  }

  .ocr-box {
    opacity: 0;
  }

  .ocr-src {
    opacity: 0;
  }

  .ocr-dst {
    opacity: 1;
    transform: none;
  }

  .tile--link:hover,
  .button.primary:hover {
    transform: none;
  }
}

/* Reduced motion on narrow screens: stack the two windows so the static end
   state shows both the floating window and the inserted text. */
@media (prefers-reduced-motion: reduce) and (max-width: 1023px) {
  .instant-stage {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    height: auto;
  }

  .fw-wrap,
  .app-window {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
  }

  .fw-wrap {
    order: -1;
  }

  .app-window {
    height: auto;
  }

  .app-reply {
    margin-top: 1.4em;
  }
}
