/* ==========================================================================
   Mepo9 — design system v2 "quiet professional"
   Một font: Inter (subset vietnamese đầy đủ). Một màu nhấn: xanh lá của logo #1f7a0c (25/09/2026; trước là xanh dương #2a62f0).
   Icon: SVG nét mảnh (site.js bơm theo data-icon) — không dùng emoji.
   Giao diện SÁNG (đổi 05/08/2026). Thang đo tham chiếu: CapCut vi-VN.
   ========================================================================== */

:root {
  /* surfaces — nền sáng.
     Thang đo lấy từ trang CapCut vi-VN (đo bằng getComputedStyle, 05/08/2026):
     nền trắng tinh, dải phụ #f4f7fb, mực gần đen #090c14, thẻ bo 16–20px và
     KHÔNG đổ bóng. Độ sang của trang đến từ khoảng thở + ảnh, không từ hiệu ứng. */
  --bg: #ffffff;
  --surface: #f6f8fb;
  --surface-2: #f0f3f8;
  --surface-3: #e6ebf3;
  --border: #dde3ec;
  --border-soft: #e9edf3;

  /* ink */
  --text: #0b1020;
  --text-2: #444d60;
  --muted: #646c7e;

  /* brand — một màu duy nhất */
  --brand: #1f7a0c;   /* APCA Lc 76,7 trên trắng, chữ trắng trên nó 82,1 (xanh dương cũ 74,5 / 79,9) */
  --brand-hover: #1a6a0a;
  --brand-down: #155a08;
  --brand-2: #1f7a0c; /* alias giữ tương thích */
  --accent: #1f7a0c;

  /* status */
  --ok: #087043;
  --warn: #845314;
  --danger: #a52a2a;

  /* data — chọn lại cho nền sáng, vẫn phân biệt được với mù màu */
  --series-1: #1f7a0c;
  --series-2: #d95926;
  --series-3: #0f9d63;

  /* scale */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 16px;
  --r-xl: 20px;
  /* Bóng rất nhẹ: nền sáng mà đổ bóng nặng là thành "web 2010". */
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 18px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, 0.06), 0 24px 56px rgba(16, 24, 40, 0.10);
  --pad-section: 128px;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/*
 * Docx 12/09/2026 mục 11 — chủ dự án: "giữ nguyên layout desktop ~1250px,
 * không tự co nhỏ theo màn hình; cửa sổ trình duyệt hẹp hơn thì kéo ngang".
 * Chỉ áp cho máy có CHUỘT/trackpad (pointer: fine): khung tối thiểu 1250px
 * (= --maxw 1200 + 2×24 đệm) và thanh cuộn ngang native ở đáy cửa sổ. Mọi
 * điểm gập theo bề rộng trong ba tệp CSS đã gắn "and (pointer: coarse)", nên
 * điện thoại/máy tính bảng vẫn responsive như trước — khách toàn cầu phần lớn
 * vào bằng điện thoại, không được hy sinh họ cho một sở thích desktop.
 */
@media (hover: hover) and (pointer: fine) {
  html { min-width: 1250px; overflow-x: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv11";
}

h1, h2, h3, h4 { font-weight: 650; line-height: 1.15; letter-spacing: -0.022em; }
h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.5vw, 1.95rem); letter-spacing: -0.024em; font-weight: 650; }
.hl { color: var(--brand); }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.012em; }
p { color: var(--text-2); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--pad-section) 0; }
.section-sm { padding: 64px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.mono { font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace; font-size: 0.92em; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.02rem; line-height: 1.65; }

/* ---------- icon svg (site.js bơm vào [data-icon]) ---------- */
[data-icon] svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-weight: 550;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--surface-3); border-color: #c7d0de; }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-primary:active { background: var(--brand-down); }
.btn-lg { padding: 13px 26px; font-size: 0.98rem; border-radius: 12px; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn [data-icon] svg { width: 16px; height: 16px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--muted);
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar strong { color: var(--text-2); font-weight: 600; }
.topbar .spacer { margin-left: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.02rem; letter-spacing: -0.015em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--brand);
  display: grid; place-items: center; color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0;
  flex: none;
}
/* Ô icon thật thay cho chữ "M9" dựng bằng CSS. Bỏ nền và bo góc: bản thân ảnh
   đã là ô bo góc có nền riêng và bốn góc trong suốt, nên nền của .brand-mark
   sẽ lòi ra thành viền màu ở góc. Nguồn 64px cho một ô 28px là để màn hình
   mật độ cao không bị rỗ. */
