:root {
  --bg:#fffbf9;
  --panel:#ffffff;
  --ink:#0a0a0a;
  --muted:#737373;
  --line:#e5e5e5;
  --accent:#4a71ee;
  --accent-hover:#365bd4;
  --accent-ink:#ffffff;
  --soft:#eaf0ff;
  color-scheme:light;
  font-family:ui-monospace,"SFMono-Regular",Menlo,Consolas,"Liberation Mono",monospace;
  background:var(--bg);
  color:var(--ink)}

:root.dark {
  --bg:#181613;
  --panel:#171717;
  --ink:#fafafa;
  --muted:#a1a1a1;
  --line:#282828;
  --accent:#9bb1ff;
  --accent-hover:#b6c4ff;
  --accent-ink:#141b30;
  --soft:#242e4a;
  color-scheme:dark}
* {
  box-sizing:border-box}
body {
  margin:0}
a {
  color:inherit;
  text-decoration:none}
button,input,select,textarea {
  font:inherit}
button,a.button {
  cursor:pointer}
button {
  color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:4px}
header {
  height:86px;
  max-width:1120px;
  margin:auto;
  padding:0 4%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line)}
.brand {
  font-size:24px;
  font-weight:750;
  display:flex;
  align-items:center;
  gap:10px;
  letter-spacing:-1px}
.brand span {
  font-size:11px;
  font-weight:450;
  color:var(--muted);
  letter-spacing:0;
  margin-left:8px}
nav {
  display:flex;
  align-items:center;
  gap:28px;
  font-size:12px}
nav button {
  background:none;
  border:1px solid var(--line);
  border-radius:0;
  width:32px;
  height:32px}
main.showcase {
  max-width:1120px;
  margin:auto}
.hero {
  display:grid;
  grid-template-columns:1fr;
  align-items:center;
  min-height:0;
  padding:48px 4% 16px}
.eyebrow {
  font-size:10px;
  letter-spacing:2px;
  font-weight:650;
  color:var(--muted)}
h1 {
  font-family:inherit;
  font-weight:500;
  font-size:clamp(30px,4vw,48px);
  line-height:1.03;
  letter-spacing:-1px;
  margin:28px 0}
.lede {
  font-size:15px;
  line-height:1.7;
  color:var(--muted)}
.actions {
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin:28px 0}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--ink);
  border-radius:0;
  padding:12px 18px;
  font-size:12px;
  font-weight:600;
  white-space:nowrap}
.primary {
  background:var(--ink);
  color:var(--bg);
  border-color:var(--ink)}
.small {
  font-size:11px;
  line-height:1.6;
  color:var(--muted)}
.stage {
  position:relative}
.hero-stage {
  height:clamp(480px,58vw,720px)}
.stage canvas {
  width:100%;
  height:100%;
  display:block}
.stage img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain}
.stage-foot {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  display:flex;
  justify-content:space-between;
  font-size:9px;
  letter-spacing:1px;
  color:var(--muted);
  pointer-events:none}
.sample-bar {
  display:flex;
  gap:12px;
  justify-content:center;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:12px}
.sample-bar button {
  border:0;
  background:none;
  color:var(--muted);
  padding:10px 18px;
  border-radius:0;
  font-size:12px}
.sample-bar .selected {
  color:var(--accent);
  background:var(--soft)}
h2 {
  font-family:inherit;
  font-weight:500;
  font-size:24px;
  line-height:1.12;
  letter-spacing:-0.5px;
  margin:20px 0}
section p {
  line-height:1.7;
  color:var(--muted)}
.text-play {
  padding:40px 4%;
  display:grid;
  grid-template-columns:1fr;
  gap:28px;
  border-bottom:1px solid var(--line)}
.text-panel label {
  display:block;
  font-size:9px;
  letter-spacing:1.5px;
  margin-bottom:12px}
.input-row {
  display:flex;
  gap:10px}
.input-row input {
  width:100%;
  min-width:0;
  border:0;
  border-bottom:1px solid var(--line);
  padding:8px;
  background:transparent;
  color:var(--ink);
  font-size:20px}
.text-stage {
  height:clamp(300px,32vw,460px)}
.text-stage canvas {
  width:100%;
  height:100%}
.create {
  text-align:center;
  padding:40px 4%;
  border-bottom:1px solid var(--line)}
.create .actions {
  justify-content:center;
  font-size:12px;
  gap:30px}
.prompt {
  max-width:800px;
  margin:30px auto;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:0;
  padding:22px;
  display:flex;
  gap:20px;
  align-items:center;
  text-align:left}
.prompt code {
  font-size:12px;
  line-height:1.8;
  overflow-wrap:anywhere}
.product {
  padding:70px 5%;
  text-align:center}
footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  max-width:1120px;
  margin:auto;
  border-top:1px solid var(--line);
  padding:30px 4%;
  font-size:11px;
  color:var(--muted)}
[hidden] {
  display:none!important}
