/* ACE Galaxy — site design system (2026-10 redesign)
   Values replicated from template_ui/*.dc.html mockups. */

:root {
  --bg: #050816;
  --bg-2: #0A0E2A;
  --bg-3: #101638;
  --text: #F2F5FF;
  --text-muted: rgba(242, 245, 255, .72);
  --text-dim: #8A94B8;
  --white: #FFFFFF;
  --accent: #1BB0F4;
  --accent-hover: #5CCBFF;
  --purple: #9A55F5;
  --blue: #296EE2;
  --danger: #FF5D5D;
  --line: rgba(27, 176, 244, .12);
  --line-2: rgba(27, 176, 244, .16);
  --line-3: rgba(27, 176, 244, .3);
  --grad: linear-gradient(135deg, #9A55F5, #296EE2);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-disp: 'Sora', 'Inter', sans-serif;
  --container: 1280px;
  --gutter: 28px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a, button, .row, .job-item, .cv-drop { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
img { max-width: 100%; }
h1, h2, h3, h4, p, ul { margin: 0; }
[hidden] { display: none !important; }

.disp { font-family: var(--font-disp); letter-spacing: -.02em; }
.mono { font-family: var(--font-body); font-weight: 700; }
.eyebrow { font-size: 13px; letter-spacing: .2em; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.label { font-size: 12px; letter-spacing: .16em; font-weight: 500; color: var(--accent); text-transform: uppercase; }
.muted { color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px; border-radius: 999px;
  font-weight: 600; font-size: 16px; color: var(--white); border: 0; cursor: pointer; font-family: inherit;
}
.btn:hover { color: var(--white); transform: translateY(-1px); }
.btn-primary { background: var(--grad); }
.btn-outline { border: 1px solid rgba(242, 245, 255, .35); font-weight: 500; background: transparent; }
.btn-outline:hover { border-color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(5, 8, 22, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 44px; width: auto; display: block; }
.nav { display: flex; gap: 36px; font-size: 15px; font-weight: 500; }
.nav a { color: rgba(242, 245, 255, .75); }
.nav a:hover, .nav a.is-active { color: var(--white); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px;
  background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.header-actions { display: flex; align-items: center; gap: 14px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 18%, rgba(154, 85, 245, .22), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(27, 176, 244, .18), transparent 55%),
    linear-gradient(135deg, #050816, #0A0E2A);
}
.hero .orbit { position: absolute; right: -200px; top: -60px; }
.hero-body { position: relative; padding-top: 120px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 30px; }
.hero h1 { font-weight: 600; font-size: 58px; line-height: 1.12; letter-spacing: -.01em; color: var(--white); max-width: 980px; }
.grad-text { background: linear-gradient(90deg, #9A55F5, #296EE2 50%, #1BB0F4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.hero-copy .lead { font-size: 22px; font-weight: 600; line-height: 1.4; color: var(--white); }
.hero-copy p { font-size: 17px; line-height: 1.65; color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-stats { position: relative; padding-bottom: 72px; }
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border: 1px solid var(--line-2); border-radius: 18px; background: rgba(16, 22, 56, .6);
}
.stat { padding: 28px 32px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-size: 34px; font-weight: 600; color: var(--white); }
.stat .cap { font-size: 15px; color: var(--text-muted); }

/* Section shells */
.section { padding-top: 104px; padding-bottom: 104px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; }
.section-head h2, .h2 { font-weight: 600; font-size: 40px; line-height: 1.15; color: var(--white); }
.section-head p { flex: 0 1 520px; font-size: 17px; line-height: 1.65; color: var(--text-muted); }

/* Services rows */
.services { display: flex; flex-direction: column; gap: 52px; }
.rows { border-top: 1px solid var(--line-2); }
.row { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: 36px 8px; border-bottom: 1px solid var(--line-2); }
.row:hover { background: var(--bg-3); border-radius: 12px; }
.row .idx { flex: 0 0 64px; font-size: 14px; color: var(--accent); padding-top: 8px; }
.row h3 { flex: 1 1 300px; font-size: 22px; font-weight: 600; color: var(--white); }
.row p { flex: 1 1 420px; font-size: 16px; line-height: 1.65; color: var(--text-muted); }

/* Why us */
.why { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why .container { display: flex; flex-wrap: wrap; gap: 56px 72px; }
.why-intro { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.why-intro p { font-size: 17px; line-height: 1.7; color: var(--text-muted); }
.exp-card {
  margin-top: 12px; border-radius: 18px; background: var(--grad); color: var(--white); padding: 32px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px;
}
.exp-card .num { font-size: 52px; font-weight: 600; line-height: 1; }
.exp-card .cap { font-size: 17px; font-weight: 600; line-height: 1.4; max-width: 200px; }
.why-cards { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.card { border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg); padding: 28px; display: flex; gap: 20px; }
.card svg { flex: none; }
.card-body { display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 20px; font-weight: 600; color: var(--white); }
.card p { font-size: 16px; line-height: 1.6; color: var(--text-muted); }

/* Footer */
.site-footer .container { padding-top: 88px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 56px; }
/* brand = first column; every visible link column (Solutions may be hidden) shares the rest equally */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr); grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 48px; }
.footer-brand { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.footer-brand img { height: 56px; width: auto; display: block; align-self: flex-start; }
.footer-brand p { font-size: 15px; line-height: 1.7; color: var(--text-muted); max-width: 400px; }
.footer-col { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-links a { color: var(--text); overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--accent-hover); }
.footer-links a.footer-email { color: var(--accent); font-style: italic; text-decoration: underline; text-underline-offset: 3px; }
.footer-links a.footer-email:hover { color: var(--accent-hover); }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.footer-social a { padding: 6px 14px; border: 1px solid var(--line-3); border-radius: 999px; font-size: 13px; }
.footer-social a:hover { border-color: var(--accent-hover); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 28px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 13px; line-height: 1.6; color: var(--text-dim);
}
.disclaimer { max-width: 960px; font-size: 12px; color: var(--text-dim); opacity: .75; }

/* Page header (Careers / legal) */
.page-head {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 85% 20%, rgba(154, 85, 245, .18), transparent 50%), linear-gradient(180deg, #0A0E2A, #050816);
}
.page-head .container { padding-top: 88px; padding-bottom: 64px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 64px; }
.page-head-copy { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.page-head h1 { font-weight: 600; font-size: 52px; line-height: 1.12; letter-spacing: -.01em; color: var(--white); }
.page-head p { font-size: 17px; line-height: 1.65; color: var(--text-muted); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line-3); background: rgba(16, 22, 56, .6); font-size: 14px; color: var(--text);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* Careers */
.jobs .container { padding-top: 64px; padding-bottom: 104px; }
.jobs-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.job-list { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.job-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; text-align: left;
  font: inherit; cursor: pointer; padding: 20px 22px; border-radius: 16px; min-height: 44px;
  background: transparent; border: 1px solid var(--line-2); color: var(--text);
}
.job-item:hover { border-color: var(--line-3); }
.job-item[aria-pressed="true"] { background: var(--bg-3); border: 1px solid var(--accent); color: var(--white); box-shadow: inset 3px 0 0 var(--accent); }
.job-item-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; }
.job-item-title { font-size: 15px; font-weight: 600; }
.tag { font-size: 11px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-3); color: var(--accent); white-space: nowrap; font-weight: 700; }
.job-item-meta { font-size: 14px; color: var(--text-muted); }
.job-detail {
  flex: 999 1 560px; min-width: 0; border-radius: 22px; border: 1px solid var(--line-2); background: var(--bg-2);
  padding: 36px; display: flex; flex-direction: column; gap: 32px;
}
.job-head { display: flex; flex-direction: column; gap: 16px; }
.job-head h2 { font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--white); }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--text-muted); }
.job-meta span { display: inline-flex; align-items: center; gap: 8px; }
.job-meta svg { flex: none; }
.job-block { display: flex; flex-direction: column; gap: 14px; }
.job-block ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.6; color: var(--text); }
.job-block ul ul { margin-top: 6px; gap: 4px; color: var(--text-muted); list-style: circle; }

.apply { border-top: 1px solid var(--line-2); padding-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.apply-head { display: flex; flex-direction: column; gap: 6px; }
.apply-head h3 { font-size: 20px; font-weight: 600; color: var(--white); }
.apply-head span { font-size: 15px; color: var(--text-muted); }
.apply-head strong { color: var(--white); font-weight: 600; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .field-label { font-size: 14px; font-weight: 600; color: var(--text); }
.input, .textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid rgba(27, 176, 244, .24); border-radius: 12px; width: 100%;
}
.input { padding: 0 16px; min-height: 50px; }
.textarea { padding: 14px 16px; line-height: 1.6; resize: vertical; min-height: 150px; }
.input:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hint { font-size: 13px; color: var(--accent); }
.cv-drop {
  display: flex; align-items: center; gap: 16px; cursor: pointer; min-height: 72px; padding: 16px 18px;
  border-radius: 14px; background: var(--bg); border: 1px dashed rgba(27, 176, 244, .4);
}
.cv-drop:hover, .cv-drop.has-file { border-color: var(--accent); border-style: solid; }
.sr-file { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sr-file:focus-visible + .cv-drop { outline: 2px solid var(--accent); outline-offset: 2px; }
.cv-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cv-text strong { font-size: 15px; font-weight: 600; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-text span { font-size: 13px; color: var(--text-muted); }
.form-error { font-size: 14px; color: var(--danger); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions .note { font-size: 13px; color: var(--text-dim); }
.notice { border-radius: 14px; background: rgba(27, 176, 244, .12); border: 1px solid rgba(27, 176, 244, .4); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.notice strong { font-size: 17px; color: var(--white); }
.notice span { font-size: 15px; line-height: 1.6; color: var(--text); }

/* Legal / prose pages */
.prose .container { padding-top: 64px; padding-bottom: 104px; max-width: 880px; display: flex; flex-direction: column; gap: 28px; }
.prose h2 { font-family: var(--font-disp); font-size: 22px; font-weight: 600; color: var(--white); margin-top: 12px; }
.prose h3 { font-size: 18px; font-weight: 600; color: var(--white); }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--text-muted); }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--text); }
.prose .updated { font-size: 14px; color: var(--text-dim); }

/* 404 */
.notfound .container { min-height: calc(100vh - var(--header-h) - 240px); padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.notfound .code { font-size: 96px; font-weight: 600; line-height: 1; }
.notfound h1 { font-size: 40px; font-weight: 600; color: var(--white); }
.notfound p { font-size: 17px; color: var(--text-muted); max-width: 520px; }

/* Responsive */
@media (max-width: 860px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0; background: rgba(5, 8, 22, .97); border-bottom: 1px solid var(--line);
  }
  .nav a { padding: 16px var(--gutter); border-top: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .hero h1 { font-size: 34px; }
  .section-head h2, .h2, .notfound h1 { font-size: 28px; }
  .page-head h1 { font-size: 34px; }
  .hero .orbit { display: none; }
  .hero-body { padding-top: 72px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .job-detail { padding: 24px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; gap: 40px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---- Motion & illustration layer (2026-10) ---- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.site-header { transition: background-color .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled { background: rgba(5, 8, 22, .96); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }

.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.hero::before { width: 380px; height: 380px; left: -80px; top: 10%; background: rgba(154, 85, 245, .28); }
.hero::after { width: 420px; height: 420px; right: 8%; bottom: -120px; background: rgba(27, 176, 244, .22); animation-delay: -6s; }
.hero .orbit { animation: spin 90s linear infinite; }
.hero-art { position: absolute; right: 3%; top: 50%; width: min(520px, 42vw); margin-top: -300px; pointer-events: none; }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(41, 110, 226, .35)); }
.art-ring { transform-origin: 260px 260px; animation: spin 38s linear infinite; }
.art-ring.slow { animation-duration: 120s; animation-direction: reverse; }
.art-float { animation: bob 6s ease-in-out infinite; }
.art-float.d2 { animation-delay: -2s; }
.art-float.d3 { animation-delay: -4s; }
.hero-body { z-index: 1; }
.hero-stats { z-index: 1; }

.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 22px 0; }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 32s linear infinite; font-family: var(--font-disp); font-size: 22px; font-weight: 600; color: transparent; -webkit-text-stroke: 1px rgba(242, 245, 255, .45); white-space: nowrap; }
.marquee-track i { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); flex: none; }

.stat .num { background: linear-gradient(90deg, #fff, #5CCBFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { position: relative; }
.row:hover { transform: translateX(6px); }
.row:hover .idx { color: var(--accent-hover); }

.showcase { display: flex; flex-direction: column; gap: 52px; }
.show-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.show-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 28px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.show-card:hover { transform: translateY(-8px); border-color: var(--line-3); box-shadow: 0 24px 50px rgba(41, 110, 226, .25); }
.show-card h3 { font-size: 22px; font-weight: 600; color: var(--white); }
.show-card p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.show-card .label, .show-card h3, .show-card p { padding: 0 8px; }
.show-art { aspect-ratio: 220 / 160; border-radius: 16px; margin-bottom: 8px; background: radial-gradient(circle at 30% 20%, rgba(154, 85, 245, .28), transparent 60%), #070b24; overflow: hidden; }
.show-art svg { width: 100%; height: 100%; display: block; }
.show-art svg * { transform-box: fill-box; transform-origin: center; }
.reel { animation: reel 3s ease-in-out infinite; }
.reel .r2 { animation: reel 2.2s ease-in-out infinite reverse; }
.swim { animation: swim 5s ease-in-out infinite; }
.bubbles { animation: rise 4s linear infinite; }
.spin { animation: spin 14s linear infinite; }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
.orb { animation: spin 16s linear infinite; }
.ship { animation: sway 3s ease-in-out infinite; }
.shots { animation: shoot 1.2s linear infinite; }
.float { animation: bob 4s ease-in-out infinite; }
.tiles { animation: pulse 3s ease-in-out infinite; }

.cta { padding: 0 0 104px; }
.cta-box { border-radius: 28px; padding: 64px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; background: radial-gradient(circle at 20% 0%, rgba(154, 85, 245, .5), transparent 60%), radial-gradient(circle at 90% 100%, rgba(27, 176, 244, .4), transparent 55%), var(--bg-3); border: 1px solid var(--line-3); }
.cta-box h2 { font-size: 36px; font-weight: 600; color: var(--white); max-width: 720px; line-height: 1.2; }
.cta-box p { font-size: 17px; color: var(--text-muted); max-width: 520px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes bob { 50% { transform: translateY(-14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes reel { 50% { transform: translateY(18px); } }
@keyframes swim { 50% { transform: translateX(18px) rotate(3deg); } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } 50% { opacity: 1; } to { transform: translateY(-26px); opacity: 0; } }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .7; } }
@keyframes sway { 50% { transform: translateX(26px); } }
@keyframes shoot { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-30px); opacity: 0; } }

@media (max-width: 1100px) { .hero-art { display: none; } }
@media (max-width: 860px) { .cta-box { padding: 44px 24px; } .cta-box h2 { font-size: 26px; } .marquee-track { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) {
  /* Tắt chuyển động lớn/nhanh; giữ animation trang trí chậm (hero art, show-card) */
  .marquee-track, .hero::before, .hero::after, .hero .orbit { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .row:hover, .show-card:hover { transform: none; }
}

.globe-lines .mer { transform-box: fill-box; transform-origin: center; animation: meridian 8s linear infinite; }
.brand-ring { animation-duration: 40s; }
@keyframes meridian { from { transform: scaleX(-1); } to { transform: scaleX(1); } }

/* Căn hero-art theo lề phải của container, không theo viewport */
.hero-art { right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
.hero .orbit { opacity: .22; filter: blur(2px); }
.hero-art { width: min(440px, 34vw); margin-top: -215px; }

/* Tooltip cho icon nổi quanh quả cầu (bật bằng .is-hover từ site.js vì .hero-body phủ lên hero-art) */
.art-tip { opacity: 0; transition: opacity .2s ease; }
.art-float.is-hover .art-tip { opacity: 1; }
.art-tip rect { fill: rgba(16, 22, 56, .96); stroke: rgba(27, 176, 244, .5); }
.art-tip text { font-family: var(--font-body); text-anchor: middle; }
.art-tip .t { font-size: 15px; font-weight: 700; fill: var(--white); }
.art-tip .s { font-size: 12.5px; fill: var(--text-muted); }

/* Hiệu ứng vào/rời trang: body fade-in, header trượt xuống, main trồi lên; rời trang fade-out (.is-leaving từ site.js).
   Không dùng fill-mode forwards để trang vẫn hiện bình thường nếu animation không chạy. */
body { animation: page-in .6s ease backwards; }
.site-header { animation: header-in .7s cubic-bezier(.2,.7,.2,1) backwards; }
main { animation: main-in .8s cubic-bezier(.2,.7,.2,1) .08s backwards; }
html.is-leaving body { animation: none; opacity: 0; transition: opacity .22s ease; }
@keyframes page-in { from { opacity: 0; } }
@keyframes header-in { from { opacity: 0; transform: translateY(-16px); } }
@keyframes main-in { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
  /* Giữ fade opacity (không gây chuyển động), bỏ phần trượt */
  .site-header, main { animation: none; }
}

/* ---- Solutions hub (/solutions/) ---- */
.sol-hero .hero-body { padding-top: 96px; }
.sol-hero h1 { font-size: 52px; }
.sol-block { display: flex; flex-direction: column; gap: 52px; }
.sol-block > * { min-width: 0; max-width: 100%; }
.sol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.sol-card {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 36px 32px; border-radius: 22px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); overflow: hidden;
}
.sol-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); opacity: .5; transition: opacity .2s ease; }
.sol-card:hover { color: var(--text); border-color: var(--accent); transform: translateY(-4px); }
.sol-card:hover::before { opacity: 1; }
.sol-card.featured { background: radial-gradient(circle at 80% 0%, rgba(154, 85, 245, .3), transparent 60%), var(--bg-3); border-color: var(--line-3); }
.sol-card h3 { font-size: 26px; font-weight: 600; color: var(--white); }
.sol-card p { font-size: 16px; line-height: 1.65; color: var(--text-muted); }
.sol-more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--accent); }
.sol-more i { font-style: normal; display: inline-block; transition: transform .2s ease; }
.sol-card:hover .sol-more i { transform: translateX(4px); }
.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text); }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.cmp-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg); }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 20px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-family: var(--font-disp); font-size: 16px; font-weight: 600; color: var(--white); }
.cmp tbody th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; white-space: nowrap; }
.cmp td { color: var(--text-muted); }
.cmp .hl { background: rgba(154, 85, 245, .1); color: var(--text); }

