/* CORE EDGE — brand tokens. Blue = technology/reliability (base), red = strength/innovation (accent). */
:root {
	--navy-950: #050D22;
	--navy-900: #07142F;
	--navy-800: #0A1F4D;
	--blue-700: #0B3D91;
	--blue-600: #1250B8;
	--blue-500: #1E66D9;
	--blue-100: #E6EEFB;
	--red-600: #D3121E;
	--red-500: #E8232F;
	--red-100: #FDE8EA;

	--ink: #0E1A33;
	--ink-2: #3B4763;
	--muted: #66728C;
	--line: #E2E8F2;
	--surface: #FFFFFF;
	--surface-2: #F4F7FC;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(10, 31, 77, .06), 0 8px 24px rgba(10, 31, 77, .07);
	--shadow-lg: 0 20px 50px rgba(10, 31, 77, .14);
	--header-h: 72px;

	--font-latin: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Saira", "Inter", system-ui, sans-serif;
	--font-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	--font-km: "Kantumruy Pro", "Noto Sans Khmer", "Khmer OS", sans-serif;
	--font-body: var(--font-latin);
}
:root[data-lang="zh"] { --font-body: var(--font-latin), var(--font-zh); }
:root[data-lang="km"] { --font-body: var(--font-km), var(--font-latin); }

*, *::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-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--surface);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
:root[data-lang="km"] body { line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--blue-600); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
	color: #fff; transition: background .25s, box-shadow .25s, color .25s;
}
.site-header.is-solid, .nav-open .site-header {
	background: rgba(255, 255, 255, .94); color: var(--ink);
	backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
	box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.wm-core { color: #fff; }
.wm-edge { color: var(--red-500); }
.is-solid .wm-core, .nav-open .wm-core { color: var(--blue-700); }
.brand-sub { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .78; margin-top: 2px; }
:root[data-lang="km"] .brand-sub, :root[data-lang="zh"] .brand-sub { text-transform: none; letter-spacing: .04em; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; opacity: .9; transition: background .2s, opacity .2s; }
.site-nav a:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.is-solid .site-nav a:hover { background: var(--blue-100); }
.site-nav .nav-cta { background: var(--red-600); color: #fff; opacity: 1; margin-left: 6px; }
.site-nav .nav-cta:hover { background: var(--red-500); }

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; padding: 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); }
.is-solid .lang-switch, .nav-open .lang-switch { border-color: var(--line); }
.lang-switch button {
	font: inherit; font-size: 13px; font-weight: 600; color: inherit; background: none; border: 0;
	padding: 5px 10px; border-radius: 999px; cursor: pointer; opacity: .75; min-height: 32px;
}
.lang-switch button[lang="km"] { font-family: var(--font-km); }
.lang-switch button[lang="zh"] { font-family: var(--font-zh); }
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] { background: var(--blue-600); color: #fff; opacity: 1; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; padding: 10px; border-radius: 10px; }
.menu-toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px;
	border-radius: 12px; font-weight: 600; font-size: 16px; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red-600); color: #fff; box-shadow: 0 8px 24px rgba(211, 18, 30, .35); }
.btn-primary:hover { background: var(--red-500); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(1000px 520px at 78% 30%, rgba(30, 102, 217, .45), transparent 60%),
		radial-gradient(600px 400px at 10% 100%, rgba(211, 18, 30, .18), transparent 60%),
		linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 55%, #0C2C6E 100%);
	padding: calc(var(--header-h) + 64px) 0 96px;
}
.hero-grid {
	position: absolute; inset: 0; opacity: .5;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 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%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--red-600); border-radius: 2px; }
