/* Numer Today - landing page
   Mobile-first. Mau va font theo design system cua brand. */

:root {
  --ivory: #120E2A;
  --ivory-2: #1A1438;
  --ink: #F5F0FF;
  --muted: #B6AAD8;
  /* Theme "vu tru" dong bo app (apps/mobile/src/theme.ts: dem tim #16132E -> #4A3B6E, hoang hon tim -> hong -> dao),
     day do ruc len cho web: nen khong gian toi, diem nhan gradient cam -> hong -> tim. */
  --navy: #6B46E5;
  --night: #0B0820;
  --gold: #FF7A59;
  --gold-soft: #FFB37A;
  --pink: #F2559B;
  --violet: #8B5CFF;
  --grad: linear-gradient(110deg, #FF9A4D 0%, #FF5F7E 42%, #B44DFF 75%, #7B5CFF 100%);
  --grad-soft: linear-gradient(110deg, #FFC08A 0%, #FF8FB1 45%, #C9A2FF 100%);
  --border: rgba(255, 255, 255, .1);
  --white: rgba(255, 255, 255, .045);

  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 20px;
  --max: 1240px;
  --radius: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --section: clamp(88px, 12vw, 168px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Lop grain rat nhe phu toan trang */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.grid12 { display: grid; grid-template-columns: 1fr; gap: 56px; }
.center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 350; letter-spacing: -.02em; font-optical-sizing: auto; }
h2 { font-size: clamp(2.25rem, 5.2vw, 4rem); line-height: 1.06; }
h2 em, h1 em { font-style: italic; font-weight: 300; }
h3 { font-size: 1.45rem; line-height: 1.2; font-weight: 400; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.head--center .eyebrow { justify-content: center; }
.eyebrow--light { color: var(--gold-soft); }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.7; max-width: 34em; margin-top: 24px; }

.head { margin-bottom: clamp(48px, 7vw, 88px); }
.head--center { text-align: center; }
.head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  transition: transform .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 10px 30px -12px rgba(184, 146, 58, .7); }
.btn--gold:hover { background: #A68232; transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(184, 146, 58, .8); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--night); transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(11, 37, 69, .6); }
.btn--light { background: var(--ivory); color: var(--navy); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }
.btn--ghost-light { color: #fff; border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px); background: rgba(255, 255, 255, .04); }
.btn--ghost-dark { color: var(--navy); border: 1px solid var(--border); background: transparent; }
.btn--ghost-dark:hover { border-color: var(--gold-soft); transform: translateY(-2px); }
.btn--ghost-light:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); }

.badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.badges--center { justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 18px 0 14px; border-radius: 12px;
  background: rgba(7, 20, 33, .78); color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.badge:hover { border-color: var(--gold-soft); transform: translateY(-2px); }
.badge svg { width: 22px; height: 22px; }
.badge span { display: flex; flex-direction: column; font-size: 16px; font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }
.badge small { font-size: 10px; font-weight: 400; opacity: .75; letter-spacing: .02em; }

/* ---------- Logo / orb ---------- */
.logo { display: inline-flex; align-items: center; gap: .32em; font-family: var(--serif); font-size: 23px; font-weight: 400; letter-spacing: -.01em; }
.orb {
  display: inline-block; width: .5em; height: .5em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FAE8BF 0%, #E2BC73 30%, #CD9E4E 55%, #9D6D29 100%);
  box-shadow: 0 0 0 .14em rgba(215, 189, 122, .18), 0 0 14px rgba(215, 189, 122, .45);
  transform: translateY(.04em);
}
.orb--lg { font-size: 56px; }
.logo__img { height: 34px; width: auto; }
.logo__img--dark { display: none; }
.nav.is-scrolled .logo__img--light, .menu-open .nav .logo__img--light { display: none; }
.nav.is-scrolled .logo__img--dark, .menu-open .nav .logo__img--dark { display: block; }
.logo--footer .logo__img { height: 36px; }

/* ---------- 01 Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background-color .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease), backdrop-filter .6s; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav__links { display: none; gap: 36px; font-size: 14px; letter-spacing: .01em; }
.nav__links a { position: relative; opacity: .82; transition: opacity .4s; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold-soft); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: none; }
.nav.is-scrolled { background: rgba(248, 246, 241, .86); color: var(--ink); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); box-shadow: 0 1px 0 var(--border); }
.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; position: relative; z-index: 60; }
.burger span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-open .burger { color: var(--ink); }
.menu-open .burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.menu-open .nav { color: var(--ink); background: transparent; box-shadow: none; }
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ivory);
  padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; gap: 32px;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-family: var(--serif); font-size: 34px; font-weight: 350; padding: 10px 0; border-bottom: 1px solid var(--border); }
.menu__tag { color: var(--muted); font-size: 13px; text-align: center; }
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }

/* ---------- 02 Hero ---------- */
.hero { position: relative; min-height: 100svh; color: #fff; overflow: hidden; padding: 128px 0 72px; display: flex; align-items: center; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 14, 26, .55) 0%, rgba(5, 14, 26, .1) 45%, rgba(7, 20, 33, 0) 80%, rgba(7, 20, 33, .5) 100%); }
.hero__numerals span { position: absolute; font-family: var(--serif); font-weight: 200; font-size: clamp(90px, 16vw, 240px); line-height: 1; color: #fff; opacity: .035; animation: breathe 18s ease-in-out infinite alternate; }
.hero__numerals span:nth-child(2n) { animation-delay: -6s; }
.drift { animation: drift 160s linear infinite alternate; }
.hero__grid { display: grid; gap: 64px; align-items: center; }
.hero__title { font-size: clamp(2.9rem, 9.6vw, 5.9rem); line-height: 1; font-weight: 320; letter-spacing: -.03em; }
.hero__title em { color: var(--gold-soft); }
.hero__lead { margin-top: 28px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.65; color: rgba(255, 255, 255, .8); max-width: 30em; }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }
.hero__phones { position: relative; height: 520px; --ps: 8.4px; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 22px; height: 36px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 12px; transform: translateX(-50%); display: none; }
.hero__scroll span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--gold-soft); border-radius: 2px; animation: scrollcue 2.8s var(--ease) infinite; }

/* ---------- Phone mockup (moi kich thuoc ben trong tinh bang em) ---------- */
.phone {
  font-size: var(--ps, 10px);
  width: 28em; height: 58.6em; padding: .85em;
  border-radius: 4.6em; position: relative;
  background: linear-gradient(145deg, #3A3D43 0%, #17181B 30%, #0B0C0E 70%, #2A2C31 100%);
  box-shadow:
    inset 0 0 0 .12em #4A4D53,
    inset 0 0 0 .4em #111214,
    0 5em 9em -2em rgba(3, 10, 20, .55),
    0 2.5em 4em -2em rgba(3, 10, 20, .45);
}
.phone::before, .phone::after { content: ''; position: absolute; width: .32em; border-radius: .2em; background: linear-gradient(90deg, #26282C, #45484E); }
.phone::before { left: -.26em; top: 12em; height: 5.6em; box-shadow: 0 7.4em 0 #34363B; }
.phone::after { right: -.26em; top: 15em; height: 8.6em; }
.phone__screen { position: relative; height: 100%; border-radius: 3.8em; overflow: hidden; display: flex; flex-direction: column; }
.phone__screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 32%); }
.screen--ivory { background: var(--ivory); color: var(--ink); }
.screen--navy { background: radial-gradient(120% 70% at 80% 0%, #1A3A62 0%, var(--navy) 45%, var(--night) 100%); color: #fff; }
.island { position: absolute; top: 1.1em; left: 50%; transform: translateX(-50%); width: 9.2em; height: 2.7em; background: #000; border-radius: 2em; z-index: 3; }
.status { display: flex; justify-content: space-between; align-items: center; padding: 1.55em 2.4em 0 2.8em; font-size: 1.3em; font-weight: 600; letter-spacing: -.01em; height: 3.4em; }
.status--light { color: #fff; }
.status__icons { display: flex; gap: .3em; align-items: center; }
.status__icons i { display: block; width: .95em; height: .65em; border-radius: .15em; background: currentColor; opacity: .85; }
.status__icons i:first-child { width: .9em; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.status__icons i:last-child { width: 1.6em; border-radius: .25em; }
.app { flex: 1; padding: 1.4em 2.2em 0; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.app__top { display: flex; justify-content: space-between; align-items: center; font-size: 1.15em; color: var(--muted); }
.app__date { font-weight: 500; }
.app__avatar { width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-soft); font-family: var(--serif); font-size: 1em; }
.app__x { opacity: .5; }
.app__eyebrow { font-size: 1em; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 1.6em; }
.app__eyebrow--light { color: var(--gold-soft); margin-top: 1em; }
.app__title { font-family: var(--serif); font-size: 3em; font-weight: 350; letter-spacing: -.02em; margin-top: .15em; }
.app__title--light { color: #fff; }
.app__headline { font-family: var(--serif); font-size: 2.3em; line-height: 1.12; font-weight: 400; text-align: center; margin-top: .55em; }
.app__headline--lg { font-size: 2.6em; margin-top: .25em; }
.app__headline--q { text-align: left; font-size: 2.6em; margin-top: .5em; }
.app__text { font-size: 1.22em; color: var(--muted); text-align: center; line-height: 1.5; margin-top: .7em; }
.app__quote { font-family: var(--serif); font-style: italic; font-size: 1.3em; line-height: 1.45; text-align: center; color: #3A3A3A; margin-top: .8em; padding: 0 .4em; }
.app__save { flex: 0 0 auto; margin-top: auto; margin-bottom: 2.6em; height: 3.8em; border-radius: 2em; background: var(--navy); color: #fff; font-size: 1.2em; font-weight: 500; display: grid; place-items: center; }

.energy { position: relative; width: 11.5em; height: 11.5em; margin: .9em auto 0; }
.energy svg { width: 100%; height: 100%; }
.energy__arc { animation: arc 4s var(--ease) both; }
.energy__num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.energy__num b { font-family: var(--serif); font-weight: 300; font-size: 5.6em; line-height: 1; color: var(--navy); }
.energy__num span { font-size: .85em; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: .3em; }

.guide { margin-top: auto; margin-bottom: 1.4em; background: #fff; border: 1px solid var(--border); border-radius: 1.8em; padding: 1.3em 1.5em; }
.guide__title { font-size: 1em; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .6em; }
.guide__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; font-size: 1.15em; padding: .5em 0; border-top: 1px solid var(--border); }
.guide__row:first-of-type { border-top: 0; }
.guide__title + .guide__row { border-top: 0; }
.guide__row span { color: var(--muted); }
.guide__row b { font-weight: 600; color: var(--navy); text-align: right; }
.guide__action { border-top: 1px solid var(--border); padding-top: .7em; margin-top: .2em; }
.guide__action span { font-size: 1.1em; color: var(--muted); }
.guide__action p { font-size: 1.25em; line-height: 1.45; color: var(--ink); margin-top: .3em; }

.tabbar { display: flex; justify-content: space-around; align-items: center; height: 6em; padding: 0 2.4em 1.4em; border-top: 1px solid var(--border); background: rgba(255, 255, 255, .6); }
.tabbar--dark { border-top-color: rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .12); }
.tab { width: 2em; height: 2em; border-radius: .6em; border: 1.5px solid currentColor; opacity: .25; }
.tab--on { opacity: 1; border-color: var(--gold); background: rgba(184, 146, 58, .14); }

.lp-card { position: relative; overflow: hidden; margin-top: 1.6em; border-radius: 2em; padding: 1.8em; display: flex; justify-content: space-between; gap: 1em; background: rgba(255, 255, 255, .06); border: 1px solid rgba(215, 189, 122, .25); }
.lp-card__label { font-size: 1em; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.lp-card__name { font-family: var(--serif); font-size: 2.2em; margin-top: .3em; }
.lp-card__desc { font-size: 1.1em; color: rgba(255, 255, 255, .6); margin-top: .4em; line-height: 1.45; max-width: 12em; }
.lp-card__num { font-family: var(--serif); font-weight: 300; font-size: 8em; line-height: .9; color: var(--gold-soft); position: relative; z-index: 1; }
.lp-card__ring { position: absolute; right: -2.4em; top: -1.6em; width: 14em; opacity: .9; }
.num-list { margin-top: 1.2em; display: flex; flex-direction: column; gap: .8em; }
.num-row { display: flex; align-items: center; gap: 1.2em; padding: 1em 1.2em; border-radius: 1.5em; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.num-row__n { width: 2.4em; height: 2.4em; border-radius: 50%; border: 1px solid var(--gold-soft); display: grid; place-items: center; font-family: var(--serif); font-size: 1.8em; color: var(--gold-soft); }
.num-row b { display: block; font-size: 1.3em; font-weight: 500; }
.num-row small { display: block; font-size: 1.1em; color: rgba(255, 255, 255, .55); }
.mini-year { margin-top: auto; margin-bottom: 1.2em; display: flex; justify-content: space-between; font-size: 1.15em; color: rgba(255, 255, 255, .6); padding: 1em 1.2em; border-top: 1px solid rgba(255, 255, 255, .08); }
.mini-year b { color: var(--gold-soft); font-weight: 500; }

.hero__phones .phone { position: absolute; }
.phone--back { right: 4%; top: 0; transform: rotate(5deg); }
.phone--front { left: 4%; top: 34px; transform: rotate(-4deg); }
.float-a { animation: floatA 12s ease-in-out infinite; }
.float-b { animation: floatB 14s ease-in-out infinite; }

/* ---------- 03 Proof ---------- */
.proof { background: var(--ivory); border-bottom: 1px solid var(--border); }
.proof__row { display: grid; grid-template-columns: 1fr 1fr; }
.proof__item { padding: 36px 8px; text-align: center; display: flex; flex-direction: column; gap: 6px; border-color: var(--border); }
.proof__item:nth-child(odd) { border-right: 1px solid var(--border); }
.proof__item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
.proof__item b { font-family: var(--serif); font-weight: 350; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; color: var(--navy); letter-spacing: -.02em; }
.proof__item .star { font-style: normal; color: var(--gold); font-size: .6em; vertical-align: .35em; }
.proof__item > span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.dark { background: var(--night); color: #fff; }
.dark .lead { color: rgba(255, 255, 255, .66); }
.dark .eyebrow { color: var(--gold-soft); }
.dark h2 em { color: var(--gold-soft); }

/* Cards / horizontal scroller on mobile */
.cards { display: grid; gap: 16px; }
.scroller { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 24px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { flex: 0 0 82%; scroll-snap-align: start; scroll-margin-left: var(--gutter); }

/* ---------- 04 Features ---------- */
.fcard {
  position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 30px 44px; min-height: 300px; display: flex; flex-direction: column;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease), border-color .7s var(--ease);
}
.fcard:hover { transform: translateY(-6px); border-color: var(--gold-soft); box-shadow: 0 30px 60px -36px rgba(11, 37, 69, .35); }
.fcard__idx { position: absolute; top: 28px; right: 28px; font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.icon { width: 52px; height: 52px; }
.icon .ln { fill: none; stroke: var(--navy); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.icon .au { fill: var(--gold); }
.fcard h3 { margin-top: 88px; }
.fcard p { color: var(--muted); margin-top: 12px; font-size: 15px; }

/* ---------- 05 How ---------- */
.how__media { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 50px 100px -60px rgba(11, 37, 69, .6); }
.how__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.how__media.in img { transform: scale(1); }
.how__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 15, 32, .35) 0%, rgba(5, 15, 32, 0) 35%, rgba(5, 15, 32, 0) 70%, rgba(5, 15, 32, .45) 100%); pointer-events: none; }
.how__geo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; mix-blend-mode: screen; }
.how__media figcaption { z-index: 2; }
.how__media figcaption { position: absolute; left: 20px; bottom: 20px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #fff; padding: 8px 14px; border-radius: 999px; background: rgba(7, 20, 33, .4); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .18); }
.how__copy { align-self: center; }
.steps { margin-top: 48px; border-top: 1px solid var(--border); }
.step { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.step__n { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; color: var(--gold); position: relative; transition: background-color .6s var(--ease), color .6s var(--ease); }
.step__n::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed rgba(184, 146, 58, .35); }
.step:hover .step__n { background: var(--gold); color: #fff; }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--muted); margin-top: 6px; }

/* ---------- 06 Today ---------- */
.today { overflow: hidden; }
.today__glow { position: absolute; left: 50%; top: 52%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(184, 146, 58, .2) 0%, rgba(11, 37, 69, .3) 40%, transparent 70%); pointer-events: none; }
.today__grid { position: relative; display: grid; gap: 48px; align-items: center; }
.today__phone { display: flex; justify-content: center; order: -1; }
.phone--lg { --ps: 10.6px; }
.big-num { font-family: var(--serif); font-weight: 250; font-size: 8.4em; line-height: 1; color: var(--navy); text-align: center; margin-top: .02em; }
.pulse-orb { width: 2em; height: 2em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F6E4B4, var(--gold) 70%); box-shadow: 0 0 0 0 rgba(184, 146, 58, .5); animation: pulse 3.6s ease-out infinite; }
.swap { position: relative; margin-top: auto; margin-bottom: 1.4em; display: grid; }
.swap .guide { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(.8em); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.swap .guide.is-on { opacity: 1; transform: none; }
.today__cats { display: grid; gap: 12px; }
.cat { display: flex; gap: 18px; align-items: flex-start; text-align: left; padding: 22px 24px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .02); transition: border-color .6s var(--ease), background-color .6s var(--ease); }
.cat:hover { border-color: rgba(215, 189, 122, .4); }
.cat.is-on { border-color: var(--gold-soft); background: rgba(215, 189, 122, .07); }
.cat__dot { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 7px; border-radius: 50%; border: 1px solid var(--gold-soft); position: relative; }
.cat.is-on .cat__dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold-soft); }
.cat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.cat small { display: block; color: rgba(255, 255, 255, .6); font-size: 14px; margin-top: 4px; }
.today__facts { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.fact { padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); display: flex; gap: 20px; align-items: baseline; }
.fact b { font-family: var(--serif); font-weight: 300; font-size: 1.8rem; color: var(--gold-soft); min-width: 4em; white-space: nowrap; }
.fact span { color: rgba(255, 255, 255, .62); font-size: 14px; }

/* ---------- 07 Numbers ---------- */
.numbers { background: var(--ivory); }
.numbers__copy { align-self: center; }
.dash { align-self: center; }
.numbers__copy > .btn { margin-top: 20px; }
.demo { margin-top: 32px; padding: 24px; border-radius: 22px; background: var(--white); border: 1px solid var(--border); display: grid; gap: 14px; box-shadow: 0 30px 60px -48px rgba(10, 33, 72, .5); }
.demo label { display: grid; gap: 6px; }
.demo label span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.demo input { font: inherit; font-size: 16px; color: var(--ink); height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--ivory); transition: border-color .4s, box-shadow .4s; width: 100%; }
.demo input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 135, 58, .14); }
.demo .btn { width: 100%; margin-top: 4px; }
.demo__note { font-size: 12.5px; color: var(--muted); text-align: center; }
.dash.is-updated .dn, .dash.is-updated .dash__foot b { animation: pop .9s var(--ease); }
.dash { background: var(--white); border: 1px solid var(--border); border-radius: 28px; padding: 24px; box-shadow: 0 60px 120px -70px rgba(11, 37, 69, .45); }
.dash__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.dash__eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.dash__title { font-family: var(--serif); font-size: 1.4rem; }
.dash__chip { font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.dash__body { display: grid; gap: 24px; padding: 24px 0; }
.radial { width: 100%; max-width: 340px; margin: 0 auto; overflow: visible; }
.radial__node { fill: var(--ivory); stroke: var(--border); }
.radial__node--on { fill: var(--white); stroke: var(--gold); }
.radial__label { font-family: var(--serif); font-size: 13px; fill: var(--muted); }
.radial__label--on { fill: var(--gold); font-size: 15px; }
.radial__core { font-family: var(--serif); font-size: 22px; fill: var(--gold-soft); }
.radial__shape { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 3s var(--ease) .4s; }
.dash.in .radial__shape { stroke-dashoffset: 0; }
.dash__list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.dash__list li:last-child { border-bottom: 0; }
.dn { font-family: var(--serif); font-weight: 300; font-size: 2.4rem; line-height: 1; color: var(--gold); width: 44px; text-align: center; }
.dash__list div { flex: 1; }
.dash__list b { display: block; font-weight: 500; font-size: 15px; }
.dash__list small { display: block; color: var(--muted); font-size: 14px; font-family: var(--serif); font-style: italic; }
.dash__list em { font-style: normal; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 5px 10px; border-radius: 999px; background: var(--ivory); }
.dash__foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.dash__foot div { padding: 16px 8px 0; text-align: center; }
.dash__foot div + div { border-left: 1px solid var(--border); }
.dash__foot span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.dash__foot b { font-family: var(--serif); font-weight: 350; font-size: 1.6rem; color: var(--navy); }

/* ---------- 08 Life Map ---------- */
.lifemap { background: linear-gradient(180deg, var(--night) 0%, var(--navy) 100%); overflow: hidden; }
.lifemap__bg { position: absolute; inset: 0; pointer-events: none; }
.lifemap__bg svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; }
.starfield { position: absolute; inset: 0; opacity: .6; animation: drift 200s linear infinite alternate;
  background-image:
    radial-gradient(1px 1px at 8% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 38%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 37% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 51% 27%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 79% 33%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 7%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 14% 58%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 54%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 48%, rgba(255,255,255,.3) 50%, transparent 51%);
}
.lifemap .container { position: relative; }
.timeline { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.timeline::-webkit-scrollbar { display: none; }
.timeline__label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 28px; position: sticky; left: 0; }
.timeline__track { position: relative; min-width: 860px; padding-bottom: 150px; }
.timeline__line { position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: rgba(255, 255, 255, .14); }
.timeline__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, rgba(215, 189, 122, .2), var(--gold-soft)); transition: width 3.2s var(--ease) .3s; }
.timeline.in .timeline__fill { width: 50%; }
.years { display: grid; grid-template-columns: repeat(9, 1fr); position: relative; }
.years li { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; }
.node { width: 19px; height: 19px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: var(--night); display: grid; place-items: center; }
.node::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.years b { font-weight: 500; font-size: 14px; color: rgba(255, 255, 255, .7); }
.years small { font-family: var(--serif); font-size: 20px; color: rgba(255, 255, 255, .4); line-height: 1; }
.years .is-now .node { border-color: var(--gold-soft); box-shadow: 0 0 0 6px rgba(215, 189, 122, .12), 0 0 24px rgba(215, 189, 122, .6); }
.years .is-now .node::after { background: var(--gold-soft); width: 7px; height: 7px; }
.years .is-now b { color: #fff; }
.years .is-now small { color: var(--gold-soft); font-size: 26px; }
.now-card { position: absolute; top: 96px; left: 50%; width: 260px; transform: translateX(-50%); text-align: center; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(215, 189, 122, .35); backdrop-filter: blur(12px); opacity: 0; transition: opacity 1.2s var(--ease) 2.6s; }
.now-card::before { content: ''; position: absolute; left: 50%; top: -22px; height: 22px; width: 1px; background: var(--gold-soft); }
.timeline.in .now-card { opacity: 1; }
.now-card__k { font-family: var(--serif); font-size: 1.15rem; color: var(--gold-soft); }
.now-card p + p { font-size: 13.5px; color: rgba(255, 255, 255, .7); margin-top: 6px; line-height: 1.5; }
.zoom { display: grid; gap: 0; justify-items: center; margin: 32px auto 56px; max-width: 980px; }
.zoom__item { width: 100%; max-width: 320px; text-align: center; padding: 22px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .02); }
.zoom__item--on { border-color: var(--gold-soft); background: rgba(215, 189, 122, .06); }
.zoom__k { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.zoom__item b { display: block; font-family: var(--serif); font-weight: 300; font-size: 3rem; line-height: 1.1; color: var(--gold-soft); }
.zoom__item small { color: rgba(255, 255, 255, .6); font-size: 13px; }
.zoom__link { width: 1px; height: 32px; background: linear-gradient(var(--gold-soft), rgba(215, 189, 122, .2)); }

/* ---------- 09 Areas ---------- */
.acard { background: var(--white); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.acard:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -50px rgba(11, 37, 69, .45); }
.acard__art { background: var(--ivory-2); aspect-ratio: 5 / 3; display: grid; place-items: center; border-bottom: 1px solid var(--border); }
.acard__art svg { width: 86%; transition: transform 1.4s var(--ease); }
.acard:hover .acard__art svg { transform: scale(1.04); }
.acard__body { padding: 28px 28px 34px; }
.acard__n { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 15px; }
.acard h3 { font-size: 1.7rem; margin-top: 6px; }
.acard p { color: var(--muted); margin-top: 10px; }

/* ---------- 10 Journal ---------- */
.journal { background: var(--ivory-2); }
.journal__phone { position: relative; display: flex; justify-content: center; }
.journal__halo { position: absolute; width: 440px; height: 440px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid var(--gold-soft); opacity: .5; }
.journal__halo::after { content: ''; position: absolute; inset: 50px; border-radius: 50%; border: 1px dashed var(--border); }
.phone--md { --ps: 9.6px; }
.moods { display: flex; justify-content: space-between; margin-top: 1.8em; }
.mood { display: flex; flex-direction: column; align-items: center; gap: .5em; font-size: 1em; color: var(--muted); }
.mood i { width: 3.6em; height: 3.6em; border-radius: 50%; border: 1px solid var(--border); background: radial-gradient(circle at 35% 30%, rgba(246, 228, 180, var(--o)), rgba(184, 146, 58, calc(var(--o) * .6))); }
.mood.is-on { color: var(--ink); font-weight: 600; }
.mood.is-on i { box-shadow: 0 0 0 .25em var(--ivory), 0 0 0 .38em var(--gold); }
.tags { display: flex; flex-wrap: wrap; gap: .6em; margin-top: 1.8em; }
.tag { font-size: 1.1em; padding: .45em 1em; border-radius: 2em; border: 1px solid var(--border); background: #fff; color: var(--muted); }
.tag.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.entry { margin-top: 1.4em; padding: 1.3em 1.4em; border-radius: 1.6em; background: #fff; border: 1px solid var(--border); min-height: 6.5em; }
.entry p { font-family: var(--serif); font-size: 1.55em; line-height: 1.4; color: var(--ink); }
.caret { display: inline-block; width: 1px; height: 1em; background: var(--gold); margin-left: 2px; vertical-align: -.15em; animation: blink 1.1s steps(1) infinite; }
.pattern { display: flex; gap: 1em; align-items: flex-start; margin-top: 1.2em; padding: 1.2em; border-radius: 1.4em; background: rgba(184, 146, 58, .08); border: 1px solid rgba(184, 146, 58, .25); }
.pattern__orb { flex: 0 0 auto; width: 1.6em; height: 1.6em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F6E4B4, var(--gold)); margin-top: .2em; }
.pattern p { font-size: 1.12em; line-height: 1.45; color: #4A4A4A; }
.pattern b { display: block; color: var(--gold); font-size: .9em; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .2em; }
.journal__copy { align-self: center; }
.ticks { margin: 32px 0 40px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 14px; align-items: center; color: var(--ink); font-size: 15px; }
.ticks li::before { content: ''; width: 18px; height: 1px; background: var(--gold); flex: 0 0 auto; }

/* ---------- 11 AI ---------- */
.ai { background: radial-gradient(80% 60% at 85% 20%, rgba(26, 58, 98, .55) 0%, transparent 60%), var(--night); }
.ai__copy { align-self: center; }
.ai__copy .btn { margin-top: 40px; }
.ai__disclaimer { margin-top: 28px; font-size: 13px; color: rgba(255, 255, 255, .5); max-width: 30em; padding-left: 16px; border-left: 1px solid rgba(215, 189, 122, .4); }
.chat { border-radius: 28px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .8); overflow: hidden; backdrop-filter: blur(20px); }
.chat__head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.chat__orb { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F6E4B4, var(--gold) 65%, #6E5320); box-shadow: 0 0 20px rgba(215, 189, 122, .35); }
.chat__head b { display: block; font-weight: 500; font-size: 15px; }
.chat__head small { display: block; font-size: 12px; color: rgba(255, 255, 255, .5); }
.chat__ctx { margin-left: auto; font-size: 11px; letter-spacing: .06em; color: var(--gold-soft); border: 1px solid rgba(215, 189, 122, .3); padding: 5px 10px; border-radius: 999px; white-space: nowrap; display: none; }
.chat__body { padding: 28px 22px; display: flex; flex-direction: column; gap: 16px; min-height: 380px; }
.msg { max-width: 88%; font-size: 15px; line-height: 1.6; padding: 14px 18px; border-radius: 20px; }
.msg--user { align-self: flex-end; background: var(--ivory); color: var(--ink); border-bottom-right-radius: 6px; }
.msg--ai { align-self: flex-start; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-bottom-left-radius: 6px; color: rgba(255, 255, 255, .9); font-family: var(--serif); font-size: 16.5px; font-weight: 350; }
.msg__refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-family: var(--sans); }
.msg__refs span { font-size: 11px; color: var(--gold-soft); border: 1px solid rgba(215, 189, 122, .3); padding: 3px 9px; border-radius: 999px; }
.typing { display: flex; gap: 5px; padding: 14px 18px; border-radius: 20px; background: rgba(255, 255, 255, .05); align-self: flex-start; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); animation: dot 1.4s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.suggest span { font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .7); }
.chat__input { margin: 0 18px 18px; height: 52px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 22px; color: rgba(255, 255, 255, .4); font-size: 14px; }
.chat__input i { font-style: normal; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; }
/* Chuoi hoi thoai xuat hien dan khi vao khung nhin */
.js .chat .msg, .js .chat .typing, .js .chat .suggest { opacity: 0; transform: translateY(10px); }
.chat.in .msg--user { animation: msgIn .9s var(--ease) .3s forwards; }
.chat.in .typing { animation: msgIn .6s var(--ease) 1.2s forwards, msgOut .5s var(--ease) 2.9s forwards; }
.chat.in .msg--ai { animation: msgIn 1s var(--ease) 3.1s forwards; }
.chat.in .suggest { animation: msgIn 1s var(--ease) 3.9s forwards; }
.reply { display: grid; align-items: start; }
.reply > * { grid-area: 1 / 1; }

/* ---------- 12 Loop ---------- */
.loop { background: var(--ivory); }
.cycle { position: relative; max-width: 640px; margin: 0 auto; }
.cycle__ring, .cycle__center { display: none; }
.cycle__nodes { display: grid; gap: 0; max-width: 360px; margin: 0 auto; }
.cycle__nodes li { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 0 30px; font-family: var(--serif); font-size: 1.3rem; }
.cycle__nodes li:not(:last-child)::after { content: ''; position: absolute; left: 23px; top: 62px; bottom: 0; width: 1px; background: linear-gradient(var(--gold-soft), rgba(215, 189, 122, .2)); }
.cn { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--gold-soft); font-family: var(--sans); font-size: 12px; letter-spacing: .08em; color: var(--gold); }

/* ---------- 13 Testimonials ---------- */
.stories { background: var(--ivory); padding-top: 0; }
.tcard { background: var(--white); border: 1px solid var(--border); border-radius: 24px; padding: 36px 32px; display: flex; flex-direction: column; gap: 24px; }
.stars { color: var(--gold); letter-spacing: .2em; font-size: 13px; }
.tcard blockquote { font-family: var(--serif); font-size: 1.4rem; line-height: 1.4; font-weight: 350; flex: 1; }
.tcard figcaption { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .04em; background: radial-gradient(circle at 30% 25%, var(--a), var(--b)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.tcard figcaption b { display: block; font-weight: 500; font-size: 15px; }
.tcard figcaption small { display: block; color: var(--muted); font-size: 13px; }

/* ---------- 14 FAQ ---------- */
.faq { background: var(--white); }
.faq .lead a { color: var(--navy); border-bottom: 1px solid var(--gold-soft); }
.qa { border-bottom: 1px solid var(--border); }
.qa:first-child { border-top: 1px solid var(--border); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 400; transition: color .4s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: linear-gradient(var(--gold), var(--gold)) center / 11px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1px 11px no-repeat;
  transition: transform .5s var(--ease), background-size .5s var(--ease); }
.qa[open] summary::after { transform: rotate(180deg); background-size: 11px 1px, 1px 0; }
.qa summary:hover { color: var(--navy); }
.qa p { color: var(--muted); padding: 0 48px 28px 0; max-width: 40em; animation: fadeUp .6s var(--ease); }

/* ---------- 15 Final CTA ---------- */
.final { position: relative; color: #fff; text-align: center; overflow: hidden; isolation: isolate; padding: clamp(110px, 12vw, 170px) 0 clamp(200px, 22vw, 300px); }
.final__bg { position: absolute; inset: 0; z-index: -1; }
.final__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.final__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 15, 32, .82) 0%, rgba(10, 33, 72, .45) 38%, rgba(5, 15, 32, .05) 62%, rgba(5, 15, 32, .55) 100%); }
.final__icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 20px 50px -10px rgba(0, 0, 0, .6); }
.final__inner { display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-top: 28px; text-shadow: 0 2px 30px rgba(7, 20, 33, .35); }
.final h2 em { color: #FFF1D2; }
.final .lead { color: rgba(255, 255, 255, .88); text-shadow: 0 1px 16px rgba(7, 20, 33, .4); }
.final .btn { margin-top: 40px; }
.final__tag { margin-top: 28px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }

/* ---------- 16 Footer ---------- */
.footer { background: var(--night); color: rgba(255, 255, 255, .7); padding: 80px 0 32px; }
.footer__top { display: grid; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.logo--light { color: #fff; font-size: 26px; }
.footer__brand p { margin-top: 14px; font-size: 14px; }
.social { display: flex; gap: 10px; margin-top: 28px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); display: grid; place-items: center; transition: border-color .4s, color .4s; }
.social a:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.social svg { width: 18px; height: 18px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols p { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 16px; }
.footer__cols a { display: block; font-size: 14px; padding: 5px 0; transition: color .3s; }
.footer__cols a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 13px; color: rgba(255, 255, 255, .45); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2), .proof .reveal:nth-child(2) { transition-delay: .12s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3), .proof .reveal:nth-child(3) { transition-delay: .24s; }
.cards .reveal:nth-child(4), .proof .reveal:nth-child(4) { transition-delay: .36s; }
.hero .reveal:nth-child(2) { transition-delay: .12s; }
.hero .reveal:nth-child(3) { transition-delay: .24s; }
.hero .reveal:nth-child(4) { transition-delay: .36s; }
.hero .reveal:nth-child(5) { transition-delay: .48s; }

/* ---------- Keyframes ---------- */
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-40px, 12px, 0); } }
@keyframes breathe { from { opacity: .02; transform: translateY(0); } to { opacity: .05; transform: translateY(-14px); } }
@keyframes floatA { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-12px); } }
@keyframes floatB { 0%, 100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(5deg) translateY(10px); } }
@keyframes arc { from { stroke-dashoffset: 326.7; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(184, 146, 58, .45); } 100% { box-shadow: 0 0 0 1.2em rgba(184, 146, 58, 0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes msgIn { to { opacity: 1; transform: none; } }
@keyframes msgOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-4px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes pop { 0% { opacity: .2; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

/* ================= Tablet ================= */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .hero__ctas { flex-direction: row; }
  .hero__phones { height: 640px; --ps: 10px; max-width: 640px; width: 100%; margin: 0 auto; }
  .proof__row { grid-template-columns: repeat(4, 1fr); }
  .proof__item { border: 0 !important; padding: 44px 8px; }
  .proof__item + .proof__item { border-left: 1px solid var(--border) !important; }
  .scroller { display: grid; overflow: visible; margin: 0; padding: 0; }
  .cards--4, .cards--2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .tcard blockquote { font-size: 1.2rem; }
  .grid12 { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .how__media { grid-column: 1 / span 6; }
  .how__copy { grid-column: 7 / span 6; padding-left: 16px; }
  .today__grid { grid-template-columns: 1fr 1fr; }
  .today__phone { grid-column: 1 / -1; }
  .numbers__copy, .dash { grid-column: 1 / -1; }
  .dash { padding: 32px; }
  .dash__body { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  .zoom { grid-template-columns: 1fr 48px 1fr 48px 1fr; align-items: center; }
  .zoom__link { width: 100%; height: 1px; background: linear-gradient(90deg, var(--gold-soft), rgba(215, 189, 122, .2)); }
  .journal__phone { grid-column: 1 / span 6; }
  .journal__copy { grid-column: 7 / span 6; padding-left: 16px; }
  .ai__copy { grid-column: 1 / span 5; }
  .chat { grid-column: 6 / span 7; }
  .chat__ctx { display: inline-block; }
  .faq__head { grid-column: 1 / span 4; }
  .faq__list { grid-column: 5 / span 8; }
  .footer__top { grid-template-columns: 1fr 1.4fr; }
  .cycle__ring, .cycle__center { display: block; }
  .cycle { aspect-ratio: 1; }
  .cycle__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
  .cycle__spin { transform-origin: 300px 300px; animation: spin 60s linear infinite; }
  .cycle__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
  .cycle__center p { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.3; color: var(--muted); margin-top: 18px; }
  .cycle__center .orb { font-size: 64px; }
  .cycle__nodes { display: block; max-width: none; position: absolute; inset: 0; }
  .cycle__nodes li { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -24px); flex-direction: column; gap: 10px; padding: 0; text-align: center; font-size: 1.05rem; width: 150px; line-height: 1.2; }
  .cycle__nodes li::after { display: none; }
  .cn { background: var(--ivory); transition: background-color .5s var(--ease), color .5s var(--ease); }
  .cycle__nodes li:hover .cn { background: var(--gold); color: #fff; }
}

/* ================= Desktop ================= */
@media (min-width: 1100px) {
  .nav__inner { height: 88px; }
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .burger { display: none; }
  .hero { padding: 140px 0 100px; }
  .hero__grid { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .hero__copy { grid-column: 1 / span 6; }
  .hero__phones { grid-column: 7 / span 6; height: 680px; --ps: 10.6px; max-width: none; }
  .hero__scroll { display: block; }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .fcard { min-height: 380px; }
  .how__media { grid-column: 1 / span 6; }
  .how__copy { grid-column: 8 / span 5; padding-left: 0; }
  .today__grid { grid-template-columns: 1fr auto 1fr; gap: 64px; }
  .today__phone { grid-column: auto; order: 0; }
  .phone--lg { --ps: 12px; }
  .numbers__copy { grid-column: 1 / span 4; }
  .dash { grid-column: 6 / span 7; padding: 36px; }
  .journal__phone { grid-column: 1 / span 6; }
  .journal__copy { grid-column: 8 / span 5; padding-left: 0; }
  .phone--md { --ps: 11px; }
  .journal__halo { width: 560px; height: 560px; }
  .timeline { overflow: visible; }
  .timeline__track { min-width: 0; }
  .zoom { margin-top: 48px; }
  .footer__top { grid-template-columns: 1.2fr 1fr; }
}

@media (min-width: 1400px) {
  .hero__phones { --ps: 11.4px; height: 720px; }
}

/* Mobile nho: dieu chinh do lon mockup hero */
@media (max-width: 400px) {
  .hero__phones { --ps: 7.4px; height: 460px; }
  .phone--lg { --ps: 9.8px; }
  .phone--md { --ps: 9px; }
  .journal__halo { width: 340px; height: 340px; }
}

@media (max-width: 719px) {
  .hero__ctas .btn { width: 100%; }
  .badges { justify-content: flex-start; }
  .numbers__copy .btn, .journal__copy .btn, .ai__copy .btn, .lifemap .btn, .final .btn { width: 100%; }
  .phone--back { right: 0; }
  .phone--front { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .chat .msg, .js .chat .suggest { opacity: 1; transform: none; }
  .js .chat .typing { display: none; }
}

/* =====================================================================
   Theme "vu tru" (tim/cam) - dong bo voi app Numer Today.
   Ghi de len phan tren: nen khong gian + tinh van, the kinh mo, gradient ruc.
   ===================================================================== */
body {
  background:
    radial-gradient(55% 19% at 8% 22%, rgba(139, 92, 255, .3), transparent 70%),
    radial-gradient(45% 17% at 100% 45%, rgba(242, 85, 155, .2), transparent 70%),
    radial-gradient(55% 18% at 15% 66%, rgba(107, 70, 229, .22), transparent 70%),
    radial-gradient(50% 14% at 92% 84%, rgba(255, 122, 89, .14), transparent 70%),
    linear-gradient(180deg, #0D0A24 0%, #150F36 50%, #0D0A24 100%);
  background-size: 100% 2200px;
  background-repeat: repeat-y;
}
html { background: #110C2C; }
/* Truong sao co dinh phia sau noi dung */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .75;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 140px 90px, rgba(255, 255, 255, .7) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 260px 180px, #FFD9C2 50%, transparent 51%),
    radial-gradient(1px 1px at 330px 40px, rgba(255, 255, 255, .6) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 90px 250px, #E6DAFF 50%, transparent 51%),
    radial-gradient(1px 1px at 200px 320px, rgba(255, 255, 255, .5) 50%, transparent 51%),
    radial-gradient(1px 1px at 370px 290px, rgba(255, 255, 255, .7) 50%, transparent 51%);
  background-size: 400px 360px;
  animation: twinkle 9s ease-in-out infinite alternate;
}
body::after { opacity: .03; }
@keyframes twinkle { from { opacity: .55; } to { opacity: .9; } }

::selection { background: rgba(242, 85, 155, .35); }

/* Chu gradient cho diem nhan */
h1 em, h2 em, .proof__item b, .dn, .dash__foot b, .zoom__item b, .fact b, .years .is-now small, .now-card__k, .step__n, .acard__n {
  background: var(--grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__title em, .final h2 em { background-image: linear-gradient(110deg, #FFC08A, #FF8FB1 50%, #D3B3FF); }
.eyebrow { color: #FF9E7A; }
.dark .eyebrow, .eyebrow--light { color: #FFB59A; }

/* Nut */
.btn--gold { background: var(--grad); background-size: 160% 100%; color: #fff; box-shadow: 0 12px 34px -12px rgba(242, 85, 155, .75); transition: background-position .8s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.btn--gold:hover { background: var(--grad); background-size: 160% 100%; background-position: 100% 0; box-shadow: 0 18px 44px -12px rgba(139, 92, 255, .8); }
.btn--navy { background: linear-gradient(120deg, #8B5CFF, #5B3BD6); color: #fff; box-shadow: 0 12px 30px -14px rgba(139, 92, 255, .8); }
.btn--navy:hover { background: linear-gradient(120deg, #9C72FF, #6B46E5); }
.btn--light { background: #fff; color: #3B1F7A; }
.btn--ghost-dark { color: var(--ink); border-color: rgba(255, 255, 255, .2); }
.btn--ghost-dark:hover { border-color: #FF8FB1; }
.badge { background: rgba(14, 10, 36, .7); border-color: rgba(255, 255, 255, .2); }
.badge:hover { border-color: #FF8FB1; }

/* Nav: kinh mo tim khi cuon, logo luon ban sang */
.nav.is-scrolled { background: rgba(16, 12, 40, .72); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.nav.is-scrolled .logo__img--light, .menu-open .nav .logo__img--light { display: block; }
.nav.is-scrolled .logo__img--dark, .menu-open .nav .logo__img--dark { display: none; }
.menu { background: radial-gradient(80% 50% at 80% 0%, rgba(139, 92, 255, .35), transparent 70%), #120E2A; }
.menu-open .burger, .menu-open .nav { color: #fff; }

/* Hero: tinh van + vong sao chuyen dong cham */
.hero__veil {
  background:
    radial-gradient(40% 35% at 18% 22%, rgba(139, 92, 255, .35), transparent 70%),
    radial-gradient(35% 30% at 80% 18%, rgba(242, 85, 155, .28), transparent 70%),
    linear-gradient(180deg, rgba(7, 5, 26, .35) 0%, rgba(7, 5, 26, 0) 50%, rgba(18, 14, 42, .7) 100%);
}
.hero__numerals span { color: #E6DAFF; }
.hero__lead { color: rgba(245, 240, 255, .82); }

/* Cac section sang truoc day -> trong suot tren nen vu tru */
.proof, .numbers, .journal, .loop, .stories, .faq { background: transparent; }
.proof { border-color: var(--border); border-top: 1px solid var(--border); background: rgba(255, 255, 255, .025); backdrop-filter: blur(6px); }
.proof__item > span { color: var(--muted); }
.dark { background: linear-gradient(180deg, rgba(8, 5, 24, 0), rgba(8, 5, 24, .78) 14%, rgba(8, 5, 24, .78) 86%, rgba(8, 5, 24, 0)); }
.lifemap { background: radial-gradient(70% 60% at 50% 0%, rgba(139, 92, 255, .28), transparent 70%), linear-gradient(180deg, rgba(8, 5, 24, .7), #1A1240); }
.ai { background: radial-gradient(60% 55% at 85% 25%, rgba(242, 85, 155, .22), transparent 65%), radial-gradient(50% 50% at 10% 80%, rgba(139, 92, 255, .25), transparent 65%), rgba(8, 5, 24, .7); }
.today__glow { background: radial-gradient(circle, rgba(242, 85, 155, .28) 0%, rgba(139, 92, 255, .25) 35%, transparent 70%); }

/* The kinh mo */
.fcard, .dash, .acard, .tcard, .demo, .chat, .cat, .zoom__item, .now-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.fcard:hover, .acard:hover { border-color: rgba(255, 143, 177, .5); box-shadow: 0 30px 70px -40px rgba(242, 85, 155, .55); }
.cat.is-on, .zoom__item--on { border-color: #FF8FB1; background: linear-gradient(160deg, rgba(255, 122, 89, .14), rgba(139, 92, 255, .12)); }
.cat__dot { border-color: #FF8FB1; }
.cat.is-on .cat__dot::after { background: var(--grad); }
.icon .ln { stroke: #CDBEFF; }
.icon .au { fill: #FF8A6B; }
.fcard__idx { color: var(--muted); }
.dash { box-shadow: 0 60px 120px -60px rgba(139, 92, 255, .55); }
.dash__chip { border-color: rgba(255, 255, 255, .16); }
.dash__list em { background: rgba(255, 255, 255, .07); }
.radial__node { fill: #1E1648; stroke: rgba(255, 255, 255, .16); }
.radial__node--on { fill: #2A1B5C; stroke: #FF8A6B; }
.radial__label--on { fill: #FFB37A; }
.radial__core { fill: #FFE1C7; }
.demo input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--ink); color-scheme: dark; }
.demo input::placeholder { color: rgba(245, 240, 255, .4); }
.demo input:focus { border-color: #FF8FB1; box-shadow: 0 0 0 4px rgba(242, 85, 155, .2); }
.acard__art { background: radial-gradient(70% 90% at 50% 100%, rgba(139, 92, 255, .25), transparent 70%), rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .08); }
.step { border-color: var(--border); }
.step__n { border-color: #FF8FB1; }
.step__n::after { border-color: rgba(255, 143, 177, .35); }
.step:hover .step__n { background: var(--grad); -webkit-background-clip: border-box; background-clip: border-box; color: #fff; }
.ticks li::before { background: var(--grad); height: 2px; }
.journal__halo { border-color: rgba(255, 143, 177, .5); }
.journal__halo::after { border-color: rgba(201, 162, 255, .3); }
.msg--user { background: var(--grad); color: #fff; }
.chat__input i { background: var(--grad); }
.chat__orb, .pattern__orb, .pulse-orb { background: radial-gradient(circle at 35% 30%, #FFE1C7, #FF7A59 45%, #B44DFF 100%); }
.typing i { background: #FF8FB1; }
.timeline__fill { background: var(--grad); }
.years .is-now .node { border-color: #FF8FB1; box-shadow: 0 0 0 6px rgba(242, 85, 155, .15), 0 0 26px rgba(242, 85, 155, .7); }
.years .is-now .node::after { background: #FFB37A; }
.node { background: #140F33; }
.zoom__link { background: linear-gradient(90deg, #FF8FB1, rgba(139, 92, 255, .3)); }
.cn { background: #1A1240 !important; border-color: #FF8FB1; color: #FFB37A; }
.cycle__nodes li:hover .cn { background: var(--grad) !important; color: #fff; }
.cycle__center p { color: var(--muted); }
.orb { background: radial-gradient(circle at 35% 30%, #FFE8CF 0%, #FFB37A 30%, #FF6F7E 60%, #9B4DFF 100%); box-shadow: 0 0 0 .14em rgba(255, 143, 177, .18), 0 0 18px rgba(242, 85, 155, .55); }
.stars { color: #FFB37A; }
.qa summary::after { border-color: rgba(255, 255, 255, .18); background: linear-gradient(#FF8FB1, #FF8FB1) center / 11px 1px no-repeat, linear-gradient(#FF8FB1, #FF8FB1) center / 1px 11px no-repeat; }
.qa[open] summary::after { background-size: 11px 1px, 1px 0; }
.qa summary:hover { color: #FFC0A8; }
.faq .lead a { color: #FFB37A; border-color: rgba(255, 179, 122, .5); }
.footer { background: rgba(6, 4, 18, .85); }
.footer__cols p { color: #FFB59A; }

/* Anh: phu tong tim/hong cho dong bo bang mau */
.how__media::after { background: linear-gradient(180deg, rgba(43, 22, 100, .5) 0%, rgba(180, 77, 255, .12) 45%, rgba(242, 85, 155, .1) 70%, rgba(18, 14, 42, .65) 100%); }
.how__media { box-shadow: 0 60px 120px -60px rgba(139, 92, 255, .6); }
.final__veil { background: linear-gradient(180deg, rgba(13, 10, 36, .9) 0%, rgba(75, 30, 140, .55) 35%, rgba(242, 85, 155, .12) 62%, rgba(13, 10, 36, .7) 100%); }

/* Man hinh app trong mockup: giu bang mau sang cua app (apps/mobile/src/theme.ts) */
.phone__screen.screen--ivory {
  --ivory: #F8F2EA;
  --ivory-2: #F3EADF;
  --ink: #231E3D;
  --muted: #7D7591;
  --navy: #272148;
  --gold: #E8894A;
  --gold-soft: #F3B88A;
  --border: #ECE2D6;
  --white: #FFFDF9;
  background: var(--ivory);
  color: var(--ink);
}
.screen--navy {
  --gold-soft: #F6C29A;
  background: radial-gradient(110% 60% at 85% 0%, #7A4A9C 0%, transparent 60%), linear-gradient(180deg, #16132E 0%, #2B2552 55%, #4A3B6E 100%);
}
.phone__screen .guide { background: var(--white); border-color: var(--border); backdrop-filter: none; }
.phone__screen .app__eyebrow { color: #D2683A; }
.phone__screen .app__eyebrow--light { color: #F6C29A; }
.phone__screen .tag.is-on { background: linear-gradient(120deg, #3A2F70, #6B46E5); border-color: transparent; }
.phone__screen .app__save { background: linear-gradient(120deg, #272148, #5B3BD6); }
.phone__screen .tab--on { border-color: #E8894A; background: rgba(232, 137, 74, .14); }
.big-num, .energy__num b { background: linear-gradient(160deg, #272148 20%, #8B5CFF 70%, #F2559B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phone { box-shadow: inset 0 0 0 .12em #4A4D53, inset 0 0 0 .4em #111214, 0 5em 9em -2em rgba(10, 4, 30, .7), 0 0 7em -1em rgba(139, 92, 255, .35); }

/* ---------- Mobile: khoa cuon ngang + o chon ngay iOS ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.demo label, .demo input { min-width: 0; }
/* Safari iOS cho input[type=date] be rong noi tai lon hon khung -> tran ra ngoai */
.demo input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 50px;
  line-height: 50px;
  text-align: left;
}
.demo input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.demo input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .6; }

/* ---------- Mobile: slider chi truot ngang ---------- */
/* overflow-x: auto lam overflow-y thanh auto -> the bi cat va keo doc duoc ben trong slider.
   Khoa truc doc cua slider (vuot doc van cuon trang), bo hieu ung dich doc cua the trong slider. */
.scroller, .timeline {
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scroll-behavior: smooth;
}
@media (max-width: 719px) {
  .js .scroller > .reveal { transform: none; transition: opacity 1s var(--ease); }
  .scroller > .fcard:hover, .scroller > .acard:hover { transform: none; }
}

/* ================= Da ngon ngu ================= */
/* An trang den khi ban dich nap xong (toi da 3s, xem assets/i18n.js) de khong nhay chu */
.i18n-wait body { visibility: hidden; }
.nav__end { display: flex; align-items: center; gap: 10px; }
.nav__links a { white-space: nowrap; }
@media (min-width: 1100px) {
  .nav__links { gap: clamp(18px, 2.1vw, 36px); }
  .nav__end { gap: 16px; }
}
.lang { position: relative; z-index: 60; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em; color: inherit;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
  transition: background-color .3s, border-color .3s;
}
.lang__btn:hover, .lang__btn[aria-expanded="true"] { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }
.lang__btn svg { flex: none; opacity: .85; }
.lang__btn[aria-expanded="true"] .lang__caret { transform: rotate(180deg); }
.lang__caret { transition: transform .3s var(--ease); }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 10px); width: 228px; max-height: min(70vh, 460px); overflow-y: auto;
  overscroll-behavior: contain; margin: 0; padding: 6px; list-style: none; border-radius: 16px;
  background: rgba(22, 17, 52, .94); color: #fff; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 60px rgba(5, 3, 20, .55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.lang__list[hidden] { display: none; }
.lang__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; line-height: 1.3; cursor: pointer; outline: none; color: rgba(255, 255, 255, .86);
}
.lang__list li:hover, .lang__list li:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; }
.lang__list li[aria-selected="true"] { color: var(--gold-soft); }
.lang__list li[aria-selected="true"]::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--grad, var(--gold)); flex: none; }
@media (max-width: 380px) { .lang__btn { padding: 0 10px; } .lang__btn > svg:first-child { display: none; } }

/* Phong chu he thong cho chu CJK / Thai / Devanagari (Fraunces + Inter khong co cac bo chu nay) */
:lang(zh-CN) { --serif: 'Fraunces', 'Noto Serif SC', 'Songti SC', 'STSong', serif; --sans: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; }
:lang(zh-TW), :lang(zh-HK) { --serif: 'Fraunces', 'Noto Serif TC', 'Songti TC', serif; --sans: 'Inter', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif; }
:lang(ja) { --serif: 'Fraunces', 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif; --sans: 'Inter', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', sans-serif; }
:lang(ko) { --serif: 'Fraunces', 'Nanum Myeongjo', 'Noto Serif KR', serif; --sans: 'Inter', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; }
:lang(th) { --serif: 'Fraunces', 'Noto Serif Thai', 'Thonburi', serif; --sans: 'Inter', 'Thonburi', 'Leelawadee UI', 'Noto Sans Thai', sans-serif; }
:lang(hi) { --serif: 'Fraunces', 'Noto Serif Devanagari', 'Kohinoor Devanagari', serif; --sans: 'Inter', 'Kohinoor Devanagari', 'Nirmala UI', 'Noto Sans Devanagari', sans-serif; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3,
:lang(th) h1, :lang(th) h2, :lang(th) h3, :lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { letter-spacing: 0; font-weight: 500; line-height: 1.25; }
:lang(zh), :lang(ja), :lang(ko) { word-break: normal; overflow-wrap: anywhere; line-break: strict; }
:lang(ko) { word-break: keep-all; }
/* Nhan in hoa gian chu rong chi hop chu Latin */
:is(:lang(zh), :lang(ja), :lang(ko), :lang(th), :lang(hi)) :is(.eyebrow, .app__eyebrow, .guide__title, .lp-card__label, .demo label span, .dash__eyebrow, .timeline__label, .zoom__k, .final__tag) { letter-spacing: .06em; }
