:root {
  --bg: #f4f6fb; --surface: #ffffff; --text: #16181d; --muted: #5b6270;
  --line: #e4e8ef; --accent: #1a73e8; --accent-soft: #e8f0fe; --good: #188038; --on-accent: #ffffff;
  --hero-1: #0b3fa8; --hero-2: #1a73e8; --hero-3: #12a4b8;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.06);
  /* Đầu trang giới thiệu */
  --lp-bg: radial-gradient(1000px 560px at 88% -10%, #c9dcff 0%, transparent 60%), linear-gradient(180deg, #f5f8ff 0%, #e6eefc 100%);
  --lp-text: #0b1f44; --lp-muted: #4a5671; --lp-em-1: #1a73e8; --lp-em-2: #0f9aa8;
  --lp-btn-bg: #1a73e8; --lp-btn-fg: #ffffff; --lp-ghost: rgba(11,31,68,.22); --lp-chip: rgba(26,115,232,.10);
  --ph-bg: repeating-linear-gradient(135deg, #eef2f8 0 14px, #e7ecf4 14px 28px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f13; --surface: #16191f; --text: #eef1f5; --muted: #a3aab6;
    --line: #262a32; --accent: #8ab4f8; --accent-soft: #1c2a42; --good: #81c995; --on-accent: #0d0f13;
    --hero-1: #0a2a70; --hero-2: #1557c0; --hero-3: #0d7b8a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    --lp-bg: radial-gradient(1200px 600px at 85% 10%, #1f6fe0 0%, transparent 60%), linear-gradient(160deg, #071634 0%, #0b2c6b 55%, #0d4a8f 100%);
    --lp-text: #ffffff; --lp-muted: rgba(255,255,255,.80); --lp-em-1: #8ab4f8; --lp-em-2: #5fe0d0;
    --lp-btn-bg: #ffffff; --lp-btn-fg: #0b2c6b; --lp-ghost: rgba(255,255,255,.35); --lp-chip: rgba(138,180,248,.14);
    --ph-bg: repeating-linear-gradient(135deg, #171a20 0 14px, #1b1f26 14px 28px);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0f13; --surface: #16191f; --text: #eef1f5; --muted: #a3aab6;
  --line: #262a32; --accent: #8ab4f8; --accent-soft: #1c2a42; --good: #81c995; --on-accent: #0d0f13;
  --hero-1: #0a2a70; --hero-2: #1557c0; --hero-3: #0d7b8a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --lp-bg: radial-gradient(1200px 600px at 85% 10%, #1f6fe0 0%, transparent 60%), linear-gradient(160deg, #071634 0%, #0b2c6b 55%, #0d4a8f 100%);
  --lp-text: #ffffff; --lp-muted: rgba(255,255,255,.80); --lp-em-1: #8ab4f8; --lp-em-2: #5fe0d0;
  --lp-btn-bg: #ffffff; --lp-btn-fg: #0b2c6b; --lp-ghost: rgba(255,255,255,.35); --lp-chip: rgba(138,180,248,.14);
  --ph-bg: repeating-linear-gradient(135deg, #171a20 0 14px, #1b1f26 14px 28px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.7 "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
svg.i { width: 22px; height: 22px; flex: none; fill: currentColor; }

/* Thanh trên */
.topbar { position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 860px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px;
  color: var(--text); text-decoration: none; letter-spacing: .2px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.lang { display: inline-flex; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; }
.lang a, .lang span { padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  text-decoration: none; color: var(--muted); }
.lang span { background: var(--accent); color: #fff; }

/* Đầu trang */
.hero { background: linear-gradient(135deg, var(--hero-1), var(--hero-2) 55%, var(--hero-3));
  color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent); }
.hero .in { max-width: 860px; margin: 0 auto; padding: 44px 16px 88px; position: relative; z-index: 1; }
.hero img { width: 84px; height: 84px; border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.25); }
.hero h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; margin: 20px 0 10px; letter-spacing: -.5px; }
.hero p { margin: 0; max-width: 640px; font-size: 18px; color: rgba(255,255,255,.88); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); }

main { max-width: 860px; margin: -56px auto 0; padding: 0 16px 64px; position: relative; z-index: 2; }

/* Tóm tắt */
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sum { background: var(--surface); border-radius: 18px; padding: 18px; box-shadow: var(--shadow);
  border: 1px solid var(--line); }
.sum .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; }
.sum b { display: block; font-size: 16px; line-height: 1.35; }
.sum small { color: var(--muted); font-size: 14px; line-height: 1.5; display: block; margin-top: 4px; }

/* Mục lục */
.toc { margin: 28px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.toc a:hover { color: var(--accent); border-color: var(--accent); }

/* Mục */
section { background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 24px 24px 18px; margin-top: 16px; box-shadow: var(--shadow); }
section > h2 { display: flex; align-items: center; gap: 12px; font-size: 21px; line-height: 1.3; margin: 0 0 10px; }
.num { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 800; }
section p, section li { color: var(--text); }
section ul { padding-left: 22px; margin: 8px 0 12px; }
section li { margin: 4px 0; }
.item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.item:first-of-type { border-top: 0; }
.item .ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-top: 2px; }
.item h3 { font-size: 17px; margin: 4px 0 2px; }
.item p { margin: 4px 0; }
.item ul { margin-top: 4px; }
.note { color: var(--muted); font-size: 15px; }
.contact { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--on-accent);
  text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 999px; }

footer { text-align: center; color: var(--muted); font-size: 14px; margin-top: 40px; }
footer img { width: 40px; height: 40px; border-radius: 11px; display: block; margin: 0 auto 10px; opacity: .95; }
footer .slogan { font-weight: 700; color: var(--text); }

@media (max-width: 640px) {
  .summary { grid-template-columns: 1fr; }
  section { padding: 20px 18px 14px; border-radius: 18px; }
  .hero .in { padding-top: 32px; }
  .hero p { font-size: 17px; }
}

/* ───────────────── Trang giới thiệu ───────────────── */
.topbar .links { display: flex; align-items: center; gap: 18px; }
.topbar .links a.nav { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.topbar .links a.nav:hover { color: var(--accent); }
@media (max-width: 640px) { .topbar .links a.nav { display: none; } }

.lp-hero { background: var(--lp-bg); color: var(--lp-text); overflow: hidden; }
.lp-hero .in { max-width: 1120px; margin: 0 auto; padding: 56px 16px 72px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase; color: var(--lp-em-1);
  background: var(--lp-chip); border: 1px solid var(--lp-chip); padding: 5px 12px; border-radius: 999px; }
.lp-hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; letter-spacing: -1px; margin: 18px 0 16px; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--lp-em-1), var(--lp-em-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero p.lead { font-size: 19px; color: var(--lp-muted); margin: 0 0 28px; max-width: 560px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-lg { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px;
  padding: 14px 22px; border-radius: 999px; text-decoration: none; }
.btn-white { background: #fff; color: #0b2c6b; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.btn-hero { background: var(--lp-btn-bg); color: var(--lp-btn-fg); box-shadow: 0 8px 24px rgba(11,44,107,.25); }
.btn-ghost { color: var(--lp-text); border: 1px solid var(--lp-ghost); }
.btn-ghost:hover { background: var(--lp-chip); }
.soon { margin-top: 18px; font-size: 14px; color: var(--lp-muted); display: flex; align-items: center; gap: 8px; }
.soon .dot { width: 8px; height: 8px; border-radius: 50%; background: #5fe0d0; box-shadow: 0 0 0 4px rgba(95,224,208,.2); }

.stage { position: relative; height: 470px; }
.stage .device { position: absolute; left: 0; top: 10px; width: 400px; max-width: 86%;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); }
.stage .phone { position: absolute; right: 0; bottom: 0; width: 190px; max-width: 42%;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)); }
.stage .glow { position: absolute; left: 8%; top: 12%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(26,115,232,.55), transparent); filter: blur(10px); }

.lp { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.lp-sec { padding: 72px 0 8px; }
.lp-sec h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.5px; margin: 0 0 10px; text-align: center; }
.lp-sec .sub { text-align: center; color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 36px; }

.pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -36px; position: relative; z-index: 2; }
.pill { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); font-weight: 700; font-size: 15px; line-height: 1.35; }
.pill .ic, .feat .ic, .step .ic { width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; right: 20px; top: 14px;
  font-size: 56px; font-weight: 800; color: var(--line); line-height: 1; }
