/* Proposal page. Palette follows the client's own site (teal, metallic gold, cream); no logo is used. */
:root {
  --teal-900: #0d2526;
  --teal-800: #153334;
  --teal-700: #0f4a4d;
  --teal-600: #1b585a;
  --teal-500: #10797d;
  --teal-300: #8fb7b8;
  --teal-100: #d3e2e3;
  --cream: #fffdf0;
  --cream-2: #f7f2df;
  --paper: #ffffff;
  --champagne: #f6ebbd;
  --gold: #ce942a;
  --gold-deep: #8c682e;
  --gold-grad: linear-gradient(135deg, #8c682e, #ba7418 30%, #ce942a 60%, #f6ebbd);
  --ink: #142a2b;
  --ink-2: #3f5455;
  --ink-3: #5f7172;
  --line: #e2ddc8;
  --line-dark: rgba(246, 235, 189, 0.16);
  --on-dark: #f3efe0;
  --on-dark-2: #b9c9c6;
  --red: #b2412a;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Montserrat', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 4.6vw, 5.5rem);
  --fs-num: clamp(2.75rem, 2rem + 3vw, 4.5rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 136px;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(13, 37, 38, 0.06), 0 24px 60px -24px rgba(13, 37, 38, 0.35);
  --shadow-deep: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 240ms;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 var(--fs-md)/1.65 var(--sans); overflow-x: hidden;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h2 { font: 600 var(--fs-h2)/1.08 var(--serif); letter-spacing: -0.01em; }
h3 { font: 600 var(--fs-h3)/1.3 var(--sans); letter-spacing: -0.005em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--gold-deep); }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2em; }
code { font: 500 0.88em var(--mono); background: var(--cream-2); padding: 1px 6px; border-radius: 5px; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); margin-top: var(--s4); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); padding: var(--s2) var(--s4); }
.skip:focus { left: 8px; }

.demo-badge {
  position: fixed; left: var(--s4); bottom: var(--s4); z-index: 60;
  background: var(--gold-grad); color: var(--teal-900);
  font: 700 var(--fs-xs)/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 16px; border-radius: var(--r-pill); box-shadow: var(--shadow);
}

.demo-inline { display: none; }
.kicker {
  font: 600 var(--fs-xs)/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--s4);
  display: flex; align-items: center; gap: var(--s3);
}
.kicker::before { content: ''; width: 28px; height: 1px; background: var(--gold); flex: none; }
.kicker.dark { color: var(--gold-deep); }
.kicker.dark::before { background: var(--gold-deep); }
.lede { font-size: var(--fs-lg); line-height: 1.65; color: var(--on-dark-2); max-width: 60ch; }
.lede.dark { color: var(--ink-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5); border-radius: var(--r-pill);
  font: 700 var(--fs-sm)/1 var(--sans); letter-spacing: 0.06em; text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn.gold { background: var(--gold-grad); color: var(--teal-900); box-shadow: 0 10px 30px -10px rgba(206, 148, 42, 0.7); }
.btn.gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(206, 148, 42, 0.85); }
.btn.ghost { color: var(--on-dark); border: 1px solid var(--line-dark); }
.btn.ghost:hover { background: rgba(246, 235, 189, 0.08); border-color: rgba(246, 235, 189, 0.4); }
.btn:active { transform: translateY(0); }
.btn.sm { min-height: 40px; padding: 0 var(--s4); font-size: var(--fs-xs); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Floating Zalo contact: always visible, opens the owner's Zalo. */
.zalo {
  position: fixed; right: var(--s4); bottom: var(--s4); z-index: 70;
  display: flex; align-items: center; gap: var(--s3); text-decoration: none;
  background: var(--paper); color: var(--ink); border-radius: var(--r-pill);
  padding: 6px 6px 6px var(--s5); box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.zalo:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(13, 37, 38, 0.06), 0 28px 60px -20px rgba(0, 104, 255, 0.45); }
.zalo-txt { display: grid; line-height: 1.2; }
.zalo-txt b { font: 700 var(--fs-sm)/1.2 var(--sans); }
.zalo-txt span { font: 500 var(--fs-xs)/1.3 var(--mono); color: var(--ink-3); }
.zalo-dot {
  position: relative; width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: #0068ff; color: #fff; display: grid; place-items: center;
  font: 700 0.8125rem/1 var(--sans); letter-spacing: 0.02em;
}
.zalo-dot::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(0, 104, 255, 0.45); animation: zalo-ping 2.2s var(--ease) infinite;
}
@keyframes zalo-ping { 0% { transform: scale(0.85); opacity: 1; } 80%, 100% { transform: scale(1.35); opacity: 0; } }

