/* TechCall — bộ màu RANA: đen #1d1f23, xanh lá #8ccb72 / #5fa847, trắng, xám #f3f4f7. */
:root {
  --black: #1d1f23;
  --white: #ffffff;
  --surface: #f3f4f7;
  --gray: #8e8e93;
  --text: #1d1f23;
  --muted: #6b717c;
  --green: #4f9a3a;
  --green-hi: #8ccb72;
  --red: #d32f2f;
  --line-d: rgba(255, 255, 255, 0.09);
  --radius: 24px;
  --max: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px; line-height: 1.65; overflow-x: hidden; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; }

/* ---------- Vùng tối (giống màn hình cuộc gọi trong app) ---------- */
.dark-zone { position: relative; background: var(--black); color: var(--white); overflow: hidden; padding-top: 76px; }
.aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(100px); animation: drift 22s ease-in-out infinite alternate; }
.aurora .a1 { width: 620px; height: 620px; background: var(--green); opacity: .38; top: -260px; right: -120px; }
.aurora .a2 { width: 460px; height: 460px; background: var(--green-hi); opacity: .16; bottom: -220px; left: -140px; animation-duration: 28s; animation-delay: -8s; }
.aurora .a3 { width: 300px; height: 300px; background: #ffffff; opacity: .06; top: 30%; left: 40%; animation-duration: 32s; animation-delay: -14s; }
.grid-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .5;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 65%); }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-70px, 60px) scale(1.1); } 100% { transform: translate(50px, 110px) scale(.95); } }

/* ---------- Thanh trên ---------- */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 30; background: transparent; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: var(--white); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--white); }
.brand-mark svg { width: 21px; height: 21px; fill: var(--black); }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.top nav a { text-decoration: none; color: #9aa0aa; white-space: nowrap; transition: color .2s; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--white); }
.top nav a.pill-link { color: var(--black); background: var(--white); padding: 10px 18px; border-radius: 999px; }
.top nav a.pill-link:hover { background: #e9e9ee; }

/* ---------- Đầu trang ---------- */
.hero { position: relative; padding: 48px 0 120px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line-d); color: #e6e6ea; }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--green-hi); position: relative; }
.live::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--green-hi); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.hero h1 { font-size: clamp(40px, 4.9vw, 64px); line-height: 1.02; letter-spacing: -0.045em; margin: 26px 0 26px; font-weight: 800; }
.grad { background: linear-gradient(100deg, #ffffff, #d4ecc9 30%, var(--green-hi) 55%, #ffffff 80%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; }
@keyframes sheen { to { background-position: -220% 0; } }
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; clip-path: inset(0 -0.2em); contain: paint; line-height: 1.16; height: 1.16em; margin-bottom: -.07em; }
.rotator > span { grid-area: 1 / 1; transform: translateY(105%); transition: transform .7s cubic-bezier(.7,0,.2,1); white-space: nowrap; }
.rotator > span.on { transform: none; }
.rotator > span.out { transform: translateY(-105%); }
.rotator > span:not(.on):not(.out) { transition: none; }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: #9aa0aa; max-width: 33em; margin: 0 0 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; padding: 16px 26px; border-radius: 16px; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: var(--white); background: var(--green); }
.btn.primary:hover { background: #43822f; }
.btn.primary::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: var(--green); filter: blur(22px); opacity: .5; }
.btn.light { color: var(--black); background: var(--white); }
.btn.ghost { color: var(--white); background: rgba(255,255,255,.07); border: 1px solid var(--line-d); }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 48px; }
.stat b { display: block; font-size: 34px; letter-spacing: -0.03em; line-height: 1; }
.stat span { font-size: 14px; color: #9aa0aa; }

/* Ảnh chuyên viên đầu trang */
.hero-art { position: relative; display: grid; place-items: center; }
.art-glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; left: 50%; top: 46%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(140,203,114,.42), rgba(95,168,71,.14) 55%, transparent); filter: blur(8px); }
.art-frame { position: relative; width: 112%; max-width: 680px; margin-right: -6%; }
.art-frame > img { position: relative; z-index: 2; display: block; width: 100%; height: auto; }
/* Bàn đen mờ: mặt phẳng tối, viền mềm, nhạt dần hai đầu và mép dưới để hòa vào nền */
.desk { position: absolute; z-index: 1; left: -10%; right: -10%; top: 89%; height: 16%;
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(58,62,70,.85) 0%, rgba(40,43,49,.75) 35%, rgba(29,31,35,0) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  filter: blur(1.5px); }
.desk-floor { position: absolute; z-index: 0; left: 4%; right: 4%; top: 96%; height: 12%;
  background: radial-gradient(50% 50% at 50% 30%, rgba(0,0,0,.5), transparent 72%); filter: blur(14px); }
