:root {
  --bg: #f7f3ea;
  --bg-soft: #efe9dc;
  --surface: #fffdf8;
  --ink: #201d18;
  --ink-2: #4b453c;
  --muted: #7b7267;
  --line: rgba(32, 29, 24, 0.12);
  --line-strong: rgba(32, 29, 24, 0.2);
  --accent: #e2852b;
  --accent-ink: #b96313;
  --accent-soft: rgba(226, 133, 43, 0.14);
  --teal: #14887c;
  --dark: #1d1b17;
  --dark-2: #27241f;
  --radius: 22px;
  --shadow: 0 24px 60px -30px rgba(47, 36, 20, 0.35);
  --wrap: 1140px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px 380px at 88% 4%, rgba(226, 133, 43, 0.16), transparent 70%),
    radial-gradient(620px 460px at 4% 18%, rgba(20, 136, 124, 0.1), transparent 72%),
    radial-gradient(700px 500px at 50% 100%, rgba(240, 178, 74, 0.12), transparent 70%);
}

::selection {
  background: var(--accent-soft);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.86em;
  background: rgba(32, 29, 24, 0.07);
  border-radius: 6px;
  padding: 0.12em 0.4em;
}

.wrap {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
}

.skip:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid rgba(226, 133, 43, 0.6);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 243, 234, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header:hover {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.08rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 18px -10px rgba(32, 29, 24, 0.6);
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.nav a {
  position: relative;
  padding: 4px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: right 0.22s ease;
}

.nav a:hover::after {
  right: 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
}

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

.btn-primary {
  background: var(--ink);
  color: #fff8ef;
  box-shadow: 0 14px 30px -16px rgba(32, 29, 24, 0.7);
}

.btn-primary:hover {
  background: #2c2822;
}

.btn-outline {
  border-color: var(--line-strong);
  background: rgba(255, 253, 248, 0.6);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(32, 29, 24, 0.06);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.88rem;
}

/* ---------- hero ---------- */

.release-banner {
  background: var(--accent-soft);
  border-block: 1px solid rgba(185, 99, 19, 0.16);
  color: var(--ink-2);
  font-size: 0.88rem;
}

.release-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  padding-block: 10px;
}

.release-banner strong {
  color: var(--ink);
  white-space: nowrap;
}

.release-banner a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8d460d;
  font-weight: 700;
  white-space: nowrap;
}