img.brand-mark {
  background: none;
  border-radius: 0;
  object-fit: contain;
}
.nav { display: flex; gap: 2px; margin-left: 20px; }
.nav a {
  padding: 7px 13px; border-radius: var(--r-sm); font-size: 0.89rem;
  font-weight: 500; color: var(--muted); transition: color 0.15s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hamburger {
  display: none; width: 38px; height: 38px; border-radius: var(--r-sm); padding: 0;
  border: 1px solid var(--border); background: transparent; color: var(--text);
  font-size: 1.1rem; cursor: pointer; align-items: center; justify-content: center;
}
.drawer {
  display: none; flex-direction: column; gap: 2px; padding: 10px 24px 18px;
  border-bottom: 1px solid var(--border-soft); background: var(--surface);
}
.drawer.open { display: flex; }
.drawer a { padding: 10px 12px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; font-size: 0.92rem; }
.drawer a:hover { background: var(--surface-2); color: var(--text); }

@media (max-width: 900px) and (pointer: coarse) {
  .nav { display: none; }
  .hamburger { display: inline-flex; }
  .header-cta .btn:not(.hamburger) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.hero::before {
  content: "";
  position: absolute; inset: -30% 30% auto -10%; height: 500px;
  background: radial-gradient(closest-side, rgba(31, 122, 12, 0.10), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.08rem; max-width: 540px; line-height: 1.68; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.82rem; color: var(--muted); }

/* dải nút cài đa nền tảng trong hero */
.dl-strip {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin-top: 30px; max-width: 560px;
}
.dl-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2);
  cursor: pointer; text-align: left; font: inherit; color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dl-chip:hover { border-color: #b9c6dd; background: var(--surface-3); }
/* Nền tảng chưa có bản cài: vẫn hiện để người dùng biết chúng tôi có tính tới,
   nhưng phải nhìn ra ngay là không bấm được — nếu không thì nó chỉ là nút hỏng. */
.dl-chip:disabled { opacity: 0.45; cursor: not-allowed; }
.dl-chip:disabled:hover { border-color: var(--border); background: var(--surface-2); }
a.dl-chip { text-decoration: none; }
.dl-chip svg { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--text-2); }
.dl-chip b { display: block; font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.dl-chip small { display: block; color: var(--muted); font-size: 0.73rem; margin-top: 1px; }
.dl-chip.active { border-color: var(--brand); background: rgba(31, 122, 12, 0.09); }
.dl-chip.active svg { color: var(--brand); }
/* Chữ lấy từ thuộc tính do site.js gắn, KHÔNG nung trong CSS: `content` là một
   chuỗi cứng nên nó nằm ngoài mọi đường dịch — 50 ngôn ngữ đều hiện "MÁY CỦA
   BẠN". Có `[data-nhan-may]` trong bộ chọn để khi thiếu thuộc tính thì không
   sinh ô rỗng thừa lề. */
.dl-chip.active b[data-nhan-may]::after {
  content: attr(data-nhan-may); margin-left: 7px;
  font-size: 0.62rem; font-weight: 600; color: var(--brand);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.dl-chip .dl-go {
  margin-left: auto; flex: none; width: 32px; height: 32px;
  border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text-2); transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.dl-chip .dl-go svg { width: 15px; height: 15px; stroke-width: 2; color: inherit; }
.dl-chip:hover .dl-go,
.dl-chip.active .dl-go { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 430px) and (pointer: coarse) { .dl-strip { grid-template-columns: 1fr; } }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 550;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.badge-ok { color: var(--ok); border-color: rgba(8, 112, 67, 0.22); background: rgba(8, 112, 67, 0.07); }

/* app window mock */
.app-mock {
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden;
}
.app-mock-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border-soft);
}
.dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.85; }
.app-mock-title { margin-left: 10px; font-size: 0.74rem; color: var(--muted); }
.app-mock-body { padding: 12px; display: grid; gap: 8px; }
.mock-canvas {
  aspect-ratio: 16/9; border-radius: var(--r-sm);
  background: linear-gradient(150deg, #16233f, #24204a 55%, #10283f);
  display: grid; place-items: center; position: relative;
}
.mock-play {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, 0.94);
  display: grid; place-items: center; color: #10131a; font-size: 1.2rem; padding-left: 4px;
}
.mock-track { display: grid; grid-template-columns: 60px 1fr; gap: 8px; align-items: center; }
.mock-track-label { font-size: 0.65rem; color: var(--muted); }
.mock-clips { display: flex; gap: 3px; height: 26px; }
.mock-clip { border-radius: 4px; height: 100%; }

@media (max-width: 940px) and (pointer: coarse) {
  .hero { padding: 72px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero .lead { max-width: none; }
}

/* ---------- generic cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); padding: 26px;
}
.card-hover { transition: border-color 0.18s ease, background 0.18s ease; }
.card-hover:hover { border-color: var(--border); background: var(--surface-2); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) and (pointer: coarse) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) and (pointer: coarse) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.icon-tile {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  margin-bottom: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.card h3 { margin-bottom: 7px; }
.card p { font-size: 0.9rem; line-height: 1.6; }

/* ---------- stats ---------- */
.stats-band {
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.84rem; color: var(--muted); margin-top: 5px; }
@media (max-width: 700px) and (pointer: coarse) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding-top: 8px; }
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.9rem; }
.step-num {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 650; font-size: 0.85rem; margin-bottom: 16px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) and (pointer: coarse) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) and (pointer: coarse) { .steps { grid-template-columns: 1fr; } }

