/* ===================== Tokens ===================== */
:root {
  --brand: #ff7506;
  --brand-2: #ffb054;
  --brand-3: #ff4d1a;
  --brand-soft: rgba(255, 117, 6, .14);
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 1180px;
}
:root,
:root[data-theme="dark"] {
  --bg: #0b0b0d;
  --bg-2: #111114;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --fg: #f4f2ef;
  --fg-2: #b9b5ae;
  --muted: #85817a;
  --glass: rgba(18, 18, 21, .62);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --aurora-opacity: .55;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fbfaf8;
  --bg-2: #f3f1ed;
  --surface: rgba(255, 255, 255, .75);
  --surface-2: #ffffff;
  --line: rgba(20, 16, 10, .08);
  --line-2: rgba(20, 16, 10, .14);
  --fg: #17140f;
  --fg-2: #4e4940;
  --muted: #7d776c;
  --glass: rgba(251, 250, 248, .7);
  --shadow: 0 30px 70px -35px rgba(80, 40, 0, .28);
  --aurora-opacity: .35;
  color-scheme: light;
}

/* ===================== Base ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.6 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
kbd {
  font: 500 11px/1 var(--mono); padding: 4px 6px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--fg-2);
}
h1 em, h2 em {
  background: linear-gradient(100deg, var(--brand-2), var(--brand) 45%, var(--brand-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===================== Scroll progress & spotlight ===================== */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand-3), var(--brand), var(--brand-2));
  transform: scaleX(var(--progress, 0));
}
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.spotlight {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 117, 6, .07), transparent 60%);
}

/* ===================== Nav ===================== */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50; translate: -50% 0;
  width: min(var(--maxw), calc(100% - 24px));
  display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 16px;
  border: 1px solid transparent; border-radius: 16px;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.nav.scrolled {
  background: var(--glass); border-color: var(--line);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .5);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; }
.brand img { width: 28px; height: 28px; }
.brand-name { display: flex; align-items: baseline; gap: 6px; font-size: 17px; }
.brand-sub { font: 500 13px var(--mono); color: var(--muted); letter-spacing: 0; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--fg-2); font-size: 14px; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--fg); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.search-trigger {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13.5px;
  transition: border-color .2s, color .2s;
}
.search-trigger:hover { border-color: var(--line-2); color: var(--fg-2); }
.search-trigger svg { width: 15px; height: 15px; }
.search-trigger span { margin-right: 18px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); }
.icon-btn:hover { border-color: var(--line-2); }
:root[data-theme="dark"] .i-moon, :root[data-theme="light"] .i-sun { display: none; }

/* ===================== Hero ===================== */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 20px 80px; overflow: clip; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.aurora {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--aurora-opacity);
  animation: drift 22s var(--ease) infinite alternate; will-change: transform;
}
.a1 { width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; left: -12%; top: -18%; background: radial-gradient(circle, var(--brand) 0%, transparent 65%); }
.a2 { width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; right: -10%; top: 8%; background: radial-gradient(circle, var(--brand-3) 0%, transparent 65%); animation-duration: 28s; animation-delay: -6s; }
.a3 { width: 46vw; height: 46vw; max-width: 680px; max-height: 680px; left: 30%; bottom: -35%; background: radial-gradient(circle, #ffcf8a 0%, transparent 65%); opacity: calc(var(--aurora-opacity) * .6); animation-duration: 32s; animation-delay: -12s; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 8vh, 0) scale(.94); }
}
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.noise {
  position: absolute; inset: 0; opacity: .06; 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");
}
.hero-inner { width: min(var(--maxw), 100%); margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 500; color: var(--fg-2); position: relative; overflow: hidden;
  animation: rise .9s var(--ease) both;
}
.pill::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), transparent 70%, var(--brand) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 4s linear infinite;
}
.pill svg { width: 14px; height: 14px; transition: translate .25s var(--ease); }
.pill:hover svg { translate: 3px 0; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(255, 117, 6, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 117, 6, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 117, 6, 0); } }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --angle: 360deg; } }

.headline {
  margin: 22px 0 18px; font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.04;
  font-weight: 800; letter-spacing: -.035em; text-wrap: balance;
}
.headline .w { display: inline-block; opacity: 0; filter: blur(12px); translate: 0 .35em; animation: word .9s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + 150ms); }
@keyframes word { to { opacity: 1; filter: blur(0); translate: 0 0; } }
.headline em.w {
  background-size: 200% 100%;
  animation: word .9s var(--ease) forwards, shimmer 6s linear infinite;
  animation-delay: calc(var(--i) * 60ms + 150ms), 0s;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.lede { max-width: 560px; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--fg-2); margin: 0 0 32px; animation: rise 1s var(--ease) .55s both; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; animation: rise 1s var(--ease) .7s both; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px;
  border-radius: 14px; font-weight: 600; font-size: 15px; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.btn svg { transition: translate .25s var(--ease); }
.btn:hover svg { translate: 3px 0; }
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand) 40%, var(--brand-3));
  box-shadow: 0 10px 30px -10px rgba(255, 117, 6, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  translate: -120% 0; transition: translate .8s var(--ease);
}
.btn-primary:hover::before { translate: 120% 0; }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(255, 117, 6, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--fg); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-ghost svg { width: 16px; height: 16px; }
.btn-ghost kbd:first-of-type { margin-left: 6px; }

