:root {
  color-scheme: light dark;
  --page: #f3f1eb;
  --page-deep: #e9e5dc;
  --surface: #fbfaf6;
  --surface-soft: #eeebe4;
  --ink: #15181d;
  --muted: #676c73;
  --faint: #8c9096;
  --line: color-mix(in srgb, var(--ink), transparent 88%);
  --accent: #e85a24;
  --accent-strong: #c74517;
  --accent-soft: color-mix(in srgb, var(--accent), transparent 88%);
  --night: #16171a;
  --night-surface: #202126;
  --night-ink: #f1efe9;
  --shadow-large: 0 42px 100px rgba(54, 43, 25, .13), 0 10px 30px rgba(54, 43, 25, .07);
  --shadow-small: 0 14px 40px rgba(54, 43, 25, .09);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-expo: cubic-bezier(.19, 1, .22, 1);
  --gutter: clamp(20px, 5vw, 76px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 100; left: 16px; top: 12px; padding: 11px 15px;
  border-radius: 10px; background: var(--ink); color: var(--surface); transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed; z-index: 50; top: 14px; left: 50%; width: min(1080px, calc(100% - 28px)); height: 58px;
  padding: 0 9px 0 12px; display: flex; align-items: center; gap: 24px; transform: translateX(-50%);
  border: 1px solid color-mix(in srgb, var(--ink), transparent 92%); border-radius: 18px;
  background: color-mix(in srgb, var(--page), transparent 6%); box-shadow: 0 10px 32px rgba(40, 34, 24, .06);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 720; letter-spacing: -.02em; }
.brand img { border-radius: 9px; box-shadow: 0 5px 14px rgba(25, 28, 36, .16); }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-header nav a {
  min-height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 11px;
  color: var(--muted); font-size: 13px; transition: background-color .18s ease, color .18s ease;
}
.site-header nav a:hover { background: color-mix(in srgb, var(--ink), transparent 95%); color: var(--ink); }
.nav-action {
  min-height: 40px; padding: 0 17px; display: grid; place-items: center; border-radius: 12px;
  background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 680;
}

.screen { position: relative; min-height: 100svh; padding: 110px var(--gutter) 64px; scroll-snap-align: start; overflow: hidden; }
.eyebrow {
  margin: 0 0 20px; color: var(--accent-strong); font-size: 11px; font-weight: 760;
  letter-spacing: .13em; line-height: 1.4; text-transform: uppercase;
}
.status-dot {
  display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%;
  background: #30a85d; box-shadow: 0 0 0 5px rgba(48, 168, 93, .1);
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 5.2vw, 4.8rem); font-weight: 650; letter-spacing: -.065em; line-height: 1; }
h1 em { color: var(--accent); font-style: normal; }
h2 { font-size: clamp(2.15rem, 3.8vw, 3.6rem); font-weight: 640; letter-spacing: -.045em; line-height: 1.08; }
h3 { font-size: clamp(1.8rem, 2.6vw, 2.8rem); font-weight: 630; letter-spacing: -.04em; line-height: 1.12; }