/* ---------- download cards ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) and (pointer: coarse) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card { position: relative; text-align: center; padding: 34px 26px 28px; }
.dl-card.recommended { border-color: rgba(31, 122, 12, 0.5); }
.dl-os-icon { display: flex; justify-content: center; margin-bottom: 16px; color: var(--text-2); }
.dl-os-icon svg { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dl-os-icon .filled { fill: currentColor; stroke: none; }
.dl-card h3 { font-size: 1.15rem; }
.dl-meta { font-size: 0.8rem; color: var(--muted); margin: 8px 0 20px; line-height: 1.55; }
.pill {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 0.7rem; font-weight: 600;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.alt-links { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; }
.alt-links a { color: var(--muted); display: inline-block; transition: color 0.15s; }
.alt-links a:hover { color: var(--brand); }
.alt-links .muted { display: inline-block; line-height: 1.5; }
/* Thẻ nền tảng chưa có bản cài — làm mờ để không ai nhầm là tải được. */
.dl-card:has(.btn:disabled) .dl-os-icon,
.dl-card:has(.btn:disabled) h3 { opacity: 0.55; }

/* package manager row */
.pkg-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
/* Kênh chưa mở: lệnh vẫn hiện cho biết hình dạng, nhưng làm mờ và bỏ nút Copy
   để không ai chép một lệnh chắc chắn báo "không tìm thấy gói". */
.pkg-row[data-pkg-soon] .pkg { opacity: 0.5; }
.pkg {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r);
}
.pkg-icon { display: none; }
.pkg-name { font-weight: 600; font-size: 0.88rem; }
.pkg code {
  display: block; font-size: 0.76rem; color: var(--muted);
  font-family: ui-monospace, Consolas, monospace; margin-top: 3px;
  overflow-x: auto; white-space: nowrap;
}
.copy-btn {
  margin-left: auto; flex: none; padding: 5px 10px; font-size: 0.74rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px;
  color: var(--muted); cursor: pointer; font-weight: 500;
}
.copy-btn:hover { color: var(--text); border-color: #c7d0de; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--r-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 560px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-soft); }
th { background: var(--surface-2); font-weight: 600; font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface); }
td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- feature list ---------- */
.feat-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 22px 0; font-size: 0.92rem; }
.feat-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.feat-list .tick { color: var(--ok); flex: none; font-weight: 600; }
.feat-list .cross { color: var(--muted); flex: none; }
.feat-list li.off { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 8px; max-width: 780px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r); overflow: hidden; transition: border-color 0.15s; }
.faq-item.open { border-color: var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; background: none; border: none; color: var(--text);
  font: inherit; font-weight: 550; font-size: 0.95rem; text-align: left; cursor: pointer;
}
.faq-q:hover { color: var(--brand-hover); }
.faq-icon { flex: none; color: var(--muted); font-size: 1.1rem; transition: transform 0.25s ease; font-weight: 400; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 560px; }
.faq-a-inner { padding: 0 20px 18px; font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }
.faq-a-inner p + p { margin-top: 10px; }

