/* Landing page (views/landing.js). Every class is prefixed `lx-`.
   The product explains itself: question-form chapters, each built around real screenshots of one assessment, on
   surfaces that alternate between the canvas and a deeper (dark) or brighter (light) ground, with one chapter (agents)
   dark in both themes. Large, tight system type; one mint accent for actions and the active step; blue with an arrow
   for an upward move, as in the product. Screenshots sit frameless on the canvas they were taken on, so their edges
   disappear. Motion: the hero picture settles flat as the page scrolls, the stage cross-fades between screens, and
   chapters rise in with scroll-driven animations where the browser has them; with reduced motion nothing moves and the
   stage becomes a plain sequence. Tokens come from base.css. */

.lx {
  --lx-w: 1180px;
  --lx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lx-bg: var(--canvas);
  --lx-alt: #000000;
  --lx-tile: #141417;
  --lx-term: #0e0f11;
  --lx-seg-on: var(--s3);
  --lx-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 12px 24px -12px rgba(0, 0, 0, 0.6);
  --lx-glow: rgba(63, 213, 174, 0.16);

  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--lx-bg);
  color: var(--ink);
}
:root[data-theme="light"] .lx {
  --lx-alt: #ffffff;
  --lx-tile: #f5f5f7;
  --lx-seg-on: #ffffff;
  --lx-shadow: 0 40px 80px -48px rgba(16, 24, 40, 0.32), 0 10px 24px -14px rgba(16, 24, 40, 0.14);
  --lx-glow: rgba(0, 134, 106, 0.1);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .lx {
    --lx-alt: #ffffff; --lx-tile: #f5f5f7; --lx-seg-on: #ffffff;
    --lx-shadow: 0 40px 80px -48px rgba(16, 24, 40, 0.32), 0 10px 24px -14px rgba(16, 24, 40, 0.14);
    --lx-glow: rgba(0, 134, 106, 0.1);
  }
}

