:root {
  --bg: #f6f7fb; --surface: #fff; --ink: #141b33; --muted: #5b6479; --line: #e3e7f0;
  --primary: #2b5ce6; --primary-dark: #1d43b3; --primary-soft: #eaf0ff; --violet: #6f3fe0;
  --accent: #ffd43b; --ok: #15803d;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20,30,60,.06), 0 10px 30px rgba(20,30,60,.08);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: var(--primary); }
img { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; scroll-margin-top: 64px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.tieu-de { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.tieu-de p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.nhan-nho { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 4px 12px; border-radius: 99px; margin-bottom: 12px; }

/* Nút */
.nut { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s; }
.nut:hover { transform: translateY(-1px); }
.nut-zalo { background: #0068ff; color: #fff; box-shadow: 0 6px 18px rgba(0,104,255,.3); }
.nut-zalo:hover { background: #0056d6; }
.nut-vien { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.nut-vien:hover { background: rgba(255,255,255,.24); }
.nut-nhat { background: var(--primary-soft); color: var(--primary); }

/* Đầu trang */
.dau { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.dau .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.logo img { width: 34px; height: 34px; }
.logo small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; line-height: 1.1; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .93rem; padding: 8px 12px; border-radius: 10px; }
.menu a:hover { color: var(--primary); background: var(--primary-soft); }
.dau .nut { padding: 9px 16px; font-size: .92rem; }

/* Hero */
.hero { background: linear-gradient(135deg, #1d43b3 0%, #2b5ce6 45%, #6f3fe0 100%); color: #fff; padding: 72px 0 84px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -120px -180px auto; width: 480px; height: 480px; border-radius: 50%; background: rgba(255,255,255,.07); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -.01em; }
.hero h1 span { color: var(--accent); }
.hero p.mo-ta { font-size: 1.12rem; opacity: .92; max-width: 560px; margin: 0 0 28px; }
.hero .hang-nut { display: flex; gap: 12px; flex-wrap: wrap; }
.hero ul.diem { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; opacity: .92; }
.hero ul.diem li::before { content: "✓ "; color: var(--accent); font-weight: 800; }

/* Khung trình duyệt giả lập */
.trinh-duyet { background: #fff; border-radius: 14px; box-shadow: 0 30px 60px rgba(10,20,60,.35); overflow: hidden; }
.trinh-duyet .thanh { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #eef1f7; }
.trinh-duyet .thanh i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.trinh-duyet .thanh i:nth-child(2) { background: #febc2e; }
.trinh-duyet .thanh i:nth-child(3) { background: #28c840; }
.trinh-duyet .thanh span { margin-left: 10px; flex: 1; background: #fff; border-radius: 6px; font-size: .78rem; color: var(--muted); padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thu-nho { position: relative; height: 380px; overflow: hidden; }
.thu-nho iframe { position: absolute; top: 0; left: 0; width: 200%; height: 200%; border: 0; transform: scale(.5); transform-origin: 0 0; pointer-events: none; }
.thu-nho a.phu { position: absolute; inset: 0; }

/* Lý do */
.luoi-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.the { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.the .bieu-tuong { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--primary-soft); margin-bottom: 14px; }
.the h3 { font-size: 1.08rem; }
.the p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Sản phẩm mẫu */
.nen-trang { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.du-an { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.du-an h3 { font-size: 1.5rem; }
.du-an .khach { color: var(--muted); margin: 0 0 16px; }
.so-lieu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 24px; }
.so-lieu div { background: var(--bg); border-radius: 14px; padding: 14px; text-align: center; }
.so-lieu b { display: block; font-size: 1.7rem; color: var(--primary); line-height: 1.1; }
.so-lieu small { color: var(--muted); font-weight: 600; font-size: .85rem; }
.du-an ul { padding-left: 20px; margin: 0 0 22px; color: var(--muted); }
.du-an ul li { margin-bottom: 4px; }

.thu-ngay { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.thu-ngay-dau { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.thu-ngay-dau h3 { margin: 0; font-size: 1.15rem; }
.tab-mp { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.tab-mp button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.tab-mp button.chon { background: var(--primary); border-color: var(--primary); color: #fff; }
.khung-mp { width: 100%; height: 640px; border: 0; border-radius: 14px; background: #fff; display: block; }
.ghi-chu { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }

/* Demo Toán */
.demo-toan { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; margin-top: 28px; }
.demo-toan svg { width: 100%; height: auto; background: #fff; border-radius: 14px; border: 1px solid var(--line); touch-action: none; user-select: none; }
.demo-toan .diem-keo { cursor: grab; }
.tong-goc { font-size: 1.05rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.tong-goc .dong { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.tong-goc .tong { border-top: 2px dashed var(--line); margin-top: 6px; padding-top: 10px; font-weight: 800; color: var(--ok); font-size: 1.2rem; }
.mon-khac { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mon-khac span { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: .88rem; font-weight: 600; }

/* Quy trình */
.quy-trinh { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: b; }
.buoc { position: relative; padding-top: 30px; }
.buoc::before { counter-increment: b; content: counter(b); position: absolute; top: -18px; left: 24px; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 6px 14px rgba(43,92,230,.35); }

/* Bảng giá */
.bang-gia { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.goi { display: flex; flex-direction: column; position: relative; }
.goi .ten-goi { font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; }
.goi .hop { color: var(--muted); font-size: .9rem; min-height: 44px; }
.goi .gia { font-size: 1.65rem; font-weight: 800; margin: 14px 0 2px; color: var(--ink); }
.goi .gia small { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); }
.goi ul { list-style: none; padding: 0; margin: 16px 0 22px; font-size: .93rem; flex: 1; }
.goi ul li { padding: 5px 0 5px 26px; position: relative; }
.goi ul li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 800; }
.goi .nut { justify-content: center; }
.goi.noi-bat { border: 2px solid var(--primary); box-shadow: 0 16px 40px rgba(43,92,230,.18); }
.goi.noi-bat::before { content: "Phổ biến nhất"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 99px; white-space: nowrap; }
.luu-y-gia { text-align: center; color: var(--muted); font-size: .92rem; margin: 26px auto 0; max-width: 760px; }

/* Hỏi đáp */
.hoi-dap { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.hoi-dap details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.hoi-dap summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.hoi-dap summary::-webkit-details-marker { display: none; }
.hoi-dap summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.hoi-dap details[open] summary::after { content: "−"; }
.hoi-dap details p { margin: 0 0 16px; color: var(--muted); }

/* Kêu gọi */
.keu-goi { background: linear-gradient(135deg, #1d43b3, #6f3fe0); color: #fff; border-radius: 24px; padding: 48px 32px; text-align: center; }
.keu-goi h2 { color: #fff; }
.keu-goi p { opacity: .9; max-width: 620px; margin: 0 auto 26px; font-size: 1.05rem; }
.keu-goi .sdt { display: block; margin-top: 14px; opacity: .85; font-size: .95rem; }

.cuoi { padding: 28px 0 40px; color: var(--muted); font-size: .9rem; text-align: center; }

/* Nút Zalo nổi */
.zalo-noi { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: #0068ff; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .82rem; text-decoration: none; box-shadow: 0 8px 24px rgba(0,104,255,.45); animation: nhip 2.4s infinite; }
@keyframes nhip { 0%,100% { box-shadow: 0 8px 24px rgba(0,104,255,.45), 0 0 0 0 rgba(0,104,255,.35); } 50% { box-shadow: 0 8px 24px rgba(0,104,255,.45), 0 0 0 12px rgba(0,104,255,0); } }

/* Responsive */
@media (max-width: 1100px) { .bang-gia { grid-template-columns: repeat(2, 1fr); } .goi .hop { min-height: 0; } }
@media (max-width: 980px) {
  .hero .wrap, .du-an, .demo-toan { grid-template-columns: 1fr; }
  .luoi-4, .quy-trinh, .bang-gia { grid-template-columns: repeat(2, 1fr); }
  .menu { display: none; }
  .dau .nut { margin-left: auto; }
  .buoc { margin-top: 18px; }
}
@media (max-width: 600px) {
  section { padding: 52px 0; }
  .hero { padding: 48px 0 60px; }
  .luoi-4, .quy-trinh, .bang-gia { grid-template-columns: 1fr; }
  .thu-nho { height: 260px; }
  .khung-mp { height: 860px; }
  .thu-ngay { padding: 12px; }
  .tab-mp { margin-left: 0; }
  .dau .nut span { display: none; }
  .keu-goi { padding: 36px 20px; }
}
@media (prefers-reduced-motion: reduce) { .zalo-noi { animation: none; } html { scroll-behavior: auto; } }