.stats { display: flex; gap: 36px; margin: 44px 0 0; animation: rise 1s var(--ease) .85s both; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Orbit visual */
.hero-visual { display: grid; place-items: center; animation: rise 1.2s var(--ease) .4s both; }
.orbit { position: relative; width: min(440px, 80vw); aspect-ratio: 1; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-2); }
.r1 { inset: 16%; border-color: rgba(255, 117, 6, .35); }
.r2 { inset: 4%; border-style: dashed; animation: rotate 60s linear infinite; }
.r3 {
  inset: -6%; border: 0;
  background: conic-gradient(from var(--angle), transparent 0 75%, rgba(255, 117, 6, .55) 92%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  animation: spin 8s linear infinite;
}
@keyframes rotate { to { rotate: 360deg; } }
.core {
  position: absolute; inset: 30%; display: grid; place-items: center; border-radius: 32%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .12), transparent 60%), var(--glass);
  border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 80px -10px rgba(255, 117, 6, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
  animation: float 6s ease-in-out infinite;
}
.core img { width: 62%; height: auto; filter: drop-shadow(0 10px 24px rgba(255, 117, 6, .45)); }
@keyframes float { 50% { translate: 0 -10px; } }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.chip i { font: 500 11px var(--mono); padding: 3px 6px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); }
.c1 { top: 6%; left: 2%; animation-delay: -1s; }
.c2 { top: 22%; right: -6%; animation-delay: -3s; }
.c3 { bottom: 18%; left: -8%; animation-delay: -2s; }
.c4 { bottom: 4%; right: 6%; animation-delay: -4.5s; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid var(--line-2); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--brand); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 14px; } }

/* ===================== Marquee ===================== */
.marquee {
  position: relative; overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; color: var(--muted); white-space: nowrap; letter-spacing: -.01em; }
.marquee-track span::after { content: "✦"; color: var(--brand); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===================== Sections ===================== */
.section { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; padding: 130px 0 0; scroll-margin-top: 40px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--brand); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.section-head h2, .eco h2, .final h2 { margin: 14px 0 14px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.section-head p { margin: 0; color: var(--fg-2); font-size: 1.05rem; }
.section-head kbd { margin: 0 2px; }

/* Reveal on scroll: CSS scroll-driven khi được hỗ trợ, fallback IntersectionObserver (.in) */
.reveal { opacity: 0; translate: 0 32px; filter: blur(6px); transition: opacity .9s var(--ease), translate .9s var(--ease), filter .9s var(--ease); }
.reveal.in { opacity: 1; translate: 0 0; filter: blur(0); }
@supports (animation-timeline: view()) {
  .reveal, .reveal.in { opacity: 1; translate: 0 0; filter: none; transition: none; animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes reveal { from { opacity: 0; translate: 0 40px; filter: blur(8px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
}

/* ===================== Timeline ===================== */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2) 40%, var(--line) 40%);
  background-size: 250% 100%; background-position: 100% 0;
}
@supports (animation-timeline: view()) {
  .timeline::before { animation: fillLine linear both; animation-timeline: view(); animation-range: entry 40% cover 55%; }
  @keyframes fillLine { to { background-position: 0 0; } }
}
.timeline.in::before { background-position: 0 0; transition: background-position 1.6s var(--ease) .2s; }
.t-item { position: relative; }
.t-dot {
  position: relative; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line-2); font: 600 14px var(--mono); color: var(--brand);
  box-shadow: 0 0 0 6px var(--bg);
}
.t-card { margin-top: 22px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, translate .3s var(--ease); height: calc(100% - 70px); }
.t-card:hover { border-color: var(--line-2); translate: 0 -4px; }
.t-when { font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.t-card h3 { margin: 6px 0 12px; font-size: 1.25rem; letter-spacing: -.02em; }
.t-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.t-card li { position: relative; padding-left: 20px; color: var(--fg-2); font-size: 14.5px; line-height: 1.5; }
.t-card li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); rotate: 45deg; opacity: .8; }

/* ===================== Bento ===================== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(210px, auto); grid-auto-flow: dense; gap: 16px; }
.tile {
  --x: 50%; --y: 50%;
  position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: translate .35s var(--ease), border-color .35s; text-align: left;
}
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
/* viền sáng chạy theo con trỏ */
.tile::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: radial-gradient(320px circle at var(--x) var(--y), var(--brand), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
/* quầng sáng nền theo con trỏ */
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(255, 117, 6, .1), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.tile:hover::before, .tile:hover::after, .tile:focus-within::before { opacity: 1; }
.tile:hover { translate: 0 -3px; }
.tile-icon {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 176, 84, .22), rgba(255, 77, 26, .12)); border: 1px solid rgba(255, 117, 6, .3); color: var(--brand);
}
.tile-icon svg { width: 22px; height: 22px; }
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.badge { font: 500 11.5px var(--mono); padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.badge.has { color: var(--brand); border-color: rgba(255, 117, 6, .4); background: var(--brand-soft); }
.tile h3 { margin: 0 0 8px; font-size: 1.3rem; letter-spacing: -.02em; }
.tile p { margin: 0; color: var(--fg-2); font-size: 14.5px; }
.tile-docs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.tile-docs a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: border-color .2s; }
.tile-docs a:hover { border-color: var(--brand); }
.tile-docs svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.tile-empty { margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tile-empty::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .6; animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .15; } }
.tile.tall .tile-art { margin-top: auto; padding-top: 24px; }
.tile-art svg { width: 100%; height: auto; stroke-width: 1.2; color: var(--line-2); }
.tile-art .hl { stroke: var(--brand); stroke-dasharray: 6 8; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -56; } }
.tile-art rect { fill: var(--surface-2); }

