:root {
  color-scheme: dark;
  font-family: "Inter", "Avenir Next", system-ui, sans-serif;
  background: #141925;
  color: #f1f4fa;
  --muted: #b5bfd2;
  --line: #364158;
  --accent: #c9f38d;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 0;
  line-height: 1.6;
  background: radial-gradient(ellipse at 86% 8%, #202f43 0, transparent 52%) #141925;
}

:lang(zh-CN) {
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
}

a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.shell { width: min(calc(100% - 7rem), 75rem); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  translate: 0 -200%;
  background: var(--accent);
  color: #182311;
  padding: .5rem 1rem;
  border-radius: .35rem;
}
.skip:focus { translate: 0; }

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 5.5rem;
  border-bottom: 1px solid var(--line);
}
.brand, .masthead nav a { text-decoration: none; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.2rem;
  font-weight: 730;
  letter-spacing: -.025em;
}
.brand-mark, .task-mark {
  display: grid;
  place-items: center;
  flex: none;
  font-family: "Times New Roman", serif;
  font-weight: 400;
}
.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: .55rem;
  color: #162119;
  background: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}
.masthead nav {
  display: flex;
  gap: clamp(.9rem, 5vw, 2rem);
  align-items: center;
  color: var(--muted);
  font-size: .875rem;
}
.masthead nav a:hover { color: #fff; text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.15rem);
  padding-block: clamp(3.5rem, 8vw, 7.25rem) clamp(4rem, 8vw, 7rem);
}
.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font: 650 .875rem/1.5 var(--mono);
  letter-spacing: .09em;
}
h1, h2 { margin: 0; line-height: 1.06; }
h1 {
  font-size: clamp(2.85rem, 5.1vw, 4.85rem);
  letter-spacing: -.055em;
  font-weight: 720;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }
html:lang(zh-CN) h1 { letter-spacing: -.045em; }
.intro { max-width: 32rem; margin: 1.4rem 0 1.75rem; color: var(--muted); font-size: 1.11rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: .65rem 1.06rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  text-decoration: none;
  font-weight: 720;
}
.primary { background: var(--accent); color: #162119; }
.primary:hover { background: #defab5; }
.secondary { border-color: #4a566e; }
.secondary:hover { background: #29354b; }
.platforms { margin: .75rem 0 0; font-size: .875rem; color: var(--muted); }

.demo {
  min-width: 0;
  border: 1px solid #43516a;
  border-radius: 1.05rem;
  background: #191f2f;
  box-shadow: 0 1.25rem 3.2rem #080d1873;
  overflow: hidden;
}
.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1.15rem;
  background: #263146;
  font-size: .93rem;
  font-weight: 700;
  border-bottom: 1px solid #43516a;
}
.example { border: 1px solid #52627a; border-radius: 9rem; color: #d1d9e9; font-size: .875rem; padding-inline: .6rem; font-weight: 500; }
.demo-body { padding: clamp(.85rem, 2vw, 1.25rem); }
.demo-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .25rem;
  padding: .26rem;
  background: #101624;
  border-radius: .6rem;
  margin-bottom: .9rem;
}
.demo-controls button {
  border: none;
  border-radius: .44rem;
  background: transparent;
  color: #c3cde0;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 625;
  line-height: 1.3;
  min-height: 2.65rem;
  padding: .35rem .25rem;
  cursor: pointer;
}
.demo-controls button:hover { background: #26344c; }
.demo-controls button[aria-pressed="true"] { color: #f6ffe8; background: #384a3c; }
.demo-panels { display: grid; gap: .8rem; }
.checkpoint {
  border: 1px solid #394760;
  border-radius: .72rem;
  padding: clamp(.8rem, 1.75vw, 1.15rem);
  background: #202a3e;
}
.task-heading { display: flex; align-items: center; gap: .75rem; }
.task-mark {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: .6rem;
  background: #364943;
  color: var(--accent);
  font-size: 1.65rem;
}
.checkpoint-agent { color: #c0ccdd; font: 600 .875rem/1.2 var(--mono); }
.checkpoint h2 { font-size: clamp(1.2rem, 2vw, 1.48rem); margin-top: .18rem; letter-spacing: -.025em; }
.prompt { margin: 1rem 0 0; padding: .55rem .75rem; background: #182033; border-radius: .45rem; color: #e0e9fa; font-size: .94rem; }
.prompt span { color: var(--accent); padding-right: .3em; }
.checkpoint dl { margin: .75rem 0 .15rem; }
.checkpoint dl > div {
  display: flex;
  justify-content: space-between;
  gap: .65rem;
  align-items: baseline;
  border-bottom: 1px solid #3a4760;
  padding-block: .43rem;
}
.checkpoint dt { color: #bdc8d9; font: 600 .875rem/1.4 var(--mono); }
.checkpoint dd { margin: 0; text-align: right; font-size: .94rem; }
.checkpoint .state { color: var(--accent); }
.demo-note { margin: .75rem 0 0; color: #c6d0df; font-size: .9rem; }

.getting-started { background: #e9eef7; color: #1a2332; }
.start-inner {
  display: grid;
  grid-template-columns: .88fr 1fr;
  align-items: start;
  gap: 2rem 4rem;
  padding-block: clamp(2.7rem, 5.5vw, 5rem);
}
.start-inner h2 { font-size: clamp(2rem, 3.2vw, 3.25rem); letter-spacing: -.045em; }
.start-inner p { margin: .65rem 0 0; max-width: 31rem; color: #485972; }
.start-inner ol { margin: 0; padding-left: 1.5rem; }
.start-inner li { padding: .55rem 0 .55rem .5rem; }
.start-inner li + li { border-top: 1px solid #c9d4e4; }
.start-inner li::marker { color: #426146; font-family: var(--mono); font-weight: 700; }
.footer { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: 1.2rem; color: var(--muted); font-size: .875rem; }
.footer p { margin: 0; }
.footer a { white-space: nowrap; }

@media (max-width: 61rem) {
  .shell { width: min(calc(100% - 4rem), 75rem); }
}
@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { max-width: 40rem; }
  .start-inner { grid-template-columns: 1fr; }
}
@media (max-width: 31rem) {
  .shell { width: calc(100% - 2rem); }
  .masthead { min-height: 4.35rem; }
  .hero { padding-block: 2.8rem 3rem; }
  .checkpoint dt, .checkpoint dd { overflow-wrap: anywhere; }
  .footer { flex-direction: column; gap: .45rem; }
}
