:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5b6876;
  --line: #d8dee5;
  --panel: #f6f8fa;
  --panel-strong: #edf3f8;
  --blue: #1d5fd1;
  --teal: #0f8f86;
  --orange: #b85a18;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(23, 33, 43, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fbfcfd;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(251, 252, 253, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 8px;
  font-size: 18px;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--blue);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 32px;
  min-height: calc(100vh - 64px);
  align-items: center;
  padding: clamp(48px, 8vw, 88px) clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgba(29, 95, 209, 0.08), transparent 46%),
    linear-gradient(18deg, rgba(15, 143, 134, 0.08), transparent 38%),
    #f9fbfd;
}

.hero-copy {
  max-width: 880px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
}

.status-panel {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-panel h2 {
  margin-bottom: 18px;
  font-size: 22px;
}

dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

dl div {
  padding: 14px;
  background: var(--panel);
  border-radius: 8px;
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.section {
  padding: clamp(44px, 7vw, 82px) clamp(20px, 4vw, 56px);
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: var(--ink);
  color: var(--white);
}

.metrics div {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.metric {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
}

.metrics p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.flow-step,
.card,
.output-grid > div,
.boundary-grid > div,
.chat-demo,
.steps {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 33, 43, 0.05);
}

.flow-step {
  min-height: 230px;
  padding: 20px;
}

.flow-step span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

.flow-step p,
.card p,
.card li,
.boundary li,
.steps li,
.output-grid li {
  color: var(--muted);
}

.demo-section,
.output-section {
  background: var(--panel);
}

.chat-demo {
  display: grid;
  gap: 16px;
  max-width: 980px;
  padding: 22px;
}

.bubble {
  max-width: 760px;
  padding: 16px 18px;
  border-radius: 8px;
}

.bubble.user {
  justify-self: end;
  color: var(--white);
  background: var(--blue);
}

.bubble.agent {
  justify-self: start;
  background: var(--panel-strong);
  border: 1px solid #c9d9e7;
}

.bubble strong {
  display: block;
  margin-bottom: 8px;
}

.bubble p,
.bubble ul {
  margin-bottom: 0;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 0;
  padding: 14px;
  background: #101820;
  color: #e8f2f1;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 9px;
  color: var(--orange);
  background: #fff2e7;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

ul,
ol {
  padding-left: 20px;
}

.output-grid,
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.output-grid > div,
.boundary-grid > div {
  padding: 24px;
}

.boundary {
  background: #fdfcf9;
}

.steps {
  max-width: 980px;
  margin: 0;
  padding: 24px 24px 24px 44px;
}

footer {
  padding: 28px clamp(20px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--white);
}

footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .metrics,
  .flow,
  .cards,
  .output-grid,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .flow-step {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 17px;
  }

  .bubble {
    max-width: 100%;
  }
}