/* ---------- testimonials ---------- */
.quote-card { display: flex; flex-direction: column; gap: 16px; }
.stars { color: var(--warn); font-size: 0.8rem; letter-spacing: 3px; }
.quote-card blockquote { font-size: 0.93rem; color: var(--text-2); line-height: 1.7; }
.who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 600; color: var(--text-2); font-size: 0.8rem;
  background: var(--surface-3) !important; border: 1px solid var(--border);
}
.who-name { font-weight: 600; font-size: 0.9rem; }
.who-role { font-size: 0.78rem; color: var(--muted); }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 88px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute; left: 50%; top: -140px; transform: translateX(-50%);
  width: 640px; height: 280px;
  background: radial-gradient(closest-side, rgba(31, 122, 12, 0.1), transparent);
  pointer-events: none;
}
.cta-strip h2 { color: var(--text); position: relative; }
.cta-strip p { color: var(--text-2); margin: 16px auto 30px; max-width: 540px; position: relative; }
.cta-strip .flex { position: relative; }
.cta-strip .btn { background: var(--brand); color: #fff; border-color: var(--brand); }
.cta-strip .btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.cta-strip .btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.cta-strip .btn-ghost:hover { background: var(--surface-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border-soft); padding: 64px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 860px) and (pointer: coarse) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) and (pointer: coarse) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand p { font-size: 0.86rem; margin-top: 14px; max-width: 280px; line-height: 1.6; }
.foot-col h4 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.foot-col a { display: block; padding: 4px 0; font-size: 0.88rem; color: var(--text-2); transition: color 0.15s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--muted);
}

/* ---------- floating contact ---------- */
.float-contact { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.float-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: 0.72rem; box-shadow: var(--shadow);
  border: none; cursor: pointer; transition: transform 0.15s ease;
}
.float-btn:hover { transform: scale(1.06); }
.float-messenger { background: #0084ff; }
.float-top { background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2); font-size: 1rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px);
  background: var(--surface-3); border: 1px solid var(--border); color: var(--text);
  padding: 12px 20px; border-radius: var(--r); box-shadow: var(--shadow-lg);
  font-size: 0.88rem; opacity: 0; pointer-events: none; transition: all 0.28s ease; z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- ad slots ---------- */
.ad-slot {
  display: grid; place-items: center; text-align: center;
  color: var(--muted); font-size: 0.75rem;
  background: var(--surface);
  border: 1px dashed var(--border); border-radius: var(--r-lg);
  padding: 12px; position: relative; overflow: hidden;
}
.ad-leaderboard { min-height: 90px; max-width: var(--maxw); margin: 0 auto; }
.ad-slot.filled { background: none; border-style: solid; padding: 0; }
.ad-label {
  position: absolute; top: 6px; right: 8px; z-index: 2;
  font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75); background: rgba(0, 0, 0, 0.45);
  padding: 2px 7px; border-radius: 4px; backdrop-filter: blur(4px);
}
.ad-creative {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; padding: 14px 22px;
  cursor: pointer; color: #fff; text-decoration: none;
}
.ad-creative .ad-headline { font-weight: 700; font-size: 0.98rem; line-height: 1.3; text-align: left; letter-spacing: -0.01em; }
.ad-creative .ad-body { font-size: 0.8rem; opacity: 0.9; text-align: left; }
.ad-creative .ad-cta {
  padding: 8px 16px; border-radius: 8px; font-size: 0.8rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.95); color: #17203a; white-space: nowrap; flex: none;
}
@media (max-width: 640px) and (pointer: coarse) {
  .ad-creative { flex-direction: column; text-align: center; padding: 16px; }
  .ad-creative .ad-headline, .ad-creative .ad-body { text-align: center; }
}

/* ---------- utilities ---------- */
.divider { height: 1px; background: var(--border-soft); border: none; margin: 0; }
.notice {
  padding: 14px 18px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--border-soft);
  font-size: 0.86rem; color: var(--text-2); line-height: 1.6;
}
.notice-warn { border-color: rgba(132, 83, 20, 0.28); }
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 6px;
  font-size: 0.73rem; font-weight: 550; border: 1px solid var(--border); background: var(--surface-2);
}
.tag-ok { color: var(--ok); border-color: rgba(8, 112, 67, 0.24); background: rgba(8, 112, 67, 0.08); }
.tag-warn { color: var(--warn); border-color: rgba(132, 83, 20, 0.24); background: rgba(132, 83, 20, 0.08); }
.tag-danger { color: var(--danger); border-color: rgba(165, 42, 42, 0.24); background: rgba(165, 42, 42, 0.08); }
.tag-muted { color: var(--muted); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* Ảnh chụp sản phẩm thật. Thay cho .app-mock — mô hình dựng bằng CSS trông
   sạch nhưng không chứng minh được gì; người xem đến để biết phần mềm THẬT
   trông ra sao. Bo góc + viền sáng nhẹ để nó không dính vào nền tối. */
.hero-shot { margin: 0; }
.hero-shot img,
.shot-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md, 12px);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgb(0 0 0 / 45%);
  background: var(--surface-2);
}
.hero-shot figcaption,
.shot-card figcaption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: start;
}
.shot-card { margin: 0; }
.shot-card h3 { font-size: 1.05rem; margin: 16px 0 6px; }
.shot-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ==========================================================================
   Khối trang Tính năng (thêm 05/08/2026)
   Nhịp tham chiếu đo từ CapCut vi-VN: H1 64px/600/-3% chữ, H2 36px, thẻ bo
   16–20px KHÔNG bóng, section thở rộng. Điểm khác biệt của trang cũ là nó
   chỉ có 5 lưới 3 cột giống hệt nhau và KHÔNG có ảnh nào — nên phẳng.
   ========================================================================== */

