/* QLĐD landing – "Soft Structuralism": nền trắng xám, chữ đậm, khung hai lớp, bóng rất mềm. */
:root {
  --ink: #0d1916;
  --ink-2: #3e4d48;
  --ink-3: #6b7a75;
  --line: rgba(13, 25, 22, 0.08);
  --paper: #f5f7f6;
  --paper-2: #edf2f0;
  --white: #ffffff;
  --teal: #0b6e5b;
  --teal-2: #0f8a71;
  --mint: #dcefe8;
  --dark: #071311;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 40px 80px -32px rgba(10, 52, 43, 0.22), 0 14px 32px -18px rgba(10, 52, 43, 0.16);
  --r-outer: 2rem;
  --r-inner: calc(2rem - 8px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
#sentinel { position: absolute; top: 0; height: 40px; width: 1px; }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }

/* ---------- nav: đảo nổi dạng viên thuốc ---------- */
.nav-wrap { position: fixed; top: 18px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 16px; }
.nav {
  display: flex; align-items: center; gap: 28px; padding: 8px 8px 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.62); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px rgba(10, 52, 43, 0.25);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav.scrolled { background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -20px rgba(10, 52, 43, 0.35); }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 36px; height: 36px; border-radius: 11px; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: inset 0 1px 1px rgba(255,255,255,0.3); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.brand-text small { font-size: 11px; color: var(--ink-3); }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
.nav-links a { transition: color 0.3s var(--ease); }
.nav-links a:hover { color: var(--teal); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang { font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); }
.lang:hover { background: rgba(13, 25, 22, 0.05); }

/* ---------- buttons: nút trong nút ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; transition: transform 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; transition: transform 0.5s var(--ease); }
.btn:hover .btn-ic { transform: translate(2px, -1px) scale(1.06); }
.btn-sm { font-size: 14px; padding-left: 18px; }
.btn-sm .btn-ic { width: 30px; height: 30px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark .btn-ic, .btn-teal .btn-ic { background: rgba(255, 255, 255, 0.14); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 14px 30px -14px rgba(11, 110, 91, 0.7); }
.btn-teal:hover { background: var(--teal-2); }
.btn-ghost { background: rgba(255, 255, 255, 0.7); box-shadow: 0 0 0 1px var(--line); }
.btn-ghost .btn-ic { background: rgba(13, 25, 22, 0.06); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light .btn-ic { background: var(--mint); color: var(--teal); }

/* ---------- typography blocks ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
  background: rgba(11, 110, 91, 0.08); color: var(--teal); font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow-dark { background: rgba(130, 230, 200, 0.12); color: #8fe3c9; }
h1 { font-size: clamp(38px, 4.9vw, 66px); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; margin: 22px 0 22px; }
h1 .accent, h2 .accent { color: var(--teal); }
h2 { font-size: clamp(30px, 3.6vw, 50px); font-weight: 800; line-height: 1.08; margin: 18px 0 18px; }
.h-sm { font-size: clamp(26px, 2.6vw, 36px); }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); line-height: 1.65; max-width: 62ch; }

/* ---------- double bezel ---------- */
.bezel { padding: 8px; border-radius: var(--r-outer); background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.core { border-radius: var(--r-inner); overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgba(13, 25, 22, 0.05); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1;
  background: radial-gradient(600px 420px at 18% 22%, rgba(11, 110, 91, 0.13), transparent 70%),
              radial-gradient(520px 420px at 85% 30%, rgba(255, 196, 140, 0.18), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { display: flex; gap: 8px; align-items: center; margin-top: 26px; font-size: 14px; color: var(--ink-3); }
.hero-note i { color: var(--teal); font-size: 18px; }
.hero-visual { position: relative; padding-bottom: 40px; }
.bezel-browser { transform: perspective(1800px) rotateY(-7deg) rotateX(2deg); transform-origin: left center; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #f7f9f8; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #d8dedc; }
.browser-bar em { margin-left: 12px; font-style: normal; font-size: 12px; color: var(--ink-3); background: #fff; padding: 3px 12px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); }
.phone { width: 200px; padding: 7px; border-radius: 34px; background: #111917; box-shadow: 0 0 0 1px #26302d, 0 40px 70px -30px rgba(7, 19, 17, 0.55); }
.phone-core { border-radius: 28px; overflow: hidden; background: #fff; }
.phone-hero { position: absolute; right: -14px; bottom: -6px; width: 34%; max-width: 210px; transform: rotate(3deg); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 70px; }
.fact { padding: 22px 22px 24px; border-radius: 1.5rem; background: rgba(255, 255, 255, 0.6); box-shadow: 0 0 0 1px var(--line); }
.fact b { display: block; font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.03em; color: var(--teal); }
.fact span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section-tint { background: var(--paper-2); }
.head-center { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 56px; }
.head-center .lead { margin: 0 auto; }
.head-left { margin-bottom: 52px; max-width: 760px; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.split-head { position: sticky; top: 120px; }
.card { padding: 26px; border-radius: 1.6rem; background: rgba(255, 255, 255, 0.72); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -36px rgba(10, 52, 43, 0.3); }
.card > i { font-size: 30px; color: var(--teal); }
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.problems { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 14px; }
.flow-card { position: relative; padding: 30px; border-radius: var(--r-outer); background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.flow-card .num { position: absolute; top: 24px; right: 26px; font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.1em; }
.flow-card i { font-size: 34px; color: var(--teal); }
.flow-card h3 { font-size: 24px; margin: 16px 0 10px; }
.flow-card p { color: var(--ink-2); font-size: 15.5px; }
.flow-arrow { display: grid; place-items: center; color: var(--ink-3); font-size: 24px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-rev .feature-copy { order: 2; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.ticks i { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--mint); color: var(--teal); font-size: 19px; }
.phones { display: flex; justify-content: center; gap: 26px; }
.phones .phone { width: 46%; max-width: 270px; }
.tilt-l { transform: rotate(-3deg) translateY(18px); }
.tilt-r { transform: rotate(3deg) translateY(-18px); }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.bento figure { margin: 0; display: flex; flex-direction: column; }
.bento figcaption { padding: 14px 10px 6px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.bento-a { grid-column: span 7; }
.bento-b { grid-column: span 5; grid-row: span 2; }
.bento-c { grid-column: span 7; }
.bento-d { grid-column: span 12; }
.bento-b .core { height: 100%; }
.bento-b .core img { height: 100%; object-fit: cover; object-position: left top; }

.docs { position: relative; min-height: 560px; }
.doc-ui { width: 72%; }
.paper { position: absolute; width: 44%; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 40px 70px -30px rgba(10, 52, 43, 0.35); }
.paper-1 { right: 4%; top: 40px; transform: rotate(3deg); }
.paper-2 { right: 20%; top: 240px; transform: rotate(-2deg); width: 40%; }

.daily { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.daily-card h3 { display: flex; gap: 10px; align-items: center; margin: 22px 4px 8px; }
.daily-card h3 i { color: var(--teal); font-size: 24px; }
.daily-card p { color: var(--ink-2); font-size: 15.5px; padding: 0 4px; }
.daily-card .core img { aspect-ratio: 16 / 11; object-fit: cover; object-position: left top; }

/* ---------- AI (dark) ---------- */
.section-dark { background: var(--dark); color: #eaf3f0; overflow: hidden; }
.section-dark .lead { color: #a9bdb7; }
.section-dark h2 { color: #fff; }
.glow { position: absolute; width: 700px; height: 700px; left: -200px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(15, 138, 113, 0.35), transparent 65%); filter: blur(20px); pointer-events: none; }
.ai-steps { display: grid; gap: 14px; margin-top: 32px; }
.ai-steps > div { position: relative; padding: 18px 20px 18px 66px; border-radius: 1.3rem; background: rgba(255, 255, 255, 0.04); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.ai-steps span { position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(143, 227, 201, 0.14); color: #8fe3c9; font-weight: 700; font-size: 14px; }
.ai-steps h3 { color: #fff; font-size: 17px; }
.ai-steps p { color: #a9bdb7; font-size: 15px; margin-top: 4px; }
.bezel-dark { background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 100px -40px rgba(0, 0, 0, 0.7); }
.ai-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14.5px; color: #a9bdb7; }
.ai-note i { color: #8fe3c9; font-size: 20px; flex: none; }

/* ---------- more ---------- */
.grid-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.more-wide { grid-column: span 2; grid-row: span 2; }
.more-core { height: 100%; display: grid; grid-template-rows: auto 1fr; }
.more-text { padding: 26px 28px 18px; }
.more-text i { font-size: 30px; color: var(--teal); }
.more-text h3 { margin: 12px 0 8px; }
.more-text p { color: var(--ink-2); font-size: 15.5px; max-width: 56ch; }
.more-core img { width: 100%; height: 100%; object-fit: cover; object-position: left top; border-top: 1px solid var(--line); }

.sec-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sec-list li { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: 1.4rem; background: rgba(255, 255, 255, 0.72); box-shadow: 0 0 0 1px var(--line); font-size: 15.5px; color: var(--ink-2); }
.sec-list i { flex: none; font-size: 24px; color: var(--teal); }

.domain { display: flex; justify-content: center; margin-bottom: 56px; }
.domain-pill { display: inline-flex; gap: 10px; align-items: center; padding: 16px 28px; border-radius: 999px; background: #fff; font-size: clamp(18px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.01em; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.domain-pill i { color: var(--teal); }
.domain-sub { color: var(--teal); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { padding: 26px; border-radius: 1.6rem; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.steps span { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--teal); }
.steps h3 { margin: 12px 0 8px; }
.steps p { color: var(--ink-2); font-size: 15px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips span { padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.road { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.road li { display: flex; gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.road i { color: var(--teal); font-size: 20px; flex: none; }

.cta-section { padding-top: 40px; }
.cta-card { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px); border-radius: 2.4rem; background: var(--teal); color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; box-shadow: 0 60px 100px -50px rgba(11, 110, 91, 0.8); }
.cta-card h2 { color: #fff; margin-top: 0; }
.cta-card .lead { color: rgba(255, 255, 255, 0.82); margin: 0 auto 34px; }
.glow-cta { left: auto; right: -260px; top: -320px; background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%); }

.footer { padding: 40px 0 60px; }
.foot { display: grid; gap: 14px; justify-items: start; color: var(--ink-3); font-size: 14px; }
.foot-meta a { color: var(--ink-2); }
.foot-meta a:hover { color: var(--teal); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.bezel-browser.reveal.in, .hero-visual.in .bezel-browser { transform: perspective(1800px) rotateY(-7deg) rotateX(2deg); }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hero-grid, .feature, .split, .two-col { grid-template-columns: 1fr; gap: 48px; }
  .feature-rev .feature-copy { order: 0; }
  .split-head { position: static; }
  .facts { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .daily { grid-template-columns: 1fr; }
  .grid-more { grid-template-columns: 1fr 1fr; }
  .bento-a, .bento-b, .bento-c, .bento-d { grid-column: span 12; grid-row: auto; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav { gap: 10px; padding-left: 10px; }
  .brand-text small { display: none; }
  .nav-actions .btn-sm { padding-left: 14px; font-size: 13px; }
  .hero { padding-top: 120px; }
  .bezel-browser, .bezel-browser.reveal.in, .hero-visual.in .bezel-browser { transform: none; }
  .phone-hero { width: 38%; right: -6px; }
  .facts, .problems, .steps, .sec-list, .grid-more { grid-template-columns: 1fr; }
  .more-wide { grid-column: auto; grid-row: auto; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
  .phones .phone { width: 48%; }
  .tilt-l, .tilt-r { transform: none; }
  .docs { min-height: 0; }
  .doc-ui { width: 100%; }
  .paper { position: static; width: 70%; margin: -60px 0 0 auto; transform: rotate(2deg); }
  .paper-2 { display: none; }
}

/* ---------- trang phụ: liên hệ, điều khoản, bảo mật ---------- */
.page-hero { position: relative; padding: 170px 0 56px; }
.page-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1;
  background: radial-gradient(560px 380px at 15% 25%, rgba(11, 110, 91, 0.12), transparent 70%); }
.page-h1 { font-size: clamp(36px, 4.6vw, 60px); }
.page-body { padding: 0 0 clamp(80px, 10vw, 140px); }
.legal { max-width: 760px; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-outer); background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.legal h2 { font-size: 21px; margin: 34px 0 10px; letter-spacing: -0.015em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 8px 0 0; display: grid; gap: 6px; }
.legal a, .contact-card a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 980px; }
.contact-card { display: block; }
.contact-card .core { height: 100%; padding: 28px; }
.contact-card i { font-size: 30px; color: var(--teal); }
.contact-card h3 { margin: 14px 0 8px; }
.contact-card p { color: var(--ink-2); font-size: 15.5px; }
.contact-card .big-link { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; color: var(--teal); margin-bottom: 8px; letter-spacing: -0.01em; }
a.contact-card { transition: transform 0.5s var(--ease); }
a.contact-card:hover { transform: translateY(-3px); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14.5px; font-weight: 500; }
.foot-links a { color: var(--ink-2); }
.foot-links a:hover { color: var(--teal); }
@media (max-width: 767px) { .contact-grid { grid-template-columns: 1fr; } .page-hero { padding-top: 130px; } }
