/* ============================================================
   Bergland & Gao, LLC — Design System
   Editorial / technology-inspired visual system
   ============================================================ */

:root {
  --ink: #1e3054;          /* deep navy — primary (clearly blue, not black) */
  --ink-soft: #2a3f66;
  --ink-mute: #4a5a78;
  --paper: #f2f5f9;        /* very light blue-gray background */
  --paper-2: #e8edf3;
  --white: #ffffff;
  --teal: #34685e;         /* muted teal accent */
  --teal-deep: #27514a;
  --teal-tint: #e4ece8;
  --gold: #b18e58;         /* restrained warm metallic, use sparingly */
  --line: #dce3eb;
  --text: #2b3547;
  --muted: #5d6779;
  --radius: 14px;
  --shadow: 0 10px 40px -12px rgba(30, 48, 84, 0.12);
  --font-sans: "Manrope", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Source Serif 4", "Noto Serif SC", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(30, 48, 84, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text);
  line-height: 1.65;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.28; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.01em; }
h3 { font-size: 1.06rem; }
.serif-accent { font-family: var(--font-sans); font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 10px;
}

.lead { font-size: 1.02rem; color: var(--muted); max-width: 46em; }

.section { padding: 56px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--ink); color: #cfd6e2; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.section-dark .section-head p { color: #9aa6ba; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 245, 249, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.brand { display: flex; align-items: center; color: var(--ink); }
.brand-logo { height: 54px; width: auto; display: block; }
.brand-mark {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 1.12rem; letter-spacing: 0.01em; color: var(--ink); line-height: 1.2;
}
.brand-mark .amp { color: var(--gold); font-style: italic; padding: 0 1px; }
.brand-sub {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted);
}

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav .lang-switch-mobile { display: none; }
.main-nav a {
  color: var(--ink-mute); font-weight: 600; font-size: 0.88rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); border-bottom-color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: 18px; }

/* Language switcher */
.lang-switch {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600;
}
.lang-switch a { color: var(--muted); padding: 2px 4px; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch .current {
  color: var(--ink); padding: 2px 4px;
  border-bottom: 2px solid var(--gold);
}
.lang-switch .divider { color: var(--line); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700; font-size: 0.88rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); color: var(--white); transform: translateY(-1px); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,0.5); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper-2); color: var(--ink); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-deep); color: var(--white); }

/* Mobile nav */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 8px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  margin: 4px auto; transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--ink) 0%, #253c68 55%, #2b4a68 100%);
  color: #d7dde8;
  overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 68px 0 76px;
  max-width: 660px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero .lead { color: #a8b3c7; font-size: 1.02rem; margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.98rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 14px;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); flex-shrink: 0; }
.hero-eyebrow-sub {
  display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #9db0cc; margin: -4px 0 18px;
}
.trust-highlight {
  text-align: center; padding: 14px 0 0; margin: 0;
  color: var(--gold); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em;
}
.hero-art {
  position: absolute; right: -40px; top: 0; bottom: 0; width: 52%;
  opacity: 0.45; pointer-events: none; z-index: 1;
}

/* Trust bar */
.trust-bar { background: #1a2a4a; }
.trust-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 12px; padding: 18px 0;
}
.trust-item { text-align: center; }
.trust-item strong { display: block; color: var(--white); font-size: 0.88rem; }
.trust-item span { font-size: 0.72rem; color: #8b98ae; }

/* ---------- Cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.9rem; }
.card ul { list-style: none; margin-top: 12px; }
.card ul li {
  padding: 5px 0 5px 24px; position: relative;
  font-size: 0.88rem; color: var(--text);
  border-top: 1px dashed var(--line);
}
.card ul li:first-child { border-top: none; }
.card ul li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 11px; height: 11px;
  border: 1.5px solid var(--teal); border-radius: 50%;
  background: var(--teal-tint);
}
.card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--teal-tint); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.card-icon svg { width: 21px; height: 21px; }

.stage-card { border-top: 3px solid var(--teal); }
.stage-num {
  font-family: var(--font-serif); font-size: 0.85rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 8px; display: block;
}

/* Pain-point comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.compare-col { border-radius: var(--radius); padding: 26px 26px; }
.compare-before { background: var(--paper-2); border: 1px solid var(--line); }
.compare-after { background: var(--ink); color: #cfd6e2; }
.compare-after h3 { color: var(--white); }
.compare-col h3 { margin-bottom: 6px; }
.compare-col ul { list-style: none; margin-top: 18px; }
.compare-col li { padding: 6px 0 6px 28px; position: relative; font-size: 0.9rem; }
.compare-before li::before {
  content: "\00d7"; position: absolute; left: 4px; color: #b0682f; font-weight: 700;
}
.compare-after li::before {
  content: "\2713"; position: absolute; left: 4px; color: var(--gold); font-weight: 700;
}

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 22px 20px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step-num {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
  color: var(--teal); opacity: 0.9; line-height: 1; margin-bottom: 10px;
}
.step h3 { font-size: 0.98rem; margin-bottom: 6px; }
.step p { font-size: 0.86rem; color: var(--muted); }

/* Scenario cards */
.scenario {
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 20px 20px;
}
.scenario .tag {
  display: inline-block; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-tint);
  border-radius: 999px; padding: 3px 12px; margin-bottom: 12px;
}
.scenario p { font-size: 0.88rem; color: var(--text); }

/* Founder */
.founder { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.founder-photo {
  aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--paper-2), var(--teal-tint));
  border: 1px dashed var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--muted); text-align: center; padding: 24px; gap: 10px;
  font-size: 0.88rem;
}
.founder-photo.has-photo { border: 1px solid var(--line); padding: 0; background: none; overflow: hidden; box-shadow: var(--shadow); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-creds { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.cred {
  font-size: 0.76rem; font-weight: 700; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 13px;
}

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 15px 50px 15px 22px; font-weight: 700; color: var(--ink);
  position: relative; font-size: 0.94rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--teal);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--muted); font-size: 0.9rem; }

