:root {
  --green: #12b84f;
  --green-deep: #128a41;
  --green-soft: #effaf3;
  --ink: #30343a;
  --muted: #64748b;
  --quiet: #94a3b8;
  --line: #e8ecea;
  --page: #f5f6f7;
  --surface: #ffffff;
  --container: 1040px;
  --header-height: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }

.skip-link { position: fixed; z-index: 50; left: 16px; top: -80px; padding: 9px 12px; border-radius: 6px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

.site-header { position: fixed; z-index: 20; top: 0; right: 0; left: 0; height: var(--header-height); border-bottom: 1px solid transparent; background: rgba(255,255,255,.95); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 3px 15px rgba(15,23,42,.035); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: min(var(--container), calc(100% - 48px)); height: 100%; margin: 0 auto; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 16px; font-weight: 500; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; background: var(--green); color: #fff; font-size: 15px; font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 14px; }
.site-nav > a:hover { color: var(--green-deep); }
.nav-cta { padding: 8px 13px; border: 1px solid #dcefe3; border-radius: 6px; background: var(--green-soft); color: var(--green-deep); font-weight: 500; }
.nav-toggle { display: none; width: 40px; height: 40px; padding: 8px; border: 0; background: transparent; color: var(--ink); }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; transition: transform 160ms ease, opacity 160ms ease; }

.hero { padding: calc(var(--header-height) + 62px) 0 58px; background: #f3fbf6; }
.hero-inner { display: grid; grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr); align-items: center; gap: 60px; }
.eyebrow, .mini-label { margin: 0 0 10px; color: var(--green-deep); font-size: 13px; font-weight: 500; }
.hero h1 { margin: 0; color: #243129; font-size: clamp(48px, 5.6vw, 64px); line-height: 1.08; font-weight: 600; letter-spacing: 0; text-wrap: balance; }
.hero-lead { margin: 15px 0 8px; color: #2f5b40; font-size: 23px; font-weight: 500; line-height: 1.4; }
.hero-detail { max-width: 460px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.82; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 16px; border-radius: 7px; font-size: 14px; font-weight: 500; transition: background-color 150ms ease, transform 150ms ease; }
.button:hover { transform: translateY(-1px); }
.primary-button { background: var(--green); color: #fff; box-shadow: 0 5px 12px rgba(18,184,79,.16); }
.primary-button:hover { background: var(--green-deep); }
.text-link { color: var(--green-deep); font-size: 14px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 8px 17px; margin-top: 29px; color: #4a765a; font-size: 12px; }
.trust-list span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--green); }

.app-preview { overflow: hidden; margin: 0; border: 1px solid #e2e8e4; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.08); }
.preview-bar { display: flex; align-items: center; gap: 5px; height: 29px; padding: 0 10px; border-bottom: 1px solid #edf0ee; background: #fbfcfb; }
.preview-bar span { width: 5px; height: 5px; border-radius: 50%; background: #d4ddd6; }
.preview-bar b { margin-left: 5px; color: var(--quiet); font-size: 10px; font-weight: 400; }
.app-preview img { width: 100%; height: auto; }
.hero-preview { width: min(100%, 260px); justify-self: center; }
.hero-preview img { transform-origin: top; }

.hero-preview,
.chat-preview,
.stats-preview,
.books-preview {
  position: relative;
  overflow: hidden;
  border: 7px solid #26312b;
  border-radius: 34px;
  padding: 18px 5px 6px;
  background: #26312b;
  box-shadow: 0 16px 34px rgba(30, 49, 38, 0.14);
}

.hero-preview::before,
.chat-preview::before,
.stats-preview::before,
.books-preview::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 50%;
  width: 46px;
  height: 8px;
  border-radius: 999px;
  background: #101713;
  transform: translateX(-50%);
}

.hero-preview .preview-bar,
.chat-preview .preview-bar,
.stats-preview .preview-bar,
.books-preview .preview-bar {
  display: none;
}

.hero-preview img,
.chat-preview img,
.stats-preview img,
.books-preview img {
  border-radius: 22px;
}

.quiet-band { border-bottom: 1px solid var(--line); background: #fff; }
.quiet-band-inner { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 50px; min-height: 112px; }
.quiet-band strong { display: block; color: var(--ink); font-size: 19px; font-weight: 500; }
.quiet-band p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.section { padding: 72px 0; }
.section-copy { max-width: 435px; }
h2 { margin: 0; color: #2c3430; font-size: clamp(30px, 3.5vw, 42px); line-height: 1.25; font-weight: 600; letter-spacing: 0; text-wrap: balance; }
.section-copy > p, .section-head > p { margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; text-wrap: pretty; }
.split-section { display: grid; grid-template-columns: minmax(260px,.78fr) minmax(440px,1.22fr); align-items: center; gap: 78px; }
.reverse { grid-template-columns: minmax(440px,1.12fr) minmax(260px,.88fr); }
.chat-preview { width: min(100%, 260px); justify-self: center; }
.chat-preview img { width: 100%; }
.feature-list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 94px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.feature-list span { color: var(--ink); font-size: 14px; font-weight: 500; }
.feature-list small { color: var(--muted); font-size: 13px; line-height: 1.5; }

.ledgers { background: var(--page); }
.section-head { display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 70px; }
.compact-head > p { margin-bottom: 3px; }
.ledger-layout { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(300px,1.28fr); align-items: center; gap: 48px; margin-top: 35px; }
.books-preview { width: min(100%,260px); max-width: none; max-height: none; justify-self: center; }
.ledger-notes { display: flex; flex-wrap: wrap; align-content: center; gap: 9px; }
.ledger-notes span { padding: 8px 11px; border: 1px solid #e1e8e3; border-radius: 6px; background: #fff; color: #527060; font-size: 13px; }

.insights { border-top: 1px solid #eff1f2; background: #fff; }
.stats-preview { width: min(100%, 260px); justify-self: center; }
.mini-grid { display: grid; gap: 1px; margin-top: 27px; border: 1px solid var(--line); background: var(--line); }
.mini-grid div { display: grid; grid-template-columns: 68px 1fr; gap: 8px; padding: 12px 14px; background: #fff; }
.mini-grid strong { color: var(--green-deep); font-size: 13px; font-weight: 500; }
.mini-grid span { color: var(--muted); font-size: 13px; }

.final-cta { padding: 58px 0; background: #f3fbf6; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.final-cta .eyebrow { margin-bottom: 8px; }
.final-cta h2 { font-size: clamp(28px,3.2vw,38px); }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 82px; color: var(--muted); font-size: 12px; }
.footer-inner p { margin: 0; }
.footer-inner > a { justify-self: end; color: var(--green-deep); }

@media (max-width: 760px) {
  .container, .header-inner { width: min(var(--container), calc(100% - 36px)); }
  .site-nav { position: fixed; top: var(--header-height); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 10px 18px 18px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 10px 18px rgba(15,23,42,.06); }
  .site-nav.is-open { display: flex; flex-direction: column; }
  .site-nav a { padding: 12px 0; }
  .nav-cta { margin-top: 6px; padding: 10px 13px !important; text-align: center; }
  .nav-toggle { display: block; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero { padding: calc(var(--header-height) + 40px) 0 38px; }
  .hero-inner, .split-section, .reverse, .section-head, .ledger-layout, .quiet-band-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: 42px; }
  .hero-lead { margin-top: 12px; font-size: 20px; }
  .hero-detail { font-size: 14px; }
  .hero-preview, .chat-preview, .stats-preview, .books-preview { width: min(100%, 270px); }
  .quiet-band-inner { min-height: 0; padding: 27px 0; gap: 10px; }
  .section { padding: 54px 0; }
  h2 { font-size: 29px; }
  .section-copy { max-width: none; }
  .feature-list li { grid-template-columns: 84px 1fr; gap: 10px; }
  .books-preview { max-height: none; }
  .ledger-notes { gap: 8px; }
  .final-cta { padding: 45px 0; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; gap: 22px; }
  .footer-inner { grid-template-columns: 1fr auto; min-height: 70px; }
  .footer-inner p { display: none; }
}

@media (max-width: 390px) {
  .hero-actions { gap: 16px; }
  .trust-list { gap: 7px 12px; }
  .feature-list li { grid-template-columns: 78px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
