@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Figtree:wght@400;500;600;700&display=swap');

/* ── Kept brand v1 — Aubergine & Gold on warm paper ───────────────────────── */
:root {
  --bg:            #f4eee2;
  --surface:       #faf5ec;
  --surface-soft:  #efe6da;
  --border:        #e2d8c6;
  --border-soft:   #ece3d5;
  --text:          #2c2330;
  --text-muted:    #6f6173;
  --text-faint:    #76697d;
  --gold:          #b08828;
  --gold-hover:    #8f6c1c;
  --gold-soft:     #efe2c9;
  --aubergine:     #34233a;
  --aubergine-deep:#241829;
  --cream-line:    #f1e9de;

  --serif: 'Cormorant Garamond', ui-serif, Georgia, 'Times New Roman', serif;
  --ui:    'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ui);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
.gold { color: var(--gold); }

/* Language toggle: 繁體 shown by default; .en-mode flips to English */
.en { display: none; }
html.en-mode .zh { display: none; }
html.en-mode .en { display: inline; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ui); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: all .25s cubic-bezier(.16,1,.3,1);
}
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 17px 38px; font-size: 1.06rem; }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 2px 12px rgba(176,136,40,.25); }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(176,136,40,.32); }
.btn-ghost { color: var(--text); border-color: var(--border); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: rgba(244,238,226,.82);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border-soft);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.mark { width: 38px; height: 38px; border-radius: 9px; display: block; }
.brand-name { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; letter-spacing: .01em; }
.brand-name em { color: var(--gold); font-style: normal; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  font-family: var(--ui); font-weight: 600; font-size: .85rem; color: var(--text-muted);
  background: transparent; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; transition: all .2s;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(165deg, var(--aubergine) 0%, var(--aubergine-deep) 100%);
  color: #f4ecdf; padding: 116px 0 124px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(176,136,40,.16), transparent 46%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow { font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.1rem); color: #fbf6ec; margin-bottom: 28px; font-weight: 600; }
.lede { font-size: clamp(1.08rem, 2vw, 1.28rem); color: #cdbfc9; max-width: 640px; margin-bottom: 40px; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-ghost { color: #f4ecdf; border-color: rgba(244,236,223,.32); }
.hero .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── Section scaffolding ──────────────────────────────────────────────────── */
section { padding: 92px 0; }
.kicker { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.section-title { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 52px; max-width: 780px; }

/* ── DeepSeek band ────────────────────────────────────────────────────────── */
.band-deepseek { background: var(--surface); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.band-deepseek h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 26px; }
.band-body { font-size: 1.12rem; color: var(--text-muted); max-width: 720px; margin-bottom: 34px; line-height: 1.7; }
.trust-points { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.trust-points li {
  font-size: .92rem; font-weight: 600; color: var(--gold-hover);
  background: var(--gold-soft); border: 1px solid #e6d4a8; border-radius: 999px; padding: 9px 18px;
}

/* ── Offers ───────────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 36px 30px; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(40,30,20,.05);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(52,35,58,.12); }
.card-feature { border-color: var(--gold); border-top: 4px solid var(--gold); position: relative; }
.badge {
  position: absolute; top: -13px; left: 30px; background: var(--gold); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: 5px 13px; border-radius: 999px;
}
.card h3 { font-size: 1.74rem; margin-bottom: 6px; }
.card-for { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; margin-bottom: 18px; }
.card p { color: var(--text-muted); margin-bottom: 18px; }
.card .price { margin-top: auto; margin-bottom: 0; font-family: var(--serif); font-size: 1.28rem; font-weight: 600; color: var(--text); }

/* ── Bridge band ──────────────────────────────────────────────────────────── */
.band-bridge { background: linear-gradient(160deg, var(--aubergine) 0%, var(--aubergine-deep) 100%); color: #f4ecdf; text-align: center; }
.band-bridge h2 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); color: #fbf6ec; margin-bottom: 26px; }
.band-bridge p { font-size: 1.14rem; color: #cdbfc9; max-width: 680px; margin: 0 auto; line-height: 1.72; }

/* ── How it works ─────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 30px; }
.step-n { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--gold); display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); }

/* ── Final CTA ────────────────────────────────────────────────────────────── */
.cta { background: var(--surface); border-top: 1px solid var(--border-soft); text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 16px; }
.cta p { font-size: 1.14rem; color: var(--text-muted); margin-bottom: 34px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { background: var(--aubergine-deep); color: #b9a9bf; padding: 30px 0; font-size: .9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center; }
.footer-dot { color: var(--gold); }

/* ── Reveal animation ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .cards, .steps { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 84px 0 88px; }
}

/* ── Inquiry form ─────────────────────────────────────────────────────────── */
.form-or {
  margin: 28px auto 18px;
  font-size: 1rem;
  color: var(--text-faint);
}
.inquiry {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.inquiry .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--ui);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text-muted);
}
.inquiry input,
.inquiry textarea {
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s ease, background .15s ease;
}
.inquiry input:focus,
.inquiry textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
}
.inquiry textarea { resize: vertical; min-height: 96px; }
.inquiry .btn { margin-top: 6px; align-self: stretch; }
.inquiry .btn:disabled { opacity: .55; cursor: default; }

/* honeypot — visually + a11y hidden, still in the DOM for bots */
.inquiry .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.2em;
  margin: 4px 0 0;
  font-family: var(--ui);
  font-size: .92rem;
  text-align: center;
}
.form-status.is-ok  { color: var(--gold-hover); }
.form-status.is-err { color: #a23a3a; }

/* ── Live demo section ──────────────────────────────────────────────────────── */
.demo { background: var(--bg); border-top: 1px solid var(--border-soft); text-align: center; }
.demo .kicker, .demo .section-title { text-align: center; }
.demo .section-title { margin-left: auto; margin-right: auto; margin-bottom: 18px; }
.demo-sub {
  max-width: 60ch; margin: 0 auto 36px; color: var(--text-muted);
  font-size: 1.08rem; line-height: 1.55;
}
.demo-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }

/* Channel segmented control */
.channel-toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: 999px;
}
.channel-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ui); font-weight: 600; font-size: .95rem;
  color: var(--text-muted); background: transparent;
  border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.channel-btn.is-active { background: var(--aubergine); color: #f4ecdf; }
.channel-btn .ch-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ch-dot--wechat { background: #07c160; }
.ch-dot--whatsapp { background: #25d366; }

/* Scenario chips */
.demo-scenarios { width: 100%; max-width: 460px; }
.demo-scenarios__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px;
}
.demo-scenarios__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.demo-chip {
  font-family: var(--ui); font-weight: 600; font-size: .9rem;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 16px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.demo-chip:hover { border-color: var(--gold); transform: translateY(-1px); }
.demo-chip.is-active { background: var(--gold); border-color: var(--gold); color: #fff; }
.demo-foot { margin: 8px auto 0; max-width: 52ch; font-size: .82rem; color: var(--text-faint); }

/* ── Device frame ───────────────────────────────────────────────────────────── */
.dphone {
  position: relative; width: 300px; max-width: 86vw;
  aspect-ratio: 300 / 616; background: #0b0d14; border-radius: 42px; padding: 9px;
  box-shadow: 0 34px 70px -26px rgba(36,24,41,.55), 0 0 0 1px rgba(0,0,0,.05);
}
.dphone__screen {
  width: 100%; height: 100%; border-radius: 33px; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
}
.dphone__notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 20px; background: #0b0d14; border-radius: 0 0 14px 14px; z-index: 6;
}
.dphone__home {
  position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 98px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.22); z-index: 6;
}

/* Status bar */
.dm-statusbar {
  height: 27px; padding: 4px 20px 0; display: flex; align-items: center;
  justify-content: space-between; font-size: 12px; font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  position: relative; z-index: 2;
}
.dm-sb-time { letter-spacing: -.02em; }
.dm-sb-right { display: inline-flex; align-items: center; gap: 5px; }

/* Header (shared) */
.dm-header { display: flex; align-items: center; gap: 8px; padding: 6px 12px 10px; font-weight: 600; }
.dm-msgs {
  flex: 1; padding: 8px 9px 10px; overflow: hidden;
  display: flex; flex-direction: column; gap: 9px;
}
.dm-day { align-self: center; font-size: 10px; color: #9b9b9b; margin: 2px 0 4px; letter-spacing: .04em; }

/* Message rows + bubbles (shared) */
.dm-row { display: flex; align-items: flex-end; gap: 7px; max-width: 100%; }
.dm-row--in  { justify-content: flex-start; }
.dm-row--out { flex-direction: row-reverse; justify-content: flex-start; }
.dm-av { width: 30px; height: 30px; flex: none; }
.dm-av svg { width: 100%; height: 100%; border-radius: 7px; display: block; }
.dm-stack { display: flex; flex-direction: column; max-width: 76%; }
.dm-row--out .dm-stack { align-items: flex-end; }
.dm-bubble {
  font-size: 12.5px; line-height: 1.4; padding: 7px 10px; border-radius: 9px;
  max-width: 78%; word-wrap: break-word; box-shadow: 0 1px 1px rgba(0,0,0,.06);
}
.dm-row--out .dm-bubble, .dm-stack .dm-bubble { max-width: 100%; }
.dm-time { font-size: 9px; color: #9b9b9b; margin: 3px 2px 0; }
.dm-meta { display: block; font-size: 9px; opacity: .5; text-align: right; margin-top: 2px; }
.dm-check { margin-left: 3px; }

/* Composer (shared) */
.dm-composer { display: flex; align-items: center; gap: 8px; padding: 7px 9px 16px; }
.dm-cinput {
  flex: 1 1 auto; min-width: 0; font-size: 12px; padding: 8px 12px; border-radius: 8px;
  text-align: left; white-space: nowrap; overflow: hidden;
}
.dm-cic { flex: none; display: inline-flex; }
.dm-cmic {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── WhatsApp skin ──────────────────────────────────────────────────────────── */
.dm--whatsapp .dphone__screen { background: #efeae2; }
.dm--whatsapp .dm-statusbar,
.dm--whatsapp .dm-header { background: #008069; color: #fff; }
.dm--whatsapp .dm-hav { width: 30px; height: 30px; flex: none; }
.dm--whatsapp .dm-hav svg { width: 100%; height: 100%; border-radius: 50%; }
.dm--whatsapp .dm-htext { flex: 1 1 auto; min-width: 0; }
.dm--whatsapp .dm-name { font-size: 13.5px; line-height: 1.15; }
.dm--whatsapp .dm-status { font-size: 10.5px; font-weight: 400; opacity: .85; }
.dm--whatsapp .dm-hactions { display: inline-flex; gap: 14px; opacity: .92; flex: none; }
.dm--whatsapp .dm-msgs {
  background-color: #efeae2;
  background-image: radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px), radial-gradient(rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 24px 24px, 32px 32px; background-position: 0 0, 12px 16px;
}
.dm--whatsapp .dm-day {
  background: rgba(225,245,254,.92); color: #54656f; padding: 4px 10px;
  border-radius: 8px; box-shadow: 0 1px .5px rgba(0,0,0,.13); font-weight: 500;
}
.dm--whatsapp .dm-bubble { color: #111b21; border-radius: 8px; }
.dm--whatsapp .dm-row--in  .dm-bubble { background: #fff; border-top-left-radius: 0; }
.dm--whatsapp .dm-row--out .dm-bubble { background: #d9fdd3; border-top-right-radius: 0; }
.dm--whatsapp .dm-meta .dm-check { color: #53bdeb; opacity: 1; }
.dm--whatsapp .dm-composer { background: #efeae2; }
.dm--whatsapp .dm-cinput { background: #fff; color: #8696a0; border-radius: 999px; box-shadow: 0 1px .5px rgba(0,0,0,.08); }
.dm--whatsapp .dm-cic { color: #54656f; }
.dm--whatsapp .dm-cmic { background: #008069; color: #fff; }

/* ── 微信 WeChat skin ───────────────────────────────────────────────────────── */
.dm--wechat .dphone__screen { background: #ededed; }
.dm--wechat .dm-statusbar { background: #ededed; color: #111; }
.dm--wechat .dm-header { background: #ededed; color: #111; position: relative; justify-content: center; }
.dm--wechat .dm-header svg { color: #111; }
.dm--wechat .dm-header > svg:first-child { position: absolute; left: 12px; }   /* back chevron */
.dm--wechat .dm-header > svg:last-child  { position: absolute; right: 12px; }   /* menu dots */
.dm--wechat .dm-title { font-size: 14px; font-weight: 600; color: #111; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm--wechat .dm-msgs { background: #ededed; }
.dm--wechat .dm-bubble { color: #0b0b0b; border-radius: 6px; position: relative; }
.dm--wechat .dm-row--in  .dm-bubble { background: #fff; }
.dm--wechat .dm-row--out .dm-bubble { background: #95ec69; }
/* little WeChat tails */
.dm--wechat .dm-row--in .dm-bubble::before,
.dm--wechat .dm-row--out .dm-bubble::before {
  content: ""; position: absolute; top: 9px; width: 0; height: 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.dm--wechat .dm-row--in .dm-bubble::before  { left: -5px; border-right: 6px solid #fff; }
.dm--wechat .dm-row--out .dm-bubble::before { right: -5px; border-left: 6px solid #95ec69; }
.dm--wechat .dm-composer { background: #f7f7f7; border-top: 1px solid #dcdcdc; }
.dm--wechat .dm-cinput { background: #fff; color: #9b9b9b; border: 1px solid #e2e2e2; }
.dm--wechat .dm-cic { color: #5a5a5a; }

/* ── Bubble entry + typing (shared) ─────────────────────────────────────────── */
@keyframes dm-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.dm-row--enter { animation: dm-in 240ms cubic-bezier(.16,1,.3,1) both; }
.dm-bubble--typing { padding: 9px 12px; }
.dm-typing { display: inline-flex; gap: 4px; align-items: center; height: 10px; }
.dm-typing span { width: 6px; height: 6px; border-radius: 50%; background: #9aa0a6; opacity: .4; animation: dm-bounce 1.2s infinite ease-in-out; }
.dm-typing span:nth-child(2) { animation-delay: .18s; }
.dm-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes dm-bounce { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-3px); opacity: .9; } }

@media (max-width: 720px) {
  .channel-btn { font-size: .88rem; padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .dm-row--enter { animation: none; }
  .dm-typing span { animation: none; }
}
