/* Metatech Labs Vietnam — công nghệ cao, tiết chế: navy + xanh, đường viền mảnh, số liệu chữ đơn cách */
:root {
  --navy: #05224a; --navy-d: #02122b; --blue: #073a91; --indigo: #3949ab; --sky: #2aa9e0; --teal: #6ee7c7; --ice: #eaf2fe;
  --ink: #0b1b33; --muted: #5a6b82; --line: #dfe6f1; --paper: #f5f8fc;
  --grad: linear-gradient(120deg, #6ee7c7 0%, #2aa9e0 50%, #3949ab 100%);
  --sans: "Manrope", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: max(calc((100vw - 1180px) / 2), 22px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding-top: 68px; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { position: relative; width: min(1180px, 100% - 44px); margin: 0 auto; }
.center { text-align: center; }
section[id] { scroll-margin-top: 68px; }

.progress { position: fixed; top: 68px; left: 0; right: 0; height: 2px; z-index: 60; transform: scaleX(0); transform-origin: left; background: var(--grad); }

/* ===== nav ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 68px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); transition: box-shadow 0.3s; }
.nav.scrolled { box-shadow: 0 10px 30px -20px rgba(5, 34, 74, 0.5); }
.nav-in { display: flex; align-items: center; justify-content: space-between; width: min(1180px, 100% - 44px); height: 100%; margin: 0 auto; }
.logo img { height: 34px; width: auto; }
.links { display: flex; gap: 4px; }
.links a { position: relative; padding: 10px 18px; font-size: 14px; font-weight: 600; color: #34476a; transition: color 0.25s; }
.links a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 2px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.links a:hover, .links a.on { color: var(--blue); }
.links a:hover::after, .links a.on::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 22px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform 0.25s, opacity 0.25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== hero ===== */
.hero { position: relative; min-height: max(640px, calc(100vh - 68px)); display: flex; align-items: center; overflow: hidden; isolation: isolate; background: var(--navy-d); }
.hero-bg { position: absolute; inset: 0; z-index: -3; background: var(--navy-d) url("assets/17bb6e4153-20250904051003-mbtwz.jpg") right center / cover no-repeat; animation: kb 30s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.06) translate3d(-1%, -0.6%, 0); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%); mask-image: linear-gradient(90deg, #000 0%, transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(2, 18, 43, 0.82) 0%, rgba(2, 18, 43, 0.4) 48%, transparent 85%), linear-gradient(0deg, rgba(2, 18, 43, 0.55), transparent 28%); }
.hero-fx { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-copy { max-width: 700px; padding: 80px 0; }
.hero h1 { font-size: clamp(34px, 5vw, 62px); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; color: #fff; }
.hero h1 span { display: block; opacity: 0; transform: translateY(22px); transition: opacity 0.9s cubic-bezier(.2, .7, .2, 1), transform 0.9s cubic-bezier(.2, .7, .2, 1); }
.hero h1 span:nth-child(2) { transition-delay: 0.14s; }
.grad { background: linear-gradient(100deg, #6ee7c7, #7fd0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin-top: 26px; max-width: 540px; padding-left: 18px; border-left: 2px solid var(--teal); font-size: 18px; line-height: 1.65; color: #dce7f7; opacity: 0; transform: translateY(16px); transition: opacity 0.9s 0.3s, transform 0.9s 0.3s; }
.ready .hero h1 span, .ready .hero p { opacity: 1; transform: none; }
.cue { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 12px; }
.cue i { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ===== chung ===== */
.sec-title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform 0.8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ===== about ===== */
.about { background: var(--paper); padding: 96px 0 0; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 0.95fr 1.25fr; gap: 56px; align-items: start; }
.about .sec-title { color: var(--navy); }
.about-text .sec-title { position: relative; padding-bottom: 18px; }
.about-text .sec-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--grad); }
.about-text p { margin-top: 18px; color: #2c3e5e; line-height: 1.85; }
.vm { display: grid; gap: 18px; }
.vm-item { display: flex; gap: 22px; align-items: flex-start; padding: 26px 28px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 0 #fff inset, 0 18px 40px -30px rgba(5, 34, 74, 0.4); transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), border-color 0.3s, box-shadow 0.3s; }
.vm-item:hover { transform: translateY(-4px); border-color: rgba(57, 73, 171, 0.35); box-shadow: 0 26px 50px -30px rgba(7, 58, 145, 0.45); }
.vi { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #073a91, #3949ab); }
.vi svg { width: 24px; height: 24px; }
.vm-item h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.vm-item p { color: var(--muted); line-height: 1.75; }
.circuit { position: relative; margin-top: 64px; line-height: 0; border-radius: 14px 14px 0 0; overflow: visible; }
.circuit img { width: 100%; height: clamp(260px, 38vw, 480px); object-fit: cover; border-radius: 14px 14px 0 0; }
.circuit::after { content: ""; position: absolute; inset: 0; border-radius: 14px 14px 0 0; background: linear-gradient(0deg, rgba(5, 34, 74, 0.35), transparent 45%); pointer-events: none; }
.cn { position: absolute; z-index: 2; width: 22px; height: 22px; border: 2px solid rgba(110, 231, 199, 0.9); }
.cn.tl { left: 18px; top: 18px; border-right: 0; border-bottom: 0; } .cn.tr { right: 18px; top: 18px; border-left: 0; border-bottom: 0; }
.cn.bl { left: 18px; bottom: 18px; border-right: 0; border-top: 0; } .cn.br { right: 18px; bottom: 18px; border-left: 0; border-top: 0; }
.deco { position: absolute; right: 34px; top: -30px; width: 70px; height: 58px; fill: var(--ice); stroke: none; z-index: 3; animation: fl 7s ease-in-out infinite; }
@keyframes fl { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* ===== services ===== */
.services { position: relative; padding: 100px 0; background: linear-gradient(135deg, #04183a 0%, #073a91 100%); color: var(--ice); overflow: hidden; isolation: isolate; }
.services::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, #000, transparent 85%); mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, #000, transparent 85%); }
.svc-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; align-items: stretch; }
.svc-lead { position: relative; min-height: 560px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7); }
.globe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% center; animation: gz 24s ease-in-out infinite alternate; }
@keyframes gz { from { transform: scale(1); } to { transform: scale(1.06); } }
.svc-box { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 36px 34px 38px; background: linear-gradient(0deg, rgba(5, 34, 74, 0.96) 0%, rgba(5, 34, 74, 0.88) 55%, rgba(5, 34, 74, 0.35) 100%); }
.svc-box .sec-title { color: var(--ice); font-size: clamp(26px, 2.6vw, 32px); }
.svc-box p { margin-top: 16px; color: #d6e3f8; line-height: 1.7; font-size: 15px; }
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; padding: 24px 24px 26px; min-height: 170px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(234, 242, 254, 0.14); transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), background 0.3s, border-color 0.3s; }
.svc::before { content: ""; position: absolute; left: 24px; top: 0; width: 36px; height: 2px; background: var(--grad); transition: width 0.4s; }
.svc:hover { transform: translateY(-5px); background: rgba(110, 231, 199, 0.08); border-color: rgba(110, 231, 199, 0.45); }
.svc:hover::before { width: 64px; }
.sn { font-family: var(--mono); font-size: 34px; font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(234, 242, 254, 0.7); transition: color 0.3s, -webkit-text-stroke-color 0.3s; }
.svc:hover .sn { -webkit-text-stroke-color: var(--teal); color: rgba(110, 231, 199, 0.16); }
.svc h3 { font-size: 15.5px; font-weight: 700; line-height: 1.4; letter-spacing: 0.01em; color: var(--ice); }
.svc:nth-child(odd):last-child { grid-column: span 2; }

/* ===== why ===== */
.why { position: relative; padding: 96px 0 104px; background: #fff; overflow: hidden; }
.why::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(7, 58, 145, 0.12) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 80%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 80%); pointer-events: none; }
.why .sec-title { color: var(--ink); position: relative; }
.why-grid { position: relative; margin-top: 54px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 26px 30px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -32px rgba(5, 34, 74, 0.45); transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), border-color 0.3s, box-shadow 0.3s; }
.why-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 12px 0 0 12px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform 0.45s; }
.why-card:hover { transform: translateY(-6px); border-color: rgba(57, 73, 171, 0.3); box-shadow: 0 30px 56px -30px rgba(7, 58, 145, 0.45); }
.why-card:hover::before { transform: scaleY(1); }
.ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 10px; color: var(--indigo); background: var(--ice); transition: background 0.3s, color 0.3s; }
.ico svg { width: 28px; height: 28px; }
.why-card:hover .ico { background: var(--indigo); color: #fff; }
.why-card h3 { font-size: 18px; font-weight: 800; color: var(--ink); }
.why-card p { font-size: 15px; color: var(--muted); line-height: 1.7; }

/* ===== stats ===== */
.stats { position: relative; padding: 64px 0; color: #fff; background: var(--navy-d); overflow: hidden; isolation: isolate; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.stats::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 280px at 20% 50%, rgba(57, 73, 171, 0.35), transparent 70%), radial-gradient(500px 280px at 85% 50%, rgba(42, 169, 224, 0.2), transparent 70%); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { padding: 8px 12px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--mono); font-size: clamp(34px, 4vw, 48px); font-weight: 600; line-height: 1.1; background: linear-gradient(120deg, #fff 30%, #9fd7ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 8px; font-size: 15px; color: #b9c9e3; }

/* ===== contact ===== */
.contact { position: relative; padding: 96px 0 100px; color: #fff; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #05224a 0%, #073a91 100%); }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/7fad66bcb9-20250904110735-becai.jpg") center / cover no-repeat; opacity: 0.18; mix-blend-mode: luminosity; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 56px 56px; }
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
.partner { font-size: clamp(19px, 2vw, 24px); font-weight: 600; line-height: 1.55; letter-spacing: -0.01em; }
.info { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.2); display: grid; gap: 12px; }
.info b { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--teal); }
.info p { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.info svg { flex: none; width: 20px; height: 20px; color: var(--teal); }
.info a { border-bottom: 1px solid rgba(255, 255, 255, 0.4); transition: color 0.2s, border-color 0.2s; }
.info a:hover { color: var(--teal); border-color: var(--teal); }
.form { display: flex; flex-direction: column; gap: 14px; padding: 36px 36px 36px; border-radius: 14px; background: #fff; color: #051f4d; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.form h2 { font-size: 20px; font-weight: 800; letter-spacing: 0.01em; }
.form > p:not(.form-note) { color: #4a5b78; line-height: 1.6; margin-bottom: 4px; }
.f { position: relative; display: block; }
.f input, .f textarea { width: 100%; padding: 22px 14px 8px; border: 1px solid #d3dcec; border-radius: 8px; background: #f7f9fd; color: #000; font: inherit; font-size: 15px; outline: none; resize: vertical; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.f span { position: absolute; left: 14px; top: 10px; font-size: 15px; color: #6b7894; pointer-events: none; transition: transform 0.2s, font-size 0.2s, color 0.2s; transform-origin: left top; }
.f input:focus + span, .f input:not(:placeholder-shown) + span, .f textarea:focus + span, .f textarea:not(:placeholder-shown) + span { transform: translateY(-6px); font-size: 11px; font-weight: 700; color: var(--indigo); }
.f input:focus, .f textarea:focus { border-color: var(--indigo); background: #fff; box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.15); }
.btn { position: relative; overflow: hidden; height: 46px; border: 0; border-radius: 8px; background: linear-gradient(120deg, #073a91, #3949ab); color: #fff; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; cursor: pointer; box-shadow: 0 14px 28px -12px rgba(7, 58, 145, 0.8); transition: transform 0.25s, box-shadow 0.25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -12px rgba(7, 58, 145, 0.95); }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent); transform: skewX(-18deg); }
.btn:hover::after { animation: sweep 0.8s ease-out 1; }
@keyframes sweep { from { left: -60%; } to { left: 140%; } }
.form-note { min-height: 1.3em; font-size: 13.5px; font-weight: 600; }
.form-note.ok { color: #0a8a5b; } .form-note.err { color: #c0392b; }

.foot { padding: 20px 0 22px; background: var(--navy-d); color: #9fb2d0; font-size: 13.5px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.07); }

/* ===== responsive ===== */
@media (max-width: 1050px) {
  .about-grid, .svc-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .svc-lead { min-height: 440px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px 22px 14px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -22px rgba(5, 34, 74, 0.5); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; }
  .links.open { opacity: 1; visibility: visible; transform: none; }
  .links a { padding: 16px 2px; font-size: 16px; border-bottom: 1px solid #e6ecf6; }
  .links a::after { display: none; }
  .burger { display: flex; }
}
@media (max-width: 640px) {
  .hero-copy { padding: 56px 0 80px; } .hero p { font-size: 16px; }
  .about { padding-top: 64px; } .services { padding: 70px 0; } .why { padding: 64px 0 70px; } .contact { padding: 70px 0; }
  .svc-list { grid-template-columns: 1fr; } .svc:nth-child(odd):last-child { grid-column: auto; } .svc { min-height: 0; flex-direction: row; align-items: center; gap: 18px; padding: 18px 20px; } .svc::before { display: none; } .sn { font-size: 28px; flex: none; width: 52px; }
  .why-grid { grid-template-columns: 1fr; margin-top: 34px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat:nth-child(3) { border-left: 0; }
  .vm-item { padding: 22px 20px; gap: 16px; }
  .form { padding: 28px 22px; }
  .svc-box { padding: 28px 24px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero h1 span, .hero p { opacity: 1; transform: none; }
}
