.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(36px, 5vw, 72px); padding-block: 56px 68px; }
.platform { font-size: .91rem; font-weight: 680; color: var(--accent); margin-bottom: 14px; }
h1, .section h2 { font-family: ui-rounded, "Avenir Next", "PingFang SC", sans-serif; }
h1 { font-size: clamp(2.65rem, 5vw, 4.45rem); line-height: 1.09; letter-spacing: -.04em; font-weight: 750; text-wrap: balance; }
h1 span { display: block; }
h1 .hero-emphasis { color: var(--accent); }
.lead { max-width: 29rem; margin-top: 22px; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.19rem); line-height: 1.7; }
.actions { margin-top: 28px; gap: 12px 20px; }
.download { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; border-radius: 11px; background: var(--accent); color: #fff; font-weight: 690; text-decoration: none; }
.download:hover { background: var(--accent-hover); }
.text-link { font-size: .96rem; font-weight: 650; text-decoration-color: #a9988b; }
.demo { min-width: 0; scroll-margin-top: 16px; }
.desktop { overflow: hidden; background: var(--window); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 14px 34px rgb(56 40 28 / .09); }
.demo-stage { position: relative; min-width: 0; background: #3f493f; }
.demo-stage > img { display: block; width: 100%; height: auto; aspect-ratio: 1.52; object-fit: cover; object-position: center 44%; }
.floating {
  position: absolute; inset: auto 4% 6%; display: grid; align-content: center; min-height: 72px; gap: 4px;
  padding: 10px 14px; border: 1px solid rgb(255 255 255 / .18); border-radius: 12px;
  background: #232620; color: #fff9ec; text-align: center; box-shadow: 0 8px 22px rgb(32 27 20 / .22);
}
.floating .source { font-size: clamp(.9rem, 1.45vw, 1.06rem); font-weight: 650; text-wrap: balance; }
.floating .translation { color: #eee4d2; font-size: .9rem; text-wrap: balance; }
.desktop:has(#demo-original:checked) .floating .translation,
.desktop:has(#demo-translation:checked) .floating .source { display: none; }
.desktop:has(#demo-translation:checked) .floating .translation { color: white; font-size: 1.1rem; font-weight: 650; }
.demo-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px; padding: 13px 16px; }
.demo-controls p { color: var(--muted); font-size: .84rem; font-weight: 620; }
.demo-modes { margin: 0; border: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; min-width: 0; }
.demo-modes label { position: relative; display: block; padding: 5px 11px; border-radius: 8px; font-size: .84rem; cursor: pointer; color: var(--ink); }
.demo-modes label:hover { background: #f1e8dc; }
.demo-modes input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.demo-modes label:has(input:checked) { color: #fff; background: var(--ink); font-weight: 650; }
figcaption { margin-top: 8px; color: var(--muted); font-size: .82rem; }
.section { border-top: 1px solid var(--line); padding-block: 52px 60px; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.15; letter-spacing: -.025em; }
.section h3 { font-size: 1.125rem; font-weight: 650; }
.section p { color: var(--muted); margin-top: 6px; text-wrap: pretty; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 24px 0 0; padding-left: 1.3em; }
.flow li { padding-inline-end: 8px; }
.choices article { background: #f5ecdf; border-radius: 13px; }
.flow li::marker { color: var(--accent); font-size: .98rem; font-weight: 650; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
.choices article { border: 1px solid var(--line); padding: 18px 20px; }
.download-section { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 920px) {
  .hero { gap: 32px; padding-block: 44px 56px; }

}
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; }
  .section { padding-block: 36px; }
  .flow { grid-template-columns: 1fr; gap: 16px; }
  .choices { grid-template-columns: 1fr; }
  .download-section { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 400px) {
  .demo-stage > img { aspect-ratio: 1.28; }
}
