/* ============ Tokens ============ */
:root {
  --navy-950: #071330;
  --navy-900: #0b1b3a;
  --navy-800: #13264d;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --cyan-500: #06b6d4;
  --mint-300: #7cf3d4;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --grad: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(7, 19, 48, .35);
  --header-h: 72px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong { color: var(--ink); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Line icons by default; illustrations opt out */
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark, .about__logo, .cta__mark, .scene, .archive, .stamp { stroke: none; stroke-width: 1; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .55em 1.1em; font-size: .9rem; }
.btn--lg { padding: .95em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .6); }
.btn--primary:hover { box-shadow: 0 16px 32px -10px rgba(37, 99, 235, .7); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--white { background: #fff; color: var(--navy-900); }
.btn--outline-white { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--outline-white:hover { background: rgba(255, 255, 255, .12); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 1rem;
}
.eyebrow--light {
  color: #bfe9ff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15);
  padding: .45em 1em; border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-300); box-shadow: 0 0 0 4px rgba(124, 243, 212, .2); }

/* ============ Header ============ */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s ease, box-shadow .3s ease;
}
.header.is-scrolled { background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: .03em; transition: color .3s; }
.brand__text small { font-size: .66rem; font-weight: 600; color: rgba(255, 255, 255, .7); letter-spacing: .18em; text-transform: uppercase; margin-top: 3px; transition: color .3s; }
.header.is-scrolled .brand__text strong { color: var(--ink); }
.header.is-scrolled .brand__text small { color: var(--muted); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > a:not(.btn) { color: rgba(255, 255, 255, .85); font-weight: 500; font-size: .93rem; position: relative; transition: color .2s; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width .25s ease;
}
.nav > a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }
.nav > a:not(.btn):hover { color: #fff; }
.header.is-scrolled .nav > a:not(.btn) { color: var(--text); }
.header.is-scrolled .nav > a:not(.btn):hover, .header.is-scrolled .nav a.is-active { color: var(--ink); }

/* Language switcher */
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); transition: border-color .3s; }
.lang a { padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: rgba(255, 255, 255, .75); transition: background .2s, color .2s; }
.lang a:hover { color: #fff; }
.lang a.is-current { background: #fff; color: var(--navy-900); }
.header.is-scrolled .lang { border-color: var(--line); }
.header.is-scrolled .lang a { color: var(--muted); }
.header.is-scrolled .lang a.is-current { background: var(--navy-900); color: #fff; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s, background .3s; }
.header.is-scrolled .burger span, .header.nav-open .burger span { background: var(--ink); }
.header.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.nav-open .burger span:nth-child(2) { opacity: 0; }
.header.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden; color: #cbd5e1;
  background: radial-gradient(1200px 600px at 80% -10%, #1d3b7a 0%, transparent 60%), var(--navy-950);
  padding: calc(var(--header-h) + 64px) 0 90px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.blob--1 { width: 520px; height: 520px; background: #2563eb; top: -160px; right: -120px; animation: float 14s ease-in-out infinite; }
.blob--2 { width: 420px; height: 420px; background: #06b6d4; bottom: -220px; left: -120px; opacity: .3; animation: float 18s ease-in-out infinite reverse; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 40px); } }

.hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.1rem; color: #b8c4d9; max-width: 560px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.2rem; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .92rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; color: #d6deeb; }
.hero__trust svg { width: 18px; height: 18px; color: var(--mint-300); stroke-width: 2.6; }

/* Hero illustration */
.hero__art { position: relative; }
.scene { width: 100%; height: auto; overflow: visible; }
.scene .monitor { animation: bob 7s ease-in-out infinite; }
.scene .boxes .papers { animation: bob 5s ease-in-out infinite; transform-box: fill-box; }
.scene .feed { animation: feed 3.2s ease-in-out infinite; }
.scene .beam { animation: beam 1.6s ease-in-out infinite; }
.scene .led { animation: led 1.6s ease-out infinite; transform-origin: 364px 418px; }
.scene .row { animation: row 6.4s ease-in-out infinite; }
.scene .row:nth-child(2) { animation-delay: .4s; }
.scene .row:nth-child(3) { animation-delay: .8s; }
.scene .row:nth-child(4) { animation-delay: 1.2s; }
.scene .ring { animation: ring-fill 6.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes feed { 0% { transform: translateY(-40px); } 60%, 100% { transform: translateY(40px); } }
@keyframes beam { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes led { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes row { 0%, 8% { opacity: 0; } 18%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ring-fill { 0% { stroke-dashoffset: 75; } 60%, 100% { stroke-dashoffset: 14; } }

.chip {
  position: absolute; background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 14px;
  box-shadow: var(--shadow-lg); font-size: .85rem; padding: 12px 14px;
}
.chip svg { width: 18px; height: 18px; }
.chip--ocr { left: 0; top: 12%; display: flex; align-items: center; gap: 12px; animation: float2 8s ease-in-out infinite; }
.chip--ocr b { display: block; font-size: .88rem; }
.chip--ocr small { color: var(--muted); font-size: .74rem; }
.chip--meta { right: -2%; top: 64%; width: 210px; animation: float2 7s ease-in-out infinite reverse; }
.chip__title { font-weight: 700; color: var(--blue-600); margin-bottom: 6px; font-size: .82rem; }
.chip__row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px dashed var(--line); font-size: .76rem; }
.chip__row span { color: var(--muted); white-space: nowrap; }
.chip__row .tag { background: #dcfce7; color: #15803d; padding: 0 8px; border-radius: 999px; }
.chip--lock { left: 6%; bottom: -2%; display: flex; align-items: center; gap: 8px; font-weight: 600; background: var(--grad); color: #fff; animation: float2 9s ease-in-out infinite; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============ Marquee ============ */
.marquee { padding: 34px 0 30px; border-bottom: 1px solid var(--line); background: #fff; }
.marquee__label { text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; padding: 0 20px; }
.marquee__track {
  display: flex; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__list { display: flex; gap: 56px; padding: 0 56px 0 0; margin: 0; list-style: none; flex-shrink: 0; animation: marquee 45s linear infinite; }
.marquee__track:hover .marquee__list { animation-play-state: paused; }
.marquee__list li { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 700; font-size: 1.05rem; color: #475569; }
.marquee__list svg { width: 24px; height: 24px; color: var(--blue-600); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ============ Sections ============ */
.section { padding: 110px 0; }
.section--tight { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head p { color: var(--muted); font-size: 1.05rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about__art { position: relative; }
.archive { width: 100%; height: auto; }
.archive .tablet { animation: bob 6s ease-in-out infinite; }
.archive .badge { animation: pop 3s ease-in-out infinite; transform-origin: 460px 150px; }
@keyframes pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.about__card {
  position: absolute; left: 6%; bottom: -18px; display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 16px; padding: 14px 20px 14px 14px; box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.about__logo { width: 46px; height: 46px; }
.about__card b { display: block; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.about__card span { font-size: .8rem; color: var(--muted); }
.about__content > p { font-size: 1.03rem; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 1.8rem; }
.pillar { display: flex; gap: 14px; padding: 18px; border-radius: 16px; background: var(--bg-alt); border: 1px solid var(--line); }
.pillar b { display: block; color: var(--ink); margin-bottom: 2px; }
.pillar p { margin: 0; font-size: .9rem; color: var(--muted); }
.pillar__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; flex-shrink: 0; }
.pillar__ico svg { width: 22px; height: 22px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 28px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service__art {
  width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff); transition: transform .3s ease;
}
.service:hover .service__art { transform: rotate(-4deg) scale(1.05); }
.service__art svg { width: 62px; height: 62px; stroke: none; }
.f-soft { fill: #cfe0fd; }
.f-mid { fill: #7fb0fb; }
.f-main { fill: var(--blue-600); }
.s-main { fill: none; stroke: var(--blue-600); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.s-mid { fill: none; stroke: #60a5fa; stroke-width: 3; stroke-linecap: round; }
.scanline { fill: var(--cyan-500); animation: scanline 2.4s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(6, 182, 212, .8)); }
@keyframes scanline { 0%, 100% { transform: translateY(-22px); } 50% { transform: translateY(22px); } }
.service p { font-size: .95rem; color: var(--muted); }
.service ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service li { font-size: .78rem; font-weight: 600; color: var(--blue-600); background: #eff6ff; padding: 4px 10px; border-radius: 999px; }

/* Before / After */
.ba-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.ba-intro > p { color: var(--muted); font-size: 1.03rem; }
.mini-steps { list-style: none; counter-reset: s; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 14px; }
.mini-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; }
.mini-steps li::before {
  content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: #eff6ff; color: var(--blue-600); font-weight: 800; font-size: .9rem;
}
.mini-steps b { color: var(--ink); }
.mini-steps span { font-size: .9rem; color: var(--muted); }

.ba { position: relative; height: 540px; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); user-select: none; -webkit-user-select: none; }
.ba__layer { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; }
.ba__paper { background: radial-gradient(circle at 30% 20%, #efe6d0, #d9cdb0); }
.ba__data { background: radial-gradient(700px 400px at 100% 0%, #1d3b7a, transparent 60%), var(--navy-950); clip-path: inset(0 0 0 var(--pos)); }
.ba__tag { position: absolute; top: 18px; left: 18px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(60, 45, 20, .75); color: #fff; padding: 5px 12px; border-radius: 999px; }
.ba__tag--data { left: auto; right: 18px; background: var(--grad); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 12px rgba(0, 0, 0, .3); }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--blue-600); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.ba__handle svg { width: 24px; height: 24px; stroke-width: 2.4; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }

.paper {
  position: relative; width: 100%; max-width: 440px; padding: 28px 30px; transform: rotate(-1.5deg);
  font-family: "Noto Serif", Georgia, serif; color: #3d3427; font-size: 11px; line-height: 1.5;
  background:
    radial-gradient(circle at 80% 90%, rgba(160, 120, 60, .18), transparent 40%),
    radial-gradient(circle at 10% 10%, rgba(160, 120, 60, .12), transparent 35%),
    #f8f1df;
  box-shadow: 0 20px 40px -10px rgba(60, 40, 10, .45), inset 0 0 40px rgba(150, 110, 50, .15);
}
.paper__head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; text-align: center; margin-bottom: 18px; }
.paper__head b { display: block; font-size: 10.5px; }
.paper__head span, .paper__head i { display: block; margin-top: 6px; font-size: 10.5px; }
.paper__head u { display: block; font-size: 10.5px; font-weight: 700; text-underline-offset: 3px; }
.paper h4 { text-align: center; color: #2e271c; font-family: inherit; font-size: 15px; margin: 0; letter-spacing: .04em; }
.paper__sub { text-align: center; font-weight: 700; margin: 2px 0 14px; }
.paper__lines { display: grid; gap: 9px; }
.paper__lines i { display: block; height: 5px; width: 100%; border-radius: 3px; background: rgba(61, 52, 39, .28); }
.paper__sign { position: relative; margin: 18px 0 0 auto; width: 120px; text-align: center; font-weight: 700; }
.paper__sign .stamp { position: absolute; width: 86px; height: 86px; left: 2px; top: -26px; opacity: .75; transform: rotate(-12deg); }
.paper__sign span { position: relative; display: block; padding-bottom: 34px; }

.record { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.record__top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.record__top b { display: block; color: var(--ink); font-size: .95rem; }
.record__top small { color: var(--muted); font-size: .76rem; }
.record__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; flex-shrink: 0; }
.record__ico svg { width: 22px; height: 22px; }
.record__ok { margin-left: auto; font-size: .72rem; font-weight: 700; background: #dcfce7; color: #15803d; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.record dl { margin: 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.record dl div { min-width: 0; }
.record dl .wide { grid-column: 1 / -1; }
.record dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.record dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; font-size: .88rem; }
.record .pill { background: #eff6ff; color: var(--blue-600); padding: 1px 10px; border-radius: 999px; font-size: .8rem; }
.record__search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--bg-alt); font-size: .85rem; color: var(--ink); }
.record__search svg { width: 18px; height: 18px; color: var(--blue-600); }
.record__search em { margin-left: auto; font-style: normal; font-size: .75rem; color: #15803d; font-weight: 600; }

/* AI solutions */
.section--ai {
  background:
    radial-gradient(900px 500px at 100% 0%, #e0f2fe, transparent 60%),
    radial-gradient(700px 420px at 0% 100%, #ede9fe, transparent 60%), #fff;
}
.eyebrow__ico { width: 16px; height: 16px; }
.pipeline { list-style: none; padding: 0; margin: 0 0 60px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.pipeline li {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
  font-weight: 700; color: var(--ink); font-size: .9rem; line-height: 1.3;
}
.pipeline li:not(:last-child)::after {
  content: ""; position: absolute; right: -14px; top: 50%; width: 9px; height: 9px;
  border-top: 2.5px solid #60a5fa; border-right: 2.5px solid #60a5fa; transform: translateY(-50%) rotate(45deg);
}
.pipeline .pi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #eff6ff; color: var(--blue-600); flex-shrink: 0; }
.pipeline .pi svg { width: 20px; height: 20px; }
.pipeline .is-ai { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 14px 30px -12px rgba(37, 99, 235, .6); }
.pipeline .is-ai .pi { background: rgba(255, 255, 255, .2); color: #fff; }

.ai-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.chat { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat__head b { display: block; color: var(--ink); font-size: .95rem; }
.chat__head small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .76rem; }
.chat__head small i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.chat__avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; flex-shrink: 0; }
.chat__avatar svg { width: 22px; height: 22px; }
.chat__tag { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--blue-600); background: #eff6ff; padding: 4px 10px; border-radius: 999px; }
.chat__body { display: grid; gap: 14px; padding: 22px 20px; background: #f8fafc; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 18px; font-size: .92rem; line-height: 1.55; }
.msg p { margin: 0; }
.msg--user { justify-self: end; background: var(--navy-900); color: #fff; border-bottom-right-radius: 6px; }
.msg--tool {
  justify-self: start; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px;
  background: #ecfeff; border: 1px dashed #67e8f9; color: #0e7490; font-size: .78rem;
}
.msg--tool svg { width: 15px; height: 15px; }
.msg--tool code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.msg--tool em { font-style: normal; color: #15803d; font-weight: 600; }
.msg--ai { justify-self: start; background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 6px; }
.cite { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: #dbeafe; color: var(--blue-600); font-size: .7rem; font-weight: 800; vertical-align: 2px; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.src { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: #334155; background: #f1f5f9; padding: 4px 10px 4px 4px; border-radius: 999px; }
.src b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue-600); font-size: .68rem; }
.chat__input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.chat__input span { flex: 1; color: #94a3b8; font-size: .9rem; }
.chat__input i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; }
.chat__input svg { width: 18px; height: 18px; }
.chat .msg { opacity: 0; transform: translateY(10px); }
.chat.is-visible .msg { animation: msg-in .5s ease forwards; }
.chat.is-visible .msg--user { animation-delay: .2s; }
.chat.is-visible .msg--tool { animation-delay: 1s; }
.chat.is-visible .msg--ai { animation-delay: 1.8s; }
.no-js .chat .msg { opacity: 1; transform: none; }
@keyframes msg-in { to { opacity: 1; transform: none; } }

.caps { display: grid; gap: 14px; }
.cap { display: flex; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.cap:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: #bfdbfe; }
.cap b { display: block; color: var(--ink); margin-bottom: 2px; }
.cap p { margin: 0; font-size: .9rem; color: var(--muted); }
.cap__ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #eff6ff, #ecfeff); color: var(--blue-600); flex-shrink: 0; }
.cap__ico svg { width: 22px; height: 22px; }

/* AI-assisted engineering */
.dev { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.dev__intro > p { color: var(--muted); font-size: 1.03rem; }
.dev__gains { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 16px; }
.dev__gains li { display: flex; gap: 14px; }
.dev__gains svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: #dcfce7; color: #16a34a; stroke-width: 3; flex-shrink: 0; }
.dev__gains b { display: block; color: var(--ink); }
.dev__gains span { font-size: .9rem; color: var(--muted); }
.term { background: #0b1220; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid #1e293b; }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #111a2e; }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.term__bar i:nth-child(2) { background: #fbbf24; }
.term__bar i:nth-child(3) { background: #34d399; }
.term__bar span { margin-left: 10px; color: #64748b; font-size: .78rem; font-family: ui-monospace, Consolas, monospace; }
.term__body {
  margin: 0; padding: 20px 22px 24px; color: #cbd5e1; font-size: .84rem; line-height: 1.9; overflow-x: auto;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; white-space: pre;
}
.term .p { color: #5eead4; font-weight: 700; }
.term .c { color: #64748b; }
.term .ok { color: #4ade80; }
.term .k { color: #93c5fd; }
.term .ln { opacity: 0; }
.term.is-visible .ln { animation: msg-in .35s ease forwards; }
.term.is-visible .ln:nth-child(2) { animation-delay: .5s; }
.term.is-visible .ln:nth-child(3) { animation-delay: 1s; }
.term.is-visible .ln:nth-child(4) { animation-delay: 1.4s; }
.term.is-visible .ln:nth-child(5) { animation-delay: 2s; }
.term.is-visible .ln:nth-child(6) { animation-delay: 2.6s; }
.term.is-visible .ln:nth-child(7) { animation-delay: 3.2s; }
.no-js .term .ln { opacity: 1; }

.lifecycle { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.lc { position: relative; padding: 22px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: transform .25s, box-shadow .25s; }
.lc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.lc__n { display: inline-block; font-size: .75rem; font-weight: 800; color: var(--blue-600); background: #eff6ff; padding: 3px 9px; border-radius: 999px; margin-bottom: 12px; }
.lc h3 { font-size: 1rem; margin-bottom: .4em; }
.lc p { margin: 0; font-size: .86rem; color: var(--muted); }

/* Document types */
.doc-types { list-style: none; padding: 0; margin: 0 auto; max-width: 1000px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.doc-types li {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: .93rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.doc-types li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #bfdbfe; }
.doc-types li > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #eff6ff; color: var(--blue-600); }
.doc-types li svg { width: 19px; height: 19px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 38px; left: 10%; right: 10%; height: 2px;
  background: repeating-linear-gradient(90deg, #bfdbfe 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step__ico {
  position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px;
  border-radius: 24px; background: #fff; border: 2px solid #dbeafe; color: var(--blue-600);
  transition: all .3s ease; box-shadow: var(--shadow-sm);
}
.step__ico svg { width: 30px; height: 30px; }
.step__ico em {
  position: absolute; top: -10px; right: -10px; font-style: normal; font-size: .72rem; font-weight: 800;
  background: var(--navy-900); color: #fff; padding: 3px 8px; border-radius: 999px;
}
.step:hover .step__ico { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 14px 28px -10px rgba(37, 99, 235, .6); transform: translateY(-4px); }
.step p { font-size: .9rem; color: var(--muted); }

/* Why */
.section--dark { background: radial-gradient(800px 400px at 0% 0%, #1d3b7a, transparent 60%), var(--navy-950); color: #b8c4d9; }
.section--dark h2, .section--dark h3 { color: #fff; }
.why { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.why__intro p { font-size: 1.05rem; margin-bottom: 2rem; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why__item {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius);
  padding: 28px 24px; transition: background .3s, border-color .3s, transform .3s;
}
.why__item:hover { background: rgba(255, 255, 255, .07); border-color: rgba(6, 182, 212, .5); transform: translateY(-4px); }
.why__item svg { width: 34px; height: 34px; color: var(--mint-300); margin-bottom: 16px; }
.why__item p { font-size: .92rem; margin: 0; }

/* Clients */
.client-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cgroup { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: box-shadow .3s, transform .3s; }
.cgroup:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.cgroup__head { display: flex; align-items: center; gap: 12px; padding: 20px 24px; color: #fff; }
.cgroup__head svg { width: 26px; height: 26px; }
.cgroup__head b { font-size: 1.02rem; }
.cgroup__head--gov { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.cgroup__head--edu { background: var(--grad); }
.cgroup__head--biz { background: linear-gradient(135deg, #047857, #10b981); }
.cgroup ul { list-style: none; margin: 0; padding: 10px 24px 20px; }
.cgroup li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px dashed var(--line); color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.4; }
.cgroup li:last-child { border-bottom: 0; }
.cgroup li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%;
  background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-intro p { color: var(--muted); }
.faq-intro a { color: var(--blue-600); font-weight: 600; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow-md); border-color: #bfdbfe; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: #eff6ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* CTA */
.cta { padding: 100px 0 0; }
.cta__box {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 30px;
  background: var(--grad); color: #e0f2fe; border-radius: 28px; padding: 50px 50px;
  box-shadow: 0 30px 60px -25px rgba(37, 99, 235, .6);
}
.cta__box::before, .cta__box::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.cta__box::before { width: 320px; height: 320px; right: -80px; top: -160px; }
.cta__box::after { width: 200px; height: 200px; left: 30%; bottom: -140px; }
.cta__box > * { position: relative; z-index: 1; }
.cta__mark { width: 84px; height: 84px; flex-shrink: 0; padding: 12px; background: #fff; border-radius: 24px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); }
.cta h2 { color: #fff; margin-bottom: .3em; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta p { margin: 0; font-size: 1.05rem; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; margin-left: auto; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__info > p { color: var(--muted); font-size: 1.05rem; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list small { display: block; color: var(--muted); font-size: .82rem; }
.contact__list b { color: var(--ink); font-weight: 600; }
.contact__list a:hover { color: var(--blue-600); }
.ci { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #eff6ff; color: var(--blue-600); flex-shrink: 0; }
.ci svg { width: 22px; height: 22px; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow-md); display: grid; gap: 16px; }
.form h3 { font-size: 1.35rem; margin-bottom: .2em; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: .95rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #f8fafc;
  transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(59, 130, 246, .15); }
.form .is-invalid { border-color: #ef4444; }
.form__note { margin: 0; font-size: .88rem; min-height: 1.3em; }
.form__note.ok { color: #15803d; }
.form__note.err { color: #dc2626; }

.map { margin-top: 70px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); height: 380px; background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer */
.footer { background: var(--navy-950); color: #94a3b8; padding: 70px 0 0; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 50px; padding-bottom: 50px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__brand p { margin-top: 18px; max-width: 360px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }

/* Floating action buttons */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; gap: 12px; }
.fab__btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .35); transition: transform .2s;
  font-weight: 800; font-size: .8rem;
}
.fab__btn:hover { transform: scale(1.08); }
.fab__btn--zalo { background: #0068ff; }
.fab__btn--call { background: #16a34a; animation: ring 2.4s infinite; }
.fab__btn--call svg { width: 24px; height: 24px; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); } 70% { box-shadow: 0 0 0 16px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .services, .client-groups { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .steps::before { display: none; }
  .why, .ba-wrap, .faq-wrap { grid-template-columns: 1fr; gap: 44px; }
  .ai-grid, .dev { grid-template-columns: 1fr; gap: 40px; }
  .lifecycle { grid-template-columns: repeat(3, 1fr); }
  .pipeline { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; gap: 22px; }
  .pipeline li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -15px; transform: translateX(-50%) rotate(135deg); }
  .cta__box { flex-wrap: wrap; }
  .cta__actions { margin-left: 0; }
}

@media (max-width: 960px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 10px 20px 24px; box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .3);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s ease;
  }
  .header.nav-open { background: #fff; box-shadow: 0 1px 0 var(--line); }
  .header.nav-open .brand__text strong { color: var(--ink); }
  .header.nav-open .brand__text small { color: var(--muted); }
  .header.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav > a:not(.btn) { color: var(--ink) !important; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; }
  .nav .lang { align-self: flex-start; margin-top: 16px; border-color: var(--line); }
  .nav .lang a { color: var(--muted); }
  .nav .lang a.is-current { background: var(--navy-900); color: #fff; }
  .burger { display: block; }

  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { max-width: 560px; width: 100%; margin: 0 auto; }
  .about, .contact { grid-template-columns: 1fr; gap: 56px; }
  .about__art { max-width: 560px; margin: 0 auto; width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .section--tight { padding: 70px 0; }
  .services, .client-groups, .why__grid, .pillars, .form__row { grid-template-columns: 1fr; }
  .lifecycle { grid-template-columns: 1fr 1fr; }
  .term__body { font-size: .74rem; padding: 16px; }
  .msg { max-width: 100%; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { display: grid; grid-template-columns: 76px 1fr; column-gap: 18px; text-align: left; padding: 0; }
  .step__ico { grid-row: span 2; margin: 0; }
  .step h3 { margin: 10px 0 4px; }
  .chip { font-size: .78rem; padding: 9px 11px; }
  .chip--meta { width: 180px; right: 0; top: 70%; }
  .chip--ocr { top: 8%; left: 0; }
  .chip--lock { left: 2%; }
  .about__card { left: 50%; transform: translateX(-50%); width: max-content; max-width: 92%; }
  .ba { height: 600px; }
  .ba__layer { padding: 56px 14px 20px; }
  .paper { padding: 20px 18px; font-size: 9.5px; }
  .paper__head b, .paper__head span, .paper__head i, .paper__head u { font-size: 8.5px; }
  .record { padding: 18px; }
  .record__ok { display: none; }
  .cta__box { padding: 36px 26px; }
  .cta__mark { width: 64px; height: 64px; padding: 9px; border-radius: 18px; }
  .form { padding: 26px 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .map { height: 300px; }
  .btn--lg { padding: .9em 1.4em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .chat .msg, .term .ln { opacity: 1; transform: none; }
}
