:root {
  --ink: #0f1f33;
  --muted: #52606d;
  --brand: #0b5cad;
  --brand-dark: #084785;
  --accent: #1f9d55;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --line: #e3e8ee;
  --ok-bg: #e6f6ec;
  --radius: 12px;
  --wrap: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html[lang^="zh"] { --font: "Inter", "Noto Sans TC", "PingFang HK", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.logo .zh { font-weight: 500; color: var(--muted); font-size: .95rem; }
.nav { display: none; gap: 22px; margin-left: 8px; }
.nav a { color: var(--muted); font-size: .95rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }
@media (min-width: 900px) { .nav { display: flex; } }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { font-size: .9rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.lang:hover { text-decoration: none; color: var(--ink); border-color: #c9d2dc; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 1rem; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9d2dc; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.header-actions .btn-sm { display: none; }
@media (min-width: 560px) { .header-actions .btn-sm { display: inline-flex; } }

/* ---------- sections */
section { padding: 72px 0; }
@media (min-width: 768px) { section { padding: 96px 0; } }
.soft { background: var(--bg-soft); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 12px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; margin-bottom: 16px; }
h3 { font-size: 1.15rem; font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 680px; }
.section-intro { max-width: 720px; margin-bottom: 40px; }
.section-intro p { color: var(--muted); margin: 0; }

/* ---------- hero */
.hero { padding-top: 64px; padding-bottom: 72px; }
.hero h1 { max-width: 860px; }
.hero h1 .line { display: inline-block; }
.hero .lead { margin: 20px 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .shot { margin-top: 56px; }

/* ---------- screenshot frames (placeholders until real screenshots are in) */
.shot { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 18px 50px -20px rgba(15,31,51,.25); overflow: hidden; }
.shot-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #dfe4ea; }
.shot-body { aspect-ratio: 16 / 9; display: grid; place-items: center; color: #98a4b0; font-size: .95rem; background: repeating-linear-gradient(135deg, #fbfcfd 0 14px, #f5f7f9 14px 28px); }
.shot .shot-body:has(img) { aspect-ratio: auto; background: none; display: block; }
.shot-body img { width: 100%; height: auto; }

/* ---------- origin: the system this comes from, in figures */
section.origin { padding: 56px 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { section.origin { padding: 72px 0; } }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: #fff; }
.stat-num { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.stat-label { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.origin .team { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); text-wrap: pretty; }

/* ---------- pain points */
.pains { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .pains { grid-template-columns: 1fr 1fr; } }
.pains li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 56px; position: relative; }
.pains li::before { content: ""; position: absolute; left: 20px; top: 22px; width: 22px; height: 22px; border-radius: 6px; background: #fdecec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* ---------- features */
.features { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.feature p { margin: 0; color: var(--muted); }
.feature .shot { margin-top: auto; box-shadow: none; }
.feature .shot-body { aspect-ratio: 16 / 10; }
/* wide cards span both columns: text on the left, two phone screenshots or report pages on the right */
@media (min-width: 820px) {
  .feature-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
}
.feature-text { display: flex; flex-direction: column; gap: 12px; }
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 820px) { .phones { grid-template-columns: repeat(2, 220px); } }
.phone { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 14px 34px -18px rgba(15,31,51,.35); }
.phone img { width: 100%; height: auto; }
.pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 820px) { .pages { grid-template-columns: repeat(2, 240px); } }
.page { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 14px 34px -18px rgba(15,31,51,.35); }
.page img { width: 100%; height: auto; }
.feature-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; color: var(--muted); }
.feature-list li { padding-left: 26px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7f45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* ---------- hosting */
.checks { display: grid; gap: 14px 32px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { padding-left: 36px; position: relative; font-size: 1.05rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7f45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- pricing */
.price-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .price-box { grid-template-columns: 1fr 1fr auto; align-items: center; } }
.price-box h3 { margin-bottom: 6px; }
.price-box p { margin: 0; color: var(--muted); }
.note { color: var(--muted); margin: 14px 0 0; }

/* ---------- pilot */
.pilot { background: var(--ink); color: #fff; }
.pilot h2 { color: #fff; }
.pilot .section-intro p { color: #c5d0dc; }
.pilot-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-bottom: 36px; }
@media (min-width: 820px) { .pilot-grid { grid-template-columns: 1fr 1fr; } }
.pilot-card { border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 24px; background: rgba(255,255,255,.04); }
.pilot-card h3 { color: #fff; margin-bottom: 8px; }
.pilot-card p { margin: 0; color: #c5d0dc; }
.pilot .btn-primary { background: #fff; color: var(--ink); }
.pilot .btn-primary:hover { background: #e8eef5; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-wa::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #25d366; }
.pilot .btn-wa { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.pilot .btn-wa:hover { border-color: rgba(255,255,255,.7); }
.pilot .contact-lines { margin: 16px 0 0; color: #c5d0dc; font-size: .95rem; }
.pilot .contact-lines a { color: #c5d0dc; }

/* ---------- footer */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* ---------- legal page */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 24px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal p { color: #33414f; }
.legal .updated { color: var(--muted); font-size: .9rem; }

/* ---------- click-to-enlarge screenshots */
.zoom { display: block; position: relative; cursor: zoom-in; }
.zoom::after { content: attr(data-hint); position: absolute; right: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(15,31,51,.78); color: #fff; font-size: .8rem; font-weight: 600; opacity: 0; transition: opacity .15s; pointer-events: none; }
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; }
@media (hover: none) { .zoom::after { opacity: 1; } }
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; cursor: zoom-out; }
dialog.lightbox::backdrop { background: rgba(10,18,30,.88); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: 96vw; max-height: 86vh; width: auto; height: auto; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .lb-caption { color: #dbe3ec; text-align: center; font-size: .9rem; margin-top: 12px; padding: 0 16px; }
.lightbox .lb-close { position: fixed; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 40px; cursor: pointer; }
.lightbox .lb-close:hover { background: rgba(255,255,255,.26); }

/* WhatsApp contact: hidden until the Hong Kong number is ready (see website/README.md) */
[data-placeholder="whatsapp"] { display: none !important; }
