/* DiLab — giao diện trang giới thiệu. Không qua build: sửa trực tiếp tệp này.
   Hướng thiết kế: nền sáng trung tính, một màu nhấn (xanh), đường kẻ mảnh thay cho khung thẻ,
   không gradient/glow, chuyển động tối thiểu. */

:root {
  --paper: #faf9f6;
  --paper-2: #f1efea;
  --white: #ffffff;
  --ink: #15171c;
  --ink-2: #2c3038;
  --muted: #636770;
  --line: #e2dfd7;
  --line-2: #cfcbc1;

  --accent: #1f55e0;
  --accent-ink: #1946bd;
  --accent-soft: #e8eefc;

  --dark: #131519;
  --dark-2: #1b1e24;
  --dark-line: rgba(255, 255, 255, 0.1);
  --dark-text: #b4b8c1;
  --dark-accent: #8eabff;

  --mint: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;

  --container: 1160px;
  --gutter: 24px;
  --header-h: 68px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.22; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 28px; height: 28px; }

.num { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
.text-link .icon { width: 17px; height: 17px; }
.text-link:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--ink); background: rgba(250, 249, 246, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; }
.brand b { font-weight: 700; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a.is-active { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--accent); }
.header-cta { min-height: 40px; padding: 0 16px; font-size: 14px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: transparent; align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle .i-close { display: none; }
.nav-open .menu-toggle .i-open { display: none; }
.nav-open .menu-toggle .i-close { display: block; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 80px) 0 96px; border-bottom: 1px solid var(--line); }
.hero .container { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.hero-kicker { font-size: 15px; font-weight: 500; color: var(--muted); }
.hero-kicker b { color: var(--ink); font-weight: 600; }
.hero h1 { margin-top: 18px; font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { margin-top: 22px; max-width: 540px; font-size: 18px; color: var(--ink-2); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-links { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); max-width: 600px; }
.hero-links a { display: block; padding: 14px 16px 0 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--ink-2); }
.hero-links a + a { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-links a .num { display: block; margin-bottom: 4px; }
.hero-links a:hover { color: var(--accent); }

/* Hình hero: khung camera + điện thoại Keyless */
.hero-figure { width: 100%; max-width: 580px; margin-left: auto; }
.hero-stage { position: relative; aspect-ratio: 1 / .66; container-type: inline-size; }
.hv-cam { position: absolute; left: 0; top: 14%; width: 68%; }
.hv-phone { position: absolute; right: 0; top: 0; width: 30%; z-index: 2; }
.hero-figure figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }

.hv-card { border-radius: var(--radius-lg); overflow: hidden; background: #10141c; border: 1px solid rgba(0, 0, 0, .12); box-shadow: 0 24px 48px -28px rgba(20, 22, 28, .45); }
.hv-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: clamp(7px, 2cqw, 11px) clamp(10px, 2.4cqw, 14px); font-size: clamp(9.5px, 2.1cqw, 12px); font-weight: 500; color: #d7dae0;
  border-bottom: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; background: #161a22;
}
.hv-card-head span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.rec-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.6s infinite; }
.hv-tag { font-size: clamp(8.5px, 1.9cqw, 11px); font-weight: 600; padding: 2px 7px; border-radius: 4px; background: rgba(16, 185, 129, .16); color: #6ee7b7; white-space: nowrap; }
.hv-tag.warn { background: rgba(245, 158, 11, .18); color: #fcd34d; }

/* ---------- Điện thoại (dùng ở hero + Keyless) ---------- */
.phone {
  position: relative; aspect-ratio: 9 / 19; border-radius: 15% / 7%; padding: 4%;
  background: #1c1f26; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .1);
}
.phone-screen { position: relative; height: 100%; border-radius: 12% / 5.6%; overflow: hidden; background: #0f1218; container-type: inline-size; }
.phone-island { position: absolute; top: 2.4%; left: 50%; transform: translateX(-50%); width: 32%; height: 3.6%; border-radius: 999px; background: #000; z-index: 2; }
.app { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 15cqw 7cqw 7cqw; color: #fff; font-size: 5.2cqw; }
.app-top { display: flex; justify-content: space-between; align-items: center; font-size: 4.6cqw; color: #9aa0ab; }
.app-title { margin-top: 2cqw; font-size: 7.4cqw; font-weight: 700; letter-spacing: -0.02em; }
.app-car { margin: 5cqw -2cqw 0; }
.app-status {
  margin: 1cqw auto 0; display: inline-flex; align-items: center; gap: 2cqw; padding: 1.4cqw 3.6cqw; border-radius: 2cqw;
  font-size: 4.4cqw; font-weight: 600; background: rgba(16, 185, 129, .15); color: #6ee7b7;
}
.app-status .icon { width: 4.6cqw; height: 4.6cqw; }
.app-lock { margin: 7cqw auto 0; width: 32cqw; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--accent); }
.app-lock .icon { width: 12cqw; height: 12cqw; stroke-width: 2.2; }
.app-info { margin-top: 6cqw; display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqw; }
.app-info span { padding: 3cqw; border-radius: 3cqw; background: rgba(255, 255, 255, .05); font-size: 3.4cqw; color: #8e94a0; line-height: 1.35; }
.app-info b { display: block; font-size: 4.2cqw; color: #fff; }
.app-grid { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.6cqw; }
.app-btn { display: flex; flex-direction: column; align-items: center; gap: 1.6cqw; padding: 3.2cqw 0; border-radius: 3.5cqw; background: rgba(255, 255, 255, .07); font-size: 3.4cqw; color: #c8ccd4; }
.app-btn .icon { width: 6.4cqw; height: 6.4cqw; color: #fff; }
.app-share {
  margin-top: 3cqw; display: flex; align-items: center; gap: 3cqw; padding: 3.4cqw; border-radius: 3.5cqw;
  background: rgba(255, 255, 255, .06); font-size: 3.6cqw; color: #b4b8c1; line-height: 1.35;
}
.app-share b { display: block; color: #fff; font-size: 4cqw; }
.app-share .icon { width: 7cqw; height: 7cqw; color: var(--dark-accent); }

/* ---------- Khung section ---------- */
.section { padding: 112px 0; position: relative; }
.section-soft { background: var(--paper-2); }
.section-head { max-width: 720px; }
.kicker { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); }
.kicker .num { color: inherit; margin-right: 8px; }
.section h2 { margin-top: 12px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.025em; }
.section-lead { margin-top: 18px; font-size: 17px; color: var(--ink-2); }

/* ---------- Về DiLab ---------- */
.about-grid { margin-top: 64px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.name-word { font-size: clamp(64px, 8vw, 104px); font-weight: 700; letter-spacing: -0.05em; line-height: .95; }
.name-word span { color: var(--accent); }
.name-split { margin-top: 28px; border-top: 1px solid var(--line-2); }
.name-split > div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.name-split dt { font-weight: 700; font-size: 18px; }
.name-split dd { color: var(--ink-2); font-size: 15px; padding-top: 2px; }
.name-block p { margin-top: 22px; color: var(--muted); font-size: 15.5px; max-width: 440px; }

.essence-list { border-top: 1px solid var(--line-2); }
.essence-list li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.essence-list .num { padding-top: 4px; }
.essence-list h3 { font-size: 19px; font-weight: 600; }
.essence-list .en { margin-left: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.essence-list p { margin-top: 4px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- 3 nền tảng ---------- */
.platform-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.platform { display: flex; flex-direction: column; padding: 24px 28px 8px 0; }
.platform + .platform { padding-left: 28px; border-left: 1px solid var(--line-2); }
.platform h3 { margin-top: 18px; font-size: 22px; font-weight: 700; }
.platform p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.platform .platform-tags { margin-top: 14px; font-size: 14px; color: var(--muted); }
.platform .text-link { margin-top: auto; padding-top: 24px; }
.platform:hover h3 { color: var(--accent); }

/* ---------- 01 Giải pháp ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split > *, .product > *, .hero .container > *, .about-grid > *, .contact-wrap > * { min-width: 0; }
.check-list { margin-top: 28px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.check-list .tick { flex: none; margin-top: 3px; color: var(--accent); }
.check-list .tick .icon { width: 18px; height: 18px; stroke-width: 2.4; }

.stack { padding: 8px 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.stack-title { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 13.5px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.stack-title .hv-tag { background: rgba(16, 185, 129, .12); color: #047857; }
.layer { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 18px 0; }
.layer + .layer { border-top: 1px dashed var(--line-2); }
.layer-ico { color: var(--accent); padding-top: 1px; }
.layer b { display: block; font-size: 15.5px; font-weight: 600; }
.layer-items { margin-top: 2px; font-size: 14px; color: var(--muted); }
.layer-items span + span::before { content: " · "; }

.service-grid { margin-top: 88px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.service { padding: 26px 0 30px; border-top: 1px solid var(--line-2); }
.service-ico { display: block; color: var(--accent); }
.service h3 { margin-top: 14px; font-size: 18px; font-weight: 600; }
.service p { margin-top: 6px; font-size: 15px; color: var(--muted); }

.steps-title { margin-top: 64px; font-size: 14px; font-weight: 600; color: var(--muted); }
.steps { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step { padding: 22px 24px 24px; }
.step + .step { border-left: 1px solid var(--line); }
.step-num { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); }
.step h4 { margin-top: 8px; font-size: 16.5px; font-weight: 600; }
.step p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }

/* ---------- 02 Sản phẩm (nền tối) ---------- */
.section-night { background: var(--dark); color: #fff; }
.section-night .kicker { color: var(--dark-accent); }
.section-night .section-lead { color: var(--dark-text); }

.product { position: relative; margin-top: 96px; display: grid; grid-template-columns: 1.08fr 1fr; gap: 72px; align-items: center; }
.product.reverse { grid-template-columns: 1fr 1.08fr; }
.product.reverse .product-visual { order: 2; }
.product-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--dark-accent); }
.product-label .icon { width: 18px; height: 18px; }
.product h3 { margin-top: 14px; font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.025em; }
.product-desc { margin-top: 14px; font-size: 16.5px; color: var(--dark-text); }
.feature-list { margin-top: 26px; border-top: 1px solid var(--dark-line); }
.feature-list li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--dark-line); font-size: 15.5px; color: #eceef2; }
.feature-list .f-ico { flex: none; padding-top: 2px; color: var(--dark-accent); }
.feature-list .icon { width: 19px; height: 19px; }
.feature-list small { display: block; font-size: 13.5px; color: #8e94a0; margin-top: 1px; }

.product-visual { position: relative; }
.visual-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #10141c; border: 1px solid var(--dark-line); }
.product-visual figcaption { margin-top: 12px; font-size: 13px; color: #8e94a0; }

.ecosystem {
  margin-top: 112px; padding-top: 40px; border-top: 1px solid var(--dark-line);
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start;
}
.ecosystem h3 { font-size: 24px; font-weight: 700; }
.ecosystem p { margin-top: 10px; color: var(--dark-text); font-size: 15.5px; }
.eco-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.eco { padding-left: 16px; border-left: 1px solid var(--dark-line); font-size: 15px; font-weight: 600; line-height: 1.4; }
.eco .icon { color: var(--dark-accent); margin-bottom: 12px; }
.eco small { display: block; margin-top: 4px; font-weight: 400; font-size: 13.5px; color: #8e94a0; }

/* ---------- 03 Startup ---------- */
.startup-visual { position: relative; padding: 0 0 40px; }
.browser { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 24px 48px -32px rgba(20, 22, 28, .35); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d2c8; }
.browser-url { margin-left: 10px; flex: 1; min-width: 0; height: 26px; border-radius: 5px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap; }
.startup-phone { position: absolute; right: -10px; bottom: 0; width: 32%; }
.startup-phone .phone-screen { background: var(--paper); }

.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 28px; }
.offer { padding: 18px 0 20px; border-top: 1px solid var(--line-2); }
.offer .icon { color: var(--accent); width: 20px; height: 20px; }
.offer b { display: block; margin-top: 10px; font-size: 16px; font-weight: 600; }
.offer span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

.value-row { margin-top: 88px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; }
.value { padding-top: 22px; border-top: 2px solid var(--ink); }
.value .v-ico { display: block; color: var(--accent); }
.value h4 { margin-top: 12px; font-size: 17px; font-weight: 600; }
.value p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

.timeline-title { margin-top: 72px; font-size: 14px; font-weight: 600; color: var(--muted); }
.timeline { margin-top: 14px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.tl { padding: 18px 20px 0 0; }
.tl + .tl { padding-left: 20px; border-left: 1px solid var(--line); }
.tl-dot { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); }
.tl h4 { margin-top: 6px; font-size: 15.5px; font-weight: 600; }
.tl p { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* ---------- Năng lực công nghệ ---------- */
.tech-grid { margin-top: 48px; border-top: 2px solid var(--ink); }
.tech { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.tech-head { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; }
.tech-head .icon { color: var(--accent); width: 20px; height: 20px; }
.tech ul { display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--ink-2); font-size: 15.5px; }
.tech li + li::before { content: "·"; margin: 0 10px; color: var(--line-2); }

/* ---------- Liên hệ ---------- */
#contact { border-top: 1px solid var(--line); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; }
.contact-info { margin-top: 32px; border-top: 1px solid var(--line-2); }
.contact-info a {
  display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: 17px; min-width: 0;
}
.contact-info a:hover { color: var(--accent); }
.contact-info .c-ico { color: var(--accent); }
.contact-info small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.contact-info span { min-width: 0; overflow-wrap: anywhere; }

.form { padding: 32px; border-radius: var(--radius-lg); background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.form h3 { font-size: 20px; font-weight: 700; }
.form > p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.form-grid { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 112px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23636770' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .err { display: none; font-size: 13px; color: #c8302b; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #c8302b; }
.field.invalid .err { display: block; }
.form .btn { margin-top: 20px; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 28px; background: var(--dark); color: var(--dark-text); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand b { color: var(--dark-accent); }
.footer-about { margin-top: 14px; font-size: 14.5px; max-width: 360px; }
.site-footer h4 { color: #fff; font-size: 14px; font-weight: 600; }
.site-footer ul { margin-top: 14px; display: grid; gap: 8px; font-size: 14.5px; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--dark-line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #80858f;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 140%);
  max-width: calc(100% - 32px); padding: 13px 18px; border-radius: var(--radius); background: var(--ink); color: #fff;
  font-size: 14.5px; font-weight: 500; visibility: hidden;
  transition: transform .3s ease, visibility 0s .3s;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }

/* ---------- Chuyển động trong hình minh hoạ ---------- */
@keyframes blink { 50% { opacity: .25; } }
@keyframes dash { to { stroke-dashoffset: -400; } }
.svg-route { stroke-dasharray: 10 10; animation: dash 18s linear infinite; }
.svg-blink { animation: blink 1.6s infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Lớp phủ bản đồ GPS ---------- */
.map-panel {
  position: absolute; left: 14px; top: 14px; padding: 10px 12px; border-radius: var(--radius);
  background: rgba(14, 16, 21, .88); border: 1px solid rgba(255, 255, 255, .08); font-size: 13px;
}
.map-panel b { display: block; font-size: 13.5px; font-weight: 600; }
.map-legend { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11.5px; color: #b4b8c1; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; }
.map-replay {
  position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius); background: rgba(14, 16, 21, .9); border: 1px solid rgba(255, 255, 255, .08);
  font-size: 12.5px; font-weight: 500; color: #d7dae0; white-space: nowrap;
}
.map-replay .icon { color: var(--dark-accent); }
.replay-bar { position: relative; flex: 1; min-width: 40px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.replay-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 62%; border-radius: inherit; background: var(--dark-accent); }
.replay-bar i::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: translateY(-50%); }

/* ---------- Khung Keyless ---------- */
.keyless-frame { background: #161a22; }
.keyless-waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.keyless-stage { position: relative; display: grid; min-height: 540px; place-items: center end; padding: 40px 8% 40px 0; }
.keyless-stage .phone { width: min(240px, 44%); position: relative; z-index: 2; }
.keyless-car { position: absolute; left: 3%; bottom: 13%; width: 58%; max-width: none; z-index: 1; }

/* ---------- Mockup web/app cho Startup ---------- */
.mock { padding: 18px; background: #fff; }
.mock i { display: block; height: 10px; border-radius: 3px; background: #e9e6df; }
.mock i.sm { height: 7px; background: #f0ede7; }
.w90 { width: 90%; } .w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; }
.mock-nav { display: flex; align-items: center; gap: 14px; }
.mock-logo { width: 26px; height: 26px; border-radius: 6px; background: var(--ink); }
.mock-links { flex: 1; display: flex; gap: 10px; }
.mock-links i { width: 44px; height: 7px; }
.mock-btn { width: 72px; height: 26px; border-radius: 5px; background: var(--accent-soft); }
.mock-hero { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; padding: 20px; border-radius: 8px; background: var(--paper-2); }
.mock-copy { display: grid; gap: 9px; }
.mock-copy i:first-child, .mock-copy i:nth-child(2) { height: 14px; background: #cfcbc1; }
.mock-cta { margin-top: 6px; width: 96px; height: 28px; border-radius: 5px; background: var(--ink); }
.mock-chart { padding: 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.mock-cards { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-cards > div { display: grid; gap: 8px; padding: 14px; border-radius: 8px; border: 1px solid var(--line); }
.mock-cards span { width: 24px; height: 24px; border-radius: 6px; background: var(--accent-soft); }

.mapp { position: absolute; inset: 0; padding: 18cqw 6cqw 6cqw; display: flex; flex-direction: column; gap: 4cqw; }
.mapp i { display: block; height: 3.4cqw; border-radius: 1cqw; background: #dedad2; }
.mapp i.sm { width: 60%; height: 2.6cqw; background: #e9e6df; }
.mapp-head { padding: 6cqw; border-radius: 4cqw; background: var(--ink); display: grid; gap: 3cqw; }
.mapp-head i { background: rgba(255, 255, 255, .85); width: 70%; height: 4cqw; }
.mapp-head i.sm { background: rgba(255, 255, 255, .45); }
.mapp-card { display: flex; gap: 4cqw; align-items: center; padding: 4.5cqw; border-radius: 4cqw; background: #fff; border: 1px solid var(--line); }
.mapp-card span { width: 11cqw; height: 11cqw; flex: none; border-radius: 3cqw; background: var(--accent-soft); }
.mapp-card div { flex: 1; display: grid; gap: 2.4cqw; }
.mapp-tab { margin-top: auto; display: flex; justify-content: space-around; padding: 4cqw; border-radius: 4cqw; background: #fff; border: 1px solid var(--line); }
.mapp-tab i { width: 7cqw; height: 7cqw; border-radius: 2cqw; background: #e3e0d8; }
.mapp-tab i:first-child { background: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero .container { grid-template-columns: 1fr; gap: 56px; }
  .hero-figure { margin: 0; max-width: 600px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .split, .product, .product.reverse { grid-template-columns: 1fr; gap: 48px; }
  .product.reverse .product-visual { order: 0; }
  .ecosystem { grid-template-columns: 1fr; gap: 28px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
}

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-open .site-header { background: var(--paper); border-bottom-color: var(--line); }
  .nav-open .nav {
    display: flex; position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 4px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .nav a { padding: 14px 0; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-open .nav a.is-active { text-decoration: none; color: var(--accent); }
  .nav-open .nav .nav-cta { display: flex; margin-top: 16px; justify-content: center; color: #fff; border-bottom: 0; padding: 0 22px; }
  .platform-grid { grid-template-columns: 1fr; border-top-width: 2px; }
  .platform, .platform + .platform { padding: 24px 0 28px; border-left: 0; }
  .platform + .platform { border-top: 1px solid var(--line-2); }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .eco-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .tl, .tl + .tl { display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .tl-dot { grid-row: span 2; padding-top: 2px; }
  .tl h4 { margin-top: 0; }
  .tech { grid-template-columns: 160px 1fr; }
}
.nav-cta { display: none; }

@media (max-width: 640px) {
  :root { --gutter: 18px; --header-h: 62px; }
  .section { padding: 80px 0; }
  .hero { padding: calc(var(--header-h) + 48px) 0 64px; }
  .hero-lead { font-size: 16.5px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-links { grid-template-columns: 1fr; margin-top: 40px; }
  .hero-links a, .hero-links a + a { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero-links a .num { margin: 0; }
  .hv-cam { width: 68%; }
  .hv-cam .hv-tag { display: none; }
  .hv-phone { width: 30%; }
  .about-grid { margin-top: 44px; }
  .service-grid, .value-row, .offer-grid, .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .product { margin-top: 72px; }
  .ecosystem { margin-top: 80px; }
  .tech { grid-template-columns: 1fr; gap: 6px; }
  .form { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .startup-phone { width: 36%; right: 0; }
  .keyless-stage { min-height: 420px; padding-right: 6%; }
  .keyless-stage .phone { width: 50%; }
  .keyless-car { width: 62%; left: 0; bottom: 12%; }
  .map-panel { left: 10px; top: 10px; padding: 8px 10px; }
  .map-legend { display: none; }
  .map-replay { left: 10px; right: 10px; bottom: 10px; padding: 9px 10px; gap: 8px; font-size: 11px; }
  .map-replay > span:last-child { display: none; }
  .mock { padding: 12px; }
  .mock-hero { grid-template-columns: 1fr; padding: 14px; }
  .mock-chart { display: none; }
}

@media (max-width: 359px) {
  .hero h1 { font-size: 32px; }
  .eco-grid { grid-template-columns: 1fr; }
}
