/* NHZ Midman — landing.css: hero portfolio + marquee (theme chung nam trong app.css) */

/* ---------- fade-in theo bac (bam delay cua ban goc: 0 / .15 / .35 / .5 / .6) ---------- */
.fi { opacity: 0; transform: translateY(var(--fi-y, 24px)); animation: fiIn .9s cubic-bezier(.2,.7,.2,1) forwards; }
.fi-d1 { animation-delay: 0s;   --fi-y: -20px; }
.fi-d2 { animation-delay: .15s; --fi-y: 40px; }
.fi-d3 { animation-delay: .35s; --fi-y: 20px; }
.fi-d4 { animation-delay: .5s;  --fi-y: 20px; }
.fi-d5 { animation-delay: .6s;  --fi-y: 30px; }
@keyframes fiIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fi { animation: none; opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero-full { min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; }
.hero-clip {
  position: relative; flex: 1; display: flex; flex-direction: column;
  padding: clamp(16px, 4vw, 48px) clamp(16px, 4vw, 48px) 0;
  overflow: clip;
}
/* Chu lon gradient bac-xanh — cong thuc goc: linear-gradient(180deg,#646973,#BBCCD7) + background-clip:text */
.hero-heading {
  font-size: clamp(3.2rem, 15.5vw, 15.5rem);
  font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .95;
  white-space: nowrap; width: 100%; margin: 0; text-align: center;
  background: linear-gradient(180deg, #646973 0%, #BBCCD7 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  user-select: none;
}
/* Chan dung: neo giua-duoi, cao theo viewport de khong bao gio tran qua tieu de */
.hero-magnet {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: clamp(84px, 13vh, 150px); z-index: 5;
  height: clamp(240px, 44vh, 520px); pointer-events: none;
}
.magnet-inner {
  position: relative; display: inline-block;
  transform: rotate(-3deg);
  transition: transform .6s ease-in-out;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6));
}
/* The deal escrow mockup — thuan CSS, 100% cua NHZ (khong dung anh ngoai) */
.escrow-card {
  width: min(430px, 76vw);
  background: linear-gradient(180deg, #17171a, #101012);
  border: 1px solid #2b2b31; border-radius: 20px;
  padding: 18px 20px; color: #D7E2EA;
}
.ec-head { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #8b8f98; }
.ec-head b { font-size: .82rem; color: #BBCCD7; letter-spacing: .04em; }
.ec-row { display: flex; align-items: center; gap: 12px; margin-top: 15px; padding-bottom: 13px; border-bottom: 1px dashed #26262c; }
.ec-coin { width: 38px; height: 38px; border-radius: 50%; background: #F7931A; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; flex: none; }
.ec-info { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.ec-info b { font-size: .98rem; }
.ec-info small { color: #8b8f98; font-size: .75rem; }
.ec-amt { font-size: 1.15rem; color: #fff; }
.ec-status { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.ec-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; color: #F5C24B; border: 1px solid rgba(245,194,75,.35); background: rgba(245,158,11,.08); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.ec-badge i { width: 6px; height: 6px; border-radius: 50%; background: #F5C24B; animation: ecPulse 1.6s ease-in-out infinite; }
@keyframes ecPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.ec-bar { flex: 1; height: 7px; border-radius: 99px; background: #232329; overflow: hidden; }
.ec-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #F5C24B, #F7931A); }
.ec-status small { color: #8b8f98; font-size: .71rem; white-space: nowrap; }
.ec-chat { margin-top: 15px; display: flex; flex-direction: column; gap: 7px; }
.ec-msg { max-width: 80%; padding: 8px 12px; border-radius: 13px; font-size: .84rem; line-height: 1.35; }
.ec-msg.me { align-self: flex-end; background: linear-gradient(180deg, #F5C24B, #F7931A); color: #141414; border-bottom-right-radius: 4px; font-weight: 500; }
.ec-msg.them { align-self: flex-start; background: #202026; border-bottom-left-radius: 4px; }
.ec-sys { align-self: center; font-size: .67rem; color: #34D399; border: 1px solid rgba(52,211,153,.3); border-radius: 999px; padding: 2px 11px; margin-top: 2px; }
.hero-coin { position: absolute; border-radius: 50%; box-shadow: 0 10px 24px rgba(0,0,0,.5); animation: coinFloat 5s ease-in-out infinite; }
.c-btc { top: -26px; right: -20px; }
.c-eth { bottom: -18px; left: -16px; animation-delay: 1.2s; }
.c-sol { top: 40%; left: -34px; animation-delay: 2.1s; }
@keyframes coinFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-bottom {
  margin-top: auto; position: relative; z-index: 6;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  padding-bottom: clamp(20px, 4vh, 40px);
}
.hero-tag {
  color: #D7E2EA; font-weight: 300; text-transform: uppercase;
  letter-spacing: .06em; line-height: 1.45;
  font-size: clamp(.72rem, 1.4vw, 1.05rem);
  max-width: 300px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 760px) {
  .hero-magnet { position: relative; left: auto; transform: none; bottom: auto; margin: 26px auto 8px; height: min(46vh, 340px); }
  .hero-bottom { flex-direction: column; align-items: center; text-align: center; }
  .hero-tag { max-width: none; }
  .hero-cta { justify-content: center; }
}

/* ---------- marquee 2 hang, keo theo scroll ---------- */
.mq { padding: clamp(56px, 9vw, 120px) 0 28px; overflow: clip; display: flex; flex-direction: column; gap: 18px; }
.mq-row { display: flex; gap: 16px; width: max-content; will-change: transform; }
.mq-tile {
  height: clamp(120px, 16vw, 190px); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--color-border); background: var(--color-card); flex: none;
}
.mq-tile img { height: 100%; width: auto; display: block; }
.mq-tile.coin { display: grid; place-items: center; width: clamp(120px, 16vw, 190px); }
.mq-tile.coin img { height: 46%; width: auto; }
/* Tile nghe thuat — aurora gradient dong (phong cach videobg/motionsites), 100% CSS */
.mq-tile.art {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; width: clamp(200px, 24vw, 280px); overflow: hidden;
}
.mq-tile.art .art-bg {
  position: absolute; inset: -55%; pointer-events: none;
  background: conic-gradient(from 0deg, var(--c1), var(--c2), var(--c3, var(--c1)), var(--c1));
  filter: blur(28px); opacity: .55; animation: artSpin 10s linear infinite;
}
.mq-tile.art:hover .art-bg { animation-duration: 5s; opacity: .7; }
@keyframes artSpin { to { transform: rotate(360deg); } }
.art-blue   { --c1:#1d4ed8; --c2:#0ea5e9; --c3:#312e81; }
.art-teal   { --c1:#0d9488; --c2:#06b6d4; --c3:#134e4a; }
.art-gold   { --c1:#b45309; --c2:#f59e0b; --c3:#78350f; }
.art-green  { --c1:#059669; --c2:#34d399; --c3:#064e3b; }
.art-rose   { --c1:#be123c; --c2:#fb7185; --c3:#4c0519; }
.art-red    { --c1:#dc2626; --c2:#f59e0b; --c3:#450a0a; }
.art-violet { --c1:#6d28d9; --c2:#a78bfa; --c3:#2e1065; }
.art-slate  { --c1:#334155; --c2:#94a3b8; --c3:#0f172a; }
.mq-tile.art .art-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(10,10,12,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(4px); }
.mq-tile.art .art-ic svg { width: 26px; height: 26px; color: #fff; filter: drop-shadow(0 0 10px rgba(255,255,255,.45)); animation: artFloat 4.5s ease-in-out infinite; }
@keyframes artFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.mq-tile.art b { position: relative; z-index: 1; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: clamp(.95rem, 1.5vw, 1.25rem); letter-spacing: .02em; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.65); text-align: center; padding: 0 14px; }
@media (prefers-reduced-motion: reduce) {
  .mq-tile.art .art-bg, .mq-tile.art .art-ic svg { animation: none; }
}

/* ---------- tinh chinh section tren trang chu ---------- */
.landing .stat-num { font-weight: 800; }
.landing .card { box-shadow: 0 1px 0 rgba(255,255,255,.03) inset; }
