:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #5f6572;
  --faint: #8a93a1;
  --line: #e5e7eb;
  --soft-line: #f0f1f3;
  --surface: #ffffff;
  --wash: #fafafa;
  --accent: #635bff;
}

* {
  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 {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  border-bottom: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand,
.header-actions,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  width: fit-content;
  gap: 9px;
  font-size: 15px;
  font-weight: 720;
}

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

.site-nav {
  justify-content: center;
  gap: 28px;
  color: #3f4652;
  font-size: 14px;
  font-weight: 650;
}

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

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

.language-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: #667085;
  font-size: 14px;
  font-weight: 650;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 19px;
  font-size: 15px;
  font-weight: 760;
  white-space: nowrap;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-small {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
}

.button-primary {
  color: #ffffff;
  background: var(--ink);
}

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

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

.button-secondary:hover {
  border-color: #d1d5db;
  background: #f7f7f8;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  min-height: 520px;
  margin-top: 126px;
  border: 1px solid var(--line);
  background:
    linear-gradient(to right, rgba(17, 17, 17, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.05) 1px, transparent 1px),
    var(--wash);
  background-size: 90px 90px;
}

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

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

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

h1 {
  max-width: 620px;
  font-size: clamp(44px, 4vw, 58px);
  line-height: 1.04;
  font-weight: 780;
}

.hero-lead {
  max-width: 560px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.66;
}

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

.example-panel {
  align-self: center;
  justify-self: center;
  width: min(520px, calc(100% - 56px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 52px rgba(17, 17, 17, 0.08);
}

.example-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: #3f4652;
  font-size: 13px;
  font-weight: 700;
}

.example-tabs span {
  height: 48px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.example-tabs .active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.example-panel pre {
  overflow-x: auto;
  background: #fbfbfc;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.86;
}

.example-panel code {
  display: block;
  min-width: 640px;
  padding: 16px 0;
}

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

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

.line-focus {
  background: #edf5ff;
}

.example-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 13px 18px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.example-note strong {
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 72px;
  text-align: center;
}

.stats article {
  min-height: 84px;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
}

.stats span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 82px;
}

.feature-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.05);
}

.feature-visual {
  height: 150px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to right, rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    #fbfbfc;
  background-size: 34px 34px;
}

.feature-card h2 {
  padding: 20px 22px 0;
  color: #4e5563;
  font-size: 19px;
  line-height: 1.25;
}

.feature-card p {
  padding: 12px 22px 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.model-cloud {
  position: relative;
}

.model-cloud span {
  position: absolute;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #5d6472;
  background: var(--surface);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.07);
}

.model-cloud span:nth-child(1) {
  top: 22px;
  left: 22px;
}

.model-cloud span:nth-child(2) {
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.model-cloud span:nth-child(3) {
  top: 24px;
  right: 24px;
}

.model-cloud span:nth-child(4) {
  bottom: 24px;
  left: 58px;
}

.model-cloud span:nth-child(5) {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.model-cloud span:nth-child(6) {
  right: 58px;
  bottom: 26px;
}

.route-map,
.usage-lines,
.shield {
  display: flex;
  align-items: center;
  justify-content: center;
}

.route-map {
  gap: 8px;
}

.route-map span {
  min-width: 58px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #4e5563;
  font-size: 12px;
  font-weight: 760;
}

.route-map i {
  width: 38px;
  height: 1px;
  background: #cbd5e1;
}

.usage-lines {
  flex-direction: column;
  gap: 12px;
}

.usage-lines span {
  width: 170px;
  height: 30px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #5aa7ff 0 42%, transparent 42%),
    #edf2f7;
}

.usage-lines span:nth-child(2) {
  background:
    linear-gradient(90deg, #efc14f 0 63%, transparent 63%),
    #f2f4f7;
}

.usage-lines span:nth-child(3) {
  background:
    linear-gradient(90deg, #60c189 0 34%, transparent 34%),
    #f2f4f7;
}

.shield span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #16803c;
  background: var(--surface);
  font-size: 30px;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.08);
}

.steps {
  display: grid;
  grid-template-columns: 0.52fr 1fr;
  gap: 48px;
  margin-top: 96px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.steps h2 {
  max-width: 280px;
  font-size: 30px;
  line-height: 1.15;
}

.steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
}

.steps li span,
.steps li strong,
.steps li p {
  display: block;
}

.steps li span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
}

.steps li strong {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.22;
}

.steps li p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

.footer-grid {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #3f4652;
  font-size: 14px;
}

.footer-grid nav {
  display: flex;
  gap: 18px;
}

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

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 80px;
  }

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

  .example-panel {
    margin: 44px 0;
  }

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

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

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

  .site-header {
    min-height: 58px;
    padding: 0 16px;
    gap: 12px;
  }

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

  .language-link {
    display: none;
  }

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

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

  h1 {
    font-size: 37px;
    line-height: 1.08;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.62;
  }

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

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

  .example-panel {
    width: calc(100% - 28px);
    margin: 24px 0;
  }

  .example-tabs {
    gap: 18px;
    overflow-x: auto;
    font-size: 12px;
  }

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

  .example-note {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
    margin-top: 54px;
  }

  .stats strong {
    font-size: 28px;
  }

  .feature-grid,
  .steps ol {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    margin-top: 60px;
  }

  .steps {
    margin-top: 72px;
    padding-top: 42px;
  }

  .footer-grid {
    min-height: 104px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}
