/* Dấu Việt - website tĩnh, chỉ HTML + CSS.
   Bảng màu lấy từ chính icon phần mềm: #1F6FEB. */

:root {
  --blue: #1f6feb;
  --blue-dark: #1557b8;
  --blue-darker: #0f3f87;
  --blue-50: #f3f8ff;
  --blue-100: #e4eefe;
  --blue-200: #c7ddfd;

  --ink: #14202e;
  --ink-soft: #3c4b5d;
  --muted: #64748b;
  --line: #dfe7f1;
  --white: #ffffff;
  --bg: #f7fafd;

  --green: #15803d;
  --green-bg: #eaf7ef;
  --amber: #a16207;
  --amber-bg: #fdf6e3;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 32, 46, .06), 0 8px 24px rgba(20, 32, 46, .07);
  --shadow-sm: 0 1px 2px rgba(20, 32, 46, .07), 0 2px 8px rgba(20, 32, 46, .05);
  --font: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 650;
  letter-spacing: -.01em;
}

h1 { font-size: 2.45rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1em; }

a { color: var(--blue-dark); }
a:hover { color: var(--blue-darker); }

img { max-width: 100%; height: auto; display: block; }

code, kbd, .mono {
  font-family: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  font-size: .92em;
}

code {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 5px;
  padding: .1em .38em;
  color: var(--blue-darker);
}

kbd {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: .05em .45em;
  font-size: .85em;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- layout ---------- */

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--white); border-block: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { font-size: 1.06rem; color: var(--muted); margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-100);
  border-radius: 999px;
  padding: .3em .9em;
  margin-bottom: 1em;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand img { width: 30px; height: 30px; }
.brand span small {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .97rem;
  font-weight: 550;
}

.nav a:hover { background: var(--blue-50); color: var(--blue-dark); }

/* Chuyển ngôn ngữ VI / EN trong thanh điều hướng. */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 650;
}

.lang a,
.lang strong {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 7px;
  text-decoration: none;
  line-height: 1.2;
}

.lang strong { background: var(--blue); color: #fff; }
.lang a { color: var(--muted); font-weight: 600; }
.lang a:hover { background: var(--blue-50); color: var(--blue-dark); }
.nav a[aria-current="page"] { background: var(--blue-100); color: var(--blue-darker); }

/* Khối "đã có N lượt tải" + hàng nút.
   Bọc inline-flex để chiều rộng khối co đúng bằng hàng nút, nhờ vậy bong bóng
   căn trái sẽ thẳng mép trái với nút tải về. */
.hero-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 100%;
}

/* Bong bóng chú thích: con số do down.js ghi ra bằng document.write.
   Nếu trình duyệt tắt JavaScript thì ẩn cả dòng đi cho khỏi hụt chữ. */
.dl-count {
  position: relative;
  align-self: flex-start;        /* căn trái, thẳng mép nút tải về */
  margin: 0 0 14px;
  padding: .45em 1em;
  background: var(--white);
  border: 1px solid var(--blue-200);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 550;
  white-space: nowrap;
}

.dl-count b {
  color: var(--blue-darker);
  font-weight: 700;
}

/* Mũi tên chỉ thẳng xuống nút tải về: hai tam giác chồng nhau để có cả viền
   lẫn ruột trắng. Đặt lệch 26px từ mép trái nên nó rơi vào giữa nút tải. */
.dl-count::before,
.dl-count::after {
  content: "";
  position: absolute;
  left: 26px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}

.dl-count::before {
  bottom: -9px;
  border-top: 9px solid var(--blue-200);   /* phần viền */
}

.dl-count::after {
  bottom: -8px;
  border-top: 9px solid var(--white);      /* phần ruột, che lên viền */
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 10px rgba(31, 111, 235, .28);
}

.btn--primary:hover { background: var(--blue-dark); color: #fff; }

.btn--ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover { border-color: var(--blue-200); color: var(--blue-darker); }

.btn--sm { padding: 9px 16px; font-size: .94rem; }

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(1200px 420px at 15% -10%, #e8f1ff 0%, rgba(232, 241, 255, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: .35em; }
.hero .lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 36em; }

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 8px;
}

.hero-points li {
  padding-left: 28px;
  position: relative;
  color: var(--ink-soft);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue-100);
  box-shadow: inset 0 0 0 2px var(--blue);
}

/* Ảnh chụp phần mềm đứng trực tiếp trên nền trang: không khung, không nền,
   không đổ bóng - bản thân cửa sổ Windows trong ảnh đã có viền riêng của nó. */
