: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);
}

main {
  padding-bottom: 0;
}

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: 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(--surface);
}

.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;
  justify-self: 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, 0.95fr) minmax(500px, 1fr);
  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 48px 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;
}

h1 span {
  display: block;
}

@media (min-width: 621px) {
  h1 span {
    white-space: nowrap;
  }
}

.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;
  width: min(560px, calc(100% - 56px));
  margin: 56px 28px;
  overflow: hidden;
  border: 1px solid var(--grid-line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.06);
}

.code-tabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--grid-line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.code-tab-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.code-tab-label {
  height: 48px;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
  line-height: 48px;
}

#code-tab-http:checked ~ .code-tabs label[for="code-tab-http"],
#code-tab-python:checked ~ .code-tabs label[for="code-tab-python"],
#code-tab-node:checked ~ .code-tabs label[for="code-tab-node"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.copy-button {
  position: absolute;
  top: 0;
  right: 16px;
  width: 28px;
  height: 48px;
}

.copy-button span,
.copy-button span::after {
  position: absolute;
  width: 11px;
  height: 13px;
  border: 1.5px solid #4b5563;
  border-radius: 2px;
  content: "";
}

.copy-button span {
  top: 16px;
  right: 4px;
}

.copy-button span::after {
  top: -5px;
  right: 5px;
  background: var(--panel);
}

.code-panel pre {
  display: none;
  height: 292px;
  margin: 0;
  padding: 16px 0;
  overflow-x: auto;
  background: var(--panel);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 22px;
}

#code-tab-http:checked ~ pre[data-code-sample="http"],
#code-tab-python:checked ~ pre[data-code-sample="python"],
#code-tab-node:checked ~ pre[data-code-sample="node"] {
  display: block;
}

.code-panel code {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: normal;
}

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

.code-panel code span.line-focus {
  background: #edf5ff;
  box-shadow: inset 2px 0 #0070f3;
}

.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 {
  display: none;
}

.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;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 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(--surface);
}

.feature-card {
  min-height: 386px;
  display: flex;
  flex-direction: column;
  padding: 50px 54px 38px;
  border-right: 1px solid var(--grid-line);
}

.feature-card:last-child {
  border-right: 0;
}

.feature-card h2 {
  max-width: 280px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.16;
  font-weight: 760;
}

.feature-card p {
  max-width: 270px;
  margin-top: 18px;
  color: #4f4f4f;
  font-size: 16px;
  line-height: 1.52;
}

.feature-card img {
  width: 264px;
  max-width: 100%;
  height: 120px;
  margin: auto auto 0;
  display: block;
}

.workflow-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  margin-top: 0;
  border: 1px solid var(--grid-line);
  border-top: 0;
  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(--surface);
}

.footer-grid {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #667085;
  font-size: 14px;
}

.footer-brand {
  color: var(--ink);
  font-weight: 720;
}

.footer-copyright {
  color: #667085;
  font-weight: 500;
}

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

  .site-nav {
    display: none;
  }

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

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

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

  .code-panel {
    width: auto;
    margin: 40px;
  }

  .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);
  }

  .feature-card {
    min-height: 340px;
    border-right: 0;
    border-bottom: 1px solid var(--grid-line);
  }

  .feature-card:last-child {
    border-bottom: 0;
  }
}

@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: 34px;
    line-height: 1.08;
  }

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

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

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

  .code-panel {
    width: auto;
    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;
  }

  .feature-card {
    min-height: 310px;
    padding: 34px 28px 30px;
  }

  .feature-card h2 {
    font-size: 21px;
  }

  .feature-card p {
    font-size: 15px;
  }

  .workflow-section {
    margin-top: 0;
  }

  main {
    padding-bottom: 0;
  }

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

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

  .footer-grid {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 28px 0;
  }

}