.button {
  min-height: 50px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 14px; cursor: pointer; font-size: 14px; font-weight: 680;
  transition: transform .2s var(--ease-out), background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.button.primary { background: var(--ink); color: var(--surface); box-shadow: 0 14px 32px rgba(21, 24, 29, .16); }
.button.quiet { color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.button.light { background: var(--night-ink); color: var(--night); }
.button.dark-quiet { color: #c6c4bd; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.button.is-disabled { cursor: not-allowed; opacity: .58; }
.button.is-disabled:hover { transform: none; }
.button[aria-disabled="true"] { pointer-events: none; }

/* Hero */
.hero {
  --mask-color: var(--page);
  display: grid; grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.18fr); align-items: center;
  gap: clamp(38px, 6vw, 90px); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; width: min(64vw, 980px); aspect-ratio: 1; right: -17vw; top: -30vw;
  border-radius: 50%; background: radial-gradient(circle, rgba(232, 90, 36, .16), transparent 66%); pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 670px; }
.hero-lede { max-width: 590px; margin: 28px 0 0; color: var(--muted); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.72; }
.hero-actions, .closing-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.proof-line { margin: 38px 0 0; padding: 0; display: flex; gap: clamp(20px, 3vw, 46px); list-style: none; }
.proof-line li { display: grid; gap: 3px; }
.proof-line strong { color: var(--ink); font-size: 25px; font-weight: 620; letter-spacing: -.04em; }
.proof-line span { color: var(--faint); font-size: 11px; }

.hero-product { position: relative; z-index: 2; width: min(100%, 700px); min-height: 640px; justify-self: center; display: grid; place-items: center; }
.product-mark {
  position: absolute; z-index: 7; top: 7px; right: 24px; border-radius: 24px;
  filter: drop-shadow(0 18px 28px rgba(20, 24, 31, .18)); transform: rotate(5deg);
}
.product-halo { position: absolute; inset: 3% 0 8%; pointer-events: none; }
.product-halo i { position: absolute; border: 1px solid color-mix(in srgb, var(--accent), transparent 76%); border-radius: 50%; }
.product-halo i:nth-child(1) { width: 68%; aspect-ratio: 1; left: 16%; top: 12%; }
.product-halo i:nth-child(2) { width: 86%; aspect-ratio: 1; left: 7%; top: 3%; opacity: .52; }
.product-halo i:nth-child(3) { width: 8px; height: 8px; left: 8%; top: 49%; border: 0; background: var(--accent); box-shadow: 0 0 0 8px var(--accent-soft); }

.translator-morph {
  position: relative; z-index: 3; width: min(620px, calc(100% - 30px)); height: 450px;
  clip-path: inset(0 round 28px); transform: translateY(26px); transform-origin: 82% 84%;
  transition: transform .72s var(--ease-expo), clip-path .72s var(--ease-expo), opacity .24s ease;
}
.translator-card {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transition: transform .78s var(--ease-expo);
}
.translator-card[data-face="back"] { transform: rotateY(180deg); }
.translator-face {
  position: absolute; inset: 0; padding: clamp(26px, 3.5vw, 42px); display: flex; flex-direction: column;
  overflow: hidden; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-large);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.translator-face::after {
  content: ""; position: absolute; width: 88px; height: 88px; right: -1px; top: -1px;
  background: linear-gradient(225deg, var(--page-deep) 49%, transparent 51%); filter: drop-shadow(-6px 8px 8px rgba(48,38,22,.07)); pointer-events: none;
}
.translator-back { transform: rotateY(180deg); background: #ebe6dc; }
.translator-topline {
  position: relative; z-index: 1; padding-right: 58px; display: flex; align-items: center; justify-content: space-between;
  color: var(--faint); font-size: 10px; font-weight: 720; letter-spacing: .12em;
}
.translator-topline i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent); }
.translator-copy { margin-top: auto; }
.translator-copy p, .answer-kicker { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.translator-copy h2 { font-size: clamp(2.2rem, 4.2vw, 4rem); letter-spacing: -.055em; }
.demo-input-row { margin-top: 24px; display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.demo-input-row input {
  min-width: 0; height: 58px; padding: 0 17px; border: 0; border-radius: 13px; outline: 0;
  background: var(--page); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: 19px; font-weight: 620;
}
.demo-input-row input:focus { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-soft); }
.demo-input-row button {
  min-width: 142px; border: 0; border-radius: 13px; background: var(--accent); color: #fff7f1; cursor: pointer; font-weight: 720;
  transition: transform .18s var(--ease-out), background-color .18s ease;
}
.demo-input-row button:hover { background: var(--accent-strong); }
.demo-input-row button:active { transform: scale(.97); }
.term-chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.term-chips button {
  min-height: 36px; padding: 0 11px; border: 0; border-radius: 10px; background: transparent; color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 11px; transition: background-color .18s ease, color .18s ease;
}
.term-chips button:hover { background: var(--surface-soft); color: var(--ink); }
.translator-foot { margin-top: 18px; display: flex; justify-content: space-between; color: var(--faint); font-size: 10px; }
.answer-content { margin: auto 0; }
.answer-content h2 { max-width: 12em; font-size: clamp(2rem, 3.6vw, 3.5rem); }
.answer-content > p:last-child { max-width: 560px; margin: 22px 0 0; color: #595c61; font-family: ui-serif, "Songti SC", STSong, serif; font-size: 18px; line-height: 1.8; }
.answer-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #7f817f; font-size: 10px; }
.answer-actions button { min-height: 44px; padding: 0 15px; border: 0; border-radius: 12px; background: var(--ink); color: var(--surface); cursor: pointer; font-weight: 680; }

.capsule-trigger {
  position: absolute; z-index: 8; right: 5%; bottom: 68px; width: min(310px, 72%); min-height: 68px; padding: 0 17px 0 20px;
  display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-large); cursor: pointer; opacity: 0; transform: translateY(18px) scale(.82); pointer-events: none;
  transition: opacity .24s ease .28s, transform .55s var(--ease-expo) .18s;
}
.capsule-trigger span { color: var(--muted); font-size: 10px; font-weight: 740; letter-spacing: .11em; }
.capsule-trigger i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent); }
.capsule-trigger b { padding: 11px 14px; border-radius: 999px; background: var(--ink); color: var(--surface); font-size: 11px; }
.collapse-control {
  position: absolute; z-index: 9; top: 116px; right: 2px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--surface); color: var(--muted); box-shadow: var(--shadow-small); cursor: pointer; font-size: 11px;
}
.hero-product[data-view="collapsed"] .translator-morph {
  clip-path: inset(42% 4% 42% 56% round 999px); opacity: .08; transform: translate(25%, 39%) scale(.42);
}
.hero-product[data-view="collapsed"] .capsule-trigger { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.hero-product[data-view="collapsed"] .collapse-control { opacity: 0; pointer-events: none; }
.demo-boundary { position: absolute; z-index: 4; left: 12%; right: 12%; bottom: 5px; margin: 0; color: var(--faint); font-size: 11px; line-height: 1.6; text-align: center; }
.demo-boundary strong { color: var(--muted); }
.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 16px; display: grid; justify-items: center; gap: 6px; transform: translateX(-50%); color: var(--faint); font-size: 10px; }
.scroll-cue span { width: 1px; height: 24px; background: linear-gradient(var(--accent), transparent); }