/* Header */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--on-dark);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.top.solid { background: rgba(13, 37, 38, 0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-dark); }
.top-in { display: flex; align-items: center; gap: var(--s5); height: 68px; }
.brand { font: 600 1.125rem/1 var(--serif); text-decoration: none; white-space: nowrap; padding: 14px 0; }
.brand em { font-style: italic; color: var(--gold); }
.toc { display: flex; gap: var(--s5); margin-left: auto; }
.toc a { font: 500 var(--fs-sm)/1 var(--sans); text-decoration: none; color: var(--on-dark-2); padding: var(--s2) 0; transition: color var(--dur); }
.toc a:hover { color: var(--champagne); }

/* Site-plan lot grid: the page's recurring motif. */
.plot {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(206, 148, 42, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(206, 148, 42, 0.09) 1px, transparent 1px);
  background-size: 120px 84px, 120px 84px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(16, 121, 125, 0.45), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(206, 148, 42, 0.12), transparent 60%),
    linear-gradient(180deg, var(--teal-900), var(--teal-800) 70%, var(--teal-700));
  padding: calc(68px + var(--s9)) 0 0;
}
.hero-in { position: relative; }
.hero h1 { font: 500 var(--fs-h1)/1.04 var(--serif); letter-spacing: -0.02em; max-width: 15ch; }
.hero h1 em { color: transparent; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; padding-right: 0.06em; }
.hero-foot { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s7); align-items: end; margin-top: var(--s7); }
.hero-foot .actions { justify-content: flex-end; }