.eyebrow-light { color: #9FC0FF; }
:root[data-lang="zh"] .eyebrow, :root[data-lang="km"] .eyebrow { letter-spacing: .06em; text-transform: none; }
.hero-title { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
:root[data-lang="en"] .hero-title { font-family: var(--font-display); font-style: italic; letter-spacing: 0; }
:root[data-lang="km"] .hero-title { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.45; letter-spacing: 0; }
.hero-title span { display: block; }
.hero-accent { background: linear-gradient(90deg, #FF4B55, var(--red-500) 40%, #FF8A6B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin-top: 22px; font-size: 18px; color: rgba(255, 255, 255, .82); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-visual { position: relative; aspect-ratio: 1 / .82; display: grid; place-items: center; }
.hero-mark { position: relative; width: 88%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); animation: float 7s ease-in-out infinite; }
.hero-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(30, 102, 217, .55), transparent 65%); filter: blur(10px); }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); }
.orbit-1 { width: 92%; aspect-ratio: 1; }
.orbit-2 { width: 68%; aspect-ratio: 1; border-style: dashed; border-color: rgba(159, 192, 255, .22); animation: spin 60s linear infinite; }
.float-chip {
	position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.float-chip .ic { color: #9FC0FF; }
.chip-a { top: 6%; left: 0; animation: float 6s ease-in-out infinite; }
.chip-b { bottom: 12%; left: 4%; animation: float 8s ease-in-out infinite .6s; }
.chip-c { bottom: 2%; right: 2%; animation: float 7s ease-in-out infinite 1.2s; }
.chip-c .ic { color: #FF7A82; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -48px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0; overflow: hidden; }
.stat { padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 40px; line-height: 1; color: var(--blue-700); }
.stat:nth-child(2) .stat-num { color: var(--red-600); }
.stat-label { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-tint { background: var(--surface-2); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; letter-spacing: -.01em; }
:root[data-lang="km"] .section-title { line-height: 1.5; letter-spacing: 0; }
.group-label { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 18px; }
:root[data-lang="zh"] .group-label, :root[data-lang="km"] .group-label { text-transform: none; letter-spacing: .04em; }
.fine-print { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-copy p { color: var(--ink-2); margin-top: 18px; font-size: 17px; }
.brand-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.brand-logo { width: 100%; max-width: 420px; margin: 0 auto 24px; }
.brand-meaning { display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.brand-meaning li { display: flex; gap: 14px; align-items: flex-start; }
.brand-meaning strong { display: block; font-size: 15px; }
.brand-meaning p { font-size: 14px; color: var(--muted); }
.swatch { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; }
.swatch-red { background: linear-gradient(135deg, var(--red-500), #A90E18); }
.swatch-blue { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); }
.swatch-bird { background: var(--navy-800); }
.swatch-bird img { width: 32px; }

/* Services */
.core-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.core-card {
	position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px 24px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden;
}
.core-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--blue-600), var(--red-600)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.core-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.core-card:hover::after { transform: scaleX(1); }
.core-num { position: absolute; top: 18px; right: 22px; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 34px; color: var(--blue-100); line-height: 1; }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-600), var(--navy-800)); color: #fff; font-size: 24px; margin-bottom: 20px; box-shadow: 0 8px 18px rgba(18, 80, 184, .3); }
.core-card h4 { font-size: 20px; margin-bottom: 10px; }
.core-card p { font-size: 15px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li { font-size: 12px; font-weight: 600; color: var(--blue-700); background: var(--blue-100); padding: 3px 9px; border-radius: 999px; }

.ext-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ext-card { display: flex; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.ext-card:hover { border-color: #C9D7F2; box-shadow: var(--shadow); }
.icon-sm { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--blue-100); color: var(--blue-600); font-size: 20px; }
.ext-card h4 { font-size: 16px; margin-bottom: 6px; }
.ext-card p { font-size: 14px; color: var(--muted); }

.tech { margin-top: 56px; }
.tech-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-list li { padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* Cases */
.industries { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 32px; }
.industries-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.industries ul { display: flex; flex-wrap: wrap; gap: 8px; }
.industries li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); background: var(--surface-2); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: box-shadow .25s, transform .25s; }
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.case-metric { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.case-num { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 34px; line-height: 1; color: var(--red-600); }
.case-card h4 { font-size: 18px; margin-bottom: 8px; }
.case-card p { font-size: 14px; color: var(--ink-2); }

.integrations { margin-top: 64px; padding: 36px; border-radius: 22px; background: linear-gradient(135deg, var(--surface-2), #fff); border: 1px solid var(--line); }
.integrations-head h3 { font-size: 22px; margin-bottom: 6px; }
.integrations-head p { color: var(--ink-2); }
.int-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; }
.int-label { display: block; font-size: 13px; font-weight: 700; color: var(--red-600); margin-bottom: 10px; }
.int-group ul { display: flex; flex-wrap: wrap; gap: 8px; }
.int-group li { padding: 6px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--navy-800); }

/* Process */
.section-dark { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #fff; }
.section-dark .section-title { color: #fff; }
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 24px; left: 24px; right: calc((100% - 64px) / 5 - 24px); height: 2px; background: linear-gradient(90deg, var(--blue-500), var(--red-500)); opacity: .5; }
.step { position: relative; padding-right: 8px; }
.step-num { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); border: 2px solid var(--blue-500); font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 18px; }
.step:last-child .step-num { border-color: var(--red-500); }
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: rgba(255, 255, 255, .72); }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { padding: 26px; border-radius: var(--radius); background: var(--surface-2); }
.why-card .icon-sm { margin-bottom: 18px; background: #fff; }
.why-card:last-child .icon-sm { color: var(--red-600); background: var(--red-100); }
.why-card h4 { font-size: 18px; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--ink-2); }

/* Contact */
.contact { background: radial-gradient(800px 400px at 85% 20%, rgba(30, 102, 217, .4), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: #fff; }
.contact .section-title { color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact-lead { margin-top: 16px; color: rgba(255, 255, 255, .8); font-size: 18px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.contact-list .icon-sm { background: rgba(159, 192, 255, .14); color: #9FC0FF; }
.contact-list div { min-width: 0; }
.c-label { display: block; font-size: 13px; color: rgba(255, 255, 255, .6); }
.contact-list a, .contact-list address { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a:hover { color: #9FC0FF; }
.contact-list .map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; color: #9FC0FF; }

/* Footer */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .7); padding: 32px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 52px; }
.footer-brand strong { display: block; color: #fff; font-size: 14px; letter-spacing: .02em; }
.footer-meta { text-align: right; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.core-grid { grid-template-columns: repeat(2, 1fr); }
	.ext-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
	.why-grid { grid-template-columns: repeat(2, 1fr); }
	.int-groups { grid-template-columns: repeat(2, 1fr); }
	.process { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
	.process::before { display: none; }
}
@media (max-width: 920px) {
	.menu-toggle { display: block; }
	.site-nav {
		position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
		padding: 16px; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
	}
	.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
	.site-nav a { padding: 12px 14px; font-size: 16px; }
	.site-nav a:hover { background: var(--blue-100); }
	.site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
	.hero-inner, .about-grid, .contact-inner { grid-template-columns: 1fr; }
	.hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(2) { border-right: 0; }
	.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
	.container { padding: 0 16px; }
	.section { padding: 72px 0; }
	.hero { padding: calc(var(--header-h) + 36px) 0 80px; }
	.hero-lead { font-size: 16px; }
	.brand-sub { display: none; }
	.brand-mark { width: 44px; }
	.lang-switch button { padding: 5px 8px; font-size: 12px; }
	.core-grid, .ext-grid, .case-grid, .why-grid, .int-groups { grid-template-columns: 1fr; }
	.process { grid-template-columns: 1fr; }
	.stat { padding: 20px 16px; }
	.stat-num { font-size: 32px; }
	.float-chip { font-size: 12px; padding: 7px 10px; }
	.brand-card, .integrations { padding: 22px; }
	.footer-meta { text-align: left; }
	.hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 380px) {
	.brand-name { font-size: 17px; }
	.header-inner { gap: 10px; }
}
