:root {
  color-scheme: light dark;
  --bg: #f7f7f2;
  --surface: rgba(255, 255, 255, 0.72);
  --strong: rgba(255, 255, 255, 0.92);
  --text: #20251f;
  --muted: #626b60;
  --accent: #344828;
  --line: rgba(91, 119, 159, 0.25);
  --soft: #edf1e5;
  font:
    16px/1.65 "SF Pro Text",
    Aptos,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  max-width: none;
  padding: 0;
  background: radial-gradient(
    ellipse at 10% 0,
    rgba(124, 180, 240, 0.14),
    transparent 45%
  );
}
header,
main,
footer {
  max-width: 1160px;
  margin: auto;
  padding: 0 32px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
header a {
  text-decoration: none;
}
.brand {
  font-weight: 720;
  color: var(--text);
  font-size: 20px;
}
.brand span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.intro {
  padding: 64px 0 40px;
}
.eyebrow {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
h1,
h2,
h3 {
  font-family:
    "SF Pro Display", "Aptos Display", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  line-height: 1.3;
}
h1 {
  font-size: 36px;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  font-weight: 720;
}
h2 {
  font-size: 24px;
  margin: 0 0 16px;
}
h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.lead {
  max-width: 720px;
  color: var(--muted);
}
.facts {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.setup {
  display: grid;
  grid-template-columns: 340px 1fr;
  box-shadow: 0 18px 48px rgba(80, 112, 159, 0.06);
}
.choices,
.prompt-pane {
  padding: 28px;
}
.choices {
  border-right: 1px solid var(--line);
}
.choices p {
  font-size: 14px;
  color: var(--muted);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0 8px;
}
select,
button {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 9px 12px;
  color: var(--text);
  background: var(--strong);
}
select {
  width: 100%;
  font-size: 14px;
}
button {
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  border-color: var(--accent);
}
.primary {
  background: var(--accent);
  color: white;
  border-color: transparent;
  padding: 10px 24px;
}
.prompt-pane {
  background: var(--soft);
}
.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tag {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.section-line .eyebrow {
  margin: 0;
}
textarea {
  font:
    14px/1.8 "SFMono-Regular",
    "Cascadia Mono",
    Menlo,
    monospace;
  width: 100%;
  height: 250px;
  resize: vertical;
  margin: 8px 0 12px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--strong);
  color: var(--text);
}
.actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.actions span {
  font-size: 13px;
}
.note {
  font-size: 13px;
  color: var(--muted);
}
.choices a {
  font-size: 13px;
}
.section {
  margin-top: 56px;
}
.section > p {
  color: var(--muted);
}
.download-list {
  margin: 24px 0;
  border-top: 1px solid var(--line);
}
.download-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.download-row a {
  align-self: center;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}
.download-row small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.download-row code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.manual {
  padding: 32px;
}
.manual ol {
  padding-left: 24px;
  margin-bottom: 0;
}
.manual li {
  padding: 12px 0 12px 8px;
}
.manual p {
  margin: 8px 0;
  color: var(--muted);
  max-width: 850px;
}
pre {
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
  overflow: auto;
  border: 1px solid var(--line);
}
code,
pre {
  font-family: "SFMono-Regular", "Cascadia Mono", Menlo, monospace;
  font-size: 13px;
}
code {
  overflow-wrap: anywhere;
}
.examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
blockquote {
  margin: 8px 0;
  padding: 16px 0;
  border-top: 2px solid var(--line);
  font-size: 15px;
}
.technical {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 14px;
}
.technical summary {
  cursor: pointer;
  min-height: 44px;
  font-weight: 600;
}
.technical p {
  overflow-wrap: anywhere;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 36px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1119;
    --surface: rgba(24, 33, 47, 0.76);
    --strong: rgba(27, 37, 52, 0.94);
    --text: #f1f5fb;
    --muted: #a8b3c5;
    --accent: #6aa7ff;
    --line: rgba(255, 255, 255, 0.16);
    --soft: rgba(106, 167, 255, 0.06);
  }
  .primary {
    color: #0c1119;
  }
}
@media (max-width: 800px) {
  .setup {
    grid-template-columns: 1fr;
  }
  .choices {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .choices,
  .prompt-pane {
    padding: 24px;
  }
  .intro {
    padding-top: 40px;
  }
  .examples {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  header {
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 8px;
  }
  nav {
    gap: 20px;
  }
  .facts {
    flex-wrap: wrap;
    gap: 8px 20px;
  }
}
@media (max-width: 520px) {
  header,
  main,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  h1 {
    font-size: 30px;
  }
  .brand span {
    font-size: 13px;
  }
  nav {
    font-size: 13px;
  }
  .choices,
  .prompt-pane,
  .manual {
    padding: 20px;
  }
  .section-line {
    flex-wrap: wrap;
  }
  .actions {
    flex-wrap: wrap;
  }
  .actions button {
    width: 100%;
  }
  .section {
    margin-top: 36px;
  }
  .download-row {
    grid-template-columns: 1fr;
  }
  .download-row a {
    text-align: center;
  }
  footer {
    flex-direction: column;
  }
  .tag {
    white-space: normal;
  }
}

/* Installation center: warm editorial surfaces, not the console palette. */
body {
  background: var(--bg);
}
header,
main,
footer {
  max-width: 1240px;
}
.intro {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 48px;
}
h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.17;
  letter-spacing: -0.045em;
}
h1 em {
  font-style: normal;
  background: #d0fa65;
  color: #20251f;
  padding: 0 8px 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.lead {
  font-size: 17px;
  margin-top: 28px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0 20px;
  font-size: 14px;
}
.primary {
  background: #d0fa65;
  color: #20251f;
  border: 1px solid #b9df54;
}
.primary:hover {
  background: #c1f145;
  border-color: #8aa835;
}
.action-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 650;
}
.demo {
  background: #dcecf2;
  padding: 22px;
  border: 1px solid #ccdce1;
  border-radius: 20px;
  transform: rotate(1deg);
  box-shadow: 8px 14px 0 #e6e9de;
  color: #20251f;
}
.demo-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 22px;
  color: #536c74;
}
.demo-dots {
  letter-spacing: 3px;
}
#demo-source,
#demo-result {
  min-height: 282px;
}
#demo-source {
  background: #fffdf7;
  padding: 24px;
  border-radius: 10px;
}
.demo-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #526761;
}
.document-lines {
  margin: 24px 0;
}
.document-lines span {
  display: block;
  height: 7px;
  background: #e8ebdf;
  margin: 12px 0;
  width: 90%;
}
.document-lines span:last-child {
  width: 64%;
}
.demo-message {
  padding: 12px;
  background: #eaf3cb;
  border-left: 3px solid #8ba23a;
  font-size: 14px;
}
#demo-toggle {
  margin-top: 18px;
  width: 100%;
  background: #20251f;
  color: #f9faf5;
  border-color: #20251f;
}
.demo .note {
  color: #536c74;
  margin-bottom: 0;
  font-size: 12px;
}
.mini-site {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 22px;
  background: #274d43;
  color: #fff9df;
  border-radius: 10px;
  min-height: 256px;
}
.mini-site:after {
  content: "";
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #ffd28c;
  position: absolute;
  right: -16px;
  top: 30px;
  z-index: -1;
  box-shadow: 0 80px 0 40px #719c72;
}
.mini-site > span {
  font-size: 10px;
  letter-spacing: 0.2em;
}
.mini-site h3 {
  font-size: 36px;
  margin: 22px 0 12px;
  max-width: 210px;
}
.mini-site p {
  font-size: 13px;
}
.mini-info {
  font-size: 11px;
  margin-top: 22px;
}
.journey {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 28px 0 42px;
}
.journey li {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.journey li > span {
  font-size: 13px;
  color: var(--muted);
}
.journey h3 {
  margin: 12px 0;
}
.journey p {
  font-size: 14px;
  color: var(--muted);
}
.setup {
  grid-template-columns: 0.85fr 1.4fr;
  box-shadow: none;
  border-color: #cbd4be;
}
.choices {
  background: #eaf0df;
  padding: 36px;
}
.choices h2 {
  font-size: 32px;
}
.prompt-pane {
  background: var(--surface);
  padding: 30px;
}
.prompt-pane label {
  margin-top: 0;
}
.auto-note {
  font-size: 14px;
  line-height: 2.3;
  margin-top: 28px;
  color: var(--muted);
}
textarea {
  height: 240px;
}
.advanced {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.advanced > summary {
  cursor: pointer;
  font-size: 21px;
  font-weight: 600;
  min-height: 44px;
}
.advanced > summary span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 16px;
}
#downloads {
  margin-top: 26px;
}
#platform {
  max-width: 360px;
}
.download-row {
  grid-template-columns: minmax(0, 1fr) auto;
}
.copy-block {
  position: relative;
  margin: 12px 0;
  min-width: 0;
}
.copy-block > pre {
  margin: 0;
  padding-top: 56px;
}
.copy-block > blockquote {
  padding: 16px 68px 16px 0;
}
.copy-block > .copy-button {
  position: absolute;
  right: 8px;
  top: 8px;
}
.copy-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  vertical-align: middle;
}
.copy-inline > code,
.copy-inline > a {
  min-width: 0;
  overflow-wrap: anywhere;
}
.copy-button {
  font-size: 12px;
  min-height: 40px;
  padding: 6px 10px;
  background: var(--strong);
  flex-shrink: 0;
}
.copy-button:hover {
  background: var(--soft);
}
.copy-toast {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  font-size: 14px;
  width: fit-content;
  max-width: 100%;
  margin: 16px auto;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 16px;
}
.copy-toast:empty {
  display: none;
}
#copy-fallback {
  position: fixed;
  inset: auto 16px 16px;
  max-width: 700px;
  margin: auto;
  z-index: 20;
  background: var(--strong);
  box-shadow: 0 6px 40px #0003;
}
#fallback-text {
  height: 170px;
}
.download-row > .copy-inline {
  justify-content: flex-end;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171c18;
    --surface: #202820;
    --strong: #263027;
    --text: #f4f5ee;
    --muted: #b5bfb1;
    --accent: #d0fa65;
    --soft: #2d3928;
    --line: #ffffff26;
  }
  .choices {
    background: #283423;
  }
  .setup {
    border-color: #485940;
  }
  .demo {
    background: #354b48;
    border-color: #526760;
    box-shadow: 8px 14px 0 #263025;
  }
  .demo-top,
  .demo .note {
    color: #d0dfd9;
  }
  #demo-source {
    color: #20251f;
  }
  .primary {
    background: #d0fa65;
    color: #20251f;
  }
  .demo-label {
    color: #688076;
  }
  #demo-result > .demo-label {
    color: #d0dfd9;
  }
}
@media (max-width: 900px) {
  .intro {
    gap: 28px;
  }
  .journey {
    gap: 20px;
  }
  .choices {
    padding: 26px;
  }
  .setup {
    grid-template-columns: 1fr 1.3fr;
  }
}
@media (max-width: 700px) {
  .intro {
    grid-template-columns: 1fr;
    padding: 40px 0 24px;
    gap: 32px;
  }
  .demo {
    transform: none;
    max-width: 520px;
    width: 100%;
  }
  .setup {
    grid-template-columns: 1fr;
  }
  .choices {
    border-right: 0;
  }
  .journey {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .journey p {
    margin: 8px 0;
  }
  .advanced > summary span {
    display: block;
    margin: 8px 0 0;
  }
  .download-row {
    grid-template-columns: 1fr;
  }
  .download-row > .copy-inline {
    justify-content: flex-start;
  }
  .copy-button {
    min-height: 44px;
  }
  .hero-actions {
    gap: 16px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root {
    --surface: #fff;
    --strong: #fff;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --surface: #202820;
      --strong: #263027;
    }
  }
}
