:root {
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --inset: #EFECE5;
  --ink: #171614;
  --muted: #625D55;
  --border: #E5E0D7;
  --accent: #C26D27;
  --accent-ink: #944510;
  --green: #2D7A4F;
  --cold: #3D6B8E;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 246, 242, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.brand img {
  border-radius: 9px;
  border: 1px solid var(--border);
}
.brand-sub { color: var(--muted); font-weight: 500; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--inset);
  border: 1px solid var(--border);
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, opacity 0.14s ease, background 0.18s ease;
}
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 8px 14px; font-size: 0.84rem; }
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { opacity: 0.9; }
.btn-accent { background: var(--accent); color: #FFFFFF; }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--inset); }

/* Hero */
.hero {
  padding: 58px 0 46px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 42px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: rgba(194, 109, 39, 0.10);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
h1 {
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  line-height: 1.13;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.accent-text { color: var(--accent-ink); }
.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.85rem;
  color: var(--muted);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-check {
  color: var(--green);
  font-weight: 700;
}

/* Interactive Jar Demo Card */
.jar-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 46px rgba(23, 22, 20, 0.07);
  text-align: center;
  user-select: none;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.jar-stage.is-chilled {
  background: #F1F6FA;
  border-color: rgba(61, 107, 142, 0.28);
}
.jar-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
.jar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--ink);
}
.jar-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.jar-stage.is-peaked .jar-badge-dot { background: var(--green); }
.jar-stage.is-chilled .jar-badge-dot { background: var(--cold); }
.jar-status-title {
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 4px 0 2px;
}
.jar-status-sub {
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin: 0 0 12px;
}
.jar-interactive {
  position: relative;
  width: 210px;
  height: 284px;
  margin: 0 auto 12px;
  cursor: grab;
  touch-action: none;
}
.jar-interactive:active { cursor: grabbing; }
.jar-lid {
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 112px; height: 20px;
  border-radius: 7px;
  background: linear-gradient(180deg, #8B847B, #57514A);
  box-shadow: 0 3px 8px rgba(0,0,0,0.16);
}
.jar-neck {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 18px;
  border-radius: 4px;
  background: var(--inset);
  border: 1px solid var(--border);
}
.jar-vessel {
  position: absolute;
  top: 38px; left: 50%;
  transform: translateX(-50%);
  width: 158px; height: 236px;
  border-radius: 28px;
  overflow: hidden;
  border: 1.5px solid rgba(23, 22, 20, 0.22);
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(246,239,227,0.85));
}
.jar-stage.is-peaked .jar-vessel {
  border-color: rgba(45, 122, 79, 0.65);
  box-shadow: 0 0 22px rgba(45, 122, 79, 0.16);
}
.jar-stage.is-chilled .jar-vessel {
  border-color: rgba(61, 107, 142, 0.45);
}
#demoCanvas {
  width: 100%;
  height: 100%;
  display: block;
}
.jar-band {
  position: absolute;
  top: 202px; left: 50%;
  transform: translateX(-50%);
  width: 168px; height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #E08434, #B55A19);
  box-shadow: 0 2px 6px rgba(194, 109, 39, 0.35);
  pointer-events: none;
}
.jar-tape {
  position: absolute;
  top: 52px; left: 50%;
  transform: translateX(-50%) rotate(-1.8deg);
  padding: 3px 11px;
  border-radius: 3px;
  background: rgba(241, 230, 207, 0.94);
  border: 1px solid rgba(184, 166, 132, 0.55);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2F261D;
  pointer-events: none;
}
.jar-readout {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--border);
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.jar-stage.is-peaked .jar-readout { color: var(--green); }
.jar-demo-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chip-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
}
.chip-btn:hover { background: var(--inset); }
.jar-hint {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 10px 0 0;
}

/* Sections */
section { padding: 48px 0; }
.section-head {
  margin-bottom: 26px;
  max-width: 640px;
}
h2 {
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.section-sub { color: var(--muted); margin: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 8px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}

/* Pricing */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.pricing-card.pro {
  background: var(--ink);
  color: #F7F6F2;
  border-color: var(--ink);
}
.pricing-card.pro p,
.pricing-card.pro li { color: rgba(247, 246, 242, 0.78); }
.price-line {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 8px 0 4px;
}
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}
.pricing-list li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}
.pricing-card.pro .pricing-list li::before { color: #78C59A; }

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}
details.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 18px;
}
details.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
details.faq p {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Legal / Subpages */
.legal-main {
  max-width: 720px;
  margin: 44px auto 64px;
  padding: 0 22px;
}
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.legal-card h1 { font-size: 1.9rem; margin-bottom: 12px; }
.legal-card h2 { font-size: 1.15rem; margin-top: 24px; margin-bottom: 8px; }
.legal-card p, .legal-card li { color: var(--muted); font-size: 0.95rem; }
.legal-card a { color: var(--accent-ink); text-decoration: underline; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.86rem;
}
.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;
}
.footer-links a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding-top: 32px; }
}