@media(max-width:760px) {
  header {
  height:72px}
.brand span {
  display:none}
nav {
  gap:12px;
  font-size:10px}
.hero {
  grid-template-columns:1fr;
  padding-top:45px}
.hero-stage {
  height:390px}
h1 {
  letter-spacing:-2px}
.sample-bar {
  flex-wrap:wrap;
  gap:0;
  padding:12px}
.text-play {
  grid-template-columns:1fr;
  gap:25px;
  padding:45px 5%}
.prompt {
  flex-direction:column}
.input-row {
  flex-wrap:wrap}
.stage-foot {
  font-size:8px}
.hero-copy .small {
  display:none}
footer {
  flex-wrap:wrap}
}


/* Flat technical layout; canvas surfaces blend into the page. */
.hero {text-align:center;gap:12px}
.hero-copy {max-width:840px;margin:auto}
.hero-copy .actions {justify-content:center;margin:20px 0 0}
.hero-copy h1 {margin:16px 0}
.eyebrow,nav,.button,.sample-bar button,.text-panel label,footer {font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.eyebrow {letter-spacing:1px}
.hero-stage {width:100%;margin:auto}
.stage-foot {justify-content:center;letter-spacing:0}
.sample-bar {border-top:0;flex-wrap:wrap}
.sample-bar button {border:1px solid transparent}
.sample-bar .selected {border-color:var(--accent)}
.text-play {text-align:left;gap:16px}
.text-panel {min-width:0;width:100%}
.text-panel label {font-size:11px}
#words {max-width:720px;margin:auto}
.text-stage {height:clamp(400px,48vw,580px);margin-top:12px}
.create {text-align:left;padding:88px 4% 96px}
.create .actions {justify-content:flex-start;margin-bottom:0}
.prompt {max-width:none;margin:20px 0;padding:16px;background:transparent;border:0;border-left:2px solid var(--line)}
.language-link {border:1px solid var(--line);padding:7px 10px;white-space:nowrap}
.primary {background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.primary:hover {background:var(--accent-hover);border-color:var(--accent-hover)}
:lang(zh) h1,:lang(zh) h2 {letter-spacing:0;line-height:1.3}
@media(max-width:760px) {
header {height:auto;min-height:68px;padding:14px 4%;gap:12px;flex-wrap:wrap}
nav {gap:10px;flex-wrap:wrap}
.brand {font-size:20px}
.hero {padding-top:32px}
.hero-stage {height:440px}
.text-stage {height:360px}
.prompt {align-items:flex-start}
}

.create h2,.product h2 {font-size:clamp(28px,3.4vw,40px);margin:0 0 24px}
.create>p {font-size:17px;max-width:800px}
.create .prompt {padding:24px;margin:32px 0;gap:28px}
.create .prompt code {font-size:15px;line-height:1.9}
.create .button,.product .button {padding:14px 22px;font-size:14px}
.product {padding:80px 4%;text-align:left}
.product>p {max-width:760px;font-size:16px}
.product .eyebrow {font-size:11px;color:var(--accent);margin:0 0 20px}
.product .actions {margin-bottom:0}
@media(max-width:760px) {
.create,.product {padding:64px 5%}
.create .prompt {padding:16px}
.create .prompt code {font-size:13px}
}

.create,.product {min-height:620px;display:flex;flex-direction:column;justify-content:center;padding-top:110px;padding-bottom:110px}
.create .actions,.product .actions {align-self:flex-start}
footer {align-items:center}
.footer-links {margin-left:auto;display:flex;justify-content:flex-end;align-items:center;gap:24px;flex-wrap:wrap}
@media(max-width:760px) {
.create,.product {min-height:560px;padding-top:88px;padding-bottom:88px}
footer {gap:20px;font-size:10px}
.footer-links {gap:16px}
}

a:hover,.tool:hover,.group-reset:hover {color:var(--accent)}
a.primary:hover {color:var(--accent-ink)}
.button:not(.primary):hover {border-color:var(--accent);color:var(--accent)}

.demo-layout {display:grid;grid-template-columns:minmax(0,1fr) 120px;align-items:center;gap:24px;width:100%}
.demo-layout .sample-bar {flex-direction:column;align-items:stretch;gap:10px;padding:0;border:0}
.demo-layout .sample-bar button {padding:12px 8px;white-space:nowrap}
.language-control {display:inline-flex;margin:0}
.language-select,.editor .language-select {appearance:none;-webkit-appearance:none;width:auto;min-height:36px;padding:8px 34px 8px 10px;border:1px solid var(--line);border-radius:0;background-color:transparent;color:var(--ink);font:12px ui-monospace,monospace;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23737373' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:16px;background-position:right 10px center}
.editor header .language-control {margin:0;display:inline-flex}
.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:760px) {
.demo-layout {grid-template-columns:minmax(0,1fr) 86px;gap:8px}
.demo-layout .sample-bar button {font-size:10px;padding:10px 4px}
.language-select,.editor .language-select {font-size:11px}
}