/* ===================== Ecosystem ===================== */
.eco {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px;
  border-radius: 28px; border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 117, 6, .16), transparent 50%), var(--surface);
}
.eco-copy p { color: var(--fg-2); margin: 0 0 22px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); }
.link-arrow svg { width: 16px; height: 16px; transition: translate .25s var(--ease); }
.link-arrow:hover svg { translate: 2px -2px; }
.eco-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.eco-tags li {
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--glass); font-size: 14px; font-weight: 500;
  transition: border-color .25s, color .25s, translate .25s var(--ease);
}
.eco-tags li:hover { border-color: var(--brand); color: var(--brand); translate: 0 -2px; }

/* ===================== Steps ===================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.step-n {
  position: absolute; right: 14px; top: -18px; font-size: 120px; font-weight: 800; line-height: 1; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px var(--line-2); pointer-events: none;
}
.step h3 { margin: 0 0 8px; font-size: 1.25rem; }
.step h3::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 18px; border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.step p { margin: 0; color: var(--fg-2); font-size: 14.5px; }

/* ===================== Final CTA ===================== */
.final {
  position: relative; width: min(var(--maxw), calc(100% - 40px)); margin: 130px auto 0; padding: 90px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  border-radius: 32px; border: 1px solid var(--line); overflow: hidden; isolation: isolate; background: var(--bg-2);
}
.final-glow {
  position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 900px; height: 600px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 117, 6, .45), transparent); filter: blur(30px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .6; scale: 1.08; } }
.final img { width: 64px; height: 64px; margin-bottom: 10px; animation: float 6s ease-in-out infinite; }
.final p { max-width: 560px; color: var(--fg-2); margin: 0 0 28px; }

/* ===================== Footer ===================== */
.footer { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; padding: 48px 0 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.footer-meta { font-family: var(--mono); font-size: 12px; }

/* ===================== Command palette ===================== */
.palette { padding: 0; border: 0; background: transparent; width: min(640px, calc(100% - 24px)); max-height: 70vh; margin: 12vh auto auto; color: var(--fg); overflow: visible; }
.palette::backdrop { background: rgba(5, 5, 7, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.palette[open] .palette-box { animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; scale: .97; translate: 0 -8px; } }
.palette-box { border-radius: 18px; border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .6); overflow: hidden; }
:root[data-theme="light"] .palette-box { background: rgba(255, 255, 255, .92); }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette-input svg { color: var(--muted); }
.palette-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--fg); font: 500 16px var(--font); }
.palette-input input::-webkit-search-cancel-button { display: none; }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.palette-group { padding: 10px 10px 6px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.palette-item a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; }
.palette-item[aria-selected="true"] a { background: var(--brand-soft); }
.palette-item .p-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); color: var(--brand); }
.palette-item .p-ic svg { width: 16px; height: 16px; }
.palette-item strong { display: block; font-size: 14.5px; font-weight: 600; }
.palette-item small { display: block; color: var(--muted); font-size: 12.5px; }
.palette-item mark { background: none; color: var(--brand); }
.palette-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.palette-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.palette-foot kbd { margin-right: 2px; }

/* ===================== View transition (đổi theme) ===================== */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ===================== Responsive ===================== */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; }
  .orbit { width: min(320px, 72vw); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .timeline::before { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.tall { grid-row: span 1; }
  .eco { grid-template-columns: 1fr; padding: 36px; }
}
@media (max-width: 720px) {
  .nav-links, .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { padding: 0; width: 38px; height: 38px; justify-content: center; }
  .nav { margin-left: 0; }
  .nav-actions { margin-left: auto; }
  .hero { padding-top: 100px; }
  .chip { font-size: 12px; }
  .c2 { right: -2%; } .c3 { left: -2%; }
  .stats { gap: 24px; }
  .btn-ghost kbd { display: none; }
  .timeline, .bento, .steps { grid-template-columns: 1fr; }
  .tile.wide { grid-column: span 1; }
  .section { padding-top: 96px; }
  .eco { padding: 28px 22px; }
  .final { padding: 64px 20px; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .headline .w { opacity: 1; filter: none; translate: 0 0; }
  .reveal { opacity: 1; translate: 0 0; filter: none; }
}