.lx-wrap { width: 100%; max-width: calc(var(--lx-w) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.lx-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 12px; pointer-events: none; }
.lx [tabindex="-1"]:focus { outline: none; }
.lx figure { margin: 0; }
.lx .num { font-variant-numeric: tabular-nums; }
.lx-shot { display: block; width: 100%; height: auto; }
.lx-ln { display: block; }
.lx-bit { display: inline-block; }

/* ================================================================== type */
.lx-display {
  max-width: 12.5em; margin-inline: auto;
  font-size: clamp(2.75rem, 1.1rem + 6vw, 5.75rem); line-height: 1.01; letter-spacing: -0.04em; font-weight: 650;
  text-wrap: balance;
}
.lx-h2 {
  max-width: 17em;
  font-size: clamp(2.25rem, 1.3rem + 3.3vw, 4.25rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 650;
}
.lx-h3 { font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 650; }
.lx-p { font-size: clamp(1rem, 0.94rem + 0.25vw, 1.125rem); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; max-width: 34em; }
.lx-sub { margin-top: clamp(18px, 2vw, 24px); max-width: 34em; font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.lx-lede {
  margin: clamp(22px, 2.6vw, 32px) auto 0; max-width: 37em;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty;
}
.lx-fine { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
:lang(zh) .lx-display { line-height: 1.14; letter-spacing: 0.01em; font-size: clamp(2.5rem, 0.9rem + 5.4vw, 5.25rem); }
:lang(zh) .lx-h2 { line-height: 1.2; letter-spacing: 0.01em; }
:lang(zh) .lx-h3 { line-height: 1.32; letter-spacing: 0; }
:lang(zh) .lx-p, :lang(zh) .lx-sub, :lang(zh) .lx-lede { line-height: 1.75; }

/* ================================================================== buttons */
.lx-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px 0 28px; border: 0; border-radius: 999px; font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
  transition: transform 0.35s var(--lx-ease), background-color 0.25s ease, box-shadow 0.35s var(--lx-ease), filter 0.25s ease;
}
.lx-btn:hover { transform: translateY(-1px); }
.lx-btn:active { transform: scale(0.98); transition-duration: 0.12s; }
.lx-btn:focus-visible { outline-offset: 3px; border-radius: 999px; }
.lx-btn[aria-busy="true"] { opacity: 0.65; pointer-events: none; }
.lx-btn[aria-busy="true"] .lx-arrow { animation: lx-nudge 0.7s ease-in-out infinite alternate; }
.lx-arrow { width: 18px; height: 18px; transition: transform 0.35s var(--lx-ease); }
.lx-btn:hover .lx-arrow { transform: translateX(3px); }
.lx-btn-primary { background: var(--accent); color: var(--on-accent); }
.lx-btn-primary:hover { filter: brightness(1.06); box-shadow: 0 14px 34px -16px var(--accent); }
.lx-btn-ghost { background: var(--wash-2); color: var(--ink); }
.lx-btn-ghost:hover { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.lx-btn-link { height: auto; padding: 0; background: none; color: var(--accent-ink); font-size: 15px; gap: 6px; }
.lx-btn-link:hover { transform: none; }
.lx-btn-link .lx-arrow { width: 16px; height: 16px; }
.lx-btn-link:focus-visible { border-radius: 6px; }
.lx-btn-sm { height: 38px; padding: 0 14px 0 17px; font-size: 14px; gap: 7px; }
.lx-btn-sm .lx-arrow { width: 15px; height: 15px; }
.lx-short { display: none; }
@keyframes lx-nudge { to { transform: translateX(4px); } }

.lx-ctas { margin-top: clamp(28px, 3.4vw, 40px); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lx-ctas-left { justify-content: flex-start; }
.lx-icon-btn {
  width: 38px; height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
  display: inline-grid; place-items: center; flex: none; transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--lx-ease);
}
.lx-icon-btn:hover { background: var(--wash); color: var(--ink); }
.lx-icon-btn:active { transform: scale(0.94); }
.lx-icon-btn svg { width: 18px; height: 18px; }
.lx-icon-btn:focus-visible, .lx-lang button:focus-visible { border-radius: 999px; }
.lx-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--wash); flex: none; }
.lx-lang button {
  border: 0; background: transparent; height: 30px; min-width: 36px; padding: 0 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background 0.2s ease, color 0.2s ease;
}
.lx-lang button:hover { color: var(--ink); }
.lx-lang button[aria-pressed="true"] { background: var(--lx-seg-on); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14); }

/* ================================================================== header */
.lx-nav { position: sticky; top: 0; z-index: var(--z-top); isolation: isolate; }
.lx-nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s ease;
  background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -0.5px 0 var(--hair-2);
}
.lx-nav.is-stuck::before { opacity: 1; }
@media (prefers-reduced-transparency: reduce) { .lx-nav::before { background: var(--canvas); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.lx-nav-in {
  max-width: calc(var(--lx-w) + 2 * var(--gutter)); height: 64px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
}
.lx-brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -0.03em; border-radius: 10px; }
.lx-mark { width: 30px; height: 19px; flex: none; }
.lx-links { display: flex; gap: 2px; }
.lx-links button {
  height: 34px; padding: 0 13px; border: 0; border-radius: 999px; background: none; color: var(--ink-2);
  font-size: 13.5px; font-weight: 500; transition: background 0.2s ease, color 0.2s ease;
}
.lx-links button:hover { color: var(--ink); background: var(--wash); }
.lx-links button:focus-visible { border-radius: 999px; }
.lx-tools { justify-self: end; display: flex; align-items: center; gap: 8px; }
.lx-nav-cta { margin-left: 4px; }

/* ================================================================== hero */
.lx-hero { padding: clamp(48px, 8vh, 112px) 0 clamp(88px, 11vw, 150px); text-align: center; }
.lx-hero-stage { position: relative; margin-top: clamp(48px, 6.5vw, 88px); perspective: 1800px; }
.lx-hero-stage::before {
  content: ""; position: absolute; inset: 8% 6% 4%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, var(--lx-glow), transparent 72%); filter: blur(30px); pointer-events: none;
}
.lx-hero-shot {
  position: relative; z-index: 1; max-width: 880px; margin-inline: auto;
  transform-origin: 50% 0%;
  transform: rotateX(calc(var(--k, 0) * 14deg)) scale(calc(1 - var(--k, 0) * 0.05));
  will-change: transform;
}
.lx-hero-chip {
  position: absolute; right: -36px; top: 65%; z-index: 2;
  display: grid; gap: 2px; padding: 14px 18px 14px 18px; border-radius: 20px; text-align: left;
  background: var(--glass); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 0 0 0.5px var(--hair-2), var(--lx-shadow);
}
.lx-chip-k { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.lx-chip-row { display: flex; align-items: baseline; gap: 2px; }
.lx-chip-n { font-size: 44px; line-height: 1; font-weight: 650; letter-spacing: -0.04em; }
.lx-chip-row small { font-size: 20px; font-weight: 600; color: var(--ink-2); margin-right: 10px; }
.lx-chip-d {
  align-self: center; display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 9px; border-radius: 999px;
  background: var(--yes-wash); color: var(--yes-ink); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums;
}
.lx-chip-d svg { width: 13px; height: 13px; }
.lx-hero-cap { margin-top: 22px; font-size: 13.5px; color: var(--ink-3); text-wrap: balance; }
.lx-spec {
  margin-top: clamp(36px, 4vw, 52px); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px;
  font-size: 14.5px; color: var(--ink-2);
}
.lx-spec li { display: inline-flex; align-items: center; gap: 8px; }
.lx-spec svg { width: 17px; height: 17px; color: var(--accent-ink); }

/* ================================================================== chapters */
.lx-sec { padding-block: clamp(96px, 12vw, 168px); background: var(--lx-bg); }
.lx-alt { background: var(--lx-alt); }
.lx-head { margin-bottom: clamp(44px, 5.5vw, 80px); }
.lx-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; }