/* --- hero trang trong: chữ lớn + ảnh thật --- */
.page-hero { padding: 84px 0 72px; border-bottom: 1px solid var(--border-soft); }
.page-hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
  max-width: 14ch;
}
.page-hero .lead {
  margin-top: 20px; font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.65; max-width: 52ch; color: var(--text-2);
}
.page-hero-grid {
  display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center;
}
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.page-hero-note { margin-top: 16px; font-size: 0.86rem; color: var(--muted); }

/* Khung ảnh dùng chung: viền mảnh + bo lớn, không đổ bóng nặng. */
.media-frame {
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-frame img { width: 100%; height: auto; display: block; }

/* --- chip danh mục (nhảy tới từng nhóm) --- */
.cat-nav {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  padding: 26px 0;
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg);
  font-size: 0.88rem; font-weight: 550; color: var(--text-2);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.cat-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--surface); }
.cat-chip [data-icon] svg { width: 16px; height: 16px; }

/* --- spotlight: ảnh một bên, nội dung một bên, đảo chiều xen kẽ --- */
.spotlight { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.spotlight.is-flipped .spotlight-media { order: -1; }
.spotlight h2 { font-size: clamp(1.6rem, 2.9vw, 2.3rem); letter-spacing: -0.028em; }
.spotlight .lead { margin-top: 16px; font-size: 1.02rem; line-height: 1.68; }
.spotlight-list { list-style: none; margin: 26px 0 0; display: grid; gap: 13px; }
.spotlight-list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  align-items: start; font-size: 0.95rem; color: var(--text-2);
}
.spotlight-list .tick {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(31, 122, 12, 0.10); color: var(--brand); margin-top: 1px;
}
.spotlight-list .tick [data-icon] svg,
.spotlight-list .tick svg { width: 13px; height: 13px; stroke-width: 2.4; }
.spotlight-list strong { color: var(--text); font-weight: 600; }

@media (max-width: 900px) and (pointer: coarse) {
  .page-hero-grid, .spotlight { grid-template-columns: 1fr; gap: 36px; }
  .spotlight.is-flipped .spotlight-media { order: 0; }
  .page-hero h1 { max-width: none; }
}

/* --- lưới công cụ gọn (phần đuôi dài, không cần ảnh) --- */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
  padding: 20px; border-radius: var(--r-lg);
  border: 1px solid var(--border-soft); background: var(--bg);
  transition: border-color 0.16s ease, background 0.16s ease;
}
.tool:hover { border-color: var(--border); background: var(--surface); }
.tool-ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.tool h3 { font-size: 0.97rem; margin-bottom: 5px; }
.tool p { font-size: 0.875rem; line-height: 1.6; color: var(--muted); margin: 0; }
@media (max-width: 980px) and (pointer: coarse) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) and (pointer: coarse) { .tool-grid { grid-template-columns: 1fr; } }

/* --- trang chu: nang tieu de hero len cung thang do trang Tinh nang --- */
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.hero .lead { font-size: clamp(1rem, 1.35vw, 1.14rem); line-height: 1.65; }

/* Khối tải ứng dụng di động (Google Play / App Store) ngay dưới dải nút máy tính */
.mob-strip { margin-top: 18px; max-width: 560px; }
.mob-strip .mob-label { margin: 0 0 8px; font-size: 0.78rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.mob-strip .mob-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mob-strip .dl-chip { min-width: 0; }
.mob-strip .dl-chip > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.mob-strip .dl-chip svg { fill: currentColor; stroke: none; width: 24px; height: 24px; color: var(--brand); }
.mob-strip .dl-chip small { font-size: 0.7rem; line-height: 1.3; }
.mob-strip .mob-desc { margin: 10px 0 0; font-size: 0.8rem; line-height: 1.55; color: var(--muted); }
.mob-strip .dl-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 430px) { .mob-strip .mob-btns { grid-template-columns: 1fr; } }
