/* Mira Technology — giao diện website: nền ngà, đen than, điểm nhấn vàng đồng */
:root {
  --bg: #ffffff;
  --ivory: #faf8f3;
  --ivory-2: #f3efe5;
  --ink: #15171c;
  --ink-2: #2a2d35;
  --text: #23262d;
  --muted: #5f6470;
  --dim: #8c909a;
  --line: #e8e3d8;
  --line-2: #d9d2c3;
  --gold: #c9973a;        /* vàng đồng — điểm nhấn */
  --gold-2: #d4a64a;      /* sáng hơn, dùng trên nền tối */
  --gold-deep: #8f6a1f;   /* chữ vàng trên nền sáng (đủ tương phản) */
  --gold-soft: #f4ead3;
  --ok: #2f7d4f;
  --radius: 18px;
  --shadow: 0 30px 60px -30px rgba(21, 23, 28, .28);
  --shadow-sm: 0 10px 30px -14px rgba(21, 23, 28, .22);
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  /* tên dùng ở trang blog */
  --soft: var(--ivory); --y: var(--gold); --y-deep: var(--gold-deep); --y-soft: var(--gold-soft);
  --border: var(--line); --border-2: var(--line-2); --v: var(--gold); --grad-btn: var(--ink);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; color: var(--ink); }