/* ---------- WeChat contact ---------- */
.wechat-section {
  background: linear-gradient(165deg, var(--ink) 0%, #24395f 60%, #2b4a66 100%);
  color: #cfd6e2;
  border-radius: 18px;
  padding: 44px 44px;
  display: grid; grid-template-columns: 1fr 290px; gap: 44px; align-items: center;
}
.wechat-section h2 { color: var(--white); margin-bottom: 16px; }
.wechat-section .checklist { list-style: none; margin: 20px 0; }
.wechat-section .checklist li { padding: 4px 0 4px 26px; position: relative; font-size: 0.9rem; }
.wechat-section .checklist li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--gold);
}
.qr-card {
  background: var(--white); border-radius: 16px; padding: 28px;
  text-align: center; color: var(--text);
}
/* Real WeChat QR code image */
.qr-img { width: 100%; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 16px; }
.modal .qr-img { max-width: 260px; margin: 0 auto 16px; }

.qr-placeholder {
  aspect-ratio: 1/1; border: 2px dashed var(--teal);
  border-radius: 12px; background: var(--teal-tint);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--teal-deep); font-size: 0.85rem; font-weight: 600;
  padding: 20px; margin-bottom: 18px;
}
.qr-placeholder svg { width: 44px; height: 44px; opacity: 0.7; }
.wechat-id {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 0.95rem; flex-wrap: wrap;
}
.wechat-id code {
  background: var(--paper-2); border-radius: 6px; padding: 3px 10px;
  font-size: 0.9rem; color: var(--ink);
}
.copy-btn {
  border: 1px solid var(--line); background: var(--white);
  border-radius: 6px; padding: 3px 10px; font-size: 0.8rem;
  cursor: pointer; color: var(--muted); font-family: inherit;
}
.copy-btn:hover { color: var(--ink); border-color: var(--ink-mute); }
.qr-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

