/* ============================================================
   WCDM — Landing page stylesheet
   Tông: xanh dương học thuật + nhấn xanh ngọc, nền sáng
   ============================================================ */

:root {
  --navy:        #0a2540;
  --navy-deep:   #061a30;
  --blue:        #1d6fe0;
  --blue-bright: #2e8fff;
  --teal:        #12b8a6;
  --teal-bright: #1ad6c0;
  --ink:         #1a2b42;
  --ink-soft:    #4a5b73;
  --mute:        #7587a0;
  --line:        #e3e9f2;
  --bg:          #ffffff;
  --bg-soft:     #f4f7fc;
  --bg-tint:     #eef4ff;
  --white:       #ffffff;
  --radius:      16px;
  --radius-lg:   24px;
  --shadow-sm:   0 2px 12px rgba(10,37,64,.06);
  --shadow-md:   0 12px 36px rgba(10,37,64,.10);
  --shadow-lg:   0 28px 70px rgba(10,37,64,.18);
  --maxw:        1180px;
  --font-body:   'Be Vietnam Pro', system-ui, sans-serif;
  --font-head:   'Lexend', 'Be Vietnam Pro', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 22px;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(29,111,224,.35);
}
.brand-text {
  font-family: var(--font-head); font-weight: 800; font-size: 22px;
  letter-spacing: -.5px; color: var(--navy);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  transition: color .2s; position: relative;
}
.nav-links a:not(.nav-cta):hover { color: var(--blue); }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--blue); transition: width .25s;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--navy); color: #fff !important;
  padding: 9px 20px; border-radius: 9px; font-weight: 600;
  transition: transform .2s, background .2s;
}
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span {
  width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px;
  transition: .3s;
}

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switch {
  display: flex; align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-left: 18px;
  gap: 2px;
  flex-shrink: 0;
  white-space: nowrap;
}
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  color: var(--ink-soft);
  padding: 6px 11px; border-radius: 999px;
  transition: background .2s, color .2s, transform .15s;
  line-height: 1;
  flex-shrink: 0;
  /* iOS Safari fixes: remove native button styling */
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.lang-btn:hover { color: var(--navy); }
.lang-btn:active { transform: scale(.96); }
.lang-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #fff;
  box-shadow: 0 4px 12px rgba(29,111,224,.30);
}
/* SVG flag: explicit size, render same across all platforms */
.lang-flag {
  display: inline-flex;
  width: 20px; height: 14px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  flex-shrink: 0;
  pointer-events: none;   /* taps go to parent button */
}
.lang-flag svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.lang-code { letter-spacing: .3px; pointer-events: none; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  padding: 13px 26px; border-radius: 11px; cursor: pointer;
  border: none; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #fff; box-shadow: 0 10px 26px rgba(29,111,224,.34);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(29,111,224,.44); }
.btn-ghost {
  background: rgba(255,255,255,.12); color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 16.5px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- HERO ---------- */
.hero {
  position: relative; padding: 156px 0 110px;
  background: linear-gradient(170deg, var(--navy-deep) 0%, var(--navy) 55%, #0d3358 100%);
  overflow: hidden;
  contain: paint;
}
.hero-bg { position: absolute; inset: 0; }
.hero-grid {
  position: absolute; inset: 0;
  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 75% 65% at 50% 35%, #000 35%, transparent 78%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.hero-glow-1 { width: 480px; height: 480px; background: #1d6fe0; top: 0; right: 0;
  transform: translate(60px, -130px); will-change: transform; }
.hero-glow-2 { width: 420px; height: 420px; background: #12b8a6; bottom: 0; left: 0;
  transform: translate(-90px, 180px); opacity: .4; will-change: transform; }
.hero-content {
  position: relative; max-width: 880px; margin: 0 auto; padding: 0 24px;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #cfe0f5; font-size: 14px; font-weight: 500;
  padding: 8px 17px; border-radius: 100px; margin-bottom: 28px;
  animation: fadeUp .7s .05s both;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(26,214,192,.25);
}
.hero-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.16;
  color: #fff; letter-spacing: -1px; margin-bottom: 24px;
  animation: fadeUp .7s .15s both;
}
.hero-title .grad {
  background: linear-gradient(120deg, var(--teal-bright), var(--blue-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem); color: #b8c8de;
  max-width: 680px; margin: 0 auto 38px; line-height: 1.7;
  animation: fadeUp .7s .25s both;
}
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-actions {
  display: flex; gap: 15px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp .7s .35s both;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 56px; flex-wrap: wrap;
  animation: fadeUp .7s .45s both;
}
.hstat { padding: 0 22px; text-align: center; }
.hstat-num {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 1.7rem; color: var(--teal-bright); letter-spacing: .5px;
}
.hstat-lbl { font-size: 13.5px; color: #93a6c0; }
.hstat-div { width: 1px; height: 38px; background: rgba(255,255,255,.15); }

/* ---------- DUAL TRACK ---------- */
.dualtrack { margin-top: -64px; position: relative; z-index: 5; }
.dt-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.dt-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 34px 32px; box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.dt-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dt-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px; color: #fff;
}
.dt-leader .dt-icon { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.dt-staff .dt-icon  { background: linear-gradient(135deg, var(--teal), var(--blue)); }
.dt-card h3 {
  font-family: var(--font-head); font-size: 1.28rem; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
}
.dt-card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 16px; }
.dt-link { font-weight: 600; color: var(--blue); font-size: 15px; }

/* ---------- SECTION SHELL ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-soft); }
.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-tag {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--blue); background: var(--bg-tint);
  padding: 6px 14px; border-radius: 7px; margin-bottom: 16px;
}
.sec-tag-light { color: #9fd4ff; background: rgba(255,255,255,.1); }
.sec-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.22;
  color: var(--navy); letter-spacing: -.6px; margin-bottom: 16px;
}
.sec-title-light { color: #fff; }
.sec-lead { font-size: 1.06rem; color: var(--ink-soft); line-height: 1.72; }
.sec-lead-light { color: #b8c8de; }

/* ---------- BỐI CẢNH ---------- */
.std-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 56px;
}
.std-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.std-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--blue), var(--teal));
}
.std-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.std-num {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  color: var(--teal); letter-spacing: .5px; margin-bottom: 10px;
}
.std-card h3 {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700;
  color: var(--navy); margin-bottom: 12px; line-height: 1.4;
}
.std-card p { color: var(--ink-soft); font-size: 15px; }

