/* Trang marketing tĩnh (/en/, /vi/): HTML thuần, không JS, dùng token ngữ nghĩa giống docs/08-design-system/02-design-tokens.md */
:root {
  color-scheme: light dark;
  --surface: #ffffff;
  --surface-raised: #f8fafc;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --accent: #dc2626;
  --accent-strong: #b91c1c;
  --on-accent: #ffffff;
  --accent-text: #b91c1c;
  --link: #1d4ed8;
  --radius-card: 16px;
  --radius-control: 10px;
  --shadow-raised: 0 10px 30px rgba(15, 23, 42, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0b0f17;
    --surface-raised: #111827;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --link: #93c5fd;
    --accent-text: #fca5a5;
    --shadow-raised: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
}
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
code { font-size: 0.92em; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

header.top { border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
nav.top a { margin-left: 16px; color: var(--text-muted); text-decoration: none; }
nav.top a:hover { color: var(--text); }

.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--text-muted); max-width: 720px; margin: 0 auto 28px; }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 20px; border-radius: var(--radius-control); font-weight: 600; text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--surface); min-height: 44px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-strong); }
.micro { margin-top: 12px; font-size: 0.9rem; color: var(--text-muted); }
.shot { margin: 40px auto 0; border-radius: var(--radius-card); border: 1px solid var(--border); box-shadow: var(--shadow-raised); overflow: hidden; max-width: 1000px; }

section { padding: 56px 0; }
/* A16: video demo dọc 9:16 ngay sau hero; width/height + aspect-ratio giữ chỗ để bố cục không nhảy */
section.demo { padding: 8px 0 48px; text-align: center; }
.demo h2 { margin-bottom: 20px; }
.demo-video { margin: 0 auto; max-width: 360px; }
.demo-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: var(--radius-card); border: 1px solid var(--border); box-shadow: var(--shadow-raised); background: #0b1020; }
.demo-video figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--text-muted); }
section.alt { background: var(--surface-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
section h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 12px; text-align: center; letter-spacing: -0.01em; }
section p.sub { text-align: center; color: var(--text-muted); max-width: 680px; margin: 0 auto 32px; }
section p.sub.pricing-fine { margin: 24px auto 0; font-size: 0.92rem; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
section.alt .card { background: var(--surface); }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--text-muted); }
ol.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
ol.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
ol.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 10px; }
ul.features { columns: 2 260px; padding-left: 20px; max-width: 860px; margin: 0 auto; }
ul.features li { margin-bottom: 8px; break-inside: avoid; }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 32px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 12px; border: 1px solid var(--border); }
.gallery figcaption { font-size: 0.9rem; color: var(--text-muted); margin-top: 6px; text-align: center; }

.pricing { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 860px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--accent); }
.plan h3 { margin: 0; font-size: 1.2rem; }
.price { font-size: 2.2rem; font-weight: 800; margin: 12px 0 0; }
.price small { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.note { font-size: 0.92rem; color: var(--text-muted); margin: 4px 0 16px; }
.plan ul { padding-left: 20px; margin: 0 0 20px; flex: 1; }
.plan .btn { text-align: center; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #dc262618; color: var(--accent-text); margin-bottom: 8px; }

details { border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 0 auto 10px; max-width: 820px; background: var(--surface); }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--text-muted); margin: 10px 0 0; }

.final { text-align: center; }
footer.bottom { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--text-muted); font-size: 0.92rem; }
footer.bottom .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
footer.bottom a { color: var(--text-muted); }