/* ---- live */
.lx-live-stamp { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; color: var(--ink-3); padding-bottom: 8px; }
.lx-live-upd time { color: var(--ink-2); }
.lx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: lx-pulse 2.4s ease-out infinite; }
@keyframes lx-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.lx-live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; min-height: 360px; }
.lx-live-col { min-width: 0; padding: 26px 26px 18px; border-radius: 28px; background: var(--lx-tile); }
.lx-live-col.is-skel { display: grid; align-content: start; gap: 18px; }
.lx-live-col.is-skel i { display: block; height: 14px; border-radius: 7px; background: var(--wash-2); }
.lx-live-col.is-skel i:first-child { width: 40%; height: 12px; margin-bottom: 8px; }
.lx-live-col.is-skel i:nth-child(3) { width: 82%; }
.lx-live-col.is-skel i:nth-child(4) { width: 64%; }
.lx-live-h3 { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; letter-spacing: 0; }
.lx-live-list li + li { box-shadow: inset 0 0.5px 0 var(--hair-2); }
.lx-live-q, .lx-live-a { display: flex; gap: 14px; padding: 14px 0; border-radius: 12px; transition: opacity 0.2s ease; }
.lx-live-a { flex-direction: column; gap: 6px; }
.lx-live-q:hover .lx-live-title, .lx-live-a:hover .lx-live-title { color: var(--accent-ink); }
.lx-live-qt { display: grid; gap: 6px; min-width: 0; }
.lx-live-title { font-size: 15.5px; line-height: 1.4; font-weight: 600; color: var(--ink); transition: color 0.2s ease; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lx-live-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--ink-3); }
.lx-live-meta .n-src, .lx-live-meta .host-badge { width: 18px; height: 18px; border-radius: 5px; font-size: 10px; }
.lx-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--accent-wash); color: var(--accent-ink); font-weight: 600; font-size: 11.5px; }
.lx-bars { display: grid; gap: 12px; padding-top: 6px; }
.lx-bars li { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 2.4em; align-items: center; gap: 12px; font-size: 13.5px; }
.lx-bar-name { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-bar { height: 6px; border-radius: 3px; background: var(--wash); overflow: hidden; }
.lx-bar i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: var(--accent); opacity: 0.85; }
.lx-bar-n { text-align: right; font-weight: 600; color: var(--ink); }
.lx-live-none { grid-column: 1 / -1; align-self: center; padding: 40px 0; font-size: 17px; color: var(--ink-2); }
.lx-live-foot { margin-top: 28px; }

