/* Trinous – trang giới thiệu. Màu theo NOI_DUNG_WEB.md mục 7 (60 nền sáng – 30 navy/chàm – 10 vàng/hồng) */
:root {
  --white: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-tint: #eef0ff;
  --navy: #101733;
  --navy-deep: #0b1030;
  --navy-2: #1e1b5e;
  --text: #3a4163;
  --muted: #5b6385;
  --line: #e3e6f0;
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --indigo-on-dark: #a5a0ff;
  --gold: #f5a524;
  --gold-dark: #e59410;
  --pink: #ec6a8d;
  --pink-soft: #fdeaf0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 23, 51, .06), 0 8px 24px rgba(16, 23, 51, .08);
  --shadow-lg: 0 24px 60px rgba(11, 16, 48, .28);
  --wrap: 1160px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Sora", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-dark); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin: .25em 0; }
strong { color: var(--navy); font-weight: 600; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; border-radius: 4px; }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; font-size: 1rem; border: 2px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: background .15s, color .15s, border-color .15s, transform .15s; text-align: center; line-height: 1.3; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: var(--navy); }
.btn-line { border-color: var(--indigo); color: var(--indigo); background: transparent; }
.btn-line:hover { background: var(--indigo); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Nhãn ---------- */
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; vertical-align: middle; }
.tag-pink { background: var(--pink-soft); color: #b8325a; }
.tag-indigo { background: var(--bg-tint); color: var(--indigo-dark); }
.tag-gold { background: #fff3dc; color: #8a5a00; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--indigo); margin-bottom: 12px; }

/* ba chấm thương hiệu */
.dots { display: inline-flex; gap: 5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot-i { background: var(--indigo); } .dot-g { background: var(--gold); } .dot-p { background: var(--pink); }

/* ---------- Đầu trang ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--navy); font-weight: 500; padding: 8px 14px; border-radius: 999px; font-size: .98rem; }
.nav a:hover { background: var(--bg-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--indigo); background: var(--bg-tint); }
.nav .btn { margin-left: 8px; min-height: 42px; padding: 0 18px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- Khối ---------- */
section { padding: 88px 0; }
.soft { background: var(--bg-soft); }
.tint { background: var(--bg-tint); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
@media (max-width: 700px) { section { padding: 60px 0; } body { font-size: 16px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #e7eaf7; padding: 84px 0 96px;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(79, 70, 229, .45), transparent 60%),
              linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-2) 100%); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .eyebrow { color: var(--indigo-on-dark); }
.hero .values { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 1.12rem; font-weight: 500; color: #fff; }
.hero .values li { display: flex; align-items: center; gap: 10px; margin: 0; }
.hero p { color: #c7cbe6; max-width: 620px; font-size: 1.08rem; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero .btn-row { margin-top: 28px; }
.hero-small { padding: 72px 0 64px; }
.hero-small p { max-width: 760px; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 64px 0 72px; } }

/* khung trình duyệt chứa ảnh phần mềm */
.frame { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(16, 23, 51, .12); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--navy); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.frame-bar i:nth-child(1) { background: var(--indigo-on-dark); } .frame-bar i:nth-child(2) { background: var(--gold); } .frame-bar i:nth-child(3) { background: var(--pink); }
.frame-bar span { margin-left: 10px; font-size: .72rem; color: #a5add6; letter-spacing: .02em; }
.frame img { width: 100%; }
figure.shot { margin: 0; }
a.zoom { display: block; cursor: zoom-in; }
a.zoom:hover .frame { box-shadow: 0 28px 70px rgba(11, 16, 48, .34); }
.caption { font-size: .85rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---------- Thẻ ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
a.card { color: var(--text); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { text-decoration: none; transform: translateY(-3px); border-color: #c9ccf6; box-shadow: 0 14px 34px rgba(16, 23, 51, .12); }
a.card .more { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--indigo); }
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-tint); color: var(--indigo); margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.icon.gold { background: #fff3dc; color: #b77300; } .icon.pink { background: var(--pink-soft); color: #c23d64; }

/* ---------- Bảng so sánh ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .97rem; }
.compare th, .compare td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--bg-soft); color: var(--navy); font-weight: 600; font-size: .92rem; }
.compare tbody th { color: var(--navy); font-weight: 600; width: 22%; }
.compare td { color: var(--muted); }
.compare .us { background: var(--bg-tint); color: var(--navy); font-weight: 500; }
.compare thead .us { background: var(--indigo); color: #fff; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .ok { color: var(--indigo); font-weight: 700; margin-right: 4px; }
table.compare.small { min-width: 560px; }

/* ---------- Luồng ---------- */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; counter-reset: s; }
.flow li { position: relative; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 12px 16px; text-align: center; font-weight: 600; color: var(--navy); font-size: .95rem; }
.flow li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--indigo); color: #fff; font-family: var(--font-num); font-size: .95rem; }
.flow li:nth-child(3n+2)::before { background: var(--gold); color: var(--navy); }
.flow li:nth-child(3n)::before { background: var(--pink); }
.flow li small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.flow.f5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .flow, .flow.f5 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tính năng xen ảnh ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding: 34px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: 1.45rem; }
.feature .step-no { font-family: var(--font-num); font-weight: 700; color: var(--indigo); font-size: .9rem; letter-spacing: .1em; display: block; margin-bottom: 6px; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 24px; } .feature.flip .feature-text { order: 0; } }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin: .55em 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Khung nổi bật ---------- */
.addon { border: 2px solid var(--pink); border-radius: 20px; padding: 44px; background: linear-gradient(180deg, #fff 0%, #fff8fa 100%); }
@media (max-width: 640px) { .addon { padding: 26px 18px; } }
.note { border-left: 4px solid var(--gold); background: #fffaf0; padding: 16px 20px; border-radius: 0 12px 12px 0; color: var(--text); }
.stat { font-family: var(--font-num); font-size: 2.2rem; font-weight: 700; color: var(--indigo); line-height: 1.1; }

/* ---------- Kêu gọi ---------- */
.cta { background: linear-gradient(160deg, var(--navy-deep), var(--navy-2)); color: #c7cbe6; border-radius: 24px; padding: 56px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { max-width: 640px; margin: 0 auto 26px; }
.cta .btn-row { justify-content: center; }
@media (max-width: 640px) { .cta { padding: 36px 20px; border-radius: 18px; } }

/* ---------- Liên hệ ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: center; margin: 0; }
.contact-list .icon { margin: 0; flex: none; }
.contact-list b { display: block; color: var(--navy); font-size: 1.12rem; }
.contact-list span { color: var(--muted); font-size: .92rem; }

/* ---------- Chân trang ---------- */
.site-footer { background: var(--navy-deep); color: #a5add6; padding: 60px 0 30px; font-size: .95rem; }
.site-footer a { color: #e7eaf7; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer .brand img { height: 30px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Xem ảnh lớn ---------- */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(11, 16, 48, .82); }
dialog.lightbox img { max-height: 90vh; width: auto; margin: auto; border-radius: 10px; }
dialog.lightbox button { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 22px; cursor: pointer; }

.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt2 { margin-top: 2rem; } .center { text-align: center; } .muted { color: var(--muted); }
.hero strong { color: #fff; }
.symbol { margin: 0 auto 18px; }
[id] { scroll-margin-top: 84px; }
.grid > *, .feature > *, .hero-grid > * { min-width: 0; }
.dot-lg { width: 40px; height: 40px; margin-bottom: 18px; box-shadow: 0 0 0 8px rgba(79, 70, 229, .08); }
.dot-lg.dot-g { box-shadow: 0 0 0 8px rgba(245, 165, 36, .14); } .dot-lg.dot-p { box-shadow: 0 0 0 8px rgba(236, 106, 141, .14); }
