/* Panic Scan website - giao diện sáng */
:root {
    --bg: #FFFFFF;
    --bg-soft: #FAF7F4;
    --bg-tint: #FFF4EC;
    --ink: #17120E;
    --ink-2: #3D352F;
    --muted: #6E645C;
    --line: #ECE6E0;
    --line-strong: #DED5CC;
    --brand: #F25F2C;
    --brand-deep: #D9481A;
    --brand-soft: #FFE6D8;
    --marker: rgba(255, 205, 92, .55);
    --radius: 20px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(23, 18, 14, .05), 0 1px 1px rgba(23, 18, 14, .03);
    --shadow: 0 12px 32px rgba(70, 40, 20, .08), 0 2px 6px rgba(70, 40, 20, .05);
    --shadow-lg: 0 30px 70px rgba(70, 35, 10, .18), 0 8px 20px rgba(70, 35, 10, .08);
    --wrap: 1160px;
    color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px; line-height: 1.6; color: var(--ink-2); background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(38px, 5.4vw, 62px); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; }
h3 { font-size: 19px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

/* Nút */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 24px; border-radius: 14px; border: 1px solid transparent;
    background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease; cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn .icon { width: 20px; height: 20px; }
.btn-brand { background: var(--brand); }
.btn-brand:hover { background: var(--brand-deep); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-small { min-height: 40px; padding: 0 16px; border-radius: 11px; font-size: 14px; }
.btn-disabled { cursor: default; }
.btn-disabled:hover { transform: none; box-shadow: none; }
.btn-danger { background: #C62828; }

/* Thanh điều hướng */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-links a.active { color: var(--ink); background: var(--bg-soft); }
.nav-links .lang { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); }
.nav-links .btn { color: #fff; margin-left: 6px; }
.nav-links .btn:hover { background: var(--brand-deep); }

/* Khối chung */
.block { padding: 96px 0; }
.block-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand-deep); font-size: 14px; font-weight: 600; margin-bottom: 18px;
}
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.section-lead { color: var(--muted); font-size: 16px; margin: 24px auto 0; max-width: 720px; text-align: center; }
.lead { font-size: 19px; color: var(--muted); margin-top: 20px; max-width: 600px; }
.hl { color: var(--brand); background: linear-gradient(180deg, transparent 62%, var(--marker) 62%, var(--marker) 94%, transparent 94%); padding: 0 2px; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 28px; }
.center { text-align: center; }

/* Hero trang chủ */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; background:
    radial-gradient(900px 520px at 85% 10%, #FFE3D1 0%, rgba(255, 227, 209, 0) 70%),
    radial-gradient(700px 420px at 0% 100%, #FFF1E2 0%, rgba(255, 241, 226, 0) 70%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stats { list-style: none; display: flex; gap: 0; margin-top: 40px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .7); max-width: 520px; }
.stats li { flex: 1; padding: 16px 20px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: none; }
.stats strong { display: block; font-size: 26px; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.stats span { font-size: 14px; color: var(--muted); }

/* Khung iPhone */
.device { position: relative; width: 290px; aspect-ratio: 1206 / 2622; border-radius: 46px; padding: 10px; background: #111; box-shadow: 0 0 0 2px #3A3A3C, var(--shadow-lg); }
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.devices { position: relative; height: 640px; }
.devices .device { position: absolute; }
.devices .device-back { right: 0; top: 0; transform: rotate(4deg); width: 270px; }
.devices .device-front { left: 6%; top: 60px; }
.pop-card { position: absolute; left: -4%; bottom: 24px; width: 290px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .9); transform: rotate(-2deg); background: #fff; }
.pop-card img { width: 100%; }

/* Các bước */
.steps-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps-grid li { position: relative; padding: 28px 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); counter-increment: step; font-size: 16px; color: var(--ink-2); }
.steps-grid li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 16px; }

/* Thẻ tính năng */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.feature { transition: transform .15s ease, box-shadow .15s ease; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature h3 { margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: 16px; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-deep); }
.feature-icon .icon { width: 24px; height: 24px; }

/* Thư viện ảnh */
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 24px 28px; margin: 0 -24px; scrollbar-width: thin; }
.gallery figure { flex: 0 0 240px; scroll-snap-align: start; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.gallery img { width: 100%; height: auto; }

/* Bảng giá */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1080px; margin: 0 auto; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan h2, .plan h3 { font-size: 20px; }
.price { font-size: 38px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin: 12px 0 18px; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-highlight { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan-highlight::before { content: "★"; position: absolute; top: 20px; right: 22px; color: var(--brand); font-size: 18px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.ticks .icon { color: var(--brand); margin-top: 3px; }

/* Hỏi đáp */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { padding: 0 22px 20px; color: var(--muted); }

/* Khối kêu gọi */
.band { position: relative; overflow: hidden; text-align: center; padding: 64px 32px; border-radius: 28px; color: #fff;
    background: radial-gradient(600px 300px at 80% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%), linear-gradient(135deg, #F96B3B 0%, #D9481A 100%); box-shadow: var(--shadow-lg); }
.band h2 { color: #fff; }
.band p { margin: 14px auto 28px; opacity: .92; max-width: 560px; font-size: 18px; }
.band .btn { background: #fff; color: var(--ink); }

/* Trang con */
.page-hero { padding: 72px 0 40px; text-align: center; background: radial-gradient(800px 360px at 50% 0%, #FFEADD 0%, rgba(255, 234, 221, 0) 75%), var(--bg); }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); }
.page-hero .lead { margin-left: auto; margin-right: auto; }
.page-hero + .block { padding-top: 32px; }
.prose { margin-bottom: 18px; }
.prose h2 { font-size: 22px; margin: 26px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; display: grid; gap: 6px; margin: 8px 0; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; margin-top: 14px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; }
.steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; margin-top: 1px; }
.stack { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; font-weight: 600; color: var(--ink); font-size: 15px; }
.field input { font: inherit; font-weight: 400; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.field input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--bg-tint); color: var(--ink); font-size: 15px; }

/* Chân trang */
footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-grid p { color: var(--muted); margin-top: 12px; }
.foot-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid ul a { color: var(--ink-2); }
.disclaimer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .devices { height: 600px; max-width: 520px; margin: 0 auto; width: 100%; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .pricing { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    body { font-size: 16px; }
    .block { padding: 64px 0; }
    .hero { padding: 40px 0 64px; }
    .nav-links .hide-sm { display: none; }
    .stats strong { font-size: 22px; }
    .stats li { padding: 12px 14px; }
    .devices { height: 520px; }
    .device { width: 230px; border-radius: 38px; padding: 8px; }
    .device img { border-radius: 31px; }
    .devices .device-back { width: 210px; }
    .devices .device-front { left: 0; top: 40px; }
    .pop-card { width: 170px; left: auto; right: 0; bottom: 16px; border-radius: 14px; }
    .steps-grid, .grid-3, .pricing, .foot-grid { grid-template-columns: 1fr; }
    .gallery figure { flex-basis: 200px; }
    .band { padding: 48px 22px; }
}