/* ---- how: the stage */
.lx-how-grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(40px, 5vw, 80px); }
.lx-steps { display: grid; padding-bottom: 18vh; }
.lx-step { min-height: 76vh; display: flex; align-items: center; }
.lx-step:first-child { min-height: 64vh; align-items: flex-start; padding-top: 8vh; }
.lx-step-in { max-width: 30em; }
.lx-lane { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.lx-lane-n { color: var(--ink-3); }
.lx-lane-k { color: var(--ink-2); transition: color 0.3s ease; }
.lx-step.is-on .lx-lane-k { color: var(--accent-ink); }
.lx-step .lx-h3 { margin-bottom: 14px; }
.lx-fact {
  margin-top: 20px; display: inline-flex; align-items: center; min-height: 32px; padding: 6px 14px; border-radius: 999px;
  background: var(--wash); color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.4;
  transition: background 0.3s ease, color 0.3s ease;
}
.lx-step.is-on .lx-fact { background: var(--accent-wash); color: var(--accent-ink); }
.lx-step-pic { display: none; }
.lx-stage-col { position: relative; }
.lx-stage { position: sticky; top: max(84px, 13vh); }
.lx-stage-frame { position: relative; width: min(100%, calc(70vh * 1.2)); aspect-ratio: 1360 / 1133; margin-left: auto; }
.lx-stage-pic {
  position: absolute; inset: 0; opacity: 0; transform: translate3d(0, 28px, 0) scale(0.985);
  transition: opacity 0.55s ease, transform 0.9s var(--lx-ease);
}
.lx-stage-pic.is-past { transform: translate3d(0, -28px, 0) scale(0.985); }
.lx-stage-pic.is-on { opacity: 1; transform: none; }
.lx-stage-pic img, .lx-step-pic img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent);
}
.lx-stage-bar { display: flex; align-items: center; gap: 14px; width: min(100%, calc(70vh * 1.2)); margin: 8px 0 0 auto; padding-inline: 4%; }
.lx-stage-bar i { position: relative; flex: 1; height: 2px; border-radius: 1px; background: var(--wash-2); overflow: hidden; }
.lx-stage-bar i::after {
  content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%;
  transform: scaleX(var(--p, 0.14)); transition: transform 0.6s var(--lx-ease);
}
.lx-stage-count { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }

/* ---- math: the two calls on one axis, then the three-line sum in body type */
.lx-move {
  max-width: 980px; padding: clamp(24px, 3.4vw, 44px); border-radius: 28px; background: var(--lx-tile);
  display: grid; gap: clamp(28px, 3.6vw, 44px);
}
.lx-move-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 16px clamp(20px, 3vw, 40px); }
.lx-move-stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lx-move-stat.is-after { text-align: right; align-items: flex-end; }
.lx-move-k { font-size: 14px; color: var(--ink-3); }
.lx-move-v { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.75rem); line-height: 1; font-weight: 600; letter-spacing: -0.035em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lx-move-stat.is-after .lx-move-v { color: var(--accent-ink); }
.lx-move-r { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lx-move-via { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 14px; min-width: 0; }
.lx-move-pill {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px; border-radius: 999px;
  background: var(--lx-bg); font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lx-move-pill b { font-weight: 650; color: var(--accent-ink); }
.lx-move-line { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--hair-2) 12%, var(--accent) 88%, transparent); position: relative; }
.lx-move-line::after { content: ""; position: absolute; right: 8%; top: -3.5px; width: 8px; height: 8px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); transform: rotate(45deg); }