.stage { position: relative; margin-top: var(--s9); padding-bottom: 0; }
.browser {
  margin: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden;
  background: var(--teal-900); box-shadow: var(--shadow-deep);
  border: 1px solid var(--line-dark); border-bottom: 0;
  transform: perspective(2200px) rotateX(calc(var(--rx, 4deg) + var(--rx2, 0deg))) rotateY(var(--ry, 0deg));
  transform-origin: 50% 100%; transition: transform 600ms var(--ease);
}
.chrome { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #0a1e1f; border-bottom: 1px solid var(--line-dark); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(246, 235, 189, 0.22); }
.chrome span { min-width: 0; margin-left: var(--s3); font: 400 var(--fs-xs)/1 var(--mono); color: var(--on-dark-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone {
  position: absolute; right: calc(var(--s5) - 8px); bottom: -40px; width: clamp(150px, 19vw, 240px); margin: 0;
  border-radius: 34px; padding: 8px; background: #0a1e1f; box-shadow: var(--shadow-deep); border: 1px solid var(--line-dark);
}
.phone img { border-radius: 27px; }
.toast {
  position: absolute; display: flex; align-items: center; gap: var(--s3);
  background: var(--paper); color: var(--ink); border-radius: var(--r-md); padding: 12px 16px;
  font: 600 var(--fs-sm)/1.3 var(--sans); box-shadow: var(--shadow); max-width: 320px;
}
.toast b { width: 24px; height: 24px; border-radius: 50%; background: #fde7d6; color: #9c440e; display: grid; place-items: center; flex: none; font-size: var(--fs-xs); }
.toast code { background: var(--red); color: #fff; font-weight: 700; flex: none; }
.toast.t1 { left: -8px; top: 22%; }
.toast.t2 { left: 18%; bottom: 14%; font: 500 var(--fs-xs)/1.4 var(--mono); }

/* Proof */
.proof-sec { background: var(--cream); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cell { position: relative; padding: var(--s7) var(--s5) var(--s6); border-left: 1px solid var(--line); }
.cell:last-child { border-right: 1px solid var(--line); }
.cell::before, .cell::after { content: ''; position: absolute; width: 9px; height: 9px; border-color: var(--gold); border-style: solid; }
.cell::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.cell::after { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.lab { font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.cell b { display: block; margin: var(--s4) 0 var(--s3); font: 500 var(--fs-num)/1 var(--serif); color: var(--teal-800); letter-spacing: -0.02em; }
.cell p { font-size: var(--fs-sm); color: var(--ink-2); max-width: 26ch; }

/* Sections */
.sec { position: relative; padding: var(--s10) 0; }
.sec.tint { background: var(--cream-2); }
.sec-head { max-width: 760px; margin-bottom: var(--s8); }
.sec-head h2 + .lede { margin-top: var(--s5); }
.sec-head.split { max-width: none; display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--s7); align-items: end; }
.tag {
  display: inline-block; font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-600); background: var(--teal-100); padding: 7px 10px; border-radius: var(--r-pill);
}
.tag.gold-t { background: var(--champagne); color: #6b4e1f; }

/* Before / after */
.versus { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--s10); box-shadow: var(--shadow); }
.vs-col { padding: var(--s7) var(--s6); }
.vs-col ul { list-style: none; padding: 0; display: grid; gap: var(--s4); margin-top: var(--s5); }
.vs-col li { position: relative; padding-left: 32px; font-size: var(--fs-md); line-height: 1.55; }
.vs-col li::before { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--sans); }
.before { background: #ebe6d2; color: var(--ink-2); }
.before li::before { content: '✕'; color: var(--ink-3); border: 1px solid #c9c2a6; }
.after { background: linear-gradient(160deg, var(--teal-700), var(--teal-800)); color: var(--on-dark); }
.after li::before { content: '✓'; color: var(--teal-900); background: var(--gold-grad); }
.vs-tag { font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.after .vs-tag { color: var(--gold); }

/* Feature rows */
.feat { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s8); align-items: center; padding: var(--s8) 0; border-top: 1px solid var(--line); }
.feat.flip .feat-text { order: 2; }
.feat-text { display: grid; gap: var(--s4); align-content: start; }
.feat-text h3 { font: 600 clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem)/1.15 var(--serif); }
.feat-text p { color: var(--ink-2); }
.feat-text .tag { justify-self: start; }
.num { font: 500 var(--fs-xs)/1 var(--mono); color: var(--gold-deep); letter-spacing: 0.1em; }
.note { font-size: var(--fs-sm); border-left: 2px solid var(--gold); padding-left: var(--s4); }
.shot { margin: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--paper); transition: transform 400ms var(--ease); }
.shot:hover { transform: translateY(-4px); }
.code {
  margin: 0; background: var(--teal-900); color: var(--on-dark); border-radius: var(--r-md);
  padding: var(--s4) var(--s5); font: 400 0.8125rem/1.7 var(--mono); overflow-x: auto; white-space: pre;
}
.code .k { color: #7fd3cf; } .code .s { color: var(--champagne); } .code .c { color: #7d9897; } .code .e { color: #ff9b84; font-weight: 500; }

/* Roles */
.roles { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s7); padding: var(--s8) 0; border-top: 1px solid var(--line); }
.roles-head { display: grid; gap: var(--s4); align-content: start; }
.roles-head .tag { justify-self: start; }
.roles-head h3 { font: 600 clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem)/1.15 var(--serif); }
.role-list { border-top: 1px solid var(--ink); }
.role { display: grid; grid-template-columns: 110px 1fr 1fr; gap: var(--s5); padding: var(--s5) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); }
.role b { font: 600 1.25rem/1.2 var(--serif); color: var(--teal-800); }

.callout { margin-top: var(--s7); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s7); display: grid; gap: var(--s4); position: relative; overflow: hidden; }
.callout::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--gold-grad); }
.callout .tag { justify-self: start; }
.callout p { color: var(--ink-2); max-width: 80ch; }

/* Journey */
.diagram { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.diagram-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding: var(--s3); border-bottom: 1px solid var(--line); background: var(--cream); }
.diagram-tabs button {
  font: 600 var(--fs-sm)/1 var(--sans); min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-pill);
  border: 1px solid transparent; background: none; color: var(--ink-2); cursor: pointer; transition: background var(--dur), color var(--dur);
}
.diagram-tabs button:hover { background: var(--cream-2); }
.diagram-tabs button[aria-selected='true'] { background: var(--teal-800); color: var(--on-dark); }
.diagram-tabs a { margin-left: auto; font: 600 var(--fs-sm)/1 var(--sans); color: var(--teal-600); padding: 0 var(--s3); }
.diagram-frame { display: block; width: 100%; height: min(78vh, 760px); border: 0; background: var(--paper); }

