:root {
  color-scheme: light;
  --bg: #f7efe0;
  --paper: #fff4d8;
  --ink: #1f1309;
  --muted: #735d3a;
  --green: #0d4d35;
  --green-deep: #082f22;
  --leaf: #236b38;
  --gold: #f5d37d;
  --red: #b91f1a;
  --line: rgba(68, 42, 18, 0.2);
  --shadow: 0 24px 70px rgba(23, 18, 9, 0.22);
  --content: 1120px;
  --doc: 820px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", sans-serif;
  line-height: 1.65;
}

body:not([data-lang]) [lang-block],
body[data-lang="zh"] [lang-block="en"],
body[data-lang="en"] [lang-block="zh"],
body[data-lang="zh"] .en-only,
body[data-lang="en"] .zh-only {
  display: none !important;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 234, 178, 0.18);
  background: rgba(7, 36, 25, 0.76);
  backdrop-filter: blur(18px);
  color: #fff3cf;
}

.nav {
  width: min(var(--content), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  font-size: 18px;
  font-weight: 850;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: rgba(255, 243, 207, 0.82);
  font-size: 15px;
  font-weight: 750;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
}

.nav-links a:hover {
  color: #fff7df;
  background: rgba(255, 255, 255, 0.08);
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 238, 190, 0.26);
  border-radius: 10px;
  background: rgba(5, 24, 17, 0.4);
}

.language-switch button {
  appearance: none;
  border: 0;
  border-radius: 7px;
  padding: 7px 10px;
  background: transparent;
  color: rgba(255, 243, 207, 0.78);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: var(--gold);
  color: #2a1607;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--green-deep);
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 24, 17, 0.08), rgba(5, 24, 17, 0.22) 48%, rgba(5, 24, 17, 0.78)),
    linear-gradient(180deg, rgba(5, 24, 17, 0.2), transparent 58%, rgba(5, 24, 17, 0.36));
}

.hero-copy {
  position: relative;
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 130px 0 88px;
  color: #fff4d2;
}

.hero-copy > * {
  width: min(590px, 48vw);
  margin-left: auto;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 238, 190, 0.32);
  border-radius: 8px;
  background: rgba(9, 55, 37, 0.58);
  color: #ffe9a5;
  font-size: 14px;
  font-weight: 850;
}

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

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  margin-bottom: 22px;
  font-family: "New York", Georgia, "Songti SC", serif;
  font-size: clamp(62px, 8vw, 118px);
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.6vw, 58px);
}

.lead {
  margin-bottom: 0;
  color: rgba(255, 244, 210, 0.9);
  font-size: clamp(20px, 2.3vw, 29px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(255, 238, 190, 0.42);
  border-radius: 8px;
  background: rgba(7, 41, 28, 0.58);
  color: #fff4d2;
  text-decoration: none;
  font-weight: 850;
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff8e4;
}

.app-store-badge {
  display: inline-flex;
  line-height: 0;
}

.app-store-badge img {
  width: 180px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: transform .15s ease, box-shadow .15s ease;
}

.app-store-badge:hover img {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.section {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

.section-copy p,
.screenshot-section p,
.doc p {
  color: var(--muted);
  font-size: 18px;
}

.feature-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 0;
}

.features article {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 235, 0.72);
  box-shadow: 0 12px 38px rgba(82, 50, 17, 0.08);
}

.features strong {
  display: block;
  margin-bottom: 14px;
  color: var(--green-deep);
  font-size: 22px;
}

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

.screenshot-section {
  padding-top: 8px;
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.screenshot-row img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.doc-page {
  width: min(var(--doc), calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 84px;
}

.doc {
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.doc h1 {
  color: var(--green-deep);
  font-size: clamp(46px, 8vw, 76px);
}

.doc h2 {
  margin-top: 34px;
  color: var(--green-deep);
  font-size: 28px;
}

.footer {
  padding: 28px 20px 38px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .nav {
    min-height: 68px;
    align-items: flex-start;
    padding: 12px 0;
  }

  .brand span {
    display: none;
  }

  .nav-links {
    gap: 6px;
    font-size: 13px;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 24, 17, 0.22), rgba(5, 24, 17, 0.48) 46%, rgba(5, 24, 17, 0.88)),
      linear-gradient(90deg, rgba(5, 24, 17, 0.1), rgba(5, 24, 17, 0.38));
  }

  .hero-bg {
    object-position: 31% center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 92vh;
    padding-top: 108px;
  }

  .hero-copy > * {
    width: 100%;
    margin-left: 0;
  }

  h1 {
    font-size: clamp(54px, 15vw, 76px);
  }

  .lead {
    font-size: 20px;
  }

  .intro-band,
  .features,
  .screenshot-row {
    grid-template-columns: 1fr;
  }

  .feature-image {
    max-width: 360px;
    margin: 0 auto;
  }
}