.release-banner a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.hero {
  padding: 64px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(2.7rem, 5.4vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hl {
  position: relative;
  white-space: nowrap;
  background: linear-gradient(180deg, transparent 62%, rgba(240, 178, 74, 0.55) 62%);
  padding: 0 0.06em;
}

.lead {
  margin-top: 22px;
  max-width: 33em;
  color: var(--ink-2);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.cta-row + .cta-row {
  margin-top: 12px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.88rem;
}

.meta-row li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.meta-row .icon {
  color: var(--teal);
}

.hero-source {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-source a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-shot {
  position: relative;
}

.shot-frame {
  border-radius: 18px;
  padding: 8px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  transform: rotate(-1.2deg);
}

.shot-frame img {
  border-radius: 12px;
}

.hero-shot figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px -18px rgba(47, 36, 20, 0.45);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.float-chip .icon {
  color: var(--accent-ink);
}

.chip-claim {
  top: 8%;
  left: -22px;
  transform: rotate(-3deg);
}

.chip-auto {
  right: -14px;
  bottom: 18%;
  color: var(--teal);
  transform: rotate(2deg);
}

.chip-auto .icon {
  color: var(--teal);
}

/* ---------- sections ---------- */

.section {
  padding: 92px 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.55), rgba(255, 253, 248, 0.2)),
    var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 42px;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.section-sub {
  margin-top: 12px;
  color: var(--muted);
}

/* ---------- feature cards ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -34px rgba(47, 36, 20, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 133, 43, 0.45);
  box-shadow: 0 26px 50px -32px rgba(47, 36, 20, 0.55);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.card-icon .icon {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-top: 18px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.93rem;
}

.repo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
}

.repo-links a {
  color: var(--accent-ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.repo-links a:hover {
  color: var(--accent);
}

/* ---------- platforms ---------- */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 26px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.platform img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.platform h3 {
  font-size: 0.98rem;
}

.platform p {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -38px rgba(47, 36, 20, 0.55);
}

.shot.wide {
  grid-column: 1 / -1;
}

.shot-link {
  display: block;
  cursor: zoom-in;
}

.shot-link:focus-visible {
  outline-offset: -4px;
}

.shot img {
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.shot figcaption {
  padding: 12px 18px 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.step-no {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-ink);
}

.steps h3 {
  margin-top: 10px;
  font-size: 1.05rem;
}

.steps p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

/* ---------- download ---------- */

.download {
  color: #f7efe2;
  background:
    radial-gradient(600px 320px at 82% 0%, rgba(226, 133, 43, 0.24), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(20, 136, 124, 0.18), transparent 70%),
    var(--dark);
}

.download .eyebrow {
  color: #f0b24a;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.download h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.download .section-sub {
  color: rgba(247, 239, 226, 0.72);
  margin-top: 14px;
}

.download .btn-primary {
  background: #f7efe2;
  color: var(--dark);
}

.download .btn-primary:hover {
  background: #fff9ef;
}

.download .btn-outline {
  border-color: rgba(247, 239, 226, 0.28);
  background: transparent;
  color: #f7efe2;
}

.download .btn-outline:hover {
  border-color: rgba(247, 239, 226, 0.6);
  background: rgba(247, 239, 226, 0.06);
}

.fineprint {
  margin-top: 16px;
  color: rgba(247, 239, 226, 0.55);
  font-size: 0.82rem;
}

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

.package {
  position: relative;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(247, 239, 226, 0.14);
  background: rgba(247, 239, 226, 0.05);
}

.package.recommended {
  border-color: rgba(240, 178, 74, 0.55);
  background: rgba(240, 178, 74, 0.1);
}

.package h3 {
  font-size: 1rem;
}

.package p {
  margin-top: 4px;
  color: rgba(247, 239, 226, 0.66);
  font-size: 0.86rem;
}

.package code {
  display: inline-block;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(247, 239, 226, 0.85);
}

.tag {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f0b24a;
  color: #3a2408;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ---------- faq ---------- */

.faq-wrap {
  max-width: 820px;
}

.faq-wrap details {
  border-bottom: 1px solid var(--line);
}

.faq-wrap summary {
  position: relative;
  padding: 20px 36px 20px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-wrap summary::-webkit-details-marker {
  display: none;
}

.faq-wrap summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent-ink);
  transition: transform 0.2s ease;
}

.faq-wrap details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-wrap details p {
  padding: 0 0 22px;
  color: var(--ink-2);
  font-size: 0.94rem;
}

/* ---------- contribute ---------- */

.contribute {
  padding-top: 0;
}

.contribute-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 42px 46px;
  border-radius: 26px;
  background:
    linear-gradient(115deg, rgba(226, 133, 43, 0.16), rgba(20, 136, 124, 0.08)),
    var(--surface);
  border: 1px solid rgba(226, 133, 43, 0.3);
  box-shadow: var(--shadow);
}

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

.contribute h2 {
  margin-top: 8px;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.contribute .section-sub {
  margin-top: 10px;
}

.contribute-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 44px 0 30px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.4);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.site-footer nav a:hover {
  color: var(--accent-ink);
}

.disclaimer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.disclaimer p:first-child {
  max-width: 62em;
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid,
  .download-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-shot {
    max-width: 720px;
  }

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

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

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

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .hero {
    padding: 40px 0 64px;
  }

  .section {
    padding: 68px 0;
  }

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

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

  .contribute-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 26px;
  }

  .chip-claim {
    left: 6px;
  }

  .chip-auto {
    right: 6px;
  }

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

@media (max-width: 520px) {
  .wrap {
    width: min(var(--wrap), 100% - 32px);
  }

  .release-banner-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 3px;
  }

  .release-banner p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
  }

  .cta-row .btn {
    width: 100%;
  }

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

  .float-chip {
    font-size: 0.76rem;
    padding: 7px 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