/* Founder */
.founder { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--s7); align-items: start; }
.f-card {
  position: sticky; top: 100px; color: var(--on-dark); border-radius: var(--r-lg); padding: var(--s7) var(--s6);
  background: radial-gradient(600px 300px at 100% 0%, rgba(206, 148, 42, 0.2), transparent 60%), linear-gradient(160deg, var(--teal-700), var(--teal-900));
  box-shadow: var(--shadow);
}
.f-name { font: 500 clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem)/1.05 var(--serif); letter-spacing: -0.02em; }
.f-line { margin-top: var(--s4); color: var(--on-dark-2); font-size: var(--fs-lg); }
.f-facts { margin: var(--s7) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.f-facts div { padding: var(--s5) var(--s3) 0 0; }
.f-facts dt { font: 600 1.5rem/1.1 var(--serif); color: var(--gold); }
.f-facts dd { margin: var(--s2) 0 0; font-size: var(--fs-xs); color: var(--on-dark-2); }
.f-body { display: grid; gap: var(--s5); }
.f-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); }
.f-block h3 { font: 600 var(--fs-h3)/1.3 var(--serif); margin-bottom: var(--s4); }
.f-block li { color: var(--ink-2); margin-top: var(--s2); }
.f-block li::marker { color: var(--gold); }
.stack { font: 500 var(--fs-sm)/1.6 var(--mono); color: var(--teal-700); display: grid; gap: var(--s1); }
.stack span { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* Roadmap */
.sec.dark { background: linear-gradient(180deg, var(--teal-800), var(--teal-900)); color: var(--on-dark); overflow: hidden; }
.sec.dark h2 em { color: var(--gold); }
.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.tl-line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: rgba(206, 148, 42, 0.15); list-style: none; }
.tl-line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--champagne), var(--gold)); transform-origin: 0 50%; box-shadow: 0 0 12px rgba(206, 148, 42, 0.6); }
.timeline > li:not(.tl-line) { position: relative; padding: var(--s7) var(--s5) 0 0; display: grid; gap: var(--s3); align-content: start; }
.timeline > li:not(.tl-line)::before { content: ''; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border: 1px solid var(--gold); background: var(--teal-900); transform: rotate(45deg); }
.timeline > li:nth-child(2)::before { background: var(--gold); }
.when { font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.timeline h3 { font: 600 1.375rem/1.25 var(--serif); }
.timeline ul { padding-left: 1em; color: var(--on-dark-2); font-size: var(--fs-sm); display: grid; gap: var(--s2); }
.timeline li li::marker { color: var(--gold); }
.pay { justify-self: start; margin-top: var(--s3); font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: 0.08em; color: var(--champagne); border: 1px solid var(--line-dark); border-radius: var(--r-pill); padding: 8px 12px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.plan { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s7) var(--s6); display: grid; gap: var(--s2); align-content: start; }
.plan h3 { font: 600 1.5rem/1.2 var(--serif); }
.for { color: var(--ink-3); font-size: var(--fs-sm); }
.amount { margin-top: var(--s5); font: 500 clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem)/1 var(--serif); color: var(--teal-800); letter-spacing: -0.02em; }
.amount small { font: 500 var(--fs-md) var(--sans); color: var(--ink-3); letter-spacing: 0; }
.unit { font: 500 var(--fs-xs)/1.5 var(--mono); color: var(--gold-deep); letter-spacing: 0.04em; }
.plan ul { list-style: none; padding: var(--s5) 0 0; margin-top: var(--s4); border-top: 1px solid var(--line); display: grid; gap: var(--s3); }
.plan li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: var(--fs-sm); }
.plan li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font: 700 10px/1 var(--sans); background: var(--teal-100); color: var(--teal-700); }
.plan.featured { background: linear-gradient(160deg, var(--teal-700), var(--teal-900)); color: var(--on-dark); border-color: transparent; box-shadow: var(--shadow); }
.plan.featured .for, .plan.featured li { color: var(--on-dark-2); }
.plan.featured .amount { color: transparent; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; }
.plan.featured .amount small { color: var(--on-dark-2); -webkit-text-fill-color: var(--on-dark-2); }
.plan.featured .unit { color: var(--gold); }
.plan.featured ul { border-color: var(--line-dark); }
.plan.featured li::before { background: var(--gold-grad); color: var(--teal-900); }
.ribbon { position: absolute; top: var(--s6); right: var(--s6); background: var(--gold-grad); color: var(--teal-900); font: 700 var(--fs-xs)/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 12px; border-radius: var(--r-pill); }
.plan.wide { grid-column: 1 / -1; grid-template-columns: 0.8fr 1.2fr; gap: var(--s7); background: var(--cream-2); }
.plan.wide ul { margin: 0; padding: 0 0 0 var(--s7); border-top: 0; border-left: 1px solid var(--line); }
.sub-h { font: 600 1.5rem/1.2 var(--serif); margin: var(--s8) 0 var(--s4); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 640px; }
th, td { text-align: left; padding: 14px var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 var(--fs-xs)/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); background: var(--cream); }
td:nth-child(n + 3) { font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 700; color: var(--teal-800); border-bottom: 0; background: var(--cream); }

