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

:root {
  --ink: #0b1f33;
  --ink-2: #17324d;
  --paper: #f8f6f1;
  --cream: #efeae0;
  --gold: #b08d57;
  --gold-soft: #d8c19b;
  --muted: #5d6b75;
  --line: #dcd6ca;
  --white: #ffffff;
  --success: #1f7a5a;
  --danger: #a33a3a;
  --shadow: 0 24px 60px rgba(11, 31, 51, 0.09);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.rtl { direction: rtl; }
body.rtl .hero-copy { text-align: right; }
body.rtl .eyebrow { letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.container { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 48px), 820px); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: baseline; gap: 12px; flex-shrink: 0; }
.brand-mark { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: 0.08em; }
.brand-sub { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { font-size: 13px; color: var(--ink-2); transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-select {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 2px;
  font-size: 12px;
  max-width: 132px;
}
.header-cta {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  padding: 11px 18px;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s;
}
.header-cta:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-1px); }
.menu-toggle { display: none; background: none; border: 0; font-size: 22px; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 14px 24px;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: all 0.2s;
}
.btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: #986f3f; }
.btn-sm { padding: 9px 14px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Shared */
.eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.section { padding: 104px 0; }
.section-tight { padding: 72px 0; }
.section-title { font-family: var(--serif); font-size: clamp(36px, 4.5vw, 58px); line-height: 1.08; font-weight: 500; margin: 16px 0 18px; }
.section-sub { color: var(--muted); max-width: 620px; font-size: 15px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 52px; }
.section-head .section-sub { margin: 0; }
.gold-rule { width: 54px; height: 2px; background: var(--gold); margin: 20px 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }

/* Hero */
.hero {
  position: relative;
  padding: 118px 0 96px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11,31,51,0.035) 1px, transparent 1px) 0 0 / 96px 100%,
    radial-gradient(circle at 82% 20%, rgba(176,141,87,0.13), transparent 38%),
    var(--paper);
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(176,141,87,0.25);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: 72px; align-items: center; position: relative; z-index: 1; }
.hero-title { font-family: var(--serif); font-size: clamp(52px, 7vw, 92px); line-height: 0.98; font-weight: 500; letter-spacing: -0.02em; margin: 24px 0 28px; max-width: 820px; }
html[lang="zh"] .hero-title { font-family: var(--sans); font-size: clamp(40px, 4.4vw, 58px); line-height: 1.16; letter-spacing: -0.01em; font-weight: 600; max-width: 900px; }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 620px; line-height: 1.85; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.hero-note { font-size: 12px; color: var(--muted); margin-top: 18px; }
.trusted { display: flex; align-items: center; gap: 18px; margin-top: 58px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.trusted .line { width: 48px; height: 1px; background: var(--line); }
.trusted .marks { display: flex; gap: 22px; font-family: var(--serif); font-size: 18px; letter-spacing: 0.12em; color: var(--ink); text-transform: none; }

.hero-card {
  background: var(--ink);
  color: var(--white);
  padding: 40px 38px;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--gold); }
.hero-card h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin: 0 0 26px; }
.hero-step { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.14); }
.hero-step .num { font-family: var(--serif); color: var(--gold-soft); font-size: 20px; min-width: 28px; }
.hero-step p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.6; }
.hero-step strong { display: block; font-size: 13px; color: var(--white); font-weight: 500; margin-bottom: 3px; }
.hero-seal { margin-top: 28px; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.1em; color: var(--gold-soft); text-transform: uppercase; }
.hero-seal .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(176,141,87,0.18); }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--cream); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 42px; font-weight: 500; line-height: 1; color: var(--ink); }
.stat span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }

/* Service grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { background: var(--paper); padding: 38px 32px 42px; min-height: 250px; display: flex; flex-direction: column; transition: background 0.25s; }
.service-card:hover { background: var(--white); }
.service-no { font-family: var(--serif); font-size: 14px; color: var(--gold); margin-bottom: 28px; }
.service-card h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.16; margin: 0 0 14px; }
.service-card p { color: var(--muted); font-size: 13.5px; margin: 0; }
.service-card .arrow { margin-top: auto; padding-top: 26px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }

/* Approach */
.approach { background: var(--ink); color: var(--white); }
.approach .eyebrow { color: var(--gold-soft); }
.approach .section-sub { color: rgba(255,255,255,0.62); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,0.18); }
.step { padding: 34px 26px 0 0; border-right: 1px solid rgba(255,255,255,0.14); }
.step:last-child { border-right: 0; }
.step .num { font-family: var(--serif); font-size: 46px; color: var(--gold-soft); line-height: 1; }
.step h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 22px 0 12px; }
.step p { font-size: 13px; color: rgba(255,255,255,0.64); margin: 0; }