/* WeChat modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(30, 48, 84, 0.55);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: 18px; padding: 40px 36px 32px;
  max-width: 400px; width: 100%; position: relative; text-align: center;
}
.modal h3 { margin-bottom: 8px; }
.modal p { font-size: 0.92rem; color: var(--muted); margin-bottom: 20px; }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 1.5rem; cursor: pointer;
  color: var(--muted); line-height: 1;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(150deg, var(--teal-deep), var(--ink) 70%);
  color: #d3dae5; text-align: center;
  padding: 60px 24px;
}
.final-cta h2 { color: var(--white); margin-bottom: 18px; }
.final-cta p { max-width: 600px; margin: 0 auto 26px; color: #a9b4c8; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: #1a2a4a; color: #8b98ae; padding: 44px 0 28px; font-size: 0.84rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.footer-brand .brand-mark { color: var(--white); font-size: 1.15rem; }
.footer-brand p { margin-top: 14px; max-width: 30em; font-size: 0.86rem; }
.site-footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #8b98ae; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.8rem;
}
.footer-disclaimer { font-size: 0.78rem; margin-top: 18px; color: #6b7890; max-width: 62em; }

/* ---------- Services page ---------- */
.service-block {
  display: grid; grid-template-columns: 280px 1fr; gap: 36px;
  padding: 38px 0; border-top: 1px solid var(--line);
}
.service-block:first-of-type { border-top: none; }
.service-block .sticky-side { position: sticky; top: 100px; align-self: start; }
.service-block h2 { font-size: 1.25rem; margin-bottom: 8px; }
.service-meta { font-size: 0.84rem; color: var(--muted); }
.service-detail h3 { font-size: 0.88rem; color: var(--teal-deep); letter-spacing: 0.04em; margin: 20px 0 8px; }
.service-detail h3:first-child { margin-top: 0; }
.service-detail ul { list-style: none; }
.service-detail li { padding: 4px 0 4px 22px; position: relative; font-size: 0.9rem; }
.service-detail li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 7px; height: 7px; background: var(--gold); border-radius: 2px;
}
.outcome-box {
  background: var(--teal-tint); border-radius: 10px;
  padding: 18px 22px; margin-top: 24px; font-size: 0.95rem; color: var(--teal-deep);
}
.service-cta { margin-top: 22px; }

/* Page hero (interior pages) */
.page-hero { background: linear-gradient(160deg, var(--ink), #29406b); color: #b9c2d2; padding: 46px 0 40px; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; font-size: clamp(1.45rem, 2.8vw, 2rem); }
.page-hero p { max-width: 46em; color: #a0abc0; }

/* Insights */
.insight-card { display: flex; flex-direction: column; gap: 10px; color: inherit; }
a.insight-card:hover { color: inherit; }
a.insight-card:hover h3 { color: var(--teal-deep); }
.insight-card .tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold);
  border-radius: 999px; padding: 2px 12px;
}
.read-more { font-size: 0.84rem; font-weight: 700; color: var(--teal); }

/* Insight article pages */
.article { max-width: 800px; margin: 0 auto; padding: 40px 24px 56px; }
.article h2 { font-size: 1.12rem; margin: 30px 0 10px; }
.article h3 { font-size: 0.98rem; margin: 20px 0 8px; color: var(--teal-deep); }
.article p { margin-bottom: 12px; font-size: 0.95rem; }
.article ul { margin: 8px 0 16px 22px; }
.article li { margin-bottom: 6px; font-size: 0.92rem; }
.article .article-note { background: var(--teal-tint); border-radius: 10px; padding: 14px 18px; font-size: 0.92rem; color: var(--teal-deep); margin: 18px 0; }
.article-meta { font-size: 0.8rem; color: #a0abc0; margin-top: 10px; }
.article-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 2px 12px; margin-bottom: 12px; }
.article-footer { max-width: 800px; margin: 0 auto; padding: 0 24px 56px; text-align: center; }
.article-footer .btn { margin: 6px; }
.article-disclaimer { max-width: 800px; margin: 0 auto 24px; padding: 0 24px; font-size: 0.8rem; color: var(--muted); }

.coming-soon { font-size: 0.8rem; color: var(--muted); font-style: italic; }

/* Legal pages */
.legal-body { padding: 44px 0 64px; }
.legal-body h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.legal-body p { margin-bottom: 14px; color: var(--muted); }
.todo-note {
  background: #fdf6e8; border: 1px dashed var(--gold); border-radius: 10px;
  padding: 16px 20px; font-size: 0.9rem; color: #7a6233; margin: 24px 0;
}

/* Reveal animation (subtle) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 0.82rem; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 340px; }
  .wechat-section { grid-template-columns: 1fr; padding: 44px 32px; }
  .service-block { grid-template-columns: 1fr; gap: 20px; }
  .service-block .sticky-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 40px 0; }
  .grid-2, .grid-3, .grid-4, .compare, .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 48px 0 56px; }
  .hero-art { display: none; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav .lang-switch-mobile { display: flex; padding: 14px 0 4px; border-bottom: none; }
  .header-actions .lang-switch { display: none; }
  .header-actions .btn { padding: 9px 18px; font-size: 0.88rem; }
}
