:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #5d6461;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --line: #d9ded7;
  --green: #245d4f;
  --blue: #2d5f8f;
  --red: #a84232;
  --gold: #a47526;
  --shadow: 0 18px 60px rgba(23, 23, 23, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(247, 248, 245, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-avatar {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  object-fit: cover;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100svh - 72px);
  padding: clamp(34px, 5vw, 72px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background-color: #f5e5c6;
  overflow: hidden;
}

.hero-visual {
  display: block;
  width: 100%;
  height: min(720px, calc(100svh - 132px));
  min-height: 520px;
  object-fit: cover;
  object-position: left center;
}

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

.kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  max-width: 980px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.lead {
  margin: 24px 0 0;
  max-width: 680px;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.lead-zh {
  margin: 14px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.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: 1px solid var(--ink);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

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

.band,
.showcase-band,
.split,
.proof,
.star-band {
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 28px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.tile p {
  margin: 0;
  color: var(--muted);
}

.link-tile {
  text-decoration: none;
}

.link-tile:hover {
  border-color: var(--blue);
}

.method-preview {
  margin: 0;
}

.method-preview img {
  display: block;
  width: min(100%, 1180px);
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
}

.split p {
  color: var(--muted);
  max-width: 680px;
}

.case-list {
  display: grid;
  gap: 12px;
}

.case-list a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.case-list strong,
.case-list span {
  display: block;
}

.case-list span {
  margin-top: 6px;
  color: var(--muted);
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 1.3fr);
  gap: clamp(28px, 5vw, 72px);
}

.repo-table {
  display: grid;
  border-top: 1px solid var(--line);
}

.repo-table a {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.repo-table span {
  font-weight: 800;
}

.repo-table em {
  color: var(--muted);
  font-style: normal;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
}

.star-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #ffffff;
}

.star-band div {
  max-width: 820px;
}

.star-band p:not(.kicker) {
  color: var(--muted);
  font-size: 1.05rem;
}

.site-footer p {
  max-width: 760px;
  margin: 0;
}

.site-footer a {
  color: var(--green);
  font-weight: 800;
}

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

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

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    order: 1;
    height: clamp(190px, 52vw, 260px);
    min-height: 0;
    object-position: left center;
  }

  .hero-copy {
    order: 2;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.8rem);
  }

  .grid.four,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .repo-table a {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .star-band {
    align-items: flex-start;
    flex-direction: column;
  }
}
