/* 拾词官网 · 纸页小鸟 · 手机优先 */
:root {
  --paper: #faf9f6;
  --ink: #2f2a3b;
  --ink-2: #4a4458;
  --muted: #7a7385;
  --line: rgba(53, 49, 62, .10);
  --accent: #7c69ad;
  --accent-deep: #5e4e92;
  --lav-50: #f4f1fb;
  --lav-100: #ece7f8;
  --lav-200: #ded6f2;
  --ivory: #f2ede2;
  --sage: #8c9a78;
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: system-ui, -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --latin: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-1: 0 1px 2px rgba(53, 40, 90, .05), 0 18px 40px -18px rgba(76, 58, 140, .28);
  --shadow-2: 0 2px 4px rgba(53, 40, 90, .05), 0 28px 56px -26px rgba(76, 58, 140, .34);
  --gutter: clamp(20px, 6vw, 40px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .4 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(100% - var(--gutter) * 2, 1120px); margin-inline: auto; }

/* ───── reveal ───── */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ───── buttons ───── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden;
  border-radius: 16px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .3s;
}
.btn-primary {
  color: #fff; background: linear-gradient(180deg, #8c79c1 0%, #6c59a2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 30px -12px rgba(94, 78, 146, .75), 0 2px 4px rgba(94, 78, 146, .25);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
  animation: sheen 6s ease-in-out 2.4s infinite;
}
.btn:active { transform: scale(.97); }
.btn[aria-busy="true"] { pointer-events: none; filter: saturate(.8); }
.btn[aria-busy="true"] .ic { animation: spin .9s linear infinite; }
.btn[aria-disabled="true"] { pointer-events: none; background: #cfc8e0; box-shadow: none; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 17px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 12px; gap: 6px; }
@media (hover: hover) { .btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 20px 36px -12px rgba(94, 78, 146, .85), 0 2px 4px rgba(94, 78, 146, .25); } }

/* ───── header ───── */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, backdrop-filter .4s, box-shadow .4s;
}
.top.solid { background: rgba(250, 249, 246, .78); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line); }
.brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; font: 600 19px/1 var(--serif); letter-spacing: .12em; }
.brand img { border-radius: 9px; box-shadow: 0 2px 8px rgba(94, 78, 146, .25); }
.top-cta { position: relative; z-index: 1; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .4s, transform .5s var(--ease); }
.top.cta-on .top-cta { opacity: 1; transform: none; pointer-events: auto; }
.flight { position: absolute; inset: auto 0 0 0; height: 2px; pointer-events: none; opacity: 0; transition: opacity .5s; }
.top.solid .flight { opacity: 1; }
.flight-line { position: absolute; left: 0; top: 0; height: 2px; width: calc(var(--p, 0) * (100% - 34px) + 22px); background: linear-gradient(90deg, transparent, var(--accent)); border-radius: 2px; }
.flight-bird { position: absolute; top: -17px; width: 34px; left: calc(var(--p, 0) * (100% - 34px)); overflow: visible; filter: drop-shadow(0 3px 4px rgba(94, 78, 146, .25)); }
.wing { transform-box: view-box; transform-origin: 30px 30px; animation: flap .42s ease-in-out infinite alternate; }
.wing-back { animation-delay: -.12s; }