.step h3 { margin: 16px 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease; }
.feat:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 16px 36px rgba(16,24,40,.10); }
.feat h3 { margin: 14px 0 6px; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); font-size: 15.5px; }

.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trust .card { border-radius: 24px; padding: 28px; color: #fff; position: relative; overflow: hidden; }
.trust .card.a { background: linear-gradient(135deg, #0b2c6b, #1a73e8); }
.trust .card.b { background: linear-gradient(135deg, #0b4f4a, #12a4b8); }
.trust .card svg.i { width: 34px; height: 34px; opacity: .95; }
.trust .card h3 { font-size: 22px; margin: 14px 0 8px; }
.trust .card p { margin: 0; color: rgba(255,255,255,.85); }
.trust .card a { color: #fff; font-weight: 700; }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 14px 0; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.cta-band { margin: 72px 0 0; border-radius: 28px; padding: 44px 28px; text-align: center; color: #fff;
  background: radial-gradient(600px 300px at 80% 0%, #1f6fe0, transparent 70%), linear-gradient(160deg, #071634, #0b2c6b); }
.cta-band img { width: 64px; height: 64px; border-radius: 17px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); margin: 16px 0 8px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0 0 22px; }

.lp-foot { max-width: 1120px; margin: 0 auto; padding: 40px 16px 56px; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.lp-foot .brand img { width: 28px; height: 28px; border-radius: 8px; }
.lp-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.lp-foot a { color: var(--muted); text-decoration: none; }
.lp-foot a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .lp-hero .in { grid-template-columns: 1fr; padding-top: 40px; }
  .stage { height: 400px; max-width: 460px; width: 100%; margin: 0 auto; }
  .pills { grid-template-columns: 1fr 1fr; }
  .feats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .stage { height: 320px; }
  .stage .device { max-width: 80%; }
  .stage .phone { max-width: 33%; }
  .pills, .steps, .feats, .trust { grid-template-columns: 1fr; }
  .lp-sec { padding-top: 56px; }
  .lp-hero p.lead { font-size: 17px; }
}

/* ───────────────── Hỗ trợ / xoá tài khoản ───────────────── */
section .faq { max-width: none; }
section .faq details { background: var(--bg); }
code { font-size: 14px; background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 6px; }
.steps-list { padding-left: 22px; }
.steps-list li { margin: 8px 0; }
.req { display: grid; gap: 14px; margin-top: 6px; }
.req label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.req input[type=email], .req input[type=tel], .req textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%; }
.req input:focus, .req textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.req .chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.req .chk input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); flex: none; }
.req .btn { justify-self: start; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
footer .footlinks { margin: 6px 0; }
footer .footlinks a { color: var(--muted); }

/* ───────────────── Giao diện sáng/tối + mục mới của trang giới thiệu ───────────────── */
.theme-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
.theme-btn:hover { color: var(--accent); border-color: var(--accent); }
.theme-btn svg { width: 18px; height: 18px; fill: currentColor; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}
.topbar .in > .right { display: flex; align-items: center; gap: 10px; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge { display: inline-flex; flex-direction: column; justify-content: center; min-width: 150px; padding: 8px 16px;
  border-radius: 12px; border: 1px solid var(--lp-ghost); color: var(--lp-text); line-height: 1.2; opacity: .9; }
.badge small { font-size: 11px; color: var(--lp-muted); text-transform: uppercase; letter-spacing: .5px; }
.badge b { font-size: 17px; }

.why { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; align-items: stretch; }
.pains { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.pain .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(217,48,37,.10); color: #d93025; }
.pain h3 { margin: 12px 0 4px; font-size: 17px; }
.pain p { margin: 0; color: var(--muted); font-size: 15px; }
.solution { border-radius: 24px; padding: 28px; color: #fff; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(150deg, #0b3fa8, #1a73e8 60%, #12a4b8); box-shadow: var(--shadow); }
.solution .tag { font-size: 13px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; opacity: .85; }
.solution h3 { font-size: 26px; line-height: 1.25; margin: 10px 0; }
.solution p { margin: 0; color: rgba(255,255,255,.88); }

.dev { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: center; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  display: flex; gap: 12px; align-items: center; }
.spec .ic { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); }
.spec small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.spec b { display: block; font-size: 15.5px; line-height: 1.35; }
.spec.tbd b { color: var(--muted); font-weight: 600; font-style: italic; }
.spec-note { color: var(--muted); font-size: 13.5px; margin-top: 12px; }

/* Khung giữ chỗ ảnh/video: thay bằng ảnh thật trong tools/build_site.py (PHOTOS / PRODUCT_PHOTO). */
.ph { position: relative; border-radius: 22px; border: 2px dashed var(--line); background: var(--ph-bg);
  display: grid; place-items: center; text-align: center; color: var(--muted); overflow: hidden; }
.ph .in2 { display: grid; gap: 8px; justify-items: center; padding: 16px; }
.ph svg { width: 34px; height: 34px; fill: currentColor; opacity: .7; }
.ph b { font-size: 14.5px; color: var(--text); }
.ph small { font-size: 12.5px; }
.ph.photo { aspect-ratio: 4 / 5; }
.ph.wide { aspect-ratio: 16 / 9; }
.ph.product { aspect-ratio: 1 / 1; }
.shot { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot.photo { aspect-ratio: 4 / 5; } .shot.wide { aspect-ratio: 16 / 9; } .shot.product { aspect-ratio: 1 / 1; }
.real { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.real > .ph.wide, .real > .shot.wide { aspect-ratio: auto; height: 100%; min-height: 240px; }
.real .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.real-side { display: grid; gap: 12px; align-content: start; }
.real-note { color: var(--muted); font-size: 13.5px; text-align: center; margin-top: 14px; }

@media (max-width: 900px) {
  .why, .dev, .real { grid-template-columns: 1fr; }
  .real > .ph.wide, .real > .shot.wide { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
}
@media (max-width: 640px) {
  .pains, .specs { grid-template-columns: 1fr; }
  .real .grid { grid-template-columns: 1fr 1fr; }
  .badge { min-width: 0; flex: 1; }
}