/* Handover */
.hand { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.h-item { border-top: 2px solid var(--teal-800); padding-top: var(--s5); display: grid; gap: var(--s3); align-content: start; }
.h-item .num { font: 500 1.75rem/1 var(--serif); color: var(--gold-deep); letter-spacing: 0; }
.h-item h3 { font: 600 1.375rem/1.25 var(--serif); }
.h-item p { color: var(--ink-2); font-size: var(--fs-sm); }

/* Questions */
.qa { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s8); align-items: start; }
.sec-head.sticky { position: sticky; top: 100px; margin-bottom: 0; }
.qs { border-top: 1px solid var(--ink); }
.q { border-bottom: 1px solid var(--line); }
.q summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s4);
  min-height: 72px; padding: var(--s4) 0; font: 600 1.25rem/1.3 var(--serif); color: var(--ink);
}
.q summary::-webkit-details-marker { display: none; }
.q summary span { margin-left: auto; font: 500 var(--fs-xs)/1 var(--mono); color: var(--ink-3); }
.q summary::after { content: '+'; width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 400 1.25rem/1 var(--sans); color: var(--gold-deep); transition: transform var(--dur) var(--ease), background var(--dur); }
.q[open] summary::after { transform: rotate(45deg); background: var(--teal-800); color: var(--on-dark); border-color: var(--teal-800); }
.q summary:hover { color: var(--teal-600); }
.q ol { padding: 0 0 var(--s6) 1.4em; display: grid; gap: var(--s3); color: var(--ink-2); }
.q li::marker { font: 500 var(--fs-sm) var(--mono); color: var(--gold-deep); }

/* CTA */
.cta { position: relative; overflow: hidden; color: var(--on-dark); padding: var(--s10) 0; background: radial-gradient(900px 500px at 50% 120%, rgba(206, 148, 42, 0.22), transparent 60%), linear-gradient(180deg, var(--teal-800), var(--teal-900)); }
.cta-in { position: relative; text-align: center; display: grid; justify-items: center; gap: var(--s6); }
.cta .kicker { margin: 0; }
.cta h2 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4.5rem); font-weight: 500; }
.cta h2 em { color: var(--gold); }
.contact { margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--line-dark); display: grid; gap: var(--s3); width: min(100%, 640px); }
.c-name { font: 500 1.75rem/1.2 var(--serif); }
.contact p:last-child { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s6); }
.contact a { text-decoration: none; color: var(--on-dark-2); font-weight: 500; padding: var(--s2) 0; border-bottom: 1px solid transparent; transition: color var(--dur), border-color var(--dur); }
.contact a:hover { color: var(--champagne); border-color: var(--gold); }

footer { background: var(--teal-900); color: var(--on-dark-2); font-size: var(--fs-xs); padding: var(--s5) 0 var(--s7); border-top: 1px solid var(--line-dark); }