.lx-axis { display: grid; gap: 14px; }
.lx-pl { display: grid; grid-template-columns: minmax(7em, 0.22fr) minmax(0, 1fr); align-items: center; gap: 16px; }
.lx-pl-k { font-size: 13px; color: var(--ink-3); }
.lx-pl-track { position: relative; height: 22px; }
.lx-pl-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--hair-2); }
.lx-pl-band { position: absolute; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: var(--wash-2); }
.lx-pl.is-after .lx-pl-band { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.lx-pl-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink-3); box-shadow: 0 0 0 3px var(--lx-tile); }
.lx-pl.is-after .lx-pl-dot { background: var(--accent); }
.lx-axis-ticks { position: relative; height: 16px; }
.lx-axis-ticks span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.lx-axis-ticks span:first-child { transform: none; }
.lx-axis-ticks span:last-child { transform: translateX(-100%); }

.lx-move-steps { list-style: none; margin: 0; padding: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; box-shadow: inset 0 0.5px 0 var(--hair-2); }
.lx-move-steps li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lx-move-steps span { font-size: 13px; color: var(--ink-3); }
.lx-move-steps b { font-size: 17px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.lx-move-steps li:last-child b { color: var(--ink); }
.lx-rules { margin-top: clamp(40px, 5vw, 64px); max-width: 980px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 0 32px; }
.lx-rule { padding-top: 20px; box-shadow: inset 0 0.5px 0 var(--hair-2); padding-bottom: 24px; }
.lx-rule dt { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.lx-rule dd { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 18em; }

/* ---- limits */
.lx-lim-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.lx-lims li { padding-block: 22px; box-shadow: inset 0 0.5px 0 var(--hair-2); }
.lx-lims li:last-child { box-shadow: inset 0 0.5px 0 var(--hair-2), inset 0 -0.5px 0 var(--hair-2); }
.lx-lim-t { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.3; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 6px; }
.lx-lim-fig { position: sticky; top: 96px; display: grid; gap: 14px; max-width: 420px; justify-self: end; width: 100%; }
.lx-card-shot { border-radius: 22px; overflow: hidden; background: var(--s1); box-shadow: 0 0 0 0.5px var(--hair-2), var(--lx-shadow); }

/* ---- bento */
.lx-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.lx-tile {
  min-width: 0; display: flex; flex-direction: column; gap: 26px; overflow: hidden;
  padding: clamp(24px, 2.6vw, 34px) clamp(24px, 2.6vw, 34px) 0; border-radius: 30px; background: var(--lx-tile);
}
.lx-tile-t { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.2; font-weight: 650; letter-spacing: -0.02em; }
.lx-tile-p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.lx-tile-text .lx-btn { margin-top: 14px; }
.lx-tile-pic {
  margin-top: auto; padding: 14px 14px 0; border-radius: 18px 18px 0 0; background: var(--canvas);
  box-shadow: 0 0 0 0.5px var(--hair-2); overflow: hidden;
}
.lx-t-track { grid-column: span 4; }
.lx-t-pub { grid-column: span 2; }
.lx-t-scen, .lx-t-thread { grid-column: span 3; }
.lx-t-scen .lx-tile-pic, .lx-t-thread .lx-tile-pic { max-height: 400px; }
.lx-t-scen .lx-tile-pic img, .lx-t-thread .lx-tile-pic img {
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent);
}
.lx-t-pub .lx-tile-pic { padding: 4px 4px 0; }

/* ---- contributors */
.lx-con-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
.lx-checks { margin-top: 28px; display: grid; gap: 12px; }
.lx-checks li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: var(--ink); }
.lx-checks svg { width: 20px; height: 20px; color: var(--accent-ink); }
.lx-facts { margin: 0; display: grid; }
.lx-fact-row { display: grid; grid-template-columns: minmax(4.2em, auto) minmax(0, 1fr); align-items: baseline; gap: 4px 28px; padding-block: 22px; box-shadow: inset 0 0.5px 0 var(--hair-2); }
.lx-fact-row dt { font-size: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); line-height: 1; font-weight: 650; letter-spacing: -0.04em; white-space: nowrap; }
.lx-fact-row dd { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }

