:root {
  color-scheme: dark;
  --bg: #0b0d0c;
  --panel: #121614;
  --panel-2: #171c1a;
  --text: #f1efe6;
  --muted: #a8afa7;
  --line: rgba(241, 239, 230, 0.13);
  --line-strong: rgba(241, 239, 230, 0.24);
  --green: #7ee787;
  --cyan: #7dd3fc;
  --amber: #f4c76b;
  --red: #ff8b8b;
  --ink: #070807;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--text);
  color: var(--ink);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand span {
  font-size: 1rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.main-nav a,
.language-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.language-link:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle {
  display: none;
}

main {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  overflow-x: clip;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 2rem;
  padding: 3.25rem 0 3rem;
}

.hero-copy,
.section-intro {
  min-width: 0;
}

.page-hero {
  padding: 5rem 0 2rem;
  max-width: 820px;
}

.page-hero.compact {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 4.5rem;
  line-height: 0.96;
  font-weight: 760;
  max-width: 900px;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: 2.05rem;
  line-height: 1.1;
  font-weight: 720;
}

h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

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

html:lang(zh-CN) h1 {
  font-size: 3.9rem;
  line-height: 1.08;
  font-weight: 740;
  max-width: 760px;
}

html:lang(zh-CN) h2 {
  line-height: 1.22;
}

html:lang(zh-CN) h3 {
  line-height: 1.34;
}

html:lang(zh-CN) .hero h1 {
  max-width: 670px;
}

html:lang(zh-CN) .hero-text,
html:lang(zh-CN) .page-hero p,
html:lang(zh-CN) .section-intro p,
html:lang(zh-CN) .info-card p,
html:lang(zh-CN) .workflow-step p,
html:lang(zh-CN) .architecture-stack p,
html:lang(zh-CN) .legal-copy p,
html:lang(zh-CN) .contact-panel p {
  line-height: 1.78;
}

html:lang(zh-CN) .main-nav a,
html:lang(zh-CN) .language-link,
html:lang(zh-CN) .button {
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-text,
.page-hero p,
.section-intro p,
.info-card p,
.workflow-step p,
.architecture-stack p,
.legal-copy p,
.contact-panel p,
.footer-note {
  color: var(--muted);
}

.hero-text {
  max-width: 660px;
  margin: 1.25rem 0 0;
  font-size: 1.12rem;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.65rem;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 1rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  background: var(--text);
  color: var(--ink);
  border-color: var(--text);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.hero-meta span,
.tag-cloud span,
.trust-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 0.65rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.9rem;
}

.agent-shell {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.shell-top {
  min-height: 48px;
  display: grid;
  grid-template-columns: 10px 10px 10px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.shell-top span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--red);
}

.shell-top span:nth-child(2) {
  background: var(--amber);
}

.shell-top span:nth-child(3) {
  background: var(--green);
}

.shell-top strong {
  font-size: 0.92rem;
}

.shell-top em {
  color: var(--amber);
  font-size: 0.82rem;
  font-style: normal;
}

.shell-body {
  padding: 1rem;
}

.prompt-line {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.16);
}

.prompt-line span,
.card-label,
.workflow-step span,
.architecture-stack span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
}

.prompt-line p {
  margin: 0.25rem 0 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.run-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.run-step {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.035);
}

.run-step.is-active {
  border-color: rgba(126, 231, 135, 0.55);
  background: rgba(126, 231, 135, 0.07);
}

.step-index {
  color: var(--muted);
}

.step-main {
  min-width: 0;
  display: grid;
}

.step-main small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.step-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.2rem 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.status-passed,
.status-ready {
  color: var(--green);
}

.status-running {
  color: var(--cyan);
}

.status-waiting,
.status-queued {
  color: var(--amber);
}

.trace-panel {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.14);
}

.trace-rail {
  position: relative;
  display: flex;
  justify-content: space-between;
}

.trace-rail::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 1px;
  background: var(--line-strong);
}

.trace-rail i {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 1px solid var(--green);
  border-radius: 99px;
  background: var(--panel);
}

.trace-copy p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.trust-chips,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.band,
.split-section,
.contact-panel,
.legal-copy,
.architecture-stack {
  margin-top: 1rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.band.tight {
  padding: 2.4rem 0;
}

.section-intro {
  max-width: 780px;
  margin-bottom: 1.5rem;
}

.section-intro h2 + p {
  margin-top: 0.85rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.info-card,
.workflow-step,
.architecture-stack article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 1rem;
}

.info-card h3,
.workflow-step h3 {
  margin-top: 0.45rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 1rem;
  align-items: center;
}

.code-panel {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b0a;
  overflow: hidden;
}

.code-panel pre {
  margin: 0;
  padding: 1.2rem;
  overflow-x: auto;
}

.code-panel code {
  color: #d7f7d5;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

.proof-line {
  display: grid;
  grid-template-columns: 1fr 46px 1fr 46px 1fr;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.proof-line span {
  display: grid;
  place-items: center;
  min-height: 74px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 720;
  text-align: center;
}

.proof-line i {
  height: 1px;
  background: var(--line-strong);
}

.workflow-lane {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.architecture-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
}

.contact-panel > div,
.legal-copy {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 1.25rem;
}

.email-link {
  color: var(--green);
  font-size: 1.3rem;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.clean-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.clean-list li + li {
  margin-top: 0.55rem;
}

.legal-copy {
  max-width: 860px;
}

.legal-copy h2 + p {
  margin-top: 0.45rem;
}

.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 3rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  color: #777f78;
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.35rem;
  }

  .hero,
  .split-section,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .card-grid,
  .workflow-lane {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-toggle {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    z-index: 30;
    width: 40px;
    height: 40px;
    display: grid;
    gap: 4px;
    place-content: center;
    justify-self: end;
    flex: 0 0 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
  }

  .language-link {
    position: fixed;
    top: 1rem;
    right: 4.25rem;
    z-index: 30;
    min-height: 40px;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.035);
    display: inline-flex;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
  }

  .main-nav {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: 4.6rem;
    display: none;
    grid-template-columns: 1fr;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.5rem;
    background: rgba(11, 13, 12, 0.96);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    justify-content: flex-start;
  }

  h1 {
    font-size: 2.22rem;
  }

  html:lang(zh-CN) h1 {
    font-size: 2.15rem;
    line-height: 1.12;
  }

  html:lang(zh-CN) .hero-text {
    font-size: 1.02rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .card-grid,
  .workflow-lane,
  .architecture-stack {
    grid-template-columns: 1fr;
  }

  .proof-line {
    grid-template-columns: 1fr;
  }

  .proof-line i {
    width: 1px;
    height: 24px;
    justify-self: center;
  }

  .trace-panel {
    grid-template-columns: 1fr;
  }

  .run-step {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .step-status {
    grid-column: 2;
    justify-self: start;
  }

  .shell-top {
    grid-template-columns: 10px 10px 10px 1fr;
  }

  .shell-top em {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}