:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-soft: #efeadd;
  --border: #e3dccb;
  --ink: #1e2421;
  --ink-muted: #59635d;
  --accent: #2b6b4f;
  --accent-dark: #20523c;
  --accent-soft: #e6f1eb;
  --wood: #d7a659;
  --wood-soft: #f7ebd4;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 8px 28px rgba(30, 36, 33, 0.06);
  --shadow-phone: 0 18px 44px rgba(30, 36, 33, 0.14);
  --max-w: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Language visibility */
html[data-lang="zh"] [data-i18n="en"],
html[data-lang="en"] [data-i18n="zh"] {
  display: none !important;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
}

.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 244, 238, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 500;
}

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

.nav a:hover,
.nav a.active {
  color: var(--accent);
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn.is-active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Hero */
.hero {
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  margin: 0 0 26px;
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 540px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.12s ease, background 0.15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-soft);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

.pill-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(300px, 82vw);
  border-radius: 34px;
  overflow: hidden;
  background: #141815;
  padding: 9px;
  box-shadow: var(--shadow-phone);
  border: 1px solid rgba(30, 36, 33, 0.12);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

/* Sections */
.section {
  padding: 44px 0;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 28px;
  color: var(--ink-muted);
  font-size: 16px;
  max-width: 680px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14.5px;
}

/* Screenshots strip */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.shot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-card);
}

.shot-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(30, 36, 33, 0.06);
}

.shot-caption {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  padding: 0 4px 4px;
}

/* Privacy banner */
.trust-banner {
  background: linear-gradient(135deg, #255b43 0%, #2f7556 100%);
  color: #f6f4ee;
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.trust-banner h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.trust-banner p {
  margin: 0;
  color: rgba(246, 244, 238, 0.88);
  max-width: 600px;
}

.trust-banner .btn-secondary {
  background: #ffffff;
  color: var(--accent-dark);
  border-color: transparent;
}

/* Prose / legal / support pages */
.page-hero {
  padding: 44px 0 20px;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.6vw, 38px);
  letter-spacing: -0.02em;
}

.page-meta {
  color: var(--ink-muted);
  font-size: 14px;
  margin: 0;
}

.prose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
}

.prose-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--ink);
}

.prose-card h3 {
  margin: 22px 0 8px;
  font-size: 16.5px;
  color: var(--ink);
}

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

.prose-card ul,
.prose-card ol {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--ink-muted);
}

.prose-card li {
  margin-bottom: 8px;
}

.prose-card strong {
  color: var(--ink);
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.faq-item p {
  margin: 0;
  font-size: 14.5px;
}

.contact-box {
  background: var(--wood-soft);
  border: 1px solid #e7d1a4;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 10px;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* Responsive */
@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .nav {
    gap: 12px;
  }
  .prose-card {
    padding: 22px 20px;
  }
}