p, dl, dd { margin: 0; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
/* từ khoá nhấn: chữ nghiêng có chân, màu vàng đồng — thay cho kiểu gạch chân dạ quang */
.hl { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold-deep); letter-spacing: -0.01em; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; font-weight: 600; padding: 12px 22px; font-size: 15px; letter-spacing: -0.005em; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; white-space: nowrap; border: 1px solid transparent; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); box-shadow: inset 0 -2px 0 var(--gold-2); }
.btn-gold { background: var(--gold-2); color: var(--ink); }
.btn-gold:hover { background: #ddb15a; }
.btn-ghost { color: var(--ink); border-color: var(--line-2); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.nav.scrolled { background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 74px; }
/* logo: biểu tượng chính là chữ "m" của "mira" — cao bằng chiều cao chữ thường, đứng trên đường chân chữ */
.logo { flex: none; display: flex; align-items: baseline; font-weight: 600; font-size: 25px; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-m { height: .54em; width: auto; flex: none; margin-right: .035em; }
.logo-mark { width: 38px; height: 27px; flex: none; }
.logo em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: .32em; font-size: 15px; letter-spacing: 0; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { white-space: nowrap; padding: 8px 12px; color: var(--muted); font-size: 15px; font-weight: 500; position: relative; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .nav-login-m { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-login { font-weight: 600; font-size: 14.5px; color: var(--ink); padding: 8px 4px; }
.nav-login:hover { color: var(--gold-deep); }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; }
.lang a, .lang button { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 6px; color: var(--muted); letter-spacing: .04em; }
.lang a.on, .lang button.on { background: var(--ink); color: #fff; }
.nav-toggle { display: none; flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); position: relative; background: #fff; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 140px 0 90px; background: var(--ivory); overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 85% 20%, rgba(201, 151, 58, .10), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--gold); }
.hero h1 { font-size: clamp(38px, 4.5vw, 62px); letter-spacing: -0.035em; line-height: 1.06; font-weight: 800; }
.hero h1 .hl { font-weight: 500; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); margin-top: 24px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-trust { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-2); max-width: 560px; }
.hero-trust dt { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.hero-trust dd { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

.hero-visual { position: relative; padding: 0 24px 24px 0; }
.frame { position: absolute; inset: 24px 0 0 24px; border: 1px solid var(--gold); border-radius: 28px; z-index: 0; }
.hero-photo { position: relative; z-index: 1; width: 100%; aspect-ratio: 11 / 12.5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.float { position: absolute; z-index: 2; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; border: 1px solid var(--line); }
.fc-kpi { left: -36px; top: 16%; width: 220px; display: grid; gap: 4px; }
.fc-kpi small { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.fc-kpi b { font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; }
.fc-kpi em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ok); }
.fc-kpi em span { color: var(--muted); font-weight: 500; }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 38px; margin: 8px 0 4px; }
.mini-bars i { flex: 1; height: var(--h); border-radius: 3px; background: var(--ivory-2); }
.mini-bars i:last-child { background: var(--gold); }
.fc-ai { right: -8px; bottom: 14%; display: flex; gap: 12px; align-items: center; max-width: 270px; }
.fc-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--gold-2); flex: none; }
.fc-icon .ic { width: 18px; height: 18px; }
.fc-ai b { font-size: 14px; color: var(--ink); }
.fc-ai p { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* strip */
.strip { background: var(--ink); color: #c9ccd3; padding: 20px 0; overflow: hidden; }
.strip-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.strip-track span { font-weight: 500; font-size: 15px; letter-spacing: .02em; white-space: nowrap; display: flex; align-items: center; }
.strip-track span::after { content: ''; width: 5px; height: 5px; background: var(--gold-2); transform: rotate(45deg); margin: 0 30px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 120px 0; }
.section.tint { background: var(--ivory); }
.section h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; font-weight: 700; }
.section-head { margin-bottom: 56px; }
.section-head.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: end; }
.section-head.split p, .section-head.center p { color: var(--muted); font-size: 16.5px; max-width: 440px; }
.section-head.center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center p { margin: 16px auto 0; }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 36px; }

/* solutions */
.sol-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sol-photo { grid-row: span 2; margin: 0; position: relative; min-height: 460px; }
.sol-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sol-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 22px; background: linear-gradient(transparent, rgba(21, 23, 28, .85)); display: grid; gap: 4px; color: #fff; }
.sol-photo b { font-size: 16px; font-weight: 600; }
.sol-photo span { color: var(--gold-2); font-size: 13px; letter-spacing: .04em; }
.sol { background: #fff; padding: 30px 26px; cursor: pointer; transition: background .25s; display: flex; flex-direction: column; }
.sol:hover { background: var(--ivory); }
.sol-num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); margin-bottom: auto; padding-bottom: 28px; }
.sol h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.sol p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.sol h3::after { content: ' →'; color: var(--gold); opacity: 0; transition: opacity .2s; }
.sol:hover h3::after { opacity: 1; }

/* AI */
.ai-sec { background: var(--ink); color: #c9ccd3; }
.ai-sec h2 { color: #fff; }
.ai-sec .hl { color: var(--gold-2); }
.ai-sec .eyebrow { color: var(--gold-2); }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.ai-visual { position: relative; }
.ai-visual img { width: 100%; aspect-ratio: 9 / 10; object-fit: cover; border-radius: 24px; }
.chat-demo { position: absolute; right: -36px; bottom: 32px; width: min(330px, 85%); display: grid; gap: 10px; }
.cd { padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.5; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.cd.user { justify-self: end; background: #fff; color: var(--text); border-bottom-right-radius: 4px; max-width: 92%; }
.cd.bot { background: var(--ink-2); color: #e6e7ea; border: 1px solid rgba(212, 166, 74, .35); border-bottom-left-radius: 4px; display: grid; gap: 3px; }
.cd.bot b { color: var(--gold-2); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.ai-grid h2 { font-size: clamp(30px, 3.6vw, 44px); }
.checks { list-style: none; padding: 0; margin: 30px 0 36px; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 34px; font-weight: 500; font-size: 16.5px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--gold); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9973a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat; }
.ai-sec .checks li { color: #e6e7ea; }
.ai-sec .btn-dark { background: var(--gold-2); color: var(--ink); }
.ai-sec .btn-dark:hover { background: #ddb15a; box-shadow: none; }
.checks.sm { margin: 22px 0 28px; gap: 12px; }
.checks.sm li { font-size: 15px; font-weight: 400; padding-left: 30px; color: var(--text); }
.checks.sm li::before { width: 18px; height: 18px; background-size: 10px; }

/* process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.steps li { padding: 30px 28px 10px 0; display: grid; gap: 8px; align-content: start; position: relative; }
.steps li::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li + li::before { left: 28px; }
.steps b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 40px; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.steps h3 { font-size: 19px; font-weight: 600; }
.steps p { color: var(--muted); font-size: 15px; }

/* industries */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; text-align: left; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); z-index: -1; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(21, 23, 28, .88)); z-index: -1; }
.tile:hover img { transform: scale(1.05); }
.tile > span { position: absolute; left: 22px; right: 22px; bottom: 22px; display: grid; gap: 6px; color: #fff; }
.tile b { font-size: 19px; font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid rgba(212, 166, 74, .6); }
.tile small { font-size: 13.5px; color: rgba(255,255,255,.82); }

/* stats */
.stats-band { background: #fff; border-block: 1px solid var(--line); padding: 56px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: grid; gap: 6px; padding: 0 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1.05; }
.stat > span { font-size: 14.5px; color: var(--muted); }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1080px; margin: 0 auto; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; background: #fff; display: flex; flex-direction: column; position: relative; transition: box-shadow .25s, border-color .25s; }
.plan:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.plan h3 { font-size: 23px; font-weight: 700; }
.plan-for { color: var(--muted); font-size: 14.5px; margin-top: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.plan .checks { flex: 1; }
.plan.featured { background: var(--ink); border-color: var(--ink); }
.plan.featured h3 { color: #fff; }
.plan.featured .plan-for { color: var(--gold-2); border-color: rgba(255,255,255,.12); }
.plan.featured .checks li { color: #e6e7ea; }
.plan-badge { position: absolute; top: 20px; right: 20px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--gold-2); color: var(--gold-2); }

/* blog teaser */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s; }
.post-card:hover { box-shadow: var(--shadow); }
.post-cover { aspect-ratio: 16 / 9; background: var(--ivory-2) center/cover; }
.post-body { padding: 22px 24px 26px; display: grid; gap: 8px; }
.post-meta { font-size: 12.5px; color: var(--gold-deep); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.post-body h3 { font-size: 19px; font-weight: 600; }
.post-body p { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.faq-ask { margin-top: 28px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 44px 24px 0; font-weight: 600; font-size: 17px; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 4px; top: 30px; width: 12px; height: 12px; background: linear-gradient(var(--gold), var(--gold)) center/12px 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) center/1.5px 12px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; }

/* contact */
.contact { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.contact-photo { position: relative; }
.contact-photo img { width: 100%; aspect-ratio: 9 / 10; object-fit: cover; border-radius: 24px; }
.contact-card { position: absolute; left: 20px; right: 20px; bottom: 20px; background: var(--ink); border-radius: 16px; padding: 22px 24px; display: grid; gap: 6px; color: #e6e7ea; }
.contact-card b { font-size: 18px; font-weight: 600; color: #fff; }
.contact-card p { font-size: 14px; color: #b9bcc4; margin-bottom: 8px; }
.contact-card a { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; color: #fff; }
.contact-card .ic { color: var(--gold-2); width: 18px; height: 18px; }
.contact-form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 44px; box-shadow: var(--shadow); }
.contact-form .eyebrow { margin-bottom: 0; }
.contact-form h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; color: var(--text); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6470' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 151, 58, .14); }
.field textarea { resize: vertical; min-height: 92px; }
.field input.invalid { border-color: #b91c1c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: 14.5px; min-height: 1em; font-weight: 600; }
.form-msg.ok { color: var(--ok); } .form-msg.err { color: #b91c1c; }
.form-note { font-size: 12.5px; color: var(--dim); text-align: center; margin-top: -6px; }

/* footer */
.footer { background: var(--ink); color: #b9bcc4; padding: 60px 0 30px; }
.footer .logo { color: #fff; }
.footer .logo em { color: #8c909a; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer-brand p { margin-top: 14px; font-size: 14px; max-width: 320px; }
.footer-links { display: flex; gap: 8px 28px; flex-wrap: wrap; font-weight: 500; font-size: 15px; padding-top: 6px; }
.footer-links a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #7d818b; }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.hero .reveal { opacity: 1; transform: none; transition: none; animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) both; }
.hero .reveal:nth-child(2) { animation-delay: .08s; } .hero .reveal:nth-child(3) { animation-delay: .16s; }
.hero .reveal:nth-child(4) { animation-delay: .24s; } .hero .reveal:nth-child(5) { animation-delay: .32s; }
.hero-visual.reveal { animation-delay: .15s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* ---------- chat widget ---------- */
.chat-launcher-wrap { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-launcher { width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; box-shadow: 0 16px 36px -10px rgba(21, 23, 28, .55); transition: transform .25s; border: 1px solid rgba(212, 166, 74, .4); }
.chat-launcher:hover { transform: translateY(-2px); }
.chat-launcher .ic { width: 24px; height: 24px; grid-area: 1 / 1; transition: opacity .25s, transform .25s; }
.chat-launcher .ic-close { opacity: 0; transform: rotate(-90deg); }
.chat-open .chat-launcher .ic-open { opacity: 0; transform: rotate(90deg); }
.chat-open .chat-launcher .ic-close { opacity: 1; transform: none; }
.chat-teaser { position: relative; max-width: 260px; padding: 14px 34px 14px 16px; border-radius: 14px 14px 4px 14px; background: #fff; box-shadow: var(--shadow); font-size: 13.5px; color: var(--text); animation: fadeUp .4s both; cursor: pointer; border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.teaser-close { position: absolute; top: 6px; right: 8px; font-size: 18px; color: var(--dim); width: 22px; height: 22px; }
.chat-panel { position: fixed; right: 24px; bottom: 98px; z-index: 81; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 124px)); display: flex; flex-direction: column; border-radius: 18px; background: #fff; box-shadow: 0 30px 80px -20px rgba(21, 23, 28, .45); border: 1px solid var(--line); overflow: hidden; transform-origin: bottom right; animation: popIn .28s cubic-bezier(.2,.9,.3,1.1) both; }
.chat-panel[hidden] { display: none; }
@keyframes popIn { from { opacity: 0; transform: scale(.95) translateY(8px); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: var(--ink); color: #fff; }
.avatar { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-2); color: var(--ink); font-weight: 800; flex: none; }
.chat-title { flex: 1; min-width: 0; }
.chat-title b { font-size: 14.5px; font-weight: 600; display: block; }
.chat-title small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #b9bcc4; }
.chat-title small i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: #c9ccd3; transition: background .2s, color .2s; }
.icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.icon-btn .ic { width: 18px; height: 18px; }
.chat-body { position: relative; flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--ivory); }
.bubble { max-width: 88%; padding: 11px 15px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; word-wrap: break-word; animation: fadeUp .25s both; }
.bubble.user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.bubble.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text); }
.bubble.bot p + p, .bubble.bot p + ul, .bubble.bot ul + p, .bubble.bot p + ol, .bubble.bot ol + p { margin-top: 8px; }
.bubble.bot ul, .bubble.bot ol { margin: 6px 0; padding-left: 20px; }
.bubble.bot strong { color: var(--ink); font-weight: 600; }
.bubble.bot a { text-decoration: underline; text-decoration-color: var(--gold); }
.bubble.bot h4 { font-size: 15px; margin: 8px 0 4px; }
.bubble.err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.staff-tag { display: block; font-size: 11.5px; font-weight: 700; color: var(--gold-deep); margin-bottom: 3px; }
.typing-dots { display: inline-flex; gap: 5px; padding: 4px 2px; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); animation: blink 1.4s infinite; }
.typing-dots span:nth-child(2) { animation-delay: .2s; } .typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-status { align-self: flex-start; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.lead-ok { align-self: center; font-size: 12.5px; font-weight: 600; color: var(--ok); background: #e8f3ec; padding: 6px 12px; border-radius: 999px; }
.chat-chips { display: flex; gap: 8px; padding: 10px 14px 0; overflow-x: auto; scrollbar-width: none; background: var(--ivory); }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips button { flex: none; font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--ink); border: 1px solid var(--line-2); transition: border-color .2s; }
.chat-chips button:hover { border-color: var(--gold); }
.chat-chips[hidden] { display: none; }
.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 12px; background: var(--ivory); }
.chat-input textarea { flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 12px; outline: none; background: #fff; color: var(--text); font: inherit; font-size: 15px; line-height: 1.45; max-height: 120px; padding: 10px 14px; }
.chat-input textarea:focus { border-color: var(--gold); }
.chat-input button { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; flex: none; }
.chat-input button:disabled { opacity: .4; cursor: not-allowed; }
.chat-foot { font-size: 11px; color: var(--dim); text-align: center; padding: 0 16px 10px; background: var(--ivory); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { position: fixed; top: 74px; left: 0; right: 0; flex-direction: column; padding: 12px 20px 22px; gap: 2px; background: #fff; box-shadow: 0 20px 40px -20px rgba(0,0,0,.2); transform: translateY(-130%); transition: transform .3s; z-index: -1; }
  .nav-open .nav-links { transform: none; }
  .nav-links a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links .nav-login-m { display: block; border-bottom: 0; color: var(--gold-deep); font-weight: 600; }
  .nav-login { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: block; }
  .nav { background: rgba(255,255,255,.95); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .section-head.split { grid-template-columns: 1fr; gap: 14px; }
  .sol-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
  .sol-photo { grid-row: auto; grid-column: 1 / -1; min-height: 300px; }
  .ai-grid, .faq-wrap, .contact { grid-template-columns: 1fr; gap: 48px; }
  .ai-visual, .contact-photo { max-width: 560px; margin: 0 auto; width: 100%; }
  .chat-demo { right: 12px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(3)::before { left: 0; }
  .plans, .posts-grid { grid-template-columns: 1fr; max-width: 540px; }
  .posts-grid { margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .nav-cta { display: none; }
  .hero { padding: 112px 0 64px; }
  .hero h1 { font-size: 36px; }
  .hero-cta .btn { width: 100%; }
  .hero-trust { gap: 14px 22px; margin-top: 36px; }
  .hero-trust > div { flex: 1 1 40%; }
  .hero-trust dt { font-size: 19px; }
  .hero-visual { padding: 0 14px 14px 0; }
  .frame { inset: 14px 0 0 14px; border-radius: 22px; }
  .hero-photo { border-radius: 22px; }
  .fc-kpi { left: -6px; width: 180px; top: 8%; padding: 12px 14px; }
  .fc-kpi b { font-size: 16px; }
  .fc-ai { right: -2px; max-width: 230px; padding: 12px 14px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 36px; }
  .section h2 { font-size: 32px; }
  .sol-grid { grid-template-columns: 1fr; }
  .sol { padding: 22px 20px; flex-direction: row; gap: 16px; align-items: baseline; flex-wrap: wrap; }
  .sol-num { padding: 0; margin: 0; font-size: 18px; width: 26px; }
  .sol h3 { flex: 1; margin: 0; }
  .sol p { flex-basis: 100%; padding-left: 42px; }
  .chat-demo { right: 10px; bottom: 16px; width: 86%; }
  .tiles { gap: 12px; }
  .tile { aspect-ratio: 3 / 4; }
  .tile > span { left: 14px; right: 14px; bottom: 14px; }
  .tile b { font-size: 16px; }
  .tile small { font-size: 12.5px; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li, .steps li + li, .steps li:nth-child(3) { padding: 22px 0 22px 30px; border-left: 1px solid var(--line-2); }
  .steps li::before, .steps li + li::before, .steps li:nth-child(3)::before { left: -4px; top: 30px; }
  .steps b { font-size: 30px; margin-bottom: 6px; }
  .stats-band { padding: 40px 0; }
  .stat { padding: 0 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .plan { padding: 30px 24px; }
  .faq summary { font-size: 16px; }
  .contact-form { padding: 28px 22px; border-radius: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .row-head { flex-direction: column; align-items: flex-start; }
  .footer-bottom { padding-right: 70px; }
  .chat-teaser { display: none !important; }
  .chat-panel { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100dvh - 16px); border-radius: 18px; }
  .chat-launcher-wrap { right: 16px; bottom: 16px; }
  .chat-open .chat-launcher-wrap { display: none; }
}
@media (max-width: 420px) {
  .logo em { display: none; }
  .nav-inner { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   HIỆU ỨNG CHUYỂN ĐỘNG
   ===================================================================== */

/* ---- tiêu đề hiện như mở màn (lấy cảm hứng từ các trang kể chuyện theo cuộn) ---- */
.reveal h2, h2.reveal { clip-path: inset(0 0 100% 0); transform: translateY(28px); transition: clip-path 1.1s cubic-bezier(.2,.8,.2,1) .05s, transform 1.1s cubic-bezier(.2,.8,.2,1) .05s; }
.reveal.in h2, h2.reveal.in { clip-path: inset(-20% -5% -25% -5%); transform: none; }
.no-js .reveal h2 { clip-path: none; transform: none; }

/* ---- ảnh chuyển động lệch tầng ---- */
[data-parallax] { will-change: transform; }
.tile img, .sol-photo img { height: 112%; top: -6%; }

/* ---- thẻ nổi đầu trang nghiêng theo chuột ---- */
.hero-visual { --mx: 0; --my: 0; }
.fc-kpi { transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px), 0); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.fc-ai { transform: translate3d(calc(var(--mx) * 18px), calc(var(--my) * 12px), 0); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.hero-photo { transform: translate3d(calc(var(--mx) * 6px), calc(var(--my) * 4px), 0); transition: transform .6s cubic-bezier(.2,.8,.2,1); }

/* ---- lớp sương: rê chuột để nhìn rõ ---- */
.sol-photo .fog { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; cursor: crosshair; }
.fog-hint { position: absolute; top: 18px; left: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(21, 23, 28, .72); color: #fff; font-size: 12.5px; font-weight: 500; backdrop-filter: blur(6px); transition: opacity .5s; pointer-events: none; }
.fog-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 0 rgba(212, 166, 74, .7); animation: ping 1.8s infinite; }
.fog-hint.gone { opacity: 0; }
.sol-photo figcaption { z-index: 2; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(212, 166, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 166, 74, 0); } }

/* ---- STORY: ghim khung, cuộn để kể chuyện ---- */
.story { position: relative; height: 420vh; background: var(--ivory); transition: background-color .8s ease; }
.story.dark { background: var(--ink); }
.story-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; padding-top: 40px; }
.story-copy { position: relative; }
.story .eyebrow { transition: color .8s; }
.story-steps { display: grid; min-height: 220px; }
.story-step { grid-area: 1 / 1; align-self: start; opacity: 0; transform: translateY(26px); clip-path: inset(0 0 100% 0); transition: opacity .6s, transform .8s cubic-bezier(.2,.8,.2,1), clip-path .8s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.story-step.on { opacity: 1; transform: none; clip-path: inset(-20% -5% -30% -5%); }
.story-step h2 { font-size: clamp(32px, 3.8vw, 50px); letter-spacing: -0.03em; transition: color .8s; clip-path: none !important; transform: none !important; }
.story-step p { color: var(--muted); font-size: 17px; margin-top: 18px; max-width: 420px; transition: color .8s; }
.story.dark .story-step h2 { color: #fff; }
.story.dark .story-step p { color: #b9bcc4; }
.story.dark .hl { color: var(--gold-2); }
.story.dark .eyebrow { color: var(--gold-2); }
.story-progress { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 10px; }
.story-progress li { font-size: 12px; font-weight: 600; color: var(--dim); width: 56px; padding-top: 10px; border-top: 2px solid var(--line-2); transition: color .4s, border-color .4s; }
.story-progress li.on { color: var(--gold-deep); border-color: var(--gold); }
.story.dark .story-progress li { border-color: rgba(255,255,255,.14); color: #6f737d; }
.story.dark .story-progress li.on { border-color: var(--gold-2); color: var(--gold-2); }

.story-stage { position: relative; aspect-ratio: 4 / 3.1; width: 100%; max-width: 680px; justify-self: end; }
.screen { position: absolute; left: 12%; top: 14%; width: 76%; height: 72%; background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(21, 23, 28, .35); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .8s, border-color .8s; }
.story.dark .screen { border-color: rgba(212, 166, 74, .35); box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(212,166,74,.15); }
.screen-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.screen-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--ivory-2); }
.screen-bar b { margin-left: 8px; font-weight: 600; letter-spacing: .02em; }
.screen-body { position: relative; flex: 1; padding: 14px; }
.screen-body > div { position: absolute; inset: 14px; }
.sc-rows { display: grid; gap: 8px; align-content: start; }
.sc-rows div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; color: var(--text); opacity: 0; transform: translateX(-16px); }
.sc-rows i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; }
.sc-rows i.ok { background: #3a9a63; } .sc-rows i.warn { background: var(--gold); }
.sc-rows span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-rows em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-dash { display: grid; grid-template-rows: auto 1fr; gap: 12px; opacity: 0; }
.sc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-kpis div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.sc-kpis small { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.sc-kpis b { font-size: 18px; color: var(--ink); }
.sc-kpis em { font-style: normal; font-size: 11px; font-weight: 600; color: #3a9a63; }
.sc-kpis em.w { color: var(--gold-deep); }
.sc-chart { display: flex; align-items: flex-end; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.sc-chart i { flex: 1; height: calc(var(--h) * var(--g, 0)); border-radius: 3px 3px 0 0; background: var(--ivory-2); }
.sc-chart i:nth-last-child(-n+2) { background: var(--gold); }
.sc-chat { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; pointer-events: none; }
.sc-chat > div { max-width: 78%; padding: 10px 13px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; opacity: 0; transform: translateY(12px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }
.sc-chat .u { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.sc-chat .a { align-self: flex-start; background: #fff; border: 1px solid var(--gold); border-bottom-left-radius: 4px; display: grid; gap: 2px; }
.sc-chat .a b { color: var(--gold-deep); font-size: 11px; letter-spacing: .04em; }

.frag { position: absolute; z-index: 3; will-change: transform, opacity; }
.frag-in { animation: drift 6s ease-in-out infinite; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(21, 23, 28, .35); padding: 10px 13px; font-size: 12.5px; color: var(--text); display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.frag:nth-child(2) .frag-in { animation-delay: -1.5s; } .frag:nth-child(3) .frag-in { animation-delay: -3s; }
.frag:nth-child(4) .frag-in { animation-delay: -4.5s; } .frag:nth-child(5) .frag-in { animation-delay: -2.2s; } .frag:nth-child(6) .frag-in { animation-delay: -3.7s; }
@keyframes drift { 50% { transform: translateY(-8px) rotate(.6deg); } }
.f-file i { font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: #2e7d4f; border-radius: 5px; padding: 4px 5px; }
.f-chat { flex-direction: column; align-items: flex-start; gap: 2px; border-radius: 14px 14px 14px 4px; }
.f-chat b { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.f-note { background: #fbf3dc; border-color: #efdcae; font-family: var(--serif); font-style: italic; font-size: 14px; transform: rotate(-2deg); }
.f-bill { flex-direction: column; align-items: flex-start; gap: 2px; border-style: dashed; }
.f-bill b { font-size: 11px; color: var(--muted); font-weight: 600; }
.f-bill span { font-weight: 700; color: var(--ink); }
.f-cal i { font-style: normal; font-weight: 800; font-size: 15px; color: #fff; background: var(--ink); border-radius: 7px; width: 30px; height: 30px; display: grid; place-items: center; border-top: 4px solid #b5483b; }

.callout { position: absolute; z-index: 4; opacity: 0; font-size: 12.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; white-space: nowrap; transition: color .8s; }
.callout span { padding: 6px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--gold); box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); }
.callout::before { content: ''; width: 46px; height: 1px; background: var(--gold); order: 0; }
.callout::after { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,151,58,.25); }
.callout.c1 { top: 3%; right: 2%; flex-direction: row-reverse; }
.callout.c1::after { left: -4px; }
.callout.c2 { top: 52%; left: -4%; }
.callout.c2::before { order: 2; } .callout.c2::after { right: -4px; }
.callout.c3 { bottom: 6%; right: 6%; flex-direction: row-reverse; }
.callout.c3::after { left: -4px; }
.story.dark .callout span { background: var(--ink-2); color: #fff; }

/* ---- điện thoại / màn hình nhỏ ---- */
@media (max-width: 900px) {
  .story { height: 380vh; }
  .story-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 70px; align-content: center; }
  .story-copy { order: 2; }
  .story-steps { min-height: 150px; }
  .story-step h2 { font-size: 27px; }
  .story-step p { font-size: 15px; margin-top: 10px; }
  .story-progress { margin-top: 14px; }
  .story-stage { order: 1; max-width: 460px; justify-self: center; aspect-ratio: 4 / 3.3; }
  .screen { left: 6%; width: 88%; }
  .frag-in { font-size: 11px; padding: 7px 10px; }
  .f-file span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  .callout { font-size: 11px; }
  .callout::before { width: 22px; }
  .callout.c2 { display: none; }
  .callout.c1 { right: 0; top: 2%; }
  .sc-kpis b { font-size: 14px; }
  .sc-rows div:nth-child(n+5) { display: none; }
  .fog-hint { top: 12px; left: 12px; }
}
@media (max-height: 640px) and (max-width: 900px) {
  .story-step p { display: none; }
}

/* ---- giảm chuyển động: hiện trạng thái cuối, không ghim ---- */
@media (prefers-reduced-motion: reduce) {
  .story { height: auto; }
  .story-sticky { position: relative; height: auto; padding: 100px 0; }
  .frag { display: none; }
  .story-step { position: relative; opacity: 1; transform: none; clip-path: none; grid-area: auto; margin-bottom: 20px; }
  .story-steps { min-height: 0; }
  .sc-rows { display: none; }
  .sc-dash, .callout, .sc-chat > div { opacity: 1 !important; transform: none !important; }
  .sc-chart i { --g: 1; }
  .reveal h2, h2.reveal { clip-path: none; transform: none; }
  .fog, .fog-hint { display: none; }
}
.bubble.bot.composing { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.bubble.bot.reply-in { animation: replyIn .45s cubic-bezier(.2,.7,.2,1); }
@keyframes replyIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .bubble.bot.reply-in { animation: none; } }

.lang a:hover { text-decoration: none; color: var(--ink); }
.lang a.on:hover { color: #fff; }

/* vùng chạm đủ lớn trên điện thoại (khuyến nghị ≥ 40px) */
@media (max-width: 760px) {
  .lang a, .lang button { min-width: 40px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; }
  .logo { padding: 8px 0; }
  .contact-card a { min-height: 44px; }
  .footer-links { gap: 0 24px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
