:root {
  --bg: #14100d;
  --bg-soft: #1d1814;
  --bg-alt: #faf6f2;
  --surface: #ffffff;
  --text: #1a1410;
  --text-soft: #5b4a3f;
  --text-mute: #8b7a6e;
  --border: #ece4dc;
  --primary: #c47a5a;
  --primary-strong: #9c5536;
  --primary-soft: #f6e6dc;
  --accent: #d8a380;
  --warn: #e0b15a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(60, 36, 20, 0.06);
  --shadow-md: 0 12px 30px rgba(60, 36, 20, 0.10);
  --shadow-lg: 0 24px 60px rgba(60, 36, 20, 0.16);
  --max: 1180px;
  --max-narrow: 820px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(196, 122, 90, 0.40);
}
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; padding: 16px; font-size: 16px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(230, 232, 239, 0.6);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #0b0d12;
  padding: 4px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(15, 19, 32, 0.18);
}
.brand-logo-dark {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}
.brand-mark { color: var(--primary); font-size: 18px; }
.brand-name { font-size: 17px; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(196,122,90,0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 30%, rgba(216,163,128,0.14), transparent 60%),
    linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  margin: 0 0 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.grad {
  background: linear-gradient(90deg, #c47a5a 0%, #e8b894 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 17px; color: var(--text-soft); margin: 0 0 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-meta {
  display: flex;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-meta li { display: flex; flex-direction: column; gap: 2px; }
.hero-meta strong { font-size: 22px; font-weight: 700; color: var(--text); }
.hero-meta span { font-size: 13px; color: var(--text-mute); }

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(196,122,90,0.5), rgba(216,163,128,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.chat-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; }
.chat-row p { margin: 0; font-size: 15px; }
.chat-q { border-bottom: 1px dashed var(--border); }
.chat-q .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-mute); margin-top: 8px; flex: none;
}
.chat-q p { color: var(--text-soft); font-style: italic; }
.chat-a { padding-top: 18px; }
.ai-tag {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  flex: none;
  margin-top: 2px;
}
.chat-a p { color: var(--text); line-height: 1.7; }
.chat-a mark {
  background: linear-gradient(180deg, transparent 60%, rgba(196,122,90,0.28) 60%);
  color: var(--primary-strong);
  font-weight: 700;
  padding: 0 2px;
}
.chat-source {
  border-top: 1px dashed var(--border);
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-mute);
  flex-wrap: wrap;
}
.chat-source a {
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-soft);
}

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg); color: #fff; }
.section-cta { padding: 80px 0 110px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head-light { color: #fff; }
.section-head-light .lead { color: rgba(255,255,255,0.72); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.lead { font-size: 16.5px; color: var(--text-soft); margin: 0; }

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

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196,122,90,0.3);
}
.card-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 14px;
}
.card h3 { font-size: 20px; margin: 0 0 10px; font-weight: 700; }
.card p { color: var(--text-soft); margin: 0; font-size: 15px; }

/* Service */
.service-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.service-item h3 { font-size: 22px; margin: 0 0 10px; font-weight: 700; }
.service-item > p { color: var(--text-soft); margin: 0 0 16px; font-size: 15px; }
.service-item ul { padding: 0; list-style: none; margin: 0; border-top: 1px dashed var(--border); }
.service-item li {
  font-size: 14.5px;
  color: var(--text-soft);
  padding: 10px 0 10px 22px;
  position: relative;
}
.service-item li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.steps h3 { font-size: 17px; margin: 0 0 8px; font-weight: 700; }
.steps p { color: var(--text-soft); font-size: 14.5px; margin: 0; }

/* Stats */
.stats { gap: 16px; }
.stats > div {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
}
.stats strong {
  display: block;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 800;
  background: linear-gradient(90deg, #e8b894, #c47a5a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.stats span { font-size: 13.5px; color: rgba(255,255,255,0.7); }

/* Cases */
.case {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.case-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  margin-bottom: 16px;
}
.case h3 { font-size: 19px; margin: 0 0 10px; font-weight: 700; }
.case p { color: var(--text-soft); font-size: 14.5px; margin: 0 0 20px; flex: 1; }
.case-metric {
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  font-size: 13.5px;
  color: var(--text-mute);
}
.case-metric strong {
  font-size: 24px;
  color: var(--primary);
  margin-right: 6px;
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 24px;
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: rgba(196,122,90,0.45); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  padding-right: 36px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq p {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 15px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

/* CTA */
.cta-card {
  background: linear-gradient(135deg, #2a1f17 0%, #6e3d23 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-card::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -120px;
  top: -160px;
  background: radial-gradient(circle, rgba(216,163,128,0.40), transparent 60%);
  pointer-events: none;
}
.cta-text h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 14px; line-height: 1.25; font-weight: 800; }
.cta-text p { color: rgba(255,255,255,0.78); font-size: 15.5px; margin: 0; }
.cta-form { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.cta-form label { display: flex; flex-direction: column; gap: 6px; }
.cta-form span { font-size: 13px; color: rgba(255,255,255,0.7); }
.cta-form input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.4); }
.cta-form input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}
.cta-note { font-size: 12.5px; color: rgba(255,255,255,0.55); margin: 4px 0 0; }

/* Footer */
.footer { background: #14100d; color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer .brand-name { color: #fff; }
.footer-desc { font-size: 14px; margin: 14px 0 0; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h4 { color: #fff; font-size: 14px; margin: 0 0 14px; font-weight: 600; }
.footer-cols a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  padding: 4px 0;
  transition: color 0.15s ease;
}
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .cta-card { grid-template-columns: 1fr; padding: 36px 28px; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .hero-meta { gap: 22px; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