/* ---- agents: dark in both themes */
.lx-agents {
  color-scheme: dark;
  --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #8e8e93;
  --hair: rgba(255, 255, 255, 0.07); --hair-2: rgba(255, 255, 255, 0.12);
  --wash: rgba(255, 255, 255, 0.06); --wash-2: rgba(255, 255, 255, 0.1);
  --accent: #3fd5ae; --accent-ink: #3fd5ae; --accent-wash: rgba(63, 213, 174, 0.14); --on-accent: #06251d;
  background: #000; color: var(--ink);
}
.lx-ag-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.lx-term { border-radius: 22px; background: var(--lx-term); box-shadow: 0 0 0 0.5px var(--hair-2), 0 50px 100px -50px rgba(63, 213, 174, 0.18); overflow: hidden; }
.lx-term-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; box-shadow: inset 0 -0.5px 0 var(--hair-2); }
.lx-term-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.lx-term-bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.lx-term-body { padding: 22px clamp(16px, 2.2vw, 26px) 26px; display: grid; gap: 4px; }
.lx-tl { font-family: var(--mono); font-size: 13px; line-height: 1.65; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.lx-tl-you { font-family: var(--font); font-size: 15.5px; font-weight: 500; display: flex; gap: 10px; margin-bottom: 12px; }
.lx-pr { color: var(--accent-ink); font-weight: 700; }
.lx-tl-call { margin-bottom: 6px; color: var(--ink-2); }
.lx-fn { color: var(--accent-ink); font-weight: 600; }
.lx-arg { color: var(--ink-2); }
.lx-tl-kv { display: grid; grid-template-columns: minmax(0, 11.5em) minmax(0, 1fr); gap: 12px; padding-left: 14px; }
.lx-k { color: var(--ink-3); }
.lx-v { color: var(--ink); }
.lx-tl-reply { margin-top: 14px; font-family: var(--font); font-size: 15.5px; line-height: 1.55; color: var(--ink); padding-top: 14px; box-shadow: inset 0 0.5px 0 var(--hair-2); }
.lx-term-cap { padding: 0 clamp(16px, 2.2vw, 26px) 20px; font-size: 12.5px; color: var(--ink-3); }
.lx-term.is-armed .lx-tl { opacity: 0; }
.lx-term.is-play .lx-tl { animation: lx-line 0.5s var(--lx-ease) calc(var(--i, 0) * 0.28s) both; }
.lx-term-body .lx-tl:nth-child(1) { --i: 0; }
.lx-term-body .lx-tl:nth-child(2) { --i: 2; }
.lx-term-body .lx-tl:nth-child(3) { --i: 4; }
.lx-term-body .lx-tl:nth-child(4) { --i: 4.4; }
.lx-term-body .lx-tl:nth-child(5) { --i: 4.8; }
.lx-term-body .lx-tl:nth-child(6) { --i: 5.2; }
.lx-term-body .lx-tl:nth-child(7) { --i: 5.6; }
.lx-term-body .lx-tl:nth-child(8) { --i: 7.4; }
@keyframes lx-line { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }
.lx-ag-side { min-width: 0; }
.lx-ag-h3 { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; letter-spacing: 0; }
.lx-ag-h3 + * + .lx-ag-h3, .lx-tools-list + .lx-ag-h3 { margin-top: 32px; }
.lx-tools-list li { display: grid; grid-template-columns: minmax(0, 8.6em) minmax(0, 1fr); gap: 12px; padding-block: 9px; box-shadow: inset 0 -0.5px 0 var(--hair); font-size: 14px; }
.lx-tools-list code { font-family: var(--mono); font-size: 12.5px; color: var(--accent-ink); }
.lx-tools-list span { color: var(--ink-2); }
.lx-cmd { position: relative; border-radius: 14px; background: var(--lx-term); box-shadow: 0 0 0 0.5px var(--hair-2); }
.lx-cmd-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 8px 0 16px; box-shadow: inset 0 -0.5px 0 var(--hair-2); font-size: 12px; color: var(--ink-3); }
.lx-cmd pre { margin: 0; padding: 14px 16px 16px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--ink); }
.lx-copy {
  height: 28px; padding: 0 11px; border: 0; border-radius: 999px;
  background: var(--wash-2); color: var(--ink); font-size: 12px; font-weight: 600;
}
.lx-copy:hover { background: rgba(255, 255, 255, 0.16); }
.lx-copy:focus-visible { border-radius: 999px; }
.lx-ag-local { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }
.lx-ag-local code { font-family: var(--mono); color: var(--ink); }