.hero-shot {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-meta {
  margin-top: 18px;
  font-size: .93rem;
  color: var(--muted);
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}

.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card--plain { box-shadow: none; }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--blue-100);
  color: var(--blue-darker);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- trust ---------- */

.trust {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  padding: 28px 28px;
  box-shadow: var(--shadow-sm);
}

.trust__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.12rem;
  margin-bottom: .5em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid #cdebd8;
  border-radius: 999px;
  padding: .28em .8em;
  font-size: .87rem;
  font-weight: 650;
}

.badge--blue {
  background: var(--blue-100);
  color: var(--blue-darker);
  border-color: var(--blue-200);
}

.badge--amber {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: #f0e2bb;
}

.hash {
  display: block;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 14px 0;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: .82rem;
  color: var(--blue-darker);
  word-break: break-all;
  line-height: 1.5;
}

/* ---------- screenshots ---------- */

.shots {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
}

figure {
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

figure img { width: 100%; }

figcaption {
  padding: 14px 2px 0;
  font-size: .94rem;
  color: var(--muted);
}

/* Chỉ dòng tiêu đề đầu tiên là block; các <strong> khác trong chú thích
   (ví dụ badge "V"/"E") phải nằm cùng dòng với câu văn. */
figcaption > strong:first-child {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: .15em;
}

figcaption strong { color: var(--ink); }

.shot-wide { grid-column: 1 / -1; max-width: 760px; }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .96rem;
}

th, td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { background: var(--blue-50); color: var(--ink); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }

/* ---------- steps ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 22px 20px 68px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .95rem;
}

/* Chỉ tiêu đề của bước là block - <strong> nằm trong câu văn phải inline. */
.steps li > strong:first-child { display: block; margin-bottom: .2em; }
.steps li strong { color: var(--ink); }
.steps li p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "+";
  display: inline-block;
  width: 1.3em;
  color: var(--blue);
  font-weight: 700;
}

details[open] summary::before { content: "–"; }
details > :last-child { margin-bottom: 0; }
details p { margin-top: .8em; }

/* ---------- misc blocks ---------- */

.note {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.note--amber { background: var(--amber-bg); border-color: #f0e2bb; }
.note p:last-child { margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px;
  align-items: start;
}

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

.list-check li { padding-left: 26px; position: relative; }

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

.list-cross li::before { content: "✕"; color: #b91c1c; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 18px;
  margin-top: 8px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat b { display: block; font-size: 1.5rem; color: var(--blue-darker); }
.stat span { font-size: .9rem; color: var(--muted); }

/* ---------- CTA ---------- */

.cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-darker) 100%);
  color: #eaf2ff;
  border-radius: var(--radius);
  padding: 44px 40px;
  text-align: center;
}

.cta h2 { color: #fff; }
.cta p { color: #d5e5ff; max-width: 52ch; margin-inline: auto; }
.cta .btn--primary { background: #fff; color: var(--blue-darker); box-shadow: none; }
.cta .btn--primary:hover { background: #eaf2ff; color: var(--blue-darker); }
.cta .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.cta .btn--ghost:hover { border-color: #fff; color: #fff; }
.cta .btn-row { justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
  background: #0f2744;
  color: #b9c9dd;
  padding: 48px 0 32px;
  font-size: .95rem;
}

.site-footer a { color: #cfe0f7; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8em; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 36px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .9rem;
  color: #8ea4bf;
}

/* minmax(min(100%, Npx), 1fr) thay vì minmax(Npx, 1fr): trên màn hình hẹp hơn
   N px, cột được phép co lại thay vì đẩy trang tràn ngang.

   Ô của grid mặc định có min-width:auto, nên một ảnh chụp rộng 688 px sẽ kéo
   cả cột rộng theo và làm tràn ngang trên điện thoại. */
.hero-grid > *,
.grid > *,
.split > *,
.shots > *,
.stat-row > *,
.footer-grid > * { min-width: 0; }

figure img, .hero-shot img { width: 100%; }

/* Góc ảnh chụp: cửa sổ Windows trong ảnh có góc bo, phần thừa ở bốn góc là
   nền trắng chụp kèm. Bo đúng bán kính đó để góc trong suốt, ảnh hoà vào nền
   trang thay vì lộ một hình chữ nhật. */
figure img,
.hero-shot img { border-radius: 8px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 56px 0; }
  .wrap { padding-inline: 16px; }
  .cta { padding: 34px 24px; }
}

@media (max-width: 620px) {
  .site-header .wrap { min-height: 0; padding-block: 10px; }
  .brand { margin-right: 0; }
  .nav { width: 100%; }
  .nav a { padding: 7px 10px; font-size: .93rem; }
}