/* Bóng đổ tiếp xúc dưới chân đồ vật */
.desk-shadow { position: absolute; z-index: 1; left: 2%; right: 6%; top: 92%; height: 6%;
  background: radial-gradient(48% 50% at 50% 45%, rgba(0,0,0,.7), transparent 78%); filter: blur(5px); }

/* ---------- Điểm nổi bật (cuối vùng tối đầu trang) ---------- */
.facts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line-d); }
.facts > div { padding: 32px 28px 56px 0; }
.facts > div + div { padding-left: 28px; border-left: 1px solid var(--line-d); }
.facts dt { font-weight: 700; font-size: 16px; color: var(--white); margin-bottom: 6px; }
.facts dd { margin: 0; color: #9aa0aa; font-size: 15px; line-height: 1.55; }

/* ---------- Phần dưới: tối giản ---------- */
.dark-page { background: var(--black); color: var(--white); }
.sec { padding: 140px 0; border-top: 1px solid var(--line-d); }
.sec-head { max-width: 860px; margin-bottom: 72px; }
.nb { white-space: nowrap; }
.sec-head h2, .final-title, .doc-hero h1, .lang-line { text-wrap: balance; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: block; font-size: 14px; font-weight: 600; color: var(--green-hi); margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 700; margin: 0; }
.sec-head p { color: #9aa0aa; font-size: 19px; margin: 22px 0 0; max-width: 34em; }
.hl { color: var(--green-hi); }
.center { text-align: center; }

/* Ba bước */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-d); }
.steps3 li { padding: 36px 36px 0 0; }
.steps3 li + li { padding-left: 36px; border-left: 1px solid var(--line-d); }
.steps3 .n { display: block; font-size: 15px; font-weight: 600; color: var(--green-hi); font-variant-numeric: tabular-nums; margin-bottom: 56px; }
.steps3 h3 { font-size: 24px; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 10px; }
.steps3 p { margin: 0; color: #9aa0aa; }

/* Danh mục: lưới đường kẻ mảnh */
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d); border-left: 1px solid var(--line-d); }
.topics li { padding: 32px 28px 40px; border-right: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); transition: background .4s; }
.topics li:hover { background: rgba(255,255,255,.03); }
.topics h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; transition: color .3s; }
.topics li:hover h3 { color: var(--green-hi); }
.topics p { margin: 0; color: #9aa0aa; font-size: 15px; line-height: 1.55; }

/* An toàn */
.pledges { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-d); }
.pledges > div { padding: 36px 36px 0 0; }
.pledges > div + div { padding-left: 36px; border-left: 1px solid var(--line-d); }
.pledges h3 { font-size: 20px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.01em; }
.pledges p { margin: 0; color: #9aa0aa; }

/* Ngôn ngữ */
.lang-line { font-size: clamp(26px, 3.6vw, 46px); line-height: 1.35; letter-spacing: -0.03em; font-weight: 600; color: #6b717c; margin: 0; max-width: 22em; }
.note-sm { color: #6b717c; font-size: 15px; margin: 28px 0 0; }

/* Câu hỏi thường gặp */
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.faq-grid .sec-head { margin-bottom: 0; }
.faq details { border-top: 1px solid var(--line-d); }
.faq details:last-child { border-bottom: 1px solid var(--line-d); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 40px 26px 0; font-weight: 600; font-size: 18px; position: relative; transition: color .2s; }
.faq summary:hover { color: var(--green-hi); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid #9aa0aa; border-bottom: 2px solid #9aa0aa; transform: rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: 0 0 26px; color: #9aa0aa; max-width: 36em; }

/* Liên hệ cuối trang */
.final { position: relative; overflow: hidden; padding: 160px 0 170px; }
.final::before { content: ""; position: absolute; left: 50%; bottom: -420px; width: 900px; height: 600px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(140,203,114,.22), transparent); pointer-events: none; }
.final .wrap { position: relative; }
.final-title { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; margin: 0; }
.final-sub { color: #9aa0aa; font-size: 20px; margin: 18px 0 40px; }

/* Chân trang */
footer.foot-dark { background: var(--black); color: #6b717c; margin-top: 0; padding: 32px 0 40px; border-top: 1px solid var(--line-d); font-size: 14px; }
footer.foot-dark .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
footer.foot-dark a { color: #9aa0aa; font-weight: 500; }
footer.foot-dark a:hover { color: var(--white); }

/* ---------- Hiện dần khi cuộn ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Trang chính sách ---------- */
.doc-hero { position: relative; padding: 56px 0 72px; }
.doc-hero h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -0.045em; line-height: 1.04; margin: 18px 0 14px; font-weight: 800; }
.doc-hero .meta { color: #9aa0aa; margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.toc a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line-d); color: #e6e6ea; }
.toc a:hover { background: rgba(255,255,255,.16); }
.doc { padding: 56px 0 24px; }
.doc .wrap { max-width: 860px; }
.doc h2 { font-size: 27px; letter-spacing: -0.02em; margin: 52px 0 12px; scroll-margin-top: 96px; }
.doc h2:first-of-type { margin-top: 32px; }
.doc h3 { font-size: 19px; margin: 28px 0 6px; }
.doc p, .doc li { color: #3a3e45; }
.doc ul { padding-left: 22px; margin: 8px 0 16px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--green); }
.doc a { color: var(--green); font-weight: 700; }
.doc .note { background: var(--surface); border-radius: 20px; padding: 22px 24px; margin: 24px 0; }
.doc .note.dark { background: var(--black); color: #e6e6ea; }
.doc .note.dark strong { color: var(--green-hi); }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin: 12px 0 20px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 14px 16px; vertical-align: top; }
.doc th { color: var(--gray); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding-bottom: 2px; }
.doc td { background: var(--surface); color: #3a3e45; }
.doc td:first-child { border-radius: 14px 0 0 14px; font-weight: 700; color: var(--black); }
.doc td:last-child { border-radius: 0 14px 14px 0; }
.table-scroll { overflow-x: auto; }

/* ---------- Chân trang ---------- */
footer { background: var(--surface); margin-top: 40px; padding: 44px 0 52px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
footer a { color: var(--black); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--green); }
footer .links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .art-frame { width: 100%; margin-right: 0; max-width: 560px; }
  .facts, .topics { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line-d); }
  .steps3, .pledges { grid-template-columns: 1fr; }
  .steps3 li, .steps3 li + li, .pledges > div, .pledges > div + div { padding: 32px 0; border-left: 0; }
  .steps3 li + li, .pledges > div + div { border-top: 1px solid var(--line-d); }
  .steps3 .n { margin-bottom: 20px; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .top .wrap { height: 60px; }
  .dark-zone { padding-top: 60px; }
  .hero { padding: 16px 0 56px; }
  .hero .wrap { gap: 40px; }
  .hero h1 { font-size: 37px; margin: 18px 0 16px; }
  .hero .lead { font-size: 16.5px; margin-bottom: 0; }
  .badge { font-size: 13px; }
  .aurora span { filter: blur(70px); }


  /* Điểm nổi bật: 2 cột */
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div, .facts > div + div { padding: 20px 12px 22px 0; border-left: 0; border-top: 0; }
  .facts > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line-d); }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line-d); }
  .facts dt { font-size: 15px; }
  .facts dd { font-size: 13.5px; }

  /* Khối chung */
  .sec { padding: 64px 0; }
  .sec-head { margin-bottom: 28px; }
  .sec-head h2 { font-size: 31px; }
  .sec-head p { font-size: 16px; margin-top: 14px; }
  .eyebrow { font-size: 13px; margin-bottom: 12px; }

  /* Ba bước & cam kết: hàng ngang gọn */
  .steps3 li, .steps3 li + li { display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; padding: 18px 0; }
  .steps3 .n { grid-row: span 2; margin: 2px 0 0; font-size: 14px; }
  .steps3 h3 { font-size: 18px; margin-bottom: 4px; }
  .steps3 p, .pledges p { font-size: 15px; }
  .pledges > div, .pledges > div + div { padding: 18px 0; }
  .pledges h3 { font-size: 17px; margin-bottom: 4px; }
  .sec-head.center { text-align: left; }

  /* 8 mục hỗ trợ: 2 cột */
  .topics { grid-template-columns: 1fr 1fr; }
  .topics li { padding: 18px 14px 20px; }
  .topics h3 { font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
  .topics p { font-size: 13px; line-height: 1.45; }

  /* Ngôn ngữ */
  .lang-line { font-size: 22px; line-height: 1.45; }
  .note-sm { font-size: 14px; margin-top: 18px; }

  /* Câu hỏi thường gặp */
  .faq-grid { gap: 20px; }
  .faq summary { font-size: 16px; padding: 18px 32px 18px 0; }
  .faq details p { font-size: 15px; margin-bottom: 18px; }

  /* Liên hệ */
  .final { padding: 72px 0 80px; }
  .final-title { font-size: 34px; }
  .final-sub { font-size: 16px; margin: 12px 0 28px; }
  .final .btn { width: 100%; justify-content: center; }
  footer.foot-dark .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Trang chính sách */
  .doc-hero { padding: 36px 0 44px; }
  .doc-hero h1 { font-size: 34px; }
  .toc a { font-size: 13px; padding: 7px 12px; }
  .doc { padding: 36px 0 16px; }
  .doc h2 { font-size: 22px; margin-top: 40px; }
  .doc h3 { font-size: 17px; }
}

/* Người xem tắt chuyển động: dừng hiệu ứng, hiện đủ nội dung */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .bubble { opacity: 1 !important; transform: none !important; }
}
