:root {
  color-scheme: light;
  --ink: #171412;
  --muted: #665f58;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #ded8ce;
  --accent: #0b6b5e;
  --accent-2: #c84630;
  --accent-3: #efb23d;
  --code: #22201d;
  --shadow: 0 18px 50px rgba(39, 34, 29, 0.12);
  --serif: "Songti SC", "STSong", ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --sans: "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(11, 107, 94, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(200, 70, 48, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(23, 20, 18, 0.12);
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-family: var(--sans);
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  background: var(--accent-3);
  box-shadow: 4px 4px 0 var(--ink);
}

nav a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 64px 0 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
}

.lede {
  max-width: 660px;
  color: var(--muted);
  font-size: 23px;
}

.hero-cn {
  margin-bottom: 22px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.18;
}

.secondary-lede {
  font-family: var(--sans);
  font-size: 17px;
}

.section-intro {
  max-width: 780px;
  color: var(--muted);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  font-family: var(--sans);
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--ink);
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: #fff;
}

.logic-panel,
.steps article,
.react-grid article,
.copy-box {
  border: 2px solid var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.logic-panel {
  padding: 20px;
}

.flow {
  display: grid;
  grid-template-columns: 1fr 18px 1fr 18px 1fr 18px 1fr 18px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.flow span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  background: #f7f4ec;
}

.flow i {
  height: 2px;
  background: var(--accent-2);
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 22px;
  background: var(--code);
  color: #f7f0df;
  font-size: 14px;
  line-height: 1.55;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 86px;
  border: 2px solid var(--ink);
  background: var(--ink);
}

.metric {
  padding: 28px;
  background: var(--accent-3);
  font-family: var(--sans);
}

.metric strong {
  display: block;
  font-size: 54px;
  line-height: 1;
}

.metric span {
  font-weight: 800;
}

.section {
  padding: 84px 0;
}

.section-heading {
  max-width: 760px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.steps article,
.react-grid article {
  padding: 22px;
}

.steps article span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--accent-2);
  font-family: var(--sans);
  font-weight: 900;
}

.steps p,
.react-grid p,
.install p,
footer {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: 34px;
  align-items: start;
}

.use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.use-cases span {
  padding: 12px 15px;
  border: 2px solid var(--ink);
  background: #fff;
  font-family: var(--sans);
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
}

.react-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.install {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: 34px;
  align-items: center;
}

.install p code {
  padding: 2px 5px;
  background: #eee6d8;
}

.install-options {
  display: grid;
  gap: 16px;
}

.copy-box {
  position: relative;
  overflow: hidden;
}

.copy-title {
  min-height: 56px;
  padding: 16px 92px 14px 18px;
  border-bottom: 2px solid var(--ink);
  background: var(--accent-3);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 900;
}

.copy-box pre {
  padding-right: 90px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy-box pre code {
  display: block;
  padding: 0;
  background: transparent;
  color: inherit;
  white-space: inherit;
  overflow-wrap: inherit;
}

.copy-box button {
  position: absolute;
  top: 10px;
  right: 16px;
  min-width: 66px;
  min-height: 36px;
  border: 2px solid var(--ink);
  background: var(--accent-3);
  font-family: var(--sans);
  font-weight: 900;
  cursor: pointer;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 44px 20px;
  border-top: 1px solid rgba(23, 20, 18, 0.12);
  font-family: var(--sans);
  font-size: 14px;
}

footer a {
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .install {
    grid-template-columns: 1fr;
  }

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

  .react-grid,
  .band {
    grid-template-columns: 1fr;
  }

  .logic-panel {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  main {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    font-size: 46px;
  }

  .lede {
    font-size: 19px;
  }

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

  .flow i {
    width: 2px;
    height: 16px;
    justify-self: center;
  }

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

  .section {
    padding: 58px 0;
  }
}