.mod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; }
@media (min-width: 1100px) { .mod-grid { grid-template-columns: repeat(3, 1fr); } }
.mod { background: var(--bg); padding: 32px; display: flex; flex-direction: column; gap: 12px; transition: background-color .2s ease; }
.mod:hover { background: var(--bg-3); }
.mod h3 { font-size: 19px; font-weight: 600; color: var(--white); }
.mod p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.steps li::after { content: ""; position: absolute; top: 40px; right: -17px; width: 18px; height: 2px; background: var(--grad); }
.steps li:last-child::after { display: none; }
.steps .idx { font-size: 14px; color: var(--accent); }
.steps h3 { font-size: 18px; font-weight: 600; color: var(--white); }
.steps p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.steps .wk { margin-top: auto; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-3); color: var(--accent); }
.fine { font-size: 13px; color: var(--text-dim); }

.api { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; }
.api-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.api-copy > p { font-size: 17px; line-height: 1.65; color: var(--text-muted); }
.api-code { flex: 1 1 460px; min-width: 0; border-radius: 18px; border: 1px solid var(--line-3); background: #070b24; overflow: hidden; box-shadow: 0 30px 60px rgba(41, 110, 226, .2); }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-dim); }
.code-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(242, 245, 255, .18); }
.code-bar span { margin-left: 10px; font-weight: 700; color: var(--accent); }
.api-code pre { margin: 0; padding: 22px; overflow-x: auto; font: 13.5px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.api-code .c { color: var(--text-dim); }
.api-code .k { color: #5CCBFF; }
.api-code .s { color: #C9A6FF; }
.api-code .n { color: #FFC86B; }
.code-note { display: block; padding: 0 22px 18px; font-size: 12px; color: var(--text-dim); }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.stack { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stack .label { margin-right: 8px; }
.stack span:not(.label) { font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-muted); background: var(--bg); }

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 8px; font-size: 18px; font-weight: 600; color: var(--white); display: flex; justify-content: space-between; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-disp); color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq details p { padding: 0 8px 26px; max-width: 820px; font-size: 16px; line-height: 1.7; color: var(--text-muted); }

@media (max-width: 860px) {
  .sol-hero h1 { font-size: 32px; }
  .steps li::after { display: none; }
  .faq summary { font-size: 16px; }
}

.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 14px; border: 1px solid var(--line-3); background: var(--bg-2); box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.consent p { flex: 1 1 320px; margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.consent a { color: var(--accent); }
.consent-actions { display: flex; gap: 10px; }
.consent .btn { min-height: 42px; padding: 0 22px; font-size: 14px; }
.consent .btn:not(.btn-primary) { border: 1px solid var(--line-3); background: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.check input { margin-top: 3px; accent-color: var(--accent); }
.check a { color: var(--accent); }
