:root {
  color-scheme:light;
  --page:#fff; --ink:#211e20; --muted:#605c60; --line:#e7e3e2;
  --wash:#faf8f7; --panel:#fff; --side:#faf8f8; --bubble:#f5f3f3;
  --accent:#c94438; --coral:#ed594b; --tint:#fff0ec; --action:#bd372e;
  --shadow:0 18px 55px -30px #4f333b40;
  font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  font-synthesis:none; color:var(--ink); background:var(--page);
}
:root[data-theme=dark] {
  color-scheme:dark; --page:#19171a; --ink:#faf4f2; --muted:#beb4b4; --line:#423b40;
  --wash:#211e21; --panel:#272328; --side:#2d282c; --bubble:#342f34;
  --accent:#ff9c8d; --coral:#ff8d7a; --tint:#482c2c; --action:#ffac99; --shadow:0 18px 55px -30px #000a;
}
* {box-sizing:border-box}
html {scroll-behavior:smooth;scroll-padding-top:80px}
body {margin:0}
button,select {font:inherit;color:inherit}
button,a,select,summary {-webkit-tap-highlight-color:transparent}
button,a {touch-action:manipulation}
button {cursor:pointer}
a {color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,summary:focus-visible {outline:3px solid var(--accent);outline-offset:4px}
svg:not(.symbols) {width:1.18em;height:1.18em;display:inline-block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.symbols {position:absolute;width:0;height:0;overflow:hidden}
.skip {position:fixed;top:-100px;padding:12px;background:var(--page);z-index:20}
.skip:focus {top:8px}
.wrap {max-width:1260px;width:calc(100% - clamp(42px,10vw,152px));margin-inline:auto}
header {position:sticky;top:0;z-index:5;background:var(--page);border-bottom:1px solid var(--line)}
.bar {height:70px;display:flex;align-items:center;gap:42px}
.brand {display:inline-flex;align-items:center;gap:5px;font-size:24px;font-weight:760;letter-spacing:-1.3px;white-space:nowrap}
.brand img {object-fit:contain;margin-right:3px}
.brand b {font-weight:520}
nav,.prefs,.footer div,.actions {display:flex;align-items:center}
nav {gap:30px;font-size:14px;font-weight:590}
nav a:hover,.footer a:hover {color:var(--accent)}
.prefs {margin-left:auto;gap:4px;position:relative}
.pref-trigger {display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 10px;min-height:42px;min-width:42px;background:transparent;border:0;border-radius:10px;font-weight:630;font-size:14px}
.pref-trigger svg {width:18px;height:18px}
.pref-trigger .pref-chevron {width:12px;height:12px;color:var(--muted);transition:transform .16s ease}
.pref-trigger:hover {background:var(--wash)}
.pref-trigger[aria-expanded=true] {background:var(--tint);color:var(--accent)}
.pref-trigger[aria-expanded=true] .pref-chevron {transform:rotate(180deg);color:inherit}
.pref-menu {position:absolute;z-index:10;inset-inline-end:0;top:calc(100% + 6px);width:214px;max-width:calc(100vw - 32px);border:1px solid var(--line);border-radius:14px;padding:6px;background:var(--panel);box-shadow:0 12px 38px #271b2429,0 2px 7px #271b240b;animation:appear .14s ease-out}
.pref-menu[hidden] {display:none}
.pref-heading {padding:6px 10px 8px;color:var(--muted);font-size:12px;font-weight:600}
.pref-menu button {width:100%;border:0;border-radius:8px;background:transparent;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 12px;text-align:start;min-height:42px;color:var(--ink);font-size:14px}
.pref-menu button:hover,.pref-menu button:focus-visible {background:var(--wash)}
.pref-menu button:focus-visible {outline:2px solid var(--accent);outline-offset:-2px}
.pref-menu button[aria-checked=true] {background:var(--tint);color:var(--accent);font-weight:650}
.pref-menu button[aria-checked=true]::after {content:"";width:5px;height:10px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg);margin-right:3px}
.hero {display:grid;grid-template-columns:0.96fr 1.04fr;align-items:center;padding-block:clamp(58px,7vw,110px);gap:4px;isolation:isolate}
.hero-copy {z-index:1}
h1,h2,h3,p {margin:0}
h1 {font-size:clamp(46px,5.5vw,82px);line-height:1.16;letter-spacing:-.052em;font-weight:800}
h1 span,h1 em {display:block}
h1 em {font-style:normal;color:var(--coral)}
.hero-copy>p {color:var(--muted);font-size:clamp(16px,1.35vw,20px);line-height:1.85;max-width:29em;margin-top:24px;text-wrap:pretty}
.hero-art {min-width:0;position:relative;margin:0 -4% 0 0}
.hero-art img {width:100%;height:auto;display:block;mask-image:linear-gradient(to right,transparent,#000 5%,#000 95%,transparent),linear-gradient(to bottom,transparent,#000 5%,#000 93%,transparent);mask-composite:intersect}
.actions {gap:12px;flex-wrap:wrap;margin-top:30px}
.button {border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:49px;padding:0 20px;border-radius:12px;font-size:15px;font-weight:650;transition:transform .18s,box-shadow .18s}
.button:hover {transform:translateY(-2px);box-shadow:0 5px 15px #5d32251a}
.primary {color:white;background:var(--action);border-color:transparent}
[data-theme=dark] .primary {color:#2d1716}
.secondary {background:var(--panel)}
.secondary svg {width:15px;height:15px}
.demo-section {background:var(--wash);border-block:1px solid var(--line);padding:clamp(45px,5.6vw,82px) 0}
h2 {font-size:clamp(32px,3.6vw,54px);font-weight:760;line-height:1.2;letter-spacing:-.05em;text-wrap:balance}
.section-head p {margin-top:12px;line-height:1.65;color:var(--muted);font-size:16px}
.window {border:1px solid var(--line);background:var(--panel);border-radius:18px;box-shadow:var(--shadow);margin-top:30px;overflow:hidden}
.window-bar {display:flex;align-items:center;gap:16px;height:43px;border-bottom:1px solid var(--line);padding:0 20px;color:var(--muted);font-size:12px;font-weight:600}
.lights,.progress {display:inline-flex;align-items:center;gap:5px}
.lights i {width:8px;height:8px;border-radius:50%;background:#f88779}
.lights i:nth-child(2) {background:#f2c25a}.lights i:nth-child(3) {background:#72c69b}
.preview-label {margin-left:auto;font-size:11px;font-weight:500}
.workspace {display:grid;grid-template-columns:24% 1fr}
aside {background:var(--side);border-right:1px solid var(--line);padding:26px 18px}
aside h3 {font-size:20px;letter-spacing:-.04em}
.side-label {font-size:11px;letter-spacing:.075em;color:var(--muted);margin:27px 0 8px}
.stages {display:grid;gap:6px}
.stages button {display:flex;align-items:center;text-align:left;gap:10px;min-height:42px;border:0;border-radius:8px;background:transparent;padding:8px 12px;font-size:14px;font-weight:600}
.stages button:hover {background:var(--bubble)}
.stages button[aria-pressed=true] {color:var(--accent);background:var(--tint)}
.num {font:12px ui-monospace,monospace;opacity:.85}
.chat {display:flex;flex-direction:column;min-width:0}
.chat-title,.chat-foot {padding:15px 24px;display:flex;align-items:center;gap:10px}
.chat-title {border-bottom:1px solid var(--line)}
.chat-title>span {font-size:22px;color:var(--accent)}
.messages {min-height:240px;padding:22px 24px;display:flex;flex-direction:column;gap:13px}
.message {display:flex;gap:10px;align-items:flex-start;animation:appear .26s ease-out both}
.message:nth-child(2) {animation-delay:.06s}.message:nth-child(3) {animation-delay:.12s}
.avatar {display:grid;place-items:center;width:34px;height:34px;border-radius:11px;flex:none;background:var(--tint);font-size:20px;line-height:1}
.avatar img {width:30px}.avatar.person {background:#dde5ed;color:#34526a;font-weight:700;font-size:15px}
.avatar.planner {background:#fff1c8;color:#946000}.avatar.writer {background:#eee3ff;color:#7848ac}
.message b {font-size:12px}.message p {background:var(--bubble);padding:8px 12px;border-radius:0 10px 10px 10px;font-size:14px;line-height:1.6;margin-top:4px;max-width:54em}
.chat-foot {justify-content:space-between;margin-top:auto;border-top:1px solid var(--line);padding-block:9px}
.progress i {height:4px;width:18px;background:var(--line);border-radius:4px}.progress i.active {background:var(--coral)}
.chat-foot button,.text-link {display:inline-flex;align-items:center;gap:6px;color:var(--accent);font-weight:650}
.chat-foot button {border:0;background:transparent;padding:8px 0;font-size:13px}
.guide {display:grid;grid-template-columns:.8fr 1.2fr;gap:6%;padding-block:clamp(55px,7vw,100px)}
.text-link {font-size:14px;margin-top:22px}
.text-link:hover {text-decoration:underline}
.questions {border-top:1px solid var(--line)}
details {border-bottom:1px solid var(--line);padding:0 2px}
summary {display:flex;align-items:center;justify-content:space-between;gap:15px;padding:19px 0;cursor:pointer;list-style:none;font-weight:650}
summary::-webkit-details-marker {display:none}
summary svg {transition:transform .2s}details[open] summary svg {transform:rotate(180deg)}
details p {font-size:15px;color:var(--muted);line-height:1.8;padding:0 16px 20px 0}
footer {border-top:1px solid var(--line)}
.footer {display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:22px}
.footer .brand {font-size:18px}.footer div {gap:22px;font-size:13px;color:var(--muted)}
dialog {width:min(900px,94vw);padding:0;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 20px 100px #0005}
dialog::backdrop {background:#141217bc}
.modal-head {display:flex;align-items:center;justify-content:space-between;padding:10px 14px 10px 20px}
.modal-head button {border:0;border-radius:8px;background:var(--wash);display:grid;place-items:center;width:36px;height:36px}
video {display:block;width:100%;aspect-ratio:16/9;background:#161317;max-height:75dvh}
body:has(dialog[open]) {overflow:hidden}
@keyframes appear {from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:850px) {
  .wrap {width:calc(100% - 56px)} .bar {gap:26px}.hero {grid-template-columns:1fr 1fr}
  h1 {font-size:clamp(42px,6vw,58px)}.hero-copy>p {font-size:15px}.button {padding:0 14px;font-size:14px}
  .guide {grid-template-columns:1fr 1.4fr;gap:5%}.workspace {grid-template-columns:26% 1fr}
}
@media(max-width:680px) {
  html {scroll-padding-top:62px}.wrap {width:calc(100% - 36px)}.bar {height:56px;gap:14px}.brand {font-size:20px}.brand img {width:32px;height:28px}
  nav {gap:12px;font-size:12px}.prefs {gap:0}.pref-trigger {min-height:44px;padding-inline:8px}.pref-menu button {min-height:44px}
  .hero {display:flex;flex-direction:column;align-items:stretch;padding-block:42px 20px;gap:20px}
  h1 {font-size:clamp(42px,10vw,62px)}.hero-copy>p {margin-top:15px;max-width:36em}.actions {margin-top:19px}
  .hero-art {width:min(100%,460px);margin:0 auto}.hero-art img {max-height:270px;object-fit:contain}
  .workspace {display:block}aside {border-right:0;border-bottom:1px solid var(--line);padding:10px}.side-label,aside h3 {display:none}
  .stages {display:flex;gap:2px}.stages button {flex:1;justify-content:center;padding:5px;gap:5px;font-size:12px}.num {font-size:10px}
  .demo-section {padding:38px 0}.window {margin-top:18px;border-radius:14px}
  .window-bar,.chat-title,.chat-foot {padding-inline:14px}.messages {padding:15px 12px;min-height:275px}.message {gap:8px}.avatar {height:28px;width:28px;font-size:17px}.avatar img {width:25px}
  .guide {display:block;padding-block:45px}.questions {margin-top:22px}.text-link {margin-top:12px}
  .footer div {gap:10px;font-size:12px}.footer .brand {font-size:16px}.footer .brand img {width:27px}
}
@media(max-width:430px) {nav a:nth-child(2) {display:none}.bar {gap:16px}}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.hero {padding-block:clamp(42px,5.8vw,84px)}
.repo-line {display:inline-flex;align-items:center;gap:8px;margin-top:20px;font:13px ui-monospace,Consolas,monospace;color:var(--muted)}
.repo-line span {font-family:Inter,"Segoe UI",sans-serif;font-weight:650;color:var(--ink)}
.repo-line svg {width:13px}.repo-line:hover,.repo-card:hover {color:var(--accent)}
.bar nav a[aria-current=location] {color:var(--accent);text-decoration:underline;text-underline-offset:.45em}
.actions .hero-cta {gap:9px;white-space:nowrap;font-weight:650;text-decoration:none}
.actions .hero-cta svg {width:17px;height:17px}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .hero-art img {transition:transform .4s ease-out}
  .hero-art:hover img {transform:translateY(-4px) rotate(.4deg)}
  .hero-cta svg {transition:transform .2s}
  .hero-cta:hover svg {transform:translateX(2px)}
}
.film-section {background:#242024;color:#fff8f6;padding-block:clamp(42px,5vw,76px)}
.cinema {display:grid;grid-template-columns:minmax(250px,.7fr) minmax(0,1.3fr);gap:clamp(28px,5vw,82px);align-items:center}
.film-copy h2 {font-size:clamp(30px,3vw,48px);line-height:1.18;max-width:12em}
.film-copy p,.get-copy p,.open-source p {margin-top:16px;color:var(--muted);font-size:16px;line-height:1.8;max-width:40em}
.film-copy p {color:#dccfce}
.film-demo-link {display:inline-flex;align-items:center;gap:7px;margin-top:16px;color:#ffbbab;font-size:14px;font-weight:600;justify-self:start}
.film-demo-link:hover {text-decoration:underline;text-underline-offset:3px}
.chapters {margin-top:24px;border-top:1px solid #494146}
.chapters button {display:flex;align-items:center;gap:11px;text-align:left;color:#ede3e2;background:transparent;border:0;border-bottom:1px solid #494146;width:100%;padding:13px 4px;font-size:14px}
.chapters time,.player figcaption span:last-child,.package-title span,.package-file small {font:12px ui-monospace,Consolas,monospace}
.chapters time {color:#ffb2a1}.chapters svg {margin-left:auto;width:14px;color:#d6bfba}
.chapters button:hover,.chapters button[aria-current=step] {color:#ffb2a1;background:#ffffff09}
.player,.screen-frame {margin:0;min-width:0}
.player {background:#302a30;border:1px solid #51474b;box-shadow:0 12px 48px #120c1526;border-radius:16px;overflow:hidden}
.player video {height:auto;max-height:none;object-fit:contain}
.player figcaption {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;color:#e7d9db;font-size:12px}
.tour {padding-block:clamp(50px,6vw,90px)}
.tour-layout {display:grid;grid-template-columns:minmax(190px,.42fr) minmax(0,1fr);align-items:center;gap:clamp(22px,4vw,56px);margin-top:30px}
.tour-choices {display:grid;border-top:1px solid var(--line)}
.tour-choices button {display:grid;gap:5px;text-align:left;padding:18px 14px;border:0;background:transparent;border-bottom:1px solid var(--line);border-inline-start:3px solid transparent}
.tour-choices b {font-size:17px}.tour-choices span {color:var(--muted);font-size:13px}
.tour-choices button:hover {background:var(--wash)}
.tour-choices button[aria-pressed=true] {background:var(--tint);border-inline-start-color:var(--accent);color:var(--accent)}
.screen-frame {border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow);background:var(--panel)}
.screen-frame button {display:block;width:100%;padding:0;position:relative;background:#fff;border:0;cursor:zoom-in}
.screen-frame button:focus-visible {outline-offset:-4px}
.screen-frame img {width:100%;height:auto;display:block}
.screen-frame button span {position:absolute;bottom:10px;right:10px;display:grid;place-items:center;color:#fff;background:#302930d9;border-radius:6px;width:32px;height:32px;font-size:21px}
.screen-frame figcaption {border-top:1px solid var(--line);line-height:1.6;font-size:14px;color:var(--muted);padding:13px 18px;min-height:3.7em}
#lightbox {width:min(1450px,96vw);max-height:95dvh}
#lightbox img {max-height:calc(94dvh - 60px);width:100%;height:auto;object-fit:contain;display:block;background:#fff}
.get-section {background:var(--tint);border-block:1px solid var(--line)}
.get-layout,.open-source {display:grid;grid-template-columns:1fr .9fr;align-items:center;gap:clamp(28px,6vw,95px);padding-block:clamp(42px,5vw,76px)}
.distribution {border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:20px 24px;box-shadow:var(--shadow)}
.package-title,.package-file {display:flex;align-items:center;justify-content:space-between;gap:12px}
.package-title {border-bottom:1px solid var(--line);padding-bottom:14px}.package-title strong {font-size:22px;letter-spacing:-.045em}
.package-title span {color:var(--accent);background:var(--tint);border-radius:5px;padding:4px 6px}
.package-file {border-bottom:1px solid var(--line);padding:16px 0}
.package-file span {display:grid;gap:4px}.package-file small {color:var(--muted)}
.package-file svg {transform:rotate(90deg);color:var(--accent);transition:transform .2s}
.package-file:hover b {color:var(--accent)}.package-file:hover svg {transform:translateY(3px) rotate(90deg)}
.checksum {display:inline-block;margin-top:14px;font-size:13px;text-decoration:underline;text-underline-offset:3px;color:var(--muted)}
.work-locations {display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(32px,6vw,88px);align-items:start;padding-block:clamp(46px,6vw,86px)}
.location-choice fieldset {border:0;margin:22px 0 0;padding:0;display:grid;gap:5px}
.location-choice legend {color:var(--muted);margin-bottom:10px;font-size:14px}
.location-choice label {display:flex;align-items:center;gap:10px;padding:11px 13px;cursor:pointer;border:1px solid transparent;border-radius:10px;min-height:44px}
.location-choice input {accent-color:var(--action);width:16px;height:16px;margin:0;flex:none}
.location-choice label:hover {background:var(--wash)}
.location-choice label:has(:checked) {background:var(--tint);color:var(--accent);border-color:var(--line);font-weight:650}
.location-choice label:focus-within {outline:2px solid var(--accent);outline-offset:1px}
.location-result {padding:clamp(19px,3vw,35px);border:1px solid var(--line);border-radius:16px;background:var(--wash)}
.location-result article {animation:appear .22s ease-out}
.location-result h3 {font-size:clamp(22px,2.3vw,32px);letter-spacing:-.035em}
.location-result p,.location-result li {font-size:15px;line-height:1.75}
.location-result p {color:var(--muted);margin-top:8px}
.location-result ol {padding-inline-start:1.5em;margin:16px 0 0}
.location-result li {padding:5px 0 5px 5px}
.location-result li::marker {color:var(--accent);font-weight:650}
.location-result .text-link {margin-top:13px}
@media(max-width:720px) {.work-locations {grid-template-columns:minmax(0,1fr);gap:18px}}
.open-source {border-top:1px solid var(--line)}.open-source h2 {font-size:clamp(28px,3vw,44px)}
.source-links {display:grid;justify-items:start;gap:14px}
.source-links .text-link {margin-top:0}
.repo-card {overflow-wrap:anywhere;font:600 clamp(14px,1.4vw,18px) ui-monospace,Consolas,monospace}
.repo-card svg {vertical-align:middle}
@media(max-width:820px) {
  .bar {gap:18px}.bar nav {gap:16px}
  .cinema {grid-template-columns:.83fr 1.17fr;gap:24px}
  .tour-layout {grid-template-columns:170px minmax(0,1fr);gap:16px}
}
@media(max-width:680px) {
  html {scroll-padding-top:108px}
  .bar {height:auto;display:grid;grid-template-columns:1fr auto;column-gap:8px;row-gap:0}
  .bar .brand,.bar .prefs {min-height:46px}
  .bar nav {grid-row:2;grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:5px;padding-bottom:5px}
  .bar nav a,.bar nav a:nth-child(2) {display:inline-flex;align-items:center;min-height:33px}
  .cinema,.tour-layout,.get-layout,.open-source {grid-template-columns:minmax(0,1fr)}
  .film-copy {display:contents}.film-copy h2 {max-width:none}
  .cinema {gap:12px}.film-copy p {margin:0}.player {grid-row:3;margin-top:6px}
  .film-demo-link {order:1;margin-top:3px}
  .chapters {margin-top:3px}.chapters button {min-height:43px}
  .tour-choices {grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;border:0}
  .tour-choices button {border:1px solid var(--line);border-radius:9px;padding:10px;min-height:52px}
  .tour-choices b {font-size:14px}.tour-choices span {display:none}
  .tour-choices button[aria-pressed=true] {border-color:var(--accent)}
  .get-copy h2,.open-source h2 {max-width:16em}.distribution {padding:17px 18px}
  .hero {padding-block:34px 18px}.repo-line {margin-top:14px;font-size:12px}
  .footer {flex-wrap:wrap}
}