/* ---- final */
.lx-final { background: var(--lx-alt); text-align: center; }
.lx-final-in { display: flex; flex-direction: column; align-items: center; }
.lx-final-mark { width: 64px; height: 41px; color: var(--ink); margin-bottom: 28px; }
.lx-final-h { margin-inline: auto; }
.lx-final .lx-sub { margin-inline: auto; }

/* ================================================================== footer */
.lx-foot { padding-top: clamp(64px, 8vw, 104px); padding-bottom: 40px; background: var(--lx-alt); box-shadow: inset 0 0.5px 0 var(--hair-2); }
.lx-foot-top { display: flex; justify-content: space-between; gap: 40px 56px; flex-wrap: wrap; }
.lx-foot-logo { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.lx-foot-logo .lx-mark { width: 38px; height: 24px; }
.lx-foot-brand p { margin-top: 12px; max-width: 22em; font-size: 15px; color: var(--ink-2); }
.lx-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)); gap: 28px 56px; }
.lx-foot-cols h2 { margin-bottom: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.lx-foot-cols ul { display: grid; gap: 4px; }
.lx-foot-link {
  min-height: 32px; padding: 0; border: 0; background: none; color: var(--ink); text-align: left;
  font-size: 14.5px; font-weight: 500; transition: color 0.2s ease;
}
.lx-foot-link:hover { color: var(--accent-ink); }
.lx-foot-link[aria-busy="true"] { opacity: 0.6; }
.lx-foot-bottom {
  margin-top: clamp(48px, 6vw, 72px); padding-top: 22px; box-shadow: inset 0 0.5px 0 var(--hair-2);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3);
}
.lx-foot-sep { margin: 0 8px; }

/* ================================================================== motion */
.lx-anim .lx-in { animation: lx-rise 1.1s var(--lx-ease) var(--d, 0s) both; }
.lx-anim .lx-hero-chip { animation: lx-pop 0.9s var(--lx-ease) 1.2s both; }
@keyframes lx-rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes lx-pop { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.96); } to { opacity: 1; transform: none; } }
/* Chapters rise in with the scroll itself, where the browser supports scroll-driven animations; elsewhere they are
   simply there. Nothing waits for a script to become visible. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .lx-anim .lx-head, .lx-anim .lx-live-grid, .lx-anim .lx-move, .lx-anim .lx-rule, .lx-anim .lx-lims li,
    .lx-anim .lx-tile, .lx-anim .lx-fact-row, .lx-anim .lx-ag-side, .lx-anim .lx-final-in {
      animation: lx-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
    }
  }
}
@keyframes lx-reveal { from { opacity: 0; transform: translate3d(0, 36px, 0); } to { opacity: 1; transform: none; } }

/* Reduced motion: no tilt, no cross-fade stage (the steps are a plain sequence, below), no pulse, no typing. */
.lx-reduced .lx-hero-shot { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lx-dot, .lx-btn[aria-busy="true"] .lx-arrow { animation: none !important; }
  .lx-hero-shot { transform: none !important; }
}

