/* POT EMS landing (potc.vn). Màu thương hiệu lấy từ logo POT: đỏ / vàng / xanh lá. */
:root {
  --navy-950: #071226;
  --navy-900: #0b1b33;
  --navy-800: #12284a;
  --navy-700: #1b3a66;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --green: #16a34a;
  --green-400: #22c55e;
  --yellow: #eab308;
  --yellow-300: #facc15;
  --red: #dc2626;
  --primary: #16a34a;
  --primary-hover: #15803d;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .25);
  --container: 1180px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow-300); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--green); margin-bottom: .6em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; border-radius: 999px; border: 2px solid transparent;
  padding: 10px 20px; cursor: pointer; transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 16px; font-size: .92rem; }
.btn-lg { padding: 13px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(22, 163, 74, .7); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: #f1f5f9; }
.btn[disabled] { opacity: .65; cursor: not-allowed; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
/* Nền mờ ở ::before: backdrop-filter trên chính header sẽ biến nó thành containing block của menu mobile position: fixed */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(7, 18, 38, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.brand img { width: 52px; height: auto; background: #fff; border-radius: 8px; padding: 3px 5px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.1rem; font-weight: 800; }
.brand-text small { font-size: .7rem; color: #94a3b8; letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { color: #cbd5e1; font-weight: 500; font-size: .95rem; }
.main-nav ul a:hover { color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; color: #cbd5e1; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(34, 197, 94, .22), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(250, 204, 21, .12), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  padding: 72px 0 88px;
}
.hero::after { /* lưới mờ */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero .hl { background: linear-gradient(90deg, var(--green-400), var(--yellow-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .eyebrow { color: var(--green-400); }
.lead { font-size: 1.1rem; max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero-hotline { font-size: .95rem; margin-bottom: 20px; }
.hero-hotline a { color: var(--yellow-300); font-weight: 700; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.hero-points li::before { content: "✓"; color: var(--green-400); font-weight: 800; margin-right: 6px; }

/* Mockup */
.hero-visual { position: relative; padding: 0 24px 40px 0; }
.mock { background: #0f213f; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0a1830; border-bottom: 1px solid rgba(255,255,255,.06); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.mock-bar i:nth-child(2) { background: var(--yellow); }
.mock-bar i:nth-child(3) { background: var(--green); }
.mock-bar span { margin-left: 10px; font-size: .75rem; color: #94a3b8; background: rgba(255,255,255,.06); border-radius: 6px; padding: 2px 10px; }
.mock-body { padding: 16px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis div { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.mock-kpis small { font-size: .68rem; color: #94a3b8; }
.mock-kpis b { color: #fff; font-size: 1.05rem; margin: 2px 0; white-space: nowrap; }
.mock-kpis em { font-style: normal; font-size: .68rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-kpis em.up { color: var(--green-400); }
.mock-kpis em.warn { color: #f87171; }
.mock-chart { width: 100%; height: 120px; margin: 14px 0 10px; }
.mock-rows div { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: #cbd5e1; padding: 7px 4px; border-top: 1px solid rgba(255,255,255,.06); }
.mock-rows b { margin-left: auto; color: #fff; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.ok { background: var(--green-400); box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.dot.bad { background: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.2); }
.mock-phone {
  position: absolute; right: 0; bottom: 0; width: 190px; padding: 26px 10px 14px;
  background: #0a1830; border: 6px solid #1e293b; border-radius: 26px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.7);
}
.mock-phone .notch { position: absolute; top: 6px; left: 50%; width: 60px; height: 6px; transform: translateX(-50%); background: #1e293b; border-radius: 6px; }
.push { margin: 0 0 8px; background: rgba(255,255,255,.95); color: var(--ink); font-size: .72rem; line-height: 1.35; padding: 8px 10px; border-radius: 10px; border-left: 3px solid var(--red); }
.push.ok { border-left-color: var(--green); margin: 0; }
.push b { display: block; font-size: .7rem; }

/* Strip */
.strip { background: var(--navy-800); color: #cbd5e1; }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-inner div { padding: 22px 18px; border-left: 1px solid rgba(255,255,255,.08); }
.strip-inner div:first-child { border-left: 0; }
.strip b { display: block; color: #fff; font-size: 1.02rem; }
.strip span { font-size: .88rem; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p:last-child { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.feature p { font-size: .94rem; color: var(--muted); margin: 0; }
.ficon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.ficon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-green { background: #dcfce7; color: var(--green); }
.c-yellow { background: #fef9c3; color: #a16207; }
.c-red { background: #fee2e2; color: var(--red); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 44px; right: -20px; width: 20px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--green-400) 0 4px, transparent 4px 8px);
}
.steps p { font-size: .94rem; color: var(--muted); margin: 0; }
.step-no { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy-900); color: var(--yellow-300); font-weight: 800; margin-bottom: 14px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .93rem; font-weight: 500; color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks b { color: var(--ink); }

.cta-band { background: linear-gradient(110deg, var(--navy-900), var(--navy-700)); color: #cbd5e1; padding: 52px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .25em; }
.cta-band p { margin: 0; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-list svg { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list a, .contact-list span, .contact-list address { color: var(--ink); font-weight: 600; font-style: normal; word-break: break-word; }

.contact-form { background: #fff; border-radius: 18px; padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.contact-form h3 { font-size: 1.3rem; margin-bottom: .2em; }
.form-note { font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.req { color: var(--red); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid #cbd5e1; border-radius: 10px; padding: 11px 14px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.field [aria-invalid="true"] { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgba(220, 38, 38, .1) !important; }
.error { color: var(--red); font-size: .84rem; margin: 6px 0 0; min-height: 0; }
.error:empty { display: none; }
.field-meta { display: flex; justify-content: space-between; gap: 12px; }
.count { font-size: .8rem; color: var(--muted); margin-top: 6px; margin-left: auto; }
.checkbox { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; }
.checkbox input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--green); }
.checkbox label { font-weight: 400; font-size: .9rem; color: var(--text); margin: 0; }
.checkbox .error { grid-column: 2; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin-bottom: 14px; min-height: 0; }
.turnstile:empty { display: none; }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 14px; font-size: .95rem; border-radius: 10px; }
.form-status:empty { display: none; }
.form-status.ok { background: #dcfce7; color: #166534; padding: 12px 14px; }
.form-status.err { background: #fee2e2; color: #991b1b; padding: 12px 14px; }

/* Footer */
.site-footer { background: var(--navy-950); color: #94a3b8; padding: 44px 0 28px; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 40px; align-items: start; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 56px; background: #fff; border-radius: 8px; padding: 3px 5px; }
.footer-brand strong { color: #fff; }
.site-footer a { color: #cbd5e1; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; margin: 8px 0 0; font-size: .85rem; }

/* 404 */
.page-404 { text-align: center; min-height: 70vh; display: grid; place-items: center; }
.page-404 img { margin: 0 auto 24px; }
.btn-outline { border-color: var(--line); }

/* Responsive */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .hero-inner { gap: 32px; }
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 28px;
    background: var(--navy-950); transform: translateX(100%); transition: transform .28s ease; visibility: hidden;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-cta { margin-top: 20px; padding: 13px 20px; font-size: 1rem; }
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .two-col, .contact { grid-template-columns: 1fr; gap: 40px; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-inner div:nth-child(3) { border-left: 0; }
  .strip-inner div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer nav ul { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px 18px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { padding: 0 0 70px; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .mock-kpis div:nth-child(3) { display: none; }
  .mock-phone { width: 170px; right: 8px; }
  .brand-text small { display: none; }
  .strip-inner { grid-template-columns: 1fr; }
  .strip-inner div { border-left: 0 !important; border-top: 1px solid rgba(255,255,255,.08); }
  .strip-inner div:first-child { border-top: 0; }
}