/* Insights */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.insight { border-top: 2px solid var(--ink); padding-top: 22px; }
.insight .tag { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.insight h3 { font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.18; margin: 14px 0 12px; }
.insight p { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.insight a { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }

/* CTA */
.cta-band { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 64px 0; }
.cta-inner h2 { font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); font-weight: 500; margin: 0; line-height: 1.1; }
.cta-inner p { color: var(--muted); margin: 10px 0 0; max-width: 520px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); padding: 38px 32px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: 0; right: 24px; background: var(--gold); color: var(--white); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; transform: translateY(-50%); }
.plan h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin: 0 0 8px; }
.plan .price { font-family: var(--serif); font-size: 52px; line-height: 1; margin: 22px 0 4px; }
.plan .unit { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.plan-desc { color: var(--muted); font-size: 13px; min-height: 64px; margin: 22px 0; }
.plan-features { list-style: none; padding: 0; margin: 0 0 32px; }
.plan-features li { font-size: 13px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.plan-features li::before { content: "—"; color: var(--gold); margin-right: 10px; }
.plan .btn { margin-top: auto; }

/* Forms */
.form-shell { background: var(--white); border: 1px solid var(--line); padding: 42px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 13px 14px;
  border-radius: 2px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: var(--white); }
.field textarea { min-height: 140px; resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.6; }
.checkbox input { margin-top: 4px; accent-color: var(--gold); }
.form-note { font-size: 11px; color: var(--muted); margin-top: 18px; }
.alert { padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--cream); font-size: 13px; margin-bottom: 22px; }
.alert.error { border-color: var(--danger); background: #fbefef; color: #7d2c2c; }
.alert.success { border-color: var(--success); background: #edf7f2; color: #1a5d47; }
.page-head { padding: 78px 0 46px; border-bottom: 1px solid var(--line); background: var(--cream); }
.page-head h1 { font-family: var(--serif); font-size: clamp(46px, 6vw, 72px); font-weight: 500; line-height: 1; margin: 18px 0 14px; }
.page-head p { color: var(--muted); max-width: 660px; margin: 0; }
.page-body { padding: 64px 0 110px; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
.summary-card { background: var(--ink); color: var(--white); padding: 36px; position: sticky; top: 110px; align-self: start; }
.summary-card h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin: 0 0 26px; }
.summary-row { display: flex; justify-content: space-between; padding: 13px 0; border-top: 1px solid rgba(255,255,255,0.14); font-size: 13px; }
.summary-row.total { border-top: 2px solid var(--gold); margin-top: 12px; padding-top: 20px; font-size: 18px; font-family: var(--serif); }
.gateway-list { display: flex; flex-direction: column; gap: 12px; }
.gateway { border: 1px solid var(--line); background: var(--white); padding: 18px 20px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.gateway:hover, .gateway.selected { border-color: var(--gold); background: #fdfbf7; }
.gateway input { accent-color: var(--gold); }
.gateway-main { flex: 1; }
.gateway-main strong { display: block; font-size: 14px; font-weight: 600; }
.gateway-main span { font-size: 11px; color: var(--muted); }
.gateway-mode { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--line); padding: 4px 7px; color: var(--muted); }
.gateway-mode.live { color: var(--success); border-color: var(--success); }
.bank-box { background: var(--cream); border: 1px solid var(--line); padding: 22px; margin-top: 22px; font-size: 13px; }
.bank-box div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.bank-box div:last-child { border-bottom: 0; }

/* Dashboard */
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.dash-card { background: var(--white); border: 1px solid var(--line); padding: 26px; }
.dash-card strong { display: block; font-family: var(--serif); font-size: 40px; font-weight: 500; }
.dash-card span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.table-wrap { background: var(--white); border: 1px solid var(--line); overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--cream); }
td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); }
.badge.paid, .badge.completed, .badge.approved { color: var(--success); border-color: var(--success); }
.badge.pending, .badge.contacted, .badge.awaiting_payment, .badge.submitted { color: #9a6b1f; border-color: #c9a35c; }
.badge.refunded, .badge.closed, .badge.rejected { color: var(--danger); border-color: var(--danger); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.66); padding: 76px 0 30px; font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 56px; }
.site-footer .brand-mark { color: var(--white); }
.site-footer h4 { color: var(--white); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 18px; }
.site-footer a { display: block; padding: 5px 0; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; font-size: 11px; color: rgba(255,255,255,0.46); }
.footer-legal { max-width: 720px; line-height: 1.7; }

/* Toast */
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 200; background: var(--ink); color: var(--white); padding: 14px 18px; border-left: 3px solid var(--gold); box-shadow: var(--shadow); font-size: 13px; max-width: 380px; animation: slideIn 0.25s ease; }
@keyframes slideIn { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Responsive */
@media (max-width: 1024px) {
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); padding: 20px 24px; flex-direction: column; align-items: flex-start; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-card { max-width: 560px; }
  .grid-3, .pricing-grid, .insights-grid, .dash-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px solid rgba(255,255,255,0.14); padding-bottom: 28px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .container, .narrow { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { height: 66px; }
  .brand-sub { display: none; }
  .header-cta { display: none; }
  .nav.open { top: 66px; }
  .section { padding: 72px 0; }
  .hero { padding: 76px 0 64px; }
  .hero-title { font-size: 48px; }
  .hero-sub { font-size: 15px; }
  .trusted { flex-wrap: wrap; }
  .grid-3, .pricing-grid, .insights-grid, .dash-grid, .stats-grid, .steps, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .step { border-right: 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .form-shell { padding: 24px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
  body.rtl .hero-copy { text-align: right; }
}