/* Reveal: hidden only when JS is running, so content stays visible otherwise. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero h1.reveal { transition-duration: 900ms; }
.js .stage.reveal { transform: translateY(60px); transition-duration: 1100ms; transition-delay: 150ms; }
.js .stage.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .shot, .q summary::after, .zalo { transition: none; }
  .zalo-dot::after { animation: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .toc { display: none; }
  .top-in .btn { margin-left: auto; }
  .hero-foot, .sec-head.split, .founder, .qa, .roles { grid-template-columns: 1fr; }
  .hero-foot .actions { justify-content: flex-start; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .cell:nth-child(2) { border-right: 1px solid var(--line); }
  .cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .feat, .feat.flip { grid-template-columns: 1fr; gap: var(--s6); }
  .feat.flip .feat-text { order: 0; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: var(--s7); }
  .tl-line { display: none; }
  .timeline > li:not(.tl-line) { border-top: 1px solid var(--line-dark); padding-top: var(--s6); }
  .timeline > li:not(.tl-line)::before { top: -8px; }
  .f-card, .sec-head.sticky { position: static; }
  .sec-head.sticky { margin-bottom: var(--s6); }
  .toast.t1 { top: 10%; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 var(--s4); }
  .sec { padding: var(--s9) 0; }
  .hero { padding-top: calc(68px + var(--s8)); }
  .stage { margin-top: var(--s7); }
  .browser { transform: none; border-radius: var(--r-md) var(--r-md) 0 0; }
  .phone { width: 120px; border-radius: 22px; padding: 5px; bottom: -24px; right: var(--s3); }
  .phone img { border-radius: 18px; }
  .toast { font-size: var(--fs-xs); padding: 8px 10px; max-width: 220px; }
  .toast.t1 { left: var(--s2); top: auto; bottom: 46%; }
  .toast.t2 { display: none; }
  .cell { padding: var(--s5) var(--s4); }
  .cell b { font-size: 2.25rem; margin: var(--s3) 0 var(--s2); }
  .cell p { font-size: var(--fs-xs); }
  .versus, .plans, .hand, .timeline { grid-template-columns: 1fr; }
  .vs-col, .plan, .f-block, .callout { padding: var(--s6) var(--s5); }
  .plan.wide { grid-template-columns: 1fr; gap: var(--s4); }
  .plan.wide ul { padding: var(--s5) 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .ribbon { top: var(--s5); right: var(--s5); }
  .role { grid-template-columns: 1fr; gap: var(--s1); }
  .f-facts { grid-template-columns: 1fr 1fr 1fr; }
  .f-facts dt { font-size: 1.25rem; }
  .diagram-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .diagram-tabs button { white-space: nowrap; }
  .diagram-tabs a { white-space: nowrap; }
  .diagram-frame { height: 70vh; }
  .q summary { font-size: 1.0625rem; }
  .brand { font-size: 1rem; }
  .demo-badge { display: none; }
  .demo-inline {
    display: inline-block; margin-bottom: var(--s4); background: var(--gold-grad); color: var(--teal-900);
    font: 700 var(--fs-xs)/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 12px; border-radius: var(--r-pill);
  }

  .hero-foot { margin-top: var(--s6); gap: var(--s5); }
  .hero .lede { font-size: var(--fs-md); }
  .zalo { right: var(--s3); bottom: var(--s3); padding: 0; border: 0; background: none; box-shadow: none; }
  .zalo-txt { display: none; }
  .zalo-dot { box-shadow: var(--shadow); }
}

/* ---------- Motion layer ---------- */
/* Film grain over the whole page. */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.progress i { display: block; height: 100%; background: var(--gold-grad); transform-origin: 0 50%; transform: scaleX(0); }