.pain-title {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
  color: var(--navy); text-align: center; margin-bottom: 30px;
}
.pain-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.pain-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.pain-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pain-highlight {
  background: linear-gradient(165deg, #fff, var(--bg-tint));
  border: 1.5px solid rgba(29,111,224,.35);
  box-shadow: 0 10px 28px rgba(29,111,224,.12);
  position: relative;
}
.pain-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; font-size: 10.5px; font-weight: 700; white-space: nowrap;
  font-family: var(--font-head); letter-spacing: .4px;
  padding: 4px 12px; border-radius: 100px;
  box-shadow: 0 4px 12px rgba(29,111,224,.3);
}
.pain-ic { font-size: 2rem; margin-bottom: 12px; }
.pain-item p { font-size: 14px; color: var(--ink-soft); }

/* ---------- WCDM FLOW ---------- */
.flow {
  display: flex; align-items: stretch; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.flow-node {
  flex: 1; min-width: 240px; max-width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.flow-node:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.flow-node-core {
  background: linear-gradient(165deg, #1d4f8a, #2563b5);
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(13,51,88,.32);
}
.flow-node-core h4 { color: #ffffff; }
.flow-node.flow-node-core h4 { color: #ffffff; }
.flow-node.flow-node-core p {
  color: #ffffff;
  opacity: 1;
}
/* Thẻ core không áp hiệu ứng mờ dần để chữ luôn rõ */
.flow-node-core.reveal { opacity: 1 !important; transform: none !important; }
.flow-ic {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px;
  display: grid; place-items: center; color: #fff;
}
.flow-ic-in   { background: linear-gradient(135deg, #5b7da6, #8aa6c8); }
.flow-ic-core { background: linear-gradient(135deg, var(--teal), var(--teal-bright)); }
.flow-ic-out  { background: linear-gradient(135deg, var(--blue), var(--blue-bright)); }
.flow-node h4 {
  font-family: var(--font-head); font-size: 1.12rem; font-weight: 700;
  color: var(--navy); margin-bottom: 9px;
}
.flow-node p { font-size: 14px; color: var(--ink-soft); }
.flow-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--mute);
  flex-shrink: 0;
}

/* ---------- LỢI ÍCH ---------- */
.ben-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.ben-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ben-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md);
  border-color: rgba(29,111,224,.3);
}
.ben-card-feat {
  background: linear-gradient(165deg, #fff, var(--bg-tint));
  border: 2px solid var(--blue);
  box-shadow: 0 14px 38px rgba(29,111,224,.14);
}
.ben-card-feat strong { color: var(--blue); font-weight: 700; }
.ben-ic {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--bg-tint); display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 18px;
}
.ben-card h3 {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
  color: var(--navy); margin-bottom: 9px;
}
.ben-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- VAI TRÒ ---------- */
.role-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.role-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.role-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.role-ic {
  font-size: 2.4rem; margin-bottom: 14px;
  width: 70px; height: 70px; margin-inline: auto;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--bg-tint), #fff);
  border-radius: 50%;
}
.role-card h4 {
  font-family: var(--font-head); font-size: 1.06rem; font-weight: 700;
  color: var(--navy); margin-bottom: 7px;
}
.role-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- DEMO ---------- */
.demo-sec {
  background: linear-gradient(170deg, var(--navy-deep), var(--navy) 70%, #0d3358);
  position: relative; overflow: hidden;
}
.demo-sec::before {
  content: ''; position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(18,184,166,.2), transparent 70%);
  top: -150px; right: -120px; filter: blur(60px);
}
.demo-card { max-width: 880px; margin: 0 auto; position: relative; }

/* When .demo-card is also a link (whole image clickable) */
a.demo-card-link {
  display: block; text-decoration: none; color: inherit;
  outline: none;
  transition: transform .25s ease;
}
a.demo-card-link .demo-window {
  transition: box-shadow .3s ease;
}
a.demo-card-link .demo-screen-ic {
  transition: transform .3s ease, box-shadow .3s ease;
}
a.demo-card-link:hover { transform: translateY(-6px); }
a.demo-card-link:hover .demo-window {
  box-shadow: 0 30px 70px rgba(13,51,88,.4),
              0 0 0 2px rgba(29,111,224,.2);
}
a.demo-card-link:hover .demo-screen-ic {
  transform: scale(1.12);
  box-shadow: 0 22px 58px rgba(29,111,224,.6);
}
a.demo-card-link:focus-visible .demo-window {
  box-shadow: 0 0 0 3px rgba(29,111,224,.5), var(--shadow-lg);
}
/* Inner CTA is now a span — make sure clicks pass through to the parent <a> */
.demo-cta { pointer-events: none; }

.demo-window {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.demo-bar {
  background: #f0f3f8; border-bottom: 1px solid var(--line);
  padding: 13px 18px; display: flex; align-items: center; gap: 8px;
}
.demo-dot { width: 11px; height: 11px; border-radius: 50%; background: #d2d9e4; }
.demo-dot:nth-child(1) { background: #ff6058; }
.demo-dot:nth-child(2) { background: #ffbd2e; }
.demo-dot:nth-child(3) { background: #28c93f; }
.demo-url {
  margin-left: 12px; font-size: 13px; color: var(--mute);
  background: #fff; padding: 4px 14px; border-radius: 6px;
  border: 1px solid var(--line);
}
.demo-screen {
  padding: 70px 30px; text-align: center;
  background:
    radial-gradient(circle at 50% 0%, var(--bg-tint), #fff 70%);
}
.demo-screen-ic {
  width: 96px; height: 96px; margin: 0 auto 22px;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  box-shadow: 0 16px 40px rgba(29,111,224,.4);
}
.demo-screen p {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 600;
  color: var(--navy); margin-bottom: 24px;
}
.demo-note {
  max-width: 720px; margin: 30px auto 0; text-align: center;
  font-size: 13.5px; color: #93a6c0; line-height: 1.7;
}

/* ---------- GÓI DỊCH VỤ ---------- */
.pkg-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: start;
}
.pkg-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; position: relative;
  transition: transform .25s, box-shadow .25s;
}
.pkg-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pkg-feat {
  border: 2px solid var(--blue);
  box-shadow: 0 16px 44px rgba(29,111,224,.16);
}
.pkg-ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 6px 18px; border-radius: 100px; letter-spacing: .5px;
  font-family: var(--font-head);
  box-shadow: 0 6px 16px rgba(29,111,224,.35);
}
.pkg-tag {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: var(--teal); letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 12px;
}
.pkg-card h3 {
  font-family: var(--font-head); font-size: 1.24rem; font-weight: 700;
  color: var(--navy); margin-bottom: 12px; line-height: 1.38;
  min-height: 2.7em;
}
.pkg-desc {
  font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px;
  padding-bottom: 18px; border-bottom: 1px dashed var(--line);
}
.pkg-list { display: flex; flex-direction: column; gap: 11px; }
.pkg-list li {
  font-size: 14px; color: var(--ink-soft); padding-left: 26px;
  position: relative; line-height: 1.55;
}
.pkg-list li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l5 5L20 6' stroke='%231d6fe0' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.pkg-cta {
  margin-top: 48px; text-align: center;
  background: var(--bg-tint); border-radius: var(--radius-lg);
  padding: 38px 30px;
}
.pkg-cta p {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 600;
  color: var(--navy); margin-bottom: 18px;
}

/* ---------- VỀ CHÚNG TÔI ---------- */
.about-wrap {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center;
}
.about-text .sec-tag { margin-bottom: 16px; }
.about-text .sec-title { text-align: left; }
.about-text p {
  color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 16px;
}
.about-text strong { color: var(--navy); font-weight: 600; }
.about-stats { display: flex; flex-direction: column; gap: 18px; }
.astat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; display: flex; align-items: center; gap: 20px;
  box-shadow: var(--shadow-sm);
}
.astat-num {
  font-family: var(--font-head); font-weight: 800; font-size: 2.3rem;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.astat-lbl { font-size: 14.5px; color: var(--ink-soft); font-weight: 500; }

/* ---------- LIÊN HỆ ---------- */
.contact-sec {
  background: linear-gradient(170deg, var(--navy), var(--navy-deep));
  position: relative; overflow: hidden;
}
.contact-sec::before {
  content: ''; position: absolute; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(29,111,224,.25), transparent 70%);
  bottom: -160px; left: -120px; filter: blur(70px);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px;
  max-width: 940px; margin: 0 auto; position: relative;
}
.contact-info { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.cinfo-item { display: flex; align-items: flex-start; gap: 16px; }
.cinfo-ic {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center; color: var(--teal-bright);
}
.cinfo-lbl {
  display: block; font-size: 12.5px; color: #8499b5;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 3px;
}
.cinfo-val { display: block; font-size: 15.5px; color: #fff; font-weight: 500; }
a.cinfo-val:hover { color: var(--teal-bright); }

.contact-form {
  background: #fff; border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--navy); margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px;
  padding: 12px 15px; border: 1.5px solid var(--line);
  border-radius: 10px; color: var(--ink); background: var(--bg-soft);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
}
.field textarea { resize: vertical; }
.hidden-field { display: none; }

/* Form submission status (success / error / info) */
.form-status {
  margin-top: 14px; padding: 12px 16px; border-radius: 10px;
  font-size: 14px; line-height: 1.5; font-weight: 500;
  border: 1.5px solid transparent;
}
.form-status-info {
  background: #e8f1fb; color: #0d3a78; border-color: rgba(29,111,224,.25);
}
.form-status-success {
  background: #e6f7ed; color: #0e5e2c; border-color: rgba(34,170,76,.35);
}
.form-status-error {
  background: #fdecec; color: #962020; border-color: rgba(220,53,69,.35);
}

/* ---------- FOOTER ---------- */
.footer { background: var(--navy-deep); color: #b8c8de; padding-top: 56px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap; padding-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: #8499b5; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { font-size: 14.5px; color: #b8c8de; transition: color .2s; }
.footer-nav a:hover { color: var(--teal-bright); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0; font-size: 13px; color: #6a7d99; text-align: center;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 940px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 18px 24px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .35s; z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 6px; }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .lang-switch { margin-left: auto; margin-right: 8px; padding: 2px; }
  .lang-btn { padding: 5px 9px; font-size: 12px; }
  .lang-flag { width: 18px; height: 13px; }

  .dt-grid, .std-grid, .about-wrap, .contact-grid { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .ben-grid, .role-grid, .pkg-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: center; }
  .flow-arrow { transform: rotate(90deg); margin: 4px 0; }
  .flow-node { max-width: 100%; }
  .about-text .sec-title { text-align: center; }
  .about-text .sec-head, .about-text { text-align: center; }
  .section { padding: 70px 0; }
  .hero { padding: 130px 0 96px; }
}
@media (max-width: 560px) {
  .pain-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 0; }
  .hstat { padding: 10px 16px; }
  .hstat-div { display: none; }
  .contact-form { padding: 24px; }
  .dt-card, .pkg-card { padding: 26px 22px; }
  .lang-btn { padding: 5px 8px; }
  .lang-code { display: none; }
}

/* ============================================================
   MOBILE COMPACT — denser layout for small screens
   Does not affect desktop (>940px). All rules live inside
   media queries so PC/laptop view stays exactly as before.
   ============================================================ */

/* CRITICAL FIX for iOS Safari pinch-zoom getting stuck:
   The decorative glow elements (.hero-glow + ::before pseudos on demo/contact)
   have negative/off-viewport positions to bleed light from edges. iOS Safari
   uses their bounding boxes to calculate "fit-width" during pinch zoom, causing
   the page to get stuck at zoomed-out state on touch devices. Hide them on
   mobile — the gradient backgrounds alone look great without the glows. */
@media (max-width: 940px) {
  .hero-glow,
  .demo-sec::before,
  .contact-sec::before {
    display: none !important;
  }
}

/* --- Tablet & landscape phone: allow 2 cols for small uniform grids --- */
@media (min-width: 480px) and (max-width: 940px) {
  .role-grid { grid-template-columns: 1fr 1fr; }
  .ben-grid  { grid-template-columns: 1fr 1fr; }
  .pkg-grid  { grid-template-columns: 1fr; }
}

/* --- Phone: tighten typography, sections, hero --- */
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .sec-head { margin-bottom: 36px; }
  .sec-title { font-size: clamp(1.45rem, 6vw, 1.9rem); letter-spacing: -.4px; }
  .sec-lead  { font-size: 1rem; line-height: 1.66; }
  .sec-tag { margin-bottom: 12px; }

  .hero { padding: 110px 0 70px; }
  .hero-title { line-height: 1.18; }
  .hero-sub { font-size: 1rem; line-height: 1.65; }

  /* --- Flow: horizontal compact cards on phone --- */
  .flow { flex-direction: column; align-items: stretch; gap: 6px; }
  .flow-node {
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-template-areas: "ic title" "ic desc";
    column-gap: 16px; row-gap: 2px;
    align-items: center;
    text-align: left;
    padding: 18px 20px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    flex: none;
  }
  .flow-node .flow-ic {
    grid-area: ic; margin: 0;
    width: 50px; height: 50px; border-radius: 13px;
    align-self: center;
  }
  .flow-node .flow-ic svg { width: 24px; height: 24px; }
  .flow-node h4 { grid-area: title; margin-bottom: 2px; font-size: 1.04rem; }
  .flow-node p  { grid-area: desc; font-size: 13.5px; line-height: 1.55; }
  .flow-arrow { margin: 2px 0; }
  .flow-arrow svg { width: 28px; height: 18px; }

  /* --- Dual-track cards: tighter padding & icon --- */
  .dt-card { padding: 24px 22px; }
  .dt-icon { width: 48px; height: 48px; margin-bottom: 14px; border-radius: 12px; }
  .dt-card h3 { font-size: 1.14rem; }
  .dt-card p  { font-size: 14.5px; margin-bottom: 12px; }

  /* --- Standard cards --- */
  .std-card { padding: 24px 22px; }
  .std-grid { gap: 14px; margin-bottom: 32px; }
  .std-card h3 { font-size: 1.08rem; }

  /* --- Pain points --- */
  .pain-row { margin-top: 8px; }
  .pain-title { font-size: 1.05rem; margin-bottom: 18px; }
  .pain-item { padding: 16px 18px; }
  .pain-ic { font-size: 1.4rem; margin-bottom: 8px; }
  .pain-item p { font-size: 14px; }

  /* --- Benefits: 2 cols at this width, compact cards --- */
  .ben-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ben-card { padding: 20px 18px; }
  .ben-card-feat { grid-column: 1 / -1; }
  .ben-ic { width: 42px; height: 42px; font-size: 1.2rem; margin-bottom: 12px; border-radius: 11px; }
  .ben-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
  .ben-card p  { font-size: 13.5px; line-height: 1.55; }

  /* --- Roles: 2 cols, compact --- */
  .role-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .role-card { padding: 20px 14px 18px; }
  .role-ic { width: 52px; height: 52px; font-size: 1.8rem; margin-bottom: 10px; }
  .role-card h4 { font-size: .96rem; margin-bottom: 4px; }
  .role-card p  { font-size: 12.8px; line-height: 1.5; }

  /* --- Demo card --- */
  .demo-window { border-radius: 18px; }
  .demo-screen { padding: 40px 20px; }
  .demo-note { font-size: 13px; margin-top: 18px; }

  /* --- Packages: less padding --- */
  .pkg-card { padding: 26px 22px; }
  .pkg-card h3 { font-size: 1.18rem; }
  .pkg-desc { font-size: 14px; }
  .pkg-list li { font-size: 14px; }

  /* --- About stats: row of 3 still readable --- */
  .about-stats { gap: 14px; }
  .astat-num { font-size: 1.6rem; }
  .astat-lbl { font-size: 12px; }

  /* --- Contact form smaller padding --- */
  .contact-form { padding: 22px; }
  .cinfo-item { gap: 12px; }
  .cinfo-ic { width: 42px; height: 42px; }
}

/* --- Extra-narrow phones (under 360px): drop role grid to 1 col --- */
@media (max-width: 359px) {
  .role-grid { grid-template-columns: 1fr; }
  .ben-grid  { grid-template-columns: 1fr; }
}
