:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #5f6875;
  --faint: #8a94a3;
  --grid-line: #e6e7eb;
  --surface: #fafafa;
  --panel: #ffffff;
  --code-bg: #fbfbfc;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--surface);
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  background: var(--surface);
}

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

.shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--grid-line);
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 15px;
  font-weight: 720;
}

.brand img {
  width: 26px;
  height: 26px;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--grid-line);
  border-radius: 999px;
  background: var(--panel);
}

.site-nav a,
.language-link,
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  min-height: 32px;
  color: #3f4652;
}

.site-nav a:hover,
.language-link:hover {
  color: var(--ink);
  background: #f2f3f5;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.language-link {
  color: #667085;
}

.button {
  border: 1px solid transparent;
  white-space: nowrap;
}

.button-small {
  min-height: 38px;
  padding-inline: 14px;
}

.button-primary {
  color: #ffffff;
  background: #111111;
}

.button-primary:hover {
  background: #272727;
}

.button-secondary {
  border-color: var(--grid-line);
  background: var(--panel);
}

.button-secondary:hover {
  background: #f5f5f6;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.92fr);
  min-height: 560px;
  margin-top: 96px;
  border: 1px solid var(--grid-line);
  background:
    linear-gradient(to right, rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    var(--surface);
  background-size: 80px 80px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 56px;
  border-right: 1px solid var(--grid-line);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 20px;
  border: 1px solid var(--grid-line);
  border-radius: 999px;
  padding: 5px 11px;
  color: #536071;
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  font-size: clamp(42px, 4.1vw, 60px);
  line-height: 1.04;
  font-weight: 780;
}

.hero-lead {
  max-width: 660px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

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

.code-panel {
  align-self: center;
  margin: 56px;
  overflow: hidden;
  border: 1px solid var(--grid-line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.06);
}

.code-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid var(--grid-line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.code-tabs .active {
  color: var(--ink);
}

.code-tabs .code-context {
  color: var(--faint);
  font-weight: 650;
}

.code-panel pre {
  margin: 0;
  padding: 18px 0;
  overflow-x: auto;
  background: var(--code-bg);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.8;
}

.code-panel code {
  display: block;
  min-width: 560px;
}

.code-panel code span {
  display: block;
  padding: 0 18px;
  white-space: pre;
}

.code-panel code span.line-focus {
  background: #edf5ff;
}

.code-panel i {
  font-style: normal;
}

.tok-url {
  color: #0550ae;
}

.tok-string {
  color: #0a7a4b;
}

.tok-key {
  color: #953800;
}

.code-panel b {
  display: inline-block;
  width: 28px;
  margin-right: 12px;
  color: #a4acb8;
  font-weight: 500;
  text-align: right;
  user-select: none;
}

.code-panel p {
  border-top: 1px solid var(--grid-line);
  padding: 13px 18px 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-right: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
  border-left: 1px solid var(--grid-line);
  background: var(--panel);
}

.capability-grid article {
  min-height: 214px;
  padding: 34px 32px;
  border-right: 1px solid var(--grid-line);
}

.capability-grid article:last-child {
  border-right: 0;
}

.capability-grid h2 {
  max-width: 220px;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 760;
}

.capability-grid p {
  max-width: 240px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.workflow-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  margin-top: 96px;
  border: 1px solid var(--grid-line);
  background: var(--panel);
}

.section-copy {
  padding: 44px 40px;
  border-right: 1px solid var(--grid-line);
}

.section-copy h2 {
  max-width: 300px;
  font-size: 28px;
  line-height: 1.18;
}

.workflow-list article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 24px;
  min-height: 118px;
  padding: 30px 36px;
  border-bottom: 1px solid var(--grid-line);
}

.workflow-list article:last-child {
  border-bottom: 0;
}

.workflow-list span {
  color: var(--faint);
  font-size: 13px;
  font-weight: 780;
}

.workflow-list h3 {
  font-size: 18px;
  line-height: 1.25;
}

.workflow-list p {
  max-width: 520px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--grid-line);
  background: var(--panel);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 0;
}

.footer-grid strong {
  font-size: 15px;
}

.footer-grid p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: #3f4652;
  font-size: 14px;
  font-weight: 650;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero-grid,
  .workflow-section {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .section-copy {
    border-right: 0;
  }

  .hero-copy {
    border-bottom: 1px solid var(--grid-line);
  }

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

  .capability-grid article:nth-child(2) {
    border-right: 0;
  }

  .capability-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--grid-line);
  }
}

@media (max-width: 620px) {
  .shell {
    width: calc(100% - 28px);
  }

  .site-header {
    min-height: 60px;
    padding: 0 14px;
    gap: 12px;
  }

  .brand span {
    max-width: 116px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .language-link,
  .button-small {
    min-height: 36px;
    padding-inline: 11px;
  }

  .hero-grid {
    min-height: 0;
    margin-top: 52px;
  }

  .hero-copy {
    padding: 34px 22px;
  }

  .eyebrow {
    font-size: 11px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 17px;
    line-height: 1.65;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .code-panel {
    margin: 20px;
  }

  .code-panel pre {
    font-size: 11px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid article {
    min-height: 0;
    padding: 28px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--grid-line);
  }

  .capability-grid article:last-child {
    border-bottom: 0;
  }

  .workflow-section,
  .site-footer {
    margin-top: 64px;
  }

  .section-copy,
  .workflow-list article {
    padding: 28px 24px;
  }

  .workflow-list article {
    grid-template-columns: 38px 1fr;
    gap: 16px;
  }

  .footer-grid {
    flex-direction: column;
  }

  .footer-grid nav {
    justify-content: flex-start;
  }
}