/* Hero: pointer spotlight, word masks, gold shine */
.spot {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.9;
  background: radial-gradient(420px 320px at var(--mx, 70%) var(--my, 20%), rgba(206, 148, 42, 0.16), transparent 70%);
}
.hero h1 { font-size: clamp(2.75rem, 1.4rem + 5.6vw, 6.75rem); max-width: 14ch; line-height: 1.02; }
.split .line { display: block; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.02em 0.14em; margin: -0.04em -0.02em -0.14em; }
.split .wi { display: inline-block; will-change: transform; }
.hero h1 em.shine {
  background: linear-gradient(110deg, #8c682e 0%, #ce942a 30%, #fff6d6 45%, #ce942a 60%, #8c682e 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s ease-in-out infinite 2.2s;
}
@keyframes shine { 0%, 60% { background-position: 100% 0; } 100% { background-position: -50% 0; } }
.tilt { position: relative; transform-origin: 50% 0; }

/* Proof */
.proof-k { padding-top: var(--s7); margin-bottom: 0; }
.cell b.urgent { color: var(--red); }

/* Live race simulation */
.race-sec code { background: rgba(246, 235, 189, 0.12); color: var(--champagne); }
.race { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--s5); align-items: stretch; }
.race-board {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: var(--s5);
  background: var(--cream); color: var(--ink); box-shadow: var(--shadow-deep);
}
.race-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); font: 600 var(--fs-xs)/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: var(--s4); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; color: #1c6a3f; background: #e4f2e8; padding: 6px 10px; border-radius: var(--r-pill); letter-spacing: 0.06em; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #2e9158; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.lots { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s2); }
.lot {
  min-height: 86px; display: grid; align-content: space-between; gap: var(--s2); text-align: left; cursor: pointer;
  padding: var(--s3); border-radius: 10px; border: 1px solid; font: 500 var(--fs-xs)/1.3 var(--sans);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.lot b { font: 700 0.8125rem/1.2 var(--sans); }
.lot:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(13, 37, 38, 0.5); }
.lot.available { background: #e4f2e8; color: #1c6a3f; border-color: #bfddc9; }
.lot.held { background: #fde7d6; color: #9c440e; border-color: #e2722a; box-shadow: 0 0 0 2px rgba(226, 114, 42, 0.25); }
.lot.sold { background: #dce1e1; color: #3d4747; border-color: #c3cccc; cursor: not-allowed; }
.lot.deposited { background: #eee2f3; color: #5b2f78; border-color: #d6c0e3; cursor: not-allowed; }
.lot.flash { animation: lotflash 900ms var(--ease); }
@keyframes lotflash { 0% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(206, 148, 42, 0.9); } 60% { transform: scale(1.04); box-shadow: 0 0 0 14px rgba(206, 148, 42, 0); } 100% { transform: none; } }
.cursor {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; display: flex; align-items: flex-start; gap: 4px;
  opacity: 0; transition: transform 850ms cubic-bezier(0.65, 0, 0.2, 1), opacity 300ms;
}
.cursor.show { opacity: 1; }
.cursor svg { width: 20px; height: 20px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); transition: transform 120ms; }
.cursor.click svg { transform: scale(0.8); }
.cursor span { margin-top: 14px; font: 700 0.6875rem/1 var(--sans); color: #fff; padding: 5px 8px; border-radius: var(--r-pill); white-space: nowrap; }
.c-a path { fill: var(--teal-600); } .c-a span { background: var(--teal-600); }
.c-b path { fill: #c0452b; } .c-b span { background: #c0452b; }
.race-toast {
  position: absolute; left: 50%; bottom: var(--s4); transform: translate(-50%, 20px); opacity: 0; z-index: 4;
  background: var(--teal-900); color: var(--on-dark); padding: 10px 16px; border-radius: var(--r-md);
  font: 600 var(--fs-sm)/1.35 var(--sans); box-shadow: var(--shadow); width: max-content; max-width: calc(100% - 32px); text-align: center;
  transition: transform 300ms var(--ease), opacity 300ms;
}
.race-toast.show { opacity: 1; transform: translate(-50%, 0); }
.race-side { display: grid; grid-template-rows: auto 1fr; gap: var(--s4); min-width: 0; }
.race-btns { display: flex; flex-wrap: wrap; gap: var(--s3); }
.race-btns button { cursor: pointer; border: 0; font-family: var(--sans); }
.race-btns .ghost { background: none; border: 1px solid var(--line-dark); }
.log { background: #0a1e1f; border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: var(--s4); min-height: 240px; overflow: hidden; }
.log-h { font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s3); }
.log ol { list-style: none; padding: 0; display: grid; gap: var(--s2); font: 400 0.75rem/1.55 var(--mono); color: var(--on-dark-2); }
.log li { padding: var(--s2) var(--s3); border-radius: 8px; background: rgba(246, 235, 189, 0.04); animation: logIn 400ms var(--ease); word-break: break-word; }
.log li b { color: var(--on-dark); font-weight: 500; margin-right: 4px; }
.log .t { display: block; color: #6f8b8a; }
.log .ok .r { color: #7fd3a0; } .log .no .r { color: #ff9b84; }
.log .muted-l { background: none; color: #6f8b8a; }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } }

/* Scrollytelling */
.story { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s8); margin-bottom: var(--s8); }
.step { min-height: 78vh; display: grid; gap: var(--s4); align-content: center; padding: var(--s7) 0; opacity: 0.35; transition: opacity 500ms var(--ease); }
.step.active { opacity: 1; }
.no-gsap .step, .js:not(.has-gsap):not(.no-gsap) .step { opacity: 1; }
.step h3 { font: 600 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1.15 var(--serif); }
.step p { color: var(--ink-2); }
.step-shot { display: none; margin: var(--s3) 0 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.story-stage { position: sticky; top: calc(50vh - min(30vw, 330px)); align-self: start; height: max-content; padding: var(--s7) 0; }
.story-frame { border-radius: var(--r-lg); overflow: hidden; background: var(--teal-900); box-shadow: var(--shadow-deep); border: 1px solid var(--line-dark); }
.story-imgs { position: relative; aspect-ratio: 1268 / 880; background: var(--cream); }
.story-imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 700ms var(--ease), transform 1200ms var(--ease); }
.story-imgs img.on { opacity: 1; transform: none; }
.story-dots { display: flex; gap: var(--s2); justify-content: center; margin-top: var(--s4); }
.story-dots i { width: 28px; height: 3px; border-radius: 3px; background: var(--line); transition: background 400ms, width 400ms; }
.story-dots i.on { width: 56px; background: var(--gold-grad); }
.sec h2 em, .cta h2 em {
  background-image: linear-gradient(transparent 82%, rgba(206, 148, 42, 0.28) 82%, rgba(206, 148, 42, 0.28) 96%, transparent 96%);
  background-size: 100% 100%; background-repeat: no-repeat;
}

/* Founder */
.founder-sec { overflow: hidden; }
.f-head { max-width: 980px; }
.f-head h2 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem); }
.f-head .lede { margin-top: var(--s5); max-width: 68ch; }
.founder-sec .f-facts { border-top-color: var(--line); max-width: 760px; margin-top: var(--s7); }
.founder-sec .f-facts dt { font: 500 clamp(2.5rem, 2rem + 2vw, 3.75rem)/1 var(--serif); color: var(--teal-800); }
.founder-sec .f-facts dd { color: var(--ink-3); font-size: var(--fs-sm); }
.marquee { margin: var(--s8) 0; padding: var(--s5) 0; border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.mq-track { display: inline-flex; gap: var(--s8); padding-left: var(--s8); will-change: transform; }
.mq-track span { font: italic 500 clamp(2.5rem, 1.6rem + 4vw, 5.5rem)/1.1 var(--serif); color: var(--teal-800); }
.mq-track span:nth-child(even) { color: var(--gold-deep); }
.mq-track span::after { content: '✦'; font: normal 400 0.35em/1 var(--sans); color: var(--gold); margin-left: var(--s8); vertical-align: middle; }
.no-gsap .mq-track { animation: mq 50s linear infinite; }
@keyframes mq { to { transform: translateX(-50%); } }
.f-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s5); align-items: stretch; }
.f-cap { font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.f-block { display: grid; gap: var(--s4); align-content: start; }
.f-block h3 { margin: 0; font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); }
.career { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.career li { display: grid; gap: 2px; padding: var(--s4) 0; border-bottom: 1px solid var(--line); margin: 0; }
.career b { font: 600 1.125rem/1.3 var(--serif); color: var(--teal-800); }
.career span { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; letter-spacing: 0.04em; }
.career em { font: italic 400 var(--fs-sm)/1.5 var(--serif); color: var(--gold-deep); }
.f-note { font-size: var(--fs-sm); color: var(--ink-2); }
.f-block.dark-b { background: linear-gradient(160deg, var(--teal-700), var(--teal-900)); color: var(--on-dark); border-color: transparent; box-shadow: var(--shadow); }
.f-block.dark-b .f-cap { color: var(--gold); }
.powers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s5); }
.powers div { border-top: 1px solid var(--line-dark); padding-top: var(--s4); }
.powers b { display: block; font: 600 1.125rem/1.3 var(--serif); color: var(--champagne); margin-bottom: var(--s2); }
.powers p { font-size: var(--fs-sm); color: var(--on-dark-2); }
.stack { margin-top: var(--s6); }

@media (max-width: 1020px) {
  .race, .story, .f-grid { grid-template-columns: 1fr; }
  .story-stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: var(--s6) 0; border-top: 1px solid var(--line); }
  .step-shot { display: block; }
}
@media (max-width: 680px) {
  .hero h1 { font-size: 2.6rem; }
  .lots { grid-template-columns: repeat(3, 1fr); }
  .lot { min-height: 72px; }
  .powers { grid-template-columns: 1fr; }
  .marquee { margin: var(--s7) 0; }
  .founder-sec .f-facts dd { font-size: var(--fs-xs); }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 em.shine, .live-pill i, .lot.flash, .log li { animation: none; }
  .cursor, .story-imgs img, .browser { transition: none; }
  .step { opacity: 1; }
  .no-gsap .mq-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* Sales An's label sits left of the pointer so two cursors on one lot stay readable. */
.c-a { flex-direction: row-reverse; }
.c-a svg { transform: scaleX(-1); }
.c-a.click svg { transform: scaleX(-1) scale(0.8); }

.hero-vid { display: block; width: 100%; height: auto; background: var(--cream); }