/* ───── hero ───── */
.hero { position: relative; padding: calc(96px + env(safe-area-inset-top)) 0 56px; overflow: clip; }
.hero-paper {
  position: absolute; z-index: 0; top: 0; right: 0; width: min(100%, 980px); height: 640px;
  background: linear-gradient(165deg, #efeafc 0%, #e3dbf6 100%);
  clip-path: polygon(46% 0, 100% 0, 100% 100%, 92% 90%, 82% 82%, 70% 60%, 61% 38%, 52% 22%, 44% 9%);
  opacity: 0; animation: paper-in 1.4s var(--ease) .1s forwards;
}
.hero-paper::after { content: ""; position: absolute; inset: 0; background: inherit; mix-blend-mode: soft-light; opacity: .6; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 28px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .22em; color: var(--accent-deep); font-weight: 500; }
.eyebrow span { width: 28px; height: 1px; background: var(--accent); }
.display { margin: 18px 0 20px; font: 600 clamp(52px, 15.5vw, 112px)/1.1 var(--serif); letter-spacing: .02em; }
.display .line { display: block; overflow: hidden; padding: .04em 0 .1em; margin-bottom: -.06em; }
.display .line > span { display: block; }
html.js .display .line > span { transform: translateY(110%); animation: rise 1.1s var(--ease) .15s forwards; }
html.js .display .line:nth-child(2) > span { animation-delay: .3s; color: var(--accent-deep); }
.lede { font-size: clamp(16px, 4.4vw, 20px); color: var(--ink-2); }
.cta-block { margin-top: 30px; display: grid; gap: 14px; justify-items: start; }
.meta { font-size: 13px; color: var(--muted); letter-spacing: .02em; min-height: 1.7em; }
.meta b { color: var(--ink-2); font-weight: 600; }
.bird { height: auto; user-select: none; pointer-events: none; }
.bird-flight {
  position: absolute; z-index: 1; top: calc(34px + env(safe-area-inset-top)); right: -17vw; width: min(70vw, 520px); height: auto;
  translate: var(--tx, 0) var(--ty, 0);
  animation: fly-in 1.8s var(--ease) .1s both, float 7s ease-in-out 1.9s infinite;
}
.hero-stage { position: static; }
.demo-card { position: relative; z-index: 2; margin-top: 30px; border-radius: 28px; background: rgba(255, 255, 255, .8); padding: 6px; box-shadow: var(--shadow-2); border: 1px solid rgba(124, 105, 173, .16); max-width: 440px; width: 100%; justify-self: center; }

/* ───── ribbon ───── */
.ribbon { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .5); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ribbon-track { display: flex; width: max-content; gap: 14px; animation: marquee 46s linear infinite; }
.ribbon-track span { display: inline-flex; align-items: baseline; gap: 10px; padding: 8px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: var(--serif); font-size: 17px; white-space: nowrap; }
.ribbon-track b { font: 400 12px var(--sans); color: var(--muted); letter-spacing: .06em; }
.ribbon-track i { font: italic 400 15px var(--latin); color: var(--accent-deep); }

/* ───── sections ───── */
.sec { position: relative; padding: 84px 0; }
.sec.tint { background: var(--lav-50); }
.sec.tear { padding-block: 104px; clip-path: polygon(0 10px, 5% 3px, 13% 9px, 22% 2px, 33% 8px, 45% 1px, 55% 7px, 66% 2px, 77% 9px, 88% 3px, 100% 8px, 100% calc(100% - 8px), 90% calc(100% - 2px), 79% calc(100% - 9px), 66% calc(100% - 3px), 52% calc(100% - 8px), 40% calc(100% - 1px), 27% calc(100% - 7px), 14% calc(100% - 2px), 0 calc(100% - 9px)); }
.split { display: grid; gap: 40px; }
.sec-copy .num { font: italic 400 22px var(--latin); color: var(--accent); letter-spacing: .06em; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.sec-copy .num::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .5; }
.sec-copy h2 { font: 600 clamp(34px, 9.4vw, 54px)/1.22 var(--serif); letter-spacing: .01em; margin-bottom: 18px; }
.sec-copy > p:not(.num) { color: var(--ink-2); font-size: 16.5px; max-width: 34em; }
.sec-copy.center { text-align: center; margin-inline: auto; max-width: 640px; }
.sec-copy.center .num { justify-content: center; }
.sec-copy.center > p:not(.num) { margin-inline: auto; }
.ticks { margin-top: 22px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.ticks .ic { margin-top: .32em; color: var(--accent); }
.panel { position: relative; padding: 14px; border-radius: 30px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(124, 105, 173, .14); box-shadow: var(--shadow-1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.panel-kb { display: grid; gap: 12px; }
.demo-note { text-align: center; font-size: 13px; color: var(--muted); min-height: 1.6em; transition: opacity .3s; }

/* ───── keyboard mock（对齐 App 实际界面：顶部拼音条、无底色候选、数字/符号提示键） ───── */
.kb, .kb-sheet {
  --bg: #ece8f6; --key: #fffdfb; --ink: #2f2a3b; --muted: #8a8394; --accent: #7c69ad; --soft: rgba(124, 105, 173, .18);
  --host: #f7f6f3; --chip: #fff; --shadow: rgba(60, 45, 110, .2);
}
.kb[data-skin="porcelain"] { --bg: #edf2f7; --key: #fff; --ink: #172b43; --muted: #6a7b90; --accent: #2859c7; --soft: rgba(40, 89, 199, .16); --host: #f6f8fb; --shadow: rgba(23, 43, 67, .2); }
.kb[data-skin="night"] { --bg: #171e2a; --key: #293448; --ink: #f2f5fa; --muted: #9aa9bd; --accent: #91b8ff; --soft: rgba(145, 184, 255, .2); --host: #0e131b; --chip: #232d3f; --shadow: rgba(0, 0, 0, .5); }
.kb[data-skin="apricot"] { --bg: #efe7e2; --key: #fffaf5; --ink: #443839; --muted: #8a7775; --accent: #934f62; --soft: rgba(147, 79, 98, .16); --host: #faf6f3; --shadow: rgba(68, 56, 57, .22); }
.kb { position: relative; border-radius: 22px; overflow: hidden; background: var(--bg); color: var(--ink); transition: background .6s var(--ease), color .6s var(--ease); user-select: none; -webkit-user-select: none; }
.kb-host { height: 48px; padding: 9px 10px; display: flex; align-items: center; background: var(--host); transition: background .6s var(--ease); }
.kb-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 10px; background: var(--chip); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); font: 400 17px var(--sans); letter-spacing: .02em; opacity: 0; transform: translateY(4px) scale(.96); transition: opacity .25s, transform .4s var(--ease), background .6s, color .6s; }
.kb-chip.on { opacity: 1; transform: none; }
.kb-chip .py { white-space: pre; }
.kb-chip .py u { text-decoration: underline wavy var(--accent); text-underline-offset: 5px; }
.kb-chip .py span { display: inline-block; }
.kb-caret { width: 2px; height: 18px; margin-left: 2px; background: var(--accent); animation: blink 1s steps(2) infinite; }
.kb-host .commit { margin-left: auto; font: 600 16px var(--sans); color: var(--accent); opacity: 0; transform: translateY(6px); transition: .4s var(--ease); }
.kb-host .commit.on { opacity: 1; transform: none; }
.kb-body { position: relative; padding: 4px 6px 10px; }
.kb[data-compact] .kb-body { padding-bottom: 6px; }
.kb-cands { position: relative; display: flex; min-height: 66px; padding: 2px 0 2px; }
.cand { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3px 1px; border-radius: 12px; line-height: 1.3; overflow: hidden; }
.cand small { max-width: 100%; font: 400 12.5px var(--sans); color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cand span { max-width: 100%; font: 400 20.5px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cand.in { animation: cand-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.cand.hold::after { content: ""; position: absolute; inset: 0; border-radius: 12px; background: var(--accent); opacity: .2; transform-origin: left; animation: fill .65s linear forwards; }
.cand.tap { animation: tap .35s var(--ease); background: var(--soft); }
.cand .badge { position: absolute; bottom: 2px; right: 2px; display: inline-flex; align-items: center; gap: 2px; padding: 0 3px; border-radius: 4px; background: var(--soft); color: var(--accent); font: 500 8.5px/13px var(--sans); font-style: normal; }
.cand .badge .ic { width: 9px; height: 9px; fill: currentColor; }
.kb-more { flex: none; width: 30px; display: grid; place-items: center; color: var(--muted); }
.kb-keys { margin-top: 6px; display: grid; gap: 7px; }
.kb-row { display: flex; gap: 5px; }
.kb-row.r2 { padding-inline: 4.6%; }
.kb-row b {
  position: relative; flex: 1 1 0; height: 44px; display: grid; place-items: end center; padding-bottom: 7px; border-radius: 10px; background: var(--key); color: var(--ink);
  font: 400 19px/1 var(--sans); box-shadow: 0 1px 0 var(--shadow); transition: transform .12s, background .12s;
}
.kb-row b i { position: absolute; top: 4px; left: 0; right: 0; text-align: center; font: 400 8.5px/1 var(--sans); color: var(--muted); }
.kb-row b.fn, .kb-row b.space, .kb-row b.ent { place-items: center; padding: 0; font-size: 14px; }
.kb-row b.fn { flex-grow: 1.45; }
.kb-row b.fn.pn { flex-grow: 1; }
.kb-row b.space { flex-grow: 3.8; }
.kb-row b.ent { flex-grow: 1.9; background: var(--accent); color: #fff; font-weight: 500; }
.kb[data-skin="night"] .kb-row b.ent { color: #0e131b; }
.kb-row b .ic { width: 20px; height: 20px; }
.kb-row b .sp { width: 20px; height: 8px; border: 1.6px solid currentColor; border-top: 0; border-radius: 0 0 2px 2px; }
.kb-row b.down { transform: translateY(1px) scale(.96); background: var(--soft); }
.kb-row b[data-k].down::after {
  content: attr(data-k); position: absolute; z-index: 4; bottom: calc(100% + 2px); left: 50%; translate: -50% 0; width: 150%; height: 48px; display: grid; place-items: center;
  border-radius: 12px; background: var(--key); box-shadow: 0 8px 18px -4px var(--shadow); font-size: 25px;
}
.kb[data-compact] .kb-keys { display: none; }
.kb-card { position: absolute; z-index: 6; left: 0; right: 0; top: 74px; bottom: 0; padding: 2px 14px 10px; background: var(--bg); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .5s var(--ease); }
.kb-card.on { opacity: 1; transform: none; }

/* 词条（长按后），与 App 一致：翻页行、粗体词头、音标+喇叭、词表标签、词性释义 */
.entry-nav { display: flex; align-items: center; justify-content: space-between; height: 34px; color: var(--accent); font-size: 13px; }
.entry-nav .ic { width: 22px; height: 22px; }
.entry-nav em { font-style: normal; color: var(--muted); font-size: 13.5px; }
.entry-nav .x { color: var(--muted); }
.entry-head { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.entry-head h4 { margin: 0; font: 700 30px/1.2 var(--sans); letter-spacing: -.01em; }
.bm { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: var(--accent); transition: background .3s, color .3s, transform .3s var(--ease); }
.bm .ic { width: 24px; height: 24px; }
.bm[aria-pressed="true"], .bm.on { background: var(--accent); color: #fff; }
.bm[aria-pressed="true"] .ic, .bm.on .ic { fill: currentColor; }
.bm:active { transform: scale(.9); }
.entry .ipa { margin-top: 2px; display: flex; align-items: center; gap: 10px; color: var(--muted); font: 400 14px var(--sans); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--accent); transition: transform .3s var(--ease); }
.icon-btn:active { transform: scale(.9); }
.icon-btn .ic { width: 22px; height: 22px; }
.icon-btn.playing .ic { animation: speak .5s ease-in-out infinite alternate; }
.entry .tags { margin-top: 4px; color: var(--accent); font-size: 13px; }
.entry .senses { margin-top: 4px; display: block; font-size: 15px; line-height: 1.85; }

/* 句子翻译页（对齐 App：原文/译文、云端标识、填入输入框） */
.kb-sheet { border-radius: 22px; background: var(--bg); color: var(--ink); padding: 6px 16px 16px; min-height: 276px; display: flex; flex-direction: column; }
.kb-sheet.entry-sheet { min-height: 268px; }
.tr-nav { display: flex; align-items: center; gap: 12px; height: 40px; color: var(--accent); }
.tr-nav .ic { width: 22px; height: 22px; }
.tr-nav b { margin-right: auto; color: var(--ink); font-weight: 500; font-size: 15.5px; }
.tr-nav em { font-style: normal; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.tr-nav em .ic { width: 14px; height: 14px; }
.lab { margin-top: 10px; font-size: 12px; color: var(--muted); }
.tr-src { margin-top: 2px; padding-bottom: 12px; border-bottom: 1px solid rgba(53, 49, 62, .14); font-size: 17px; min-height: 40px; }
.lab-row { display: flex; align-items: center; justify-content: space-between; }
.lab-row .icon-btn { width: 30px; height: 30px; margin-top: 8px; }
.tr-out { margin-top: 2px; min-height: 58px; font: 400 17px/1.5 var(--sans); }
.tr-out p { display: inline; }
.ai-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--accent); animation: blink 1s steps(2) infinite; }
.tr-actions { margin-top: auto; display: flex; gap: 10px; }
.tr-actions .fill { display: grid; place-items: center; flex: 1; height: 46px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 500; font-size: 15.5px; }
.tr-actions .sq { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--key); color: var(--accent); box-shadow: 0 0 0 1px rgba(124, 105, 173, .14); }
.tr-actions .sq .ic { width: 22px; height: 22px; }

/* 营销页自有的标签切换 */
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 16px; background: var(--lav-100); margin-bottom: 14px; }
.seg button { position: relative; z-index: 1; height: 40px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .3s; }
.seg button[aria-selected="true"] { color: var(--accent-deep); }
.seg-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(76, 58, 140, .18); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .5s var(--ease); }
.tabview { animation: tab-in .6s var(--ease); }

/* ───── chips (词书) ───── */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; scroll-snap-type: x proximity; mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; scroll-snap-align: start; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--lav-50); border: 1px solid var(--lav-200); color: var(--ink-2); font-size: 14px; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.chips button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 16px -8px rgba(94, 78, 146, .8); }
.chips button:active { transform: scale(.94); }

/* ───── models ───── */
.model-grid { margin-top: 44px; display: grid; gap: 18px; max-width: 880px; margin-inline: auto; }
.model { position: relative; padding: 26px 24px 24px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; gap: 6px; overflow: hidden; }
.model::before { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--lav-100), transparent 70%); }
.model-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: var(--lav-100); color: var(--accent-deep); margin-bottom: 8px; position: relative; }
.model-ic .ic { width: 22px; height: 22px; }
.model h3 { font: 600 24px/1.3 var(--serif); position: relative; }
.model > p { color: var(--muted); font-size: 14.5px; position: relative; }
.bars { height: 44px; margin: 14px 0 6px; display: flex; align-items: center; gap: 4px; }
.bars i { flex: 1; max-width: 6px; height: 100%; border-radius: 4px; background: linear-gradient(180deg, var(--accent), #b3a4dd); transform: scaleY(.25); animation: bar 1.1s ease-in-out infinite alternate; }
.bars i:nth-child(3n) { animation-duration: .8s; } .bars i:nth-child(4n+1) { animation-delay: -.3s; } .bars i:nth-child(5n+2) { animation-delay: -.6s; } .bars i:nth-child(2n) { animation-delay: -.45s; }
.trans-demo { height: 44px; margin: 14px 0 6px; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.trans-demo b { font: italic 600 16px var(--latin); color: var(--accent-deep); }
.trans-demo .ic { color: var(--accent); animation: nudge 1.6s ease-in-out infinite; }
.dl { position: relative; height: 44px; border-radius: 14px; overflow: hidden; background: var(--lav-100); color: var(--accent-deep); font-weight: 600; font-size: 14.5px; margin-top: 8px; cursor: default; }
.dl-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 1%); background: linear-gradient(90deg, #9684c9, var(--accent)); transition: width .15s linear; }
.dl-text { position: absolute; inset: 0; display: grid; place-items: center; }
.dl-text-on { color: #fff; clip-path: inset(0 calc(100% - var(--p, 0) * 1%) 0 0); transition: clip-path .15s linear; }
.soon { font-size: 12.5px !important; color: var(--accent) !important; letter-spacing: .04em; position: relative; margin-top: 2px; }

/* ───── skins ───── */
.swatches { display: flex; justify-content: center; gap: 10px; }
.swatches button { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.swatches button[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 105, 173, .18); }
.swatches button:active { transform: scale(.94); }
.swatches .dot { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); position: relative; overflow: hidden; }
.swatches .dot::after { content: ""; position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border-radius: 50% 0 0 0; background: var(--c2); }

/* ───── sync ───── */
.sync { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; gap: 4px; padding: 28px 14px; overflow: hidden; }
.dev { position: relative; height: 196px; padding: 26px 10px 10px; border-radius: 24px; background: #fff; border: 5px solid #2f2a3b; box-shadow: var(--shadow-1); overflow: hidden; }
.dev-bar { position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 34px; height: 6px; border-radius: 4px; background: #2f2a3b; opacity: .85; }
.dev ul { display: grid; gap: 6px; }
.dev li { display: flex; flex-direction: column; padding: 7px 9px; border-radius: 10px; background: var(--lav-50); line-height: 1.25; transition: background .5s; }
.dev li b { font: 600 14px var(--latin); }
.dev li span { font-size: 11.5px; color: var(--muted); }
.dev li.new { animation: slide-in .7s var(--ease); background: var(--lav-100); }
.cloud { position: relative; display: grid; place-items: center; color: var(--accent); }
.cloud .ic { width: 34px; height: 34px; }
.cloud .pulse { position: absolute; inset: 50% auto auto 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.cloud.ping .pulse { animation: ping .9s ease-out; }
.fly { position: absolute; z-index: 3; left: 0; top: 0; display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px 4px 8px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 13px var(--latin); box-shadow: 0 10px 20px -8px rgba(94, 78, 146, .8); opacity: 0; pointer-events: none; }
.fly .ic { width: 13px; height: 13px; fill: currentColor; }

/* ───── final ───── */
.final { position: relative; padding: 90px 0 70px; background: linear-gradient(180deg, var(--paper) 0%, var(--lav-50) 38%, var(--lav-100) 100%); overflow: clip; }
.final-grid { display: grid; gap: 34px; align-items: center; }
.final-copy h2 { font: 600 clamp(44px, 12.5vw, 84px)/1.15 var(--serif); margin-bottom: 30px; }
.final-copy > p:not(.meta) { color: var(--ink-2); font-size: 17px; margin-bottom: 26px; }
.final-copy .meta { margin-top: 14px; }
.steps { margin-top: 30px; display: grid; gap: 12px; max-width: 460px; }
.steps li { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(124, 105, 173, .14); font-size: 14.5px; color: var(--ink-2); }
.steps b { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font: italic 600 14px var(--latin); }
.bird-rest { width: min(100%, 560px); justify-self: center; animation: float 8s ease-in-out infinite; }

/* ───── footer ───── */
.foot { padding: 34px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--lav-100); color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--ink-2); flex-wrap: wrap; }
.foot-brand img { border-radius: 8px; }
.foot-brand b { font: 600 16px var(--serif); letter-spacing: .1em; }
.foot-brand span { font-size: 13px; }
.foot p + p { margin-top: 4px; }

/* ───── sheet & toast ───── */
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; }
.sheet-mask { position: absolute; inset: 0; background: rgba(40, 32, 66, .42); opacity: 0; transition: opacity .4s; backdrop-filter: blur(3px); }
.sheet-body { position: relative; padding: 30px 24px calc(26px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; background: var(--paper); transform: translateY(100%); transition: transform .6s var(--ease); text-align: center; max-width: 520px; width: 100%; margin-inline: auto; box-shadow: 0 -20px 60px -20px rgba(40, 32, 66, .5); }
.sheet.open .sheet-mask { opacity: 1; } .sheet.open .sheet-body { transform: none; }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--lav-100); }
.sheet-art img { margin: 0 auto 14px; border-radius: 18px; box-shadow: 0 10px 24px -8px rgba(94, 78, 146, .5); }
.sheet h3 { font: 600 24px/1.35 var(--serif); margin-bottom: 8px; }
.sheet-text { color: var(--ink-2); font-size: 15px; }
.sheet-text ol { text-align: left; display: grid; gap: 10px; margin-top: 14px; counter-reset: s; }
.sheet-text li { display: flex; gap: 12px; align-items: flex-start; counter-increment: s; }
.sheet-text li::before { content: counter(s); flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font: italic 600 13px var(--latin); margin-top: 2px; }
.sheet-actions { margin-top: 20px; display: grid; gap: 10px; }
.sheet-actions .btn { height: 50px; width: 100%; }
.sheet-actions .ghost { height: 44px; color: var(--accent-deep); font-size: 14.5px; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); max-width: calc(100% - 40px); padding: 12px 20px; border-radius: 999px; background: #2f2a3b; color: #fff; font-size: 14.5px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: .5s var(--ease); text-align: center; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* ───── desktop ───── */
@media (min-width: 900px) {
  .sec { padding: 120px 0; }
  .sec.tear { padding-block: 140px; }
  .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
  .split.flip .sec-demo { order: -1; }
  .hero { padding-top: 120px; min-height: 100svh; display: grid; align-items: center; }
  .hero-paper { height: 760px; width: 64%; }
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
  .hero-stage { position: relative; min-height: 640px; display: grid; align-items: end; }
  .bird-flight { top: 0; right: -60px; width: 112%; max-width: 700px; }
  .demo-card { max-width: 420px; margin: 0; justify-self: start; align-self: end; transform: translateX(-20px); }
  html.js .demo-card.reveal.in { transform: translateX(-20px); }
  .model-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .final-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
  .final { padding: 140px 0 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js .reveal, html.js .display .line > span { opacity: 1; transform: none; }
  .ribbon-track { animation: none; }
}

/* ───── keyframes ───── */
@keyframes rise { to { transform: none; } }
@keyframes fly-in { from { opacity: 0; transform: translate(34vw, 18px) rotate(10deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-1.2deg); } }
@keyframes paper-in { from { opacity: 0; transform: translate(40px, -30px); } to { opacity: 1; transform: none; } }
@keyframes flap { from { transform: rotate(-8deg); } to { transform: rotate(14deg); } }
@keyframes sheen { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes cand-in { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tap { 50% { transform: scale(.93); } }
@keyframes tab-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes wavebar { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@keyframes bar { to { transform: scaleY(1); } }
@keyframes nudge { 50% { transform: translateX(5px); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ping { from { opacity: .7; transform: scale(.5); } to { opacity: 0; transform: scale(1.7); } }
@keyframes speak { to { transform: scale(1.22); } }
