:root {
  --bg: #f6f1e8;
  --bg-deep: #efe7da;
  --ink: #1d1b18;
  --muted: #5e5a54;
  --accent: #b47432;
  --accent-deep: #8e5a25;
  --card: #ffffff;
  --border: rgba(29, 27, 24, 0.12);
  --shadow: 0 24px 60px rgba(29, 27, 24, 0.12);
  --radius: 24px;
  --font-sans: "Avenir Next", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #fbf7f1 0%, var(--bg) 45%),
    radial-gradient(circle at bottom right, #efe4d5 0%, var(--bg-deep) 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
}

html[data-lang="zh"] .en {
  display: none;
}

html[data-lang="en"] .zh {
  display: none;
}

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

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand__mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand__name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand__tag {
  font-size: 12px;
  color: var(--muted);
}

.nav__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(180, 116, 50, 0.12);
  color: var(--accent-deep);
}

.pill--muted {
  background: rgba(29, 27, 24, 0.06);
  color: var(--muted);
}

.lang-toggle {
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 27, 24, 0.3);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  margin: 0 0 16px;
  letter-spacing: 0.08em;
}

.hero .lead {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}

.lead.en {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.cta {
  margin: 24px 0 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(180, 116, 50, 0.22);
}

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

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

.note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.section-title {
  margin-bottom: 24px;
}

.section-title h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 8px;
}

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

.features {
  margin-bottom: 64px;
}

.cases {
  margin-bottom: 64px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 32px rgba(29, 27, 24, 0.08);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.gallery {
  margin-bottom: 72px;
}

.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.screen {
  margin: 0;
  scroll-snap-align: start;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(29, 27, 24, 0.08);
  box-shadow: var(--shadow);
  background: #fff;
}

.download {
  background: #fff;
  border-radius: 32px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.download__content h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
}

.footer {
  margin-top: 64px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.footer__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 27, 24, 0.2);
  padding-bottom: 2px;
}

.divider {
  color: rgba(29, 27, 24, 0.3);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(29, 27, 24, 0.9);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform-origin: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

@media (max-width: 980px) {
  .features__grid {
    grid-template-columns: 1fr;
  }

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

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }
}