/* ================================================================== the stage as a sequence: narrow screens, reduced motion */
@media (max-width: 999px) {
  .lx-how-grid { grid-template-columns: minmax(0, 1fr); }
  .lx-stage-col { display: none; }
  .lx-steps { gap: clamp(64px, 10vw, 96px); padding-bottom: 0; }
  .lx-step, .lx-step:first-child { min-height: 0; padding-top: 0; display: grid; gap: 28px; }
  .lx-step-pic { display: block; margin-inline: -6px; }
  .lx-step-pic img { height: auto; aspect-ratio: 1360 / 1133; }
  .lx-step .lx-lane-k { color: var(--accent-ink); }
  .lx-step .lx-fact { background: var(--accent-wash); color: var(--accent-ink); }
}
.lx-reduced .lx-how-grid { grid-template-columns: minmax(0, 1fr); }
.lx-reduced .lx-stage-col { display: none; }
.lx-reduced .lx-steps { gap: 96px; padding-bottom: 0; }
.lx-reduced .lx-step, .lx-reduced .lx-step:first-child { min-height: 0; padding-top: 0; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.lx-reduced .lx-step-pic { display: block; }
.lx-reduced .lx-step-pic img { height: auto; aspect-ratio: 1360 / 1133; }
.lx-reduced .lx-step .lx-lane-k { color: var(--accent-ink); }
@media (max-width: 999px) { .lx-reduced .lx-step, .lx-reduced .lx-step:first-child { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ================================================================== narrower screens */
@media (max-width: 1100px) {
  .lx-hero-chip { right: 8px; }
}
@media (max-width: 999px) {
  .lx-links { display: none; }
  .lx-nav-in { grid-template-columns: auto minmax(0, 1fr); }
  .lx-lim-grid, .lx-con-grid, .lx-ag-grid { grid-template-columns: minmax(0, 1fr); }
  .lx-lim-fig { position: static; justify-self: start; }
  .lx-t-track, .lx-t-pub, .lx-t-scen, .lx-t-thread { grid-column: span 3; }
  .lx-t-track { grid-column: span 6; }
  .lx-t-pub { grid-column: span 6; }
  .lx-t-pub .lx-tile-pic { max-width: 420px; }
    }
@media (max-width: 700px) {
  .lx-t-scen, .lx-t-thread { grid-column: span 6; }
  .lx-move-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lx-move-via { grid-column: 1 / -1; grid-row: 2; padding-bottom: 0; }
  .lx-pl { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lx-pl-scale > span:first-child { display: none; }
  .lx-move-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .lx-nav-in { height: 60px; gap: 10px; }
  .lx-brand { font-size: 18px; gap: 8px; }
  .lx-mark { width: 28px; height: 18px; }
  .lx-tools { gap: 4px; }
  .lx-nav-cta { margin-left: 2px; padding: 0 12px 0 14px; }
  .lx-long { display: none; }
  .lx-short { display: inline; }
  .lx-lang button { min-width: 32px; padding: 0 8px; }
  .lx-icon-btn { width: 34px; height: 34px; }
  .lx-ctas { width: 100%; flex-direction: column; align-items: stretch; }
  .lx-btn { height: 50px; font-size: 15.5px; }
  .lx-btn-link { height: auto; }
  .lx-tile-text .lx-btn-link { align-self: flex-start; }
  .lx-hero { padding-top: 36px; }
  .lx-hero-stage { margin-inline: -8px; }
  .lx-hero-chip { right: 6px; top: auto; bottom: -22px; padding: 10px 14px; border-radius: 16px; }
  .lx-chip-n { font-size: 32px; }
  .lx-chip-row small { font-size: 16px; margin-right: 8px; }
  .lx-hero-cap { margin-top: 40px; }
  .lx-spec { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; }
  .lx-live-col { padding: 22px 20px 12px; border-radius: 24px; }
  .lx-bars li { grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) 2.4em; gap: 10px; }
  .lx-tile { border-radius: 24px; }
  .lx-tl-kv { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 10px; }
  .lx-tools-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lx-fact-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lx-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; width: 100%; }
  .lx-foot-bottom { flex-direction: column; align-items: flex-start; }
  .lx-foot-sep { display: none; }
  .lx-foot-bottom p { display: flex; flex-direction: column; gap: 4px; }
}
