:root {
  --bg: #f5efe4;
  --paper: rgba(255, 250, 242, 0.82);
  --ink: #16120f;
  --muted: #5f544c;
  --accent: #b83a28;
  --accent-deep: #86291c;
  --line: rgba(22, 18, 15, 0.12);
  --shadow: 0 24px 60px rgba(62, 33, 20, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei UI", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(184, 58, 40, 0.16), transparent 35%),
    radial-gradient(circle at 100% 0, rgba(255, 204, 112, 0.22), transparent 28%),
    linear-gradient(180deg, #f8f1e7 0%, #efe7db 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 36px;
}

.hero,
.section,
.footer {
  backdrop-filter: blur(12px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px;
}

.hero__badge,
.eyebrow,
.panel__label,
.feature-slab__tag,
.price-card__tier,
.footer__title {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__badge {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(184, 58, 40, 0.22);
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 24px;
  margin-top: 20px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 12px;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.06;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  max-width: 10ch;
}

.lede {
  max-width: 36rem;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.btn--primary {
  background: var(--accent);
  color: #fff9f4;
  box-shadow: 0 12px 30px rgba(184, 58, 40, 0.26);
}

.btn--ghost {
  border: 1px solid rgba(22, 18, 15, 0.12);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
}

.hero__points,
.signal-list,
.check-list,
.price-card ul {
  margin: 0;
  padding-left: 18px;
}

.hero__points {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.hero__panel {
  display: grid;
  gap: 16px;
}

.panel {
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
}

.panel--signal {
  background:
    linear-gradient(135deg, rgba(184, 58, 40, 0.96), rgba(118, 28, 18, 0.92));
  color: #fff9f4;
}

.panel--signal .panel__label {
  color: rgba(255, 250, 242, 0.72);
}

.signal-list {
  line-height: 1.95;
}

.panel--stats {
  display: grid;
  gap: 12px;
}

.stat {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(22, 18, 15, 0.12);
}

.stat:last-child {
  border-bottom: none;
}

.stat__value {
  font-size: 30px;
  font-weight: 800;
}

.stat__label {
  color: var(--muted);
}

.section {
  margin-top: 18px;
  padding: 28px;
}

.section__heading {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.section h2 {
  font-size: clamp(30px, 4vw, 46px);
  max-width: 14ch;
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.price-card,
.faq-card {
  min-height: 100%;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
}

.card h3,
.price-card__price,
.timeline__item h3,
.faq-card h3,
.feature-slab__note h3 {
  margin-top: 0;
}

.card p,
.faq-card p,
.timeline__item p,
.feature-slab__note p,
.price-card li {
  color: var(--muted);
  line-height: 1.8;
}

.feature-slab {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.feature-slab__copy,
.feature-slab__note {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.feature-slab__copy {
  background: rgba(255, 255, 255, 0.54);
}

.feature-slab__note {
  color: #fff9f4;
  background:
    linear-gradient(160deg, rgba(32, 25, 20, 0.9), rgba(94, 45, 23, 0.92));
}

.feature-slab__note p {
  color: rgba(255, 249, 244, 0.76);
}

.check-list {
  columns: 2;
  column-gap: 28px;
  line-height: 2;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  position: relative;
}

.price-card--featured {
  border-color: rgba(184, 58, 40, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 247, 239, 0.95), rgba(255, 240, 229, 0.84));
  transform: translateY(-6px);
}

.price-card__tier {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 12px;
}

.price-card__price {
  font-size: 34px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.contact-strip__label {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-strip__value {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.contact-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(22, 18, 15, 0.12);
}

.timeline__item:last-child {
  border-bottom: none;
}

.timeline__num {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(184, 58, 40, 0.1);
  color: var(--accent-deep);
  font-weight: 800;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.footer {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 24px 28px;
}

.footer__title {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 12px;
}

.footer__cta {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(22, 18, 15, 0.04);
  border: 1px solid rgba(22, 18, 15, 0.08);
  line-height: 1.8;
}

.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff9f4;
  box-shadow: 0 18px 40px rgba(118, 41, 28, 0.28);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.chat-launcher__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff3d8;
  box-shadow: 0 0 0 6px rgba(255, 243, 216, 0.18);
}

.lead-chat {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 39;
  width: min(390px, calc(100% - 24px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.lead-chat--open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lead-chat__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lead-chat__eyebrow {
  margin: 0 0 6px;
  color: var(--accent-deep);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-chat__close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lead-chat__messages {
  display: grid;
  gap: 10px;
  max-height: 180px;
  margin-top: 16px;
  overflow: auto;
  padding-right: 4px;
}

.bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 18px;
}

.bubble p {
  margin: 0;
  line-height: 1.65;
}

.bubble--assistant {
  justify-self: start;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(22, 18, 15, 0.08);
}

.bubble--user {
  justify-self: end;
  color: #fff9f4;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.lead-chat__quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-reply {
  padding: 10px 12px;
  border: 1px solid rgba(184, 58, 40, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-deep);
  font: inherit;
  cursor: pointer;
}

.lead-chat__form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.lead-chat__composer {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.lead-chat__field {
  display: grid;
  gap: 6px;
}

.lead-chat__field span,
.lead-chat__result-title,
.lead-chat__tip {
  color: var(--muted);
  font-size: 13px;
}

.lead-chat__field input,
.lead-chat__field textarea,
.lead-chat__field select,
.lead-chat__result textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(22, 18, 15, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
}

.lead-chat__field textarea,
.lead-chat__result textarea {
  resize: vertical;
}

.lead-chat__submit {
  min-width: 120px;
}

.lead-chat__result {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(22, 18, 15, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.lead-chat__result-title {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-weight: 700;
}

.lead-chat__result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.lead-chat__composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lead-chat__toggle-form {
  min-width: 120px;
}

.lead-chat__tip {
  margin: 10px 0 0;
}

@media (max-width: 980px) {
  .hero__grid,
  .feature-slab,
  .pricing-grid,
  .card-grid--three,
  .faq-grid,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .section h2 {
    max-width: none;
  }

  .contact-strip {
    display: grid;
  }

  .check-list {
    columns: 1;
  }

  .lead-chat {
    width: min(420px, calc(100% - 24px));
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    margin: 10px auto 24px;
  }

  .hero,
  .section,
  .footer {
    padding: 20px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .lede {
    font-size: 16px;
  }

  .timeline__item {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }

  .timeline__num {
    width: 46px;
    height: 46px;
  }

  .chat-launcher {
    right: 14px;
    bottom: 14px;
  }

  .lead-chat {
    right: 10px;
    bottom: 78px;
    width: calc(100% - 20px);
    padding: 16px;
    border-radius: 20px;
  }
}
