:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #202c25;
  background: #f8f6ee;
  font-synthesis: none;
  --ink: #202c25;
  --muted: #4f5d52;
  --green: #24583e;
  --line: #d9ddcf;
}

* { box-sizing: border-box; }
body, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
p { line-height: 1.75; }
:focus-visible { outline: 3px solid #a86a16; outline-offset: 4px; }
.wrap { width: min(100% - 4rem, 74rem); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 2; padding: .75rem 1rem; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.header-inner { min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: .7rem; font-weight: 750; }
.brand img { display: block; border-radius: .6rem; }
.brand small { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .035em; margin-top: .15rem; font-weight: 600; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); }
nav a { color: var(--muted); font-size: .9375rem; }
nav a:hover { text-decoration: underline; text-underline-offset: .28em; }
.parent-link { color: var(--green); border: 1px solid #a9bcac; border-radius: .65rem; padding: .55rem .8rem; font-weight: 700; white-space: nowrap; }
.language-link { color: var(--green); font-weight: 700; white-space: nowrap; }

.hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(1.75rem, 5vw, 5rem); padding-block: clamp(2.75rem, 6vw, 5.75rem); }
.platform { color: var(--green); margin: 0 0 1.1rem; font-size: .9375rem; font-weight: 700; letter-spacing: .07em; }
h1, h2, h3 { margin: 0; }
h1 { font-size: clamp(2.8rem, 5.4vw, 5rem); line-height: 1.12; letter-spacing: -.055em; font-weight: 780; }
:lang(en) h1 { font-size: clamp(2rem, 4.4vw, 4rem); }
h1 span { color: var(--green); }
.hero-description { max-width: 26rem; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.125rem); margin: 1.4rem 0 1.7rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.05rem; border: 1px solid transparent; border-radius: .65rem; font-size: .9375rem; font-weight: 700; line-height: 1.4; }
.primary { background: var(--green); color: white; }
.primary:hover { background: #18452e; }
.secondary { border-color: #bac6b7; color: var(--green); }
.secondary:hover { background: #ebefe4; }
.hero-image { overflow: hidden; border: 1px solid #dddccf; border-radius: 1.25rem; background: #e9e3d6; aspect-ratio: 1.3; }
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

h2 { font-size: clamp(1.8rem, 3.3vw, 3rem); line-height: 1.18; letter-spacing: -.045em; }
h3 { font-size: 1.125rem; line-height: 1.45; }
.workflow, .features, .screenshots { border-top: 1px solid var(--line); padding-block: clamp(2.3rem, 4.5vw, 4rem); }
.workflow-description { max-width: 42rem; margin: .85rem 0 1.6rem; color: var(--muted); }
.workflow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.workflow-grid article { border-radius: 1rem; padding: clamp(1.2rem, 3vw, 2rem); background: #e7eee2; }
.workflow-grid p, .download p { margin: .6rem 0 .85rem; color: var(--muted); }
.text-link { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: .24em; }
.cli-setup { margin-top: 1rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1rem; background: #fffdf8; }
.cli-setup p, .cli-setup blockquote, .agent-options { color: var(--muted); line-height: 1.7; }
.cli-setup p { margin: .65rem 0; }
.cli-prompt-box { position: relative; margin-top: .75rem; background: #e7eee3; }
.cli-setup blockquote { margin: 0; padding: .7rem .9rem; padding-inline-end: 3.25rem; border-inline-start: 3px solid var(--green); overflow-wrap: anywhere; }
.copy-icon { position: absolute; inset-block-start: .35rem; inset-inline-end: .35rem; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: .4rem; background: transparent; color: var(--green); cursor: pointer; }
.copy-icon:hover { background: #d5e1d2; }
.copy-icon::before, .copy-icon::after { content: ""; position: absolute; width: .56rem; height: .66rem; border: 1.5px solid currentColor; border-radius: .14rem; }
.copy-icon::before { top: .43rem; left: .55rem; }
.copy-icon::after { top: .66rem; left: .76rem; background: #e7eee3; }
.copy-icon:hover::after { background: #d5e1d2; }
.is-copied .copy-icon::before { content: none; }
.is-copied .copy-icon::after { top: .49rem; left: .8rem; width: .34rem; height: .73rem; border-width: 0 2px 2px 0; border-radius: 0; background: transparent; transform: rotate(45deg); }
.cli-copy-status { color: var(--green); font-size: .875rem; }
.cli-copy-status:not(:empty) { margin-top: .35rem; }
.is-copied .cli-copy-status { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.agent-options { margin: .75rem 0 1rem; padding-left: 1.35rem; }
.agent-options li + li { margin-top: .6rem; }
.agent-options strong { color: var(--ink); margin-right: .3em; }
.cli-setup code { padding: .08em .24em; border-radius: .24em; color: var(--ink); background: #e7eee2; overflow-wrap: anywhere; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.feature { padding: clamp(1.2rem, 2.3vw, 1.7rem); background: #fffdf8; border: 1px solid #e0e0d4; border-radius: 1rem; }
.feature p { color: var(--muted); margin: .55rem 0 0; }
.feature-icon { display: grid; place-items: center; position: relative; width: 2.6rem; height: 2.6rem; margin-bottom: 1rem; color: var(--green); background: #e9eee3; border-radius: .7rem; }
.feature-icon::before, .feature-icon::after { content: ""; position: absolute; }
.list-icon::before { width: .95rem; height: 1.17rem; border: 1.5px solid; border-radius: .18rem; }
.list-icon::after { width: .47rem; height: 1.5px; background: currentColor; box-shadow: 0 -.24rem, 0 .24rem; }
.timer-icon::before { width: 1.08rem; height: 1.08rem; border: 1.5px solid; border-radius: 50%; }
.timer-icon::after { width: .26rem; height: .35rem; border-left: 1.5px solid; border-bottom: 1.5px solid; transform: translate(.1rem, -.12rem); }
.camera-icon::before { width: 1.28rem; height: .88rem; border: 1.5px solid; border-radius: .2rem; }
.camera-icon::after { width: .35rem; height: .35rem; border: 1.5px solid; border-radius: 50%; }

.screenshot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; margin-top: 1.6rem; }
.screenshot-grid figure { padding: .7rem; border: 1px solid var(--line); border-radius: 1rem; background: #fffdf8; }
.screenshot-grid a { display: block; border-radius: .5rem; }
.screenshot-grid img { display: block; width: 100%; height: auto; border-radius: .5rem; background: #e9eee3; }
.screenshot-grid figcaption { padding: .65rem .25rem .1rem; font-size: .9375rem; font-weight: 700; }
.screenshot-note { margin: .8rem 0 0; color: var(--muted); font-size: .875rem; }

.download { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2.5rem; padding: clamp(1.35rem, 4vw, 2.75rem); margin-bottom: clamp(1.25rem, 3.5vw, 3rem); border: 1px solid #d4dfd0; border-radius: 1.25rem; background: #edf1e8; }
.download p { max-width: 32rem; margin-bottom: 0; }
.start { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 7vw, 6rem); padding: clamp(1.5rem, 5vw, 4rem); border-radius: 1.25rem; background: #214333; color: #fffdf5; }
.start p { color: #d7e4d8; }
.start-intro p { margin: 1rem 0 1.25rem; max-width: 22rem; }
.light { background: #f1edda; color: #1f3f2f; }
.light:hover { background: #fffdf5; }
.steps { margin: 0; padding-left: 1.45rem; }
.steps li { padding: .9rem 0 .95rem .35rem; border-bottom: 1px solid #557462; }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border: 0; padding-bottom: 0; }
.steps li::marker { color: #c5d8c8; font-weight: 700; }
.steps p { margin: .32rem 0 0; }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.25rem; padding-block: clamp(2.7rem, 6vw, 5.25rem); }
details { border-top: 1px solid var(--line); padding-block: 1rem; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
summary:hover { color: var(--green); }
details p { margin: .65rem 0 0; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.5rem; }
.footer-inner > a { font-weight: 700; font-size: .9375rem; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.5rem); }
  .hero, .start, .faq { grid-template-columns: 1fr; }
  .feature-grid, .workflow-grid, .screenshot-grid { grid-template-columns: 1fr; }
  .hero-image { aspect-ratio: 1.55; }
}

@media (max-width: 620px) {
  .section-link { display: none; }
}

@media (max-width: 450px) {
  .header-inner { min-height: 4.2rem; gap: .5rem; flex-wrap: wrap; }
  .header-inner .brand { gap: .45rem; font-size: .9375rem; }
  .header-inner .brand img { width: 2rem; height: 2rem; }
  .header-inner nav { gap: .55rem; }
  .header-inner nav a { font-size: .875rem; }
  .header-inner .parent-link { padding-inline: .55rem; }
  h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .footer-inner { flex-wrap: wrap; }
}