/* Mechanism */
.mechanism {
  --mask-color: var(--night);
  display: grid; grid-template-columns: minmax(330px, .78fr) minmax(520px, 1.22fr); align-items: center;
  gap: clamp(48px, 8vw, 130px); background: var(--night); color: var(--night-ink);
}
.mechanism-copy { max-width: 570px; }
.mechanism-copy .eyebrow { color: #ff7c4b; }
.mechanism-copy > p:not(.eyebrow) { max-width: 560px; margin: 27px 0 0; color: #a7a7a2; font-size: 17px; line-height: 1.75; }
.mode-list { margin: 38px 0 0; padding: 0; list-style: none; }
.mode-list li { border-top: 1px solid rgba(255,255,255,.11); }
.mode-list button {
  width: 100%; min-height: 84px; padding: 14px 0; display: grid; grid-template-columns: 42px 1fr; gap: 4px 14px;
  border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left;
}
.mode-list span { grid-row: 1 / 3; color: #71716e; font-size: 10px; font-weight: 700; }
.mode-list strong { font-size: 16px; }
.mode-list small { color: #888884; font-size: 12px; line-height: 1.5; }
.mode-list li.is-active span, .mode-list li.is-active strong { color: #ff7541; }

.mechanism-stage { width: min(100%, 720px); justify-self: center; }
.desktop-scene {
  position: relative; min-height: 560px; overflow: hidden; border-radius: 26px;
  background: #d8d6d1; box-shadow: 0 50px 120px rgba(0,0,0,.4); perspective: 1200px;
}
.desktop-bar { height: 50px; padding: 0 18px; display: flex; align-items: center; gap: 8px; background: #eeece7; color: #76756f; font-size: 11px; }
.desktop-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.desktop-bar i:nth-child(2) { background: #febc2e; }
.desktop-bar i:nth-child(3) { background: #28c840; }
.desktop-bar span { margin-left: 7px; }
.document-ghost { position: absolute; inset: 90px 9% 44px; padding: 46px; border-radius: 8px; background: #f0eee9; opacity: .72; }
.document-ghost span { display: block; height: 11px; margin-bottom: 21px; border-radius: 9px; background: #d5d2cb; }
.document-ghost span:nth-child(1) { width: 48%; height: 28px; }
.document-ghost span:nth-child(2) { width: 88%; }
.document-ghost span:nth-child(3) { width: 72%; }
.document-ghost span:nth-child(4) { width: 82%; }
.document-ghost span:nth-child(5) { width: 54%; }
.stage-capsule {
  position: absolute; z-index: 3; right: 8%; bottom: 9%; width: 154px; height: 56px; padding: 0 17px;
  display: flex; align-items: center; gap: 8px; border-radius: 999px; background: #fbfaf6; color: #5e6063;
  box-shadow: 0 18px 38px rgba(40,35,25,.2); font-size: 9px; font-weight: 740; letter-spacing: .1em;
  transition: opacity .25s ease, transform .6s var(--ease-expo);
}
.stage-capsule i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.stage-card {
  position: absolute; z-index: 4; left: 50%; top: 53%; width: min(430px, 78%); height: 310px;
  transform: translate(-50%, -50%) scale(.22); transform-style: preserve-3d; opacity: 0;
  transition: transform .8s var(--ease-expo), opacity .22s ease;
}
.stage-face {
  position: absolute; inset: 0; padding: 34px; display: flex; flex-direction: column; border-radius: 22px;
  background: #fbfaf6; color: #191b1f; box-shadow: 0 30px 70px rgba(40,35,25,.24);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.stage-back { transform: rotateY(180deg); background: #e9e3d8; }
.stage-face span { color: #8a8b8e; font-size: 10px; font-weight: 730; letter-spacing: .1em; }
.stage-face strong { margin: auto 0; font-size: 38px; letter-spacing: -.05em; line-height: 1.12; }
.stage-face em { color: #77787a; font-size: 11px; font-style: normal; }
.mechanism-stage[data-mechanism-stage="1"] .stage-capsule,
.mechanism-stage[data-mechanism-stage="2"] .stage-capsule { opacity: 0; transform: translateY(16px) scale(.82); }
.mechanism-stage[data-mechanism-stage="1"] .stage-card { opacity: 1; transform: translate(-50%, -50%) scale(1) rotateY(0); }
.mechanism-stage[data-mechanism-stage="2"] .stage-card { opacity: 1; transform: translate(-50%, -50%) scale(1) rotateY(180deg); }
.cursor-dot {
  position: absolute; z-index: 6; right: 18%; bottom: 13%; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 8px rgba(232,90,36,.14); transition: transform .65s var(--ease-expo), opacity .2s ease;
}
.mechanism-stage[data-mechanism-stage="1"] .cursor-dot { transform: translate(-155px, -205px); }
.mechanism-stage[data-mechanism-stage="2"] .cursor-dot { transform: translate(-118px, -94px); opacity: 0; }
.mechanism-stage > p { margin: 16px 0 0; color: #7e7e7a; font-size: 11px; text-align: center; }

/* Library */
.library {
  --mask-color: var(--surface); display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(520px, 1.3fr); grid-template-rows: 1fr auto;
  align-items: center; gap: 22px clamp(42px, 7vw, 110px); background: var(--surface);
}
.library-heading { width: auto; margin: 0; align-self: center; }
.library-heading .eyebrow { margin-bottom: 18px; }
.library-heading h2 { max-width: 7em; }
.library-heading h2 span { color: var(--accent); }
.library-heading > p:last-child { max-width: 430px; margin: 24px 0 0; color: var(--muted); font-size: 15px; line-height: 1.72; }
.word-orbit { position: relative; width: min(760px, 100%); min-height: min(52svh, 470px); margin: 0; display: grid; place-items: center; }
.word-orbit::before, .word-orbit::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.word-orbit::before { width: min(760px, 86%); aspect-ratio: 1.8; }
.word-orbit::after { width: min(520px, 62%); aspect-ratio: 1.4; }
.word-orbit > img { position: absolute; z-index: 2; top: 3%; left: 50%; width: 118px; border-radius: 28px; filter: drop-shadow(0 22px 36px rgba(20,24,31,.18)); transform: translateX(-50%) rotate(-5deg); }
.word-cloud { position: absolute; inset: 0; z-index: 3; }
.word-cloud button {
  position: absolute; min-height: 46px; padding: 0 17px; border: 0; border-radius: 999px;
  background: var(--page); color: var(--muted); box-shadow: var(--shadow-small); cursor: pointer; font-size: 13px;
  transition: transform .22s var(--ease-out), background-color .2s ease, color .2s ease;
}
.word-cloud button:hover, .word-cloud button.is-active { background: var(--ink); color: var(--surface); transform: translateY(-3px); }
.word-cloud button:nth-child(1) { left: 8%; top: 26%; transform: rotate(-5deg); }
.word-cloud button:nth-child(2) { right: 12%; top: 17%; transform: rotate(4deg); }
.word-cloud button:nth-child(3) { right: 3%; top: 48%; transform: rotate(-3deg); }
.word-cloud button:nth-child(4) { left: 17%; top: 52%; transform: rotate(3deg); }
.word-cloud button:nth-child(5) { left: 4%; top: 74%; transform: rotate(-4deg); }
.word-cloud button:nth-child(6) { right: 16%; top: 75%; transform: rotate(5deg); }
.library-note {
  position: relative; z-index: 4; width: min(520px, 74%); min-height: 164px; margin-top: 172px; padding: 24px 27px;
  border-radius: 20px 20px 20px 13px; background: #ebe6dc; box-shadow: var(--shadow-large);
}
.library-note > p { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.library-note > p span { color: var(--accent); font-size: 11px; font-weight: 740; }
.library-note > p strong { font-size: 17px; }
.library-note > div { margin-top: 15px; color: #5d6064; font-family: ui-serif, "Songti SC", STSong, serif; font-size: 15px; line-height: 1.72; }
.library-note.is-changing { animation: note-in .38s var(--ease-out); }
.library-facts { grid-column: 1 / -1; width: 100%; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.library-facts article { padding: 15px 30px 4px; border-left: 1px solid var(--line); }
.library-facts article:first-child { padding-left: 0; border-left: 0; }
.library-facts span { color: var(--accent); font-size: 10px; font-weight: 740; }
.library-facts strong { display: block; margin-top: 14px; font-size: 17px; }
.library-facts p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

/* Versions */
.versions {
  --mask-color: var(--page-deep);
  display: grid; grid-template-columns: minmax(320px, .72fr) minmax(520px, 1.28fr); align-items: center;
  gap: clamp(50px, 9vw, 142px); background: var(--page-deep);
}
.versions-copy { max-width: 570px; }
.versions-copy > p:last-child { max-width: 520px; margin: 27px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.version-picker { width: min(100%, 760px); justify-self: center; }
.version-tabs { padding: 5px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 15px; background: color-mix(in srgb, var(--ink), transparent 94%); }
.version-tabs button { min-height: 48px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 660; }
.version-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 6px 18px rgba(49,40,27,.09); }
.version-panels { margin-top: 12px; }
.version-panels article { min-height: 490px; padding: clamp(30px, 4vw, 50px); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-large); }
.version-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.version-status span { padding: 8px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 10px; font-weight: 720; }
.version-status strong { color: var(--muted); font-size: 13px; }
.version-panels h3 { max-width: 560px; margin-top: 52px; }
.version-panels p { max-width: 580px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.72; }
.version-panels ul { margin: 28px 0 32px; padding: 20px 0 0; display: grid; gap: 12px; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-size: 13px; }
.version-panels li::before { content: "✓"; margin-right: 9px; color: var(--accent); font-weight: 800; }
.dev-terminal { margin: 26px 0 30px; overflow: hidden; border-radius: 15px; background: #16181c; color: #dedfdc; box-shadow: 0 18px 40px rgba(20,22,26,.18); }
.dev-terminal > div { height: 38px; padding: 0 13px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.08); color: #777c83; font-size: 10px; }
.dev-terminal > div i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.dev-terminal > div i:nth-child(2) { background: #febc2e; }
.dev-terminal > div i:nth-child(3) { background: #28c840; }
.dev-terminal > div span { margin-left: 5px; }
.dev-terminal code { min-height: 38px; padding: 0 14px; display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.06); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dev-terminal code:last-child { border-bottom: 0; }
.dev-terminal code span { color: #ff8153; }
.dev-terminal code b { overflow: hidden; color: #d9dbd7; font-weight: 520; text-overflow: ellipsis; white-space: nowrap; }
.dev-terminal code em { color: #666c73; font-style: normal; }

/* Closing and dialog */
.closing { --mask-color: var(--night); min-height: 100svh; padding-bottom: 0; display: flex; flex-direction: column; background: var(--night); color: var(--night-ink); }
.closing-inner { width: min(980px, 100%); margin: auto; text-align: center; }
.closing-inner > img { margin: 0 auto 28px; border-radius: 27px; filter: drop-shadow(0 26px 42px rgba(0,0,0,.36)); transform: rotate(4deg); }
.closing-inner .eyebrow { color: #ff7a48; }
.closing-inner h2 { max-width: 950px; margin: auto; }
.closing-inner > p:not(.eyebrow) { max-width: 680px; margin: 26px auto 0; color: #a4a49f; font-size: 17px; line-height: 1.7; }
.closing-actions { justify-content: center; }
footer { width: 100%; margin-top: auto; padding: 22px 0; display: flex; align-items: center; gap: 20px; border-top: 1px solid rgba(255,255,255,.09); color: #969691; font-size: 12px; }
footer .brand { color: #d9d7d1; }
footer nav { margin-left: auto; display: flex; gap: 18px; }
footer nav a:hover { color: #e6e3dc; }
footer p { margin: 0; }

.download-dialog { width: min(620px, calc(100% - 28px)); max-width: none; padding: 0; overflow: visible; border: 0; border-radius: 26px; background: transparent; color: var(--ink); }
.download-dialog::backdrop { background: rgba(20,21,24,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.download-panel { padding: 28px; border: 0; border-radius: 26px; background: var(--surface); box-shadow: 0 36px 100px rgba(12,14,18,.3); }
.dialog-topline { display: flex; align-items: center; justify-content: space-between; color: var(--faint); font-size: 10px; font-weight: 730; letter-spacing: .12em; }
.dialog-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-soft); cursor: pointer; font-size: 20px; }
.dialog-copy { margin-top: 32px; }
.dialog-copy .eyebrow { margin-bottom: 12px; }
.dialog-copy h2 { font-size: clamp(2.7rem, 7vw, 4.6rem); }
.dialog-copy > p:not(.eyebrow) { max-width: 470px; margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.acquisition-options { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acquisition-options button { min-height: 76px; padding: 15px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border: 0; border-radius: 14px; background: var(--page); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; text-align: left; }
.acquisition-options button:hover, .acquisition-options button:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.acquisition-options strong { font-size: 14px; }
.acquisition-options span { color: var(--faint); font-size: 11px; }
.download-panel label { display: block; margin-top: 25px; color: var(--muted); font-size: 12px; font-weight: 650; }
.invite-row { margin-top: 8px; display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.invite-row input { min-width: 0; height: 54px; padding: 0 16px; border: 0; border-radius: 13px; outline: 0; background: var(--page); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; }
.invite-row input:focus { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-soft); }
.invite-row button { min-width: 134px; border: 0; border-radius: 13px; background: var(--ink); color: var(--surface); cursor: pointer; font-weight: 700; }
.invite-row button:disabled { cursor: wait; opacity: .6; }
.invite-feedback { min-height: 19px; margin: 10px 0 0; color: var(--faint); font-size: 11px; }
.invite-feedback.is-error { color: #c64029; }
.invite-feedback.is-success { color: #238a46; }
.dialog-trust { margin-top: 27px; padding-top: 17px; display: flex; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }
.dialog-trust span::before { content: "·"; margin-right: 7px; color: var(--accent); }

/* Motion and interaction states */
.mask-reveal { position: relative; }
.has-js .mask-reveal::after {
  content: ""; position: absolute; z-index: 20; inset: -2px; background: var(--mask-color, var(--page));
  transform: scaleX(1); transform-origin: right center; pointer-events: none;
}
.has-js .mask-reveal:not(.is-visible) { opacity: 0; transform: translateY(30px); }
.has-js .mask-reveal.is-visible::after { animation: mask-open 1100ms var(--ease-expo) both; }
.has-js .mask-reveal.is-visible { animation: subject-settle 900ms cubic-bezier(.22,1,.36,1) 180ms both; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent), transparent 30%); outline-offset: 3px; }
@keyframes mask-open { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes subject-settle { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes note-in { from { opacity: .35; transform: translateY(7px); } to { opacity: 1; transform: none; } }

@media (prefers-color-scheme: dark) {
  :root {
    --page: #121316; --page-deep: #191a1e; --surface: #1d1f23; --surface-soft: #27292e;
    --ink: #f0eee8; --muted: #aaa9a4; --faint: #82827e; --line: rgba(255,255,255,.11);
    --accent: #ff7340; --accent-strong: #ff9169; --accent-soft: rgba(255,115,64,.13);
    --shadow-large: 0 42px 110px rgba(0,0,0,.42), 0 10px 32px rgba(0,0,0,.25);
    --shadow-small: 0 14px 42px rgba(0,0,0,.28);
  }
  .site-header { background: rgba(18,19,22,.94); border-color: rgba(255,255,255,.08); box-shadow: 0 12px 36px rgba(0,0,0,.25); }
  .translator-face::after { background: linear-gradient(225deg, #302d28 49%, transparent 51%); }
  .translator-back, .library-note { background: #292824; }
  .answer-content > p:last-child, .library-note > div { color: #c0beb8; }
  .desktop-scene { background: #24262a; }
  .desktop-bar { background: #303238; color: #aaa9a4; }
  .document-ghost { background: #202226; }
  .document-ghost span { background: #34363c; }
  .stage-face { background: #f3f0e9; color: #191b1f; }
  .stage-back { background: #ddd6c9; }
  .word-cloud button { background: #24262a; }
  .version-tabs { background: rgba(255,255,255,.06); }
}

@media (max-width: 1060px) {
  .hero, .mechanism, .versions { grid-template-columns: 1fr; align-content: center; gap: 50px; }
  .hero { padding-top: 128px; }
  .hero-copy, .mechanism-copy, .versions-copy { max-width: 790px; }
  .hero-product { width: min(760px, 100%); }
  .mechanism-stage, .version-picker { width: min(760px, 100%); }
  .library { grid-template-columns: 1fr; grid-template-rows: auto auto auto; overflow: visible; }
  .library-heading { max-width: 760px; }
  .library-heading h2 { max-width: none; }
  .word-orbit { width: min(760px, 100%); margin: 20px auto 0; }
  .library-facts { grid-column: 1; }
}

@media (max-width: 700px) {
  :root { --gutter: 18px; }
  .site-header { top: 10px; height: 54px; }
  .site-header nav { display: none; }
  .nav-action { margin-left: auto; min-height: 38px; padding: 0 14px; }
  .screen { padding-top: 94px; padding-bottom: 52px; }
  h1 { font-size: clamp(3rem, 14vw, 4.25rem); }
  h2 { font-size: clamp(2.15rem, 10vw, 3.25rem); }
  .hero { min-height: auto; gap: 22px; padding-bottom: 70px; }
  .hero-actions, .closing-actions { flex-direction: column; }
  .button { width: 100%; }
  .proof-line { gap: 17px; }
  .proof-line strong { font-size: 21px; }
  .proof-line span { max-width: 8em; font-size: 10px; line-height: 1.4; }
  .hero-product { min-height: 570px; }
  .product-mark { top: 12px; right: 16px; width: 72px; border-radius: 18px; }
  .product-halo { inset: 7% -18% 8%; }
  .translator-morph { width: calc(100% - 4px); height: 455px; transform: translateY(34px); }
  .translator-face { padding: 25px 19px; border-radius: 22px; }
  .translator-face::after { width: 64px; height: 64px; }
  .translator-topline { padding-right: 38px; }
  .translator-copy h2 { font-size: 2.55rem; }
  .demo-input-row { grid-template-columns: 1fr; }
  .demo-input-row button { min-height: 50px; }
  .term-chips button { min-height: 40px; }
  .translator-foot { align-items: flex-start; flex-direction: column; gap: 5px; }
  .answer-content > p:last-child { font-size: 16px; }
  .answer-actions { align-items: flex-start; flex-direction: column; }
  .collapse-control { top: 96px; right: 0; }
  .capsule-trigger { right: 2%; bottom: 60px; width: min(285px, 82%); }
  .hero-product[data-view="collapsed"] .translator-morph { transform: translate(24%, 40%) scale(.4); }
  .demo-boundary { left: 3%; right: 3%; bottom: -4px; }
  .scroll-cue { display: none; }
  .mechanism { padding-top: 104px; }
  .desktop-scene { min-height: 440px; border-radius: 20px; }
  .document-ghost { inset: 74px 6% 30px; padding: 26px; }
  .stage-card { width: 84%; height: 270px; }
  .stage-face { padding: 26px; }
  .stage-face strong { font-size: 31px; }
  .cursor-dot { display: none; }
  .word-orbit { min-height: 550px; margin-top: 55px; }
  .word-orbit > img { width: 112px; top: 7%; border-radius: 27px; }
  .word-orbit::before { width: 120%; transform: rotate(90deg); }
  .word-orbit::after { width: 88%; }
  .word-cloud button { min-height: 44px; padding: 0 13px; font-size: 12px; }
  .word-cloud button:nth-child(1) { left: 0; top: 24%; }
  .word-cloud button:nth-child(2) { right: 1%; top: 20%; }
  .word-cloud button:nth-child(3) { right: -2%; top: 45%; }
  .word-cloud button:nth-child(4) { left: 2%; top: 46%; }
  .word-cloud button:nth-child(5) { left: 2%; top: 82%; }
  .word-cloud button:nth-child(6) { right: 2%; top: 80%; }
  .library-note { width: 94%; margin-top: 180px; padding: 24px 21px; }
  .library-facts { grid-template-columns: 1fr; }
  .library-facts article, .library-facts article:first-child { padding: 21px 0; border-top: 1px solid var(--line); border-left: 0; }
  .version-tabs { grid-template-columns: 1fr; gap: 4px; }
  .version-panels article { min-height: 520px; padding: 28px 22px; }
  .version-panels h3 { margin-top: 42px; }
  .dev-terminal code { grid-template-columns: 76px minmax(0, 1fr); }
  .dev-terminal code em { display: none; }
  .closing { min-height: 100svh; }
  .closing-inner > img { width: 94px; border-radius: 22px; }
  footer { align-items: flex-start; flex-direction: column; gap: 9px; }
  footer nav { margin-left: 0; }
  .download-panel { padding: 23px 18px; }
  .acquisition-options, .invite-row { grid-template-columns: 1fr; }
  .invite-row button { min-height: 50px; }
}

@media (max-height: 760px) and (min-width: 1061px) {
  .screen { padding-top: 88px; padding-bottom: 42px; }
  .hero-product { min-height: 570px; }
  .translator-morph { height: 400px; }
  .translator-face { padding-top: 28px; padding-bottom: 28px; }
  .translator-copy h2 { font-size: 3.1rem; }
  .desktop-scene { min-height: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .has-js .mask-reveal::after { display: none; }
  .has-js .mask-reveal { opacity: 1 !important; transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--page); }
  .download-dialog::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
