/* ==========================================================================
   Landing page Binance (affiliate) - fintech style
   ========================================================================== */

:root {
	--ink: #0f1022;
	--ink-2: #4a4c68;
	--muted: #7b7d97;
	--line: #ece8fb;
	--primary: #6b4bff;
	--primary-2: #8b5cf6;
	--grad: linear-gradient(135deg, #5b3df5 0%, #8b5cf6 100%);
	--shadow: 0 1px 2px rgba(60, 40, 140, .04), 0 14px 34px -14px rgba(80, 60, 200, .2);
	--ok: #12a36b;
	--warn: #b45309;
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink);
	background:
		radial-gradient(900px 520px at 88% -4%, #e8dfff 0%, rgba(232, 223, 255, 0) 62%),
		radial-gradient(760px 480px at -8% 6%, #efe9ff 0%, rgba(239, 233, 255, 0) 60%),
		radial-gradient(900px 500px at 50% 100%, #efe9ff 0%, rgba(239, 233, 255, 0) 70%),
		#fbfaff;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; border-radius: 10px; background: #fff; color: var(--primary); font-weight: 600; box-shadow: var(--shadow); }
.skip:focus { top: 1rem; }
.accent { background: linear-gradient(90deg, #5b3df5, #9a6bff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.container { width: min(100% - 3rem, 1200px); margin-inline: auto; }
.container--narrow { width: min(100% - 3rem, 820px); }
.section { padding-block: clamp(2.2rem, 4.5vw, 3.6rem); }
.section--tight { padding-block: 0 clamp(2rem, 4vw, 3rem); }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	padding: .9rem 1.5rem; border: 1px solid transparent; border-radius: 12px;
	font-size: .92rem; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer;
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn .ic { width: 1.05em; height: 1.05em; }
.btn--sm { padding: .72rem 1.15rem; font-size: .85rem; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn--primary { color: #fff; background: var(--grad); box-shadow: 0 14px 26px -12px rgba(91, 61, 245, .7); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 18px 30px -12px rgba(91, 61, 245, .75); }
.btn--primary:disabled { opacity: .65; cursor: progress; transform: none; }
.btn--light { background: #fff; color: #3b2bb5; }
.btn--light:hover { transform: translateY(-1px); background: #f6f2ff; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 255, .7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: background .2s, border-color .2s; }
.header.is-scrolled { background: rgba(255, 255, 255, .9); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.logo__mark { width: 32px; height: 32px; }
.logo--light { color: #fff; }
.nav { display: flex; gap: 2rem; margin-inline: auto; }
.nav a { padding: .5rem 0; font-size: .88rem; font-weight: 500; }
.nav a:hover { color: var(--primary); }
.header__actions { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 0; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }

.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang__item { padding: .3rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--muted); }
.lang__item:hover { color: var(--primary); }
.lang__item.is-active { background: var(--grad); color: #fff; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(1.4rem, 3.5vw, 2.6rem) clamp(2rem, 4vw, 3rem); overflow-x: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 2rem; }
.badge { display: inline-flex; align-items: center; gap: .6rem; max-width: 100%; padding: .28rem .9rem .28rem .28rem; border-radius: 999px; background: #efeaff; color: #4a3bb0; font-size: .78rem; font-weight: 600; }
.badge__tag { padding: .16rem .62rem; border-radius: 999px; background: var(--grad); color: #fff; font-size: .68rem; }
.hero__title { margin: 1.3rem 0 1.2rem; font-size: clamp(2.2rem, 4.1vw, 3.4rem); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; }
.hero__lead { max-width: 30em; font-size: 1.02rem; line-height: 1.7; color: var(--ink-2); }
.hero__cta { margin-top: 1.8rem; }
.hero__or { margin: 1.5rem 0 .7rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); }

/* subscribe form (dùng ở hero và ở dải CTA) */
.subscribe { max-width: 460px; }
.subscribe__row { display: flex; gap: .5rem; padding: .35rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.subscribe__row input[type="email"] { flex: 1; min-width: 0; padding: 0 .9rem; border: 0; background: transparent; color: var(--ink); font-size: .92rem; }
.subscribe__row input[type="email"]:focus { outline: none; }
.subscribe__row:focus-within { border-color: #b9a6ff; box-shadow: 0 0 0 3px rgba(107, 75, 255, .15); }
.subscribe .btn { padding: .85rem 1.3rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.subscribe__msg { min-height: 1.3em; margin-top: .5rem; font-size: .82rem; font-weight: 600; }
.subscribe__msg[data-kind="ok"] { color: var(--ok); }
.subscribe__msg[data-kind="error"] { color: #c2410c; }
.subscribe__msg[data-kind="info"] { color: var(--ink-2); }
.subscribe__note { font-size: .75rem; color: var(--muted); }

.refcode { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.2rem; padding: .45rem .5rem .45rem .9rem; border: 1px dashed #c9bbfa; border-radius: 12px; background: rgba(255, 255, 255, .7); font-size: .8rem; }
.refcode__label { color: var(--muted); }
.refcode__value { font-weight: 800; letter-spacing: .02em; color: var(--muted); }
.refcode__value.is-set, .float__code.is-set { color: var(--primary); }
.refcode__copy { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px; background: #efe9ff; color: var(--primary); cursor: pointer; }
.refcode__copy[hidden] { display: none; }
.refcode__copy.is-copied { background: #e3f7ee; color: var(--ok); }
.refcode__copy .ic { width: 15px; height: 15px; }

/* hero visual: sân khấu cố định 600x520, thu nhỏ bằng --vs trên màn nhỏ */
.hero__visual { --vs: 1; justify-self: center; }
.vis { position: relative; width: calc(600px * var(--vs)); height: calc(520px * var(--vs)); }
.stage { position: absolute; left: 0; top: 0; width: 600px; height: 520px; transform: scale(var(--vs)); transform-origin: 0 0; }
.vis-note { margin-top: .6rem; text-align: center; font-size: .72rem; color: var(--muted); }
.glow { position: absolute; left: -40px; top: -20px; width: 680px; height: 560px; background: radial-gradient(closest-side, rgba(168, 140, 255, .32), rgba(168, 140, 255, 0)); }

.phone { position: absolute; left: 190px; top: 12px; z-index: 2; width: 250px; height: 496px; padding: 9px; border-radius: 42px; background: #0d0e24; transform: rotate(4deg); box-shadow: 0 44px 70px -28px rgba(40, 25, 130, .6), inset 0 0 0 2px #2b2c4c; }
.phone__screen { display: flex; flex-direction: column; height: 100%; padding: 14px 16px 16px; overflow: hidden; border-radius: 34px; background: linear-gradient(180deg, #f5f1ff 0%, #fff 38%); }
.phone__status { display: flex; align-items: center; justify-content: space-between; font-size: 9px; font-weight: 700; }
.phone__island { width: 62px; height: 16px; border-radius: 10px; background: #0d0e24; }
.phone__bat { width: 18px; height: 8px; border: 1.4px solid #0d0e24; border-radius: 3px; }
.phone__title { margin-top: 20px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.progress { height: 6px; margin: 12px 0 18px; border-radius: 99px; background: #ece8fb; }
.progress span { display: block; width: 50%; height: 100%; border-radius: 99px; background: var(--grad); }
.checks { display: grid; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 12.5px; font-weight: 600; }
.check__dot { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: #f1ecff; color: transparent; }
.check__dot .ic { width: 13px; height: 13px; stroke-width: 3; }
.check.is-done .check__dot { background: var(--ok); color: #fff; }
.check.is-active { border-color: #b9a6ff; box-shadow: 0 0 0 3px rgba(107, 75, 255, .1); }
.check.is-active .check__dot { background: #fff; border: 2px solid var(--primary); }
.phone__btn { margin-top: auto; display: block; padding: 13px; border-radius: 14px; background: var(--grad); color: #fff; text-align: center; font-size: 13px; font-weight: 700; box-shadow: 0 14px 22px -12px rgba(91, 61, 245, .7); }

.float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 26px 48px -22px rgba(80, 55, 200, .4); }
.float p { display: flex; flex-direction: column; line-height: 1.3; }
.float b { font-size: 12px; }
.float small { font-size: 10.5px; color: var(--muted); }
.float__icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; }
.float__icon .ic { width: 18px; height: 18px; }
.float__icon--ok { background: #e3f7ee; color: var(--ok); }
.float__icon--warn { background: #fff1e0; color: var(--warn); }
.float--a { left: 6px; top: 118px; width: 196px; }
.float--b { left: 0; top: 318px; width: 212px; align-items: flex-start; }
.float--c { left: 428px; top: 44px; width: 172px; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; }
.float__code { font-size: 17px; letter-spacing: .03em; color: var(--muted); }
.deco { position: absolute; z-index: 5; filter: drop-shadow(0 12px 14px rgba(70, 45, 220, .28)); animation: float 6s ease-in-out infinite; }
.deco--gem { left: 52px; top: 28px; width: 56px; height: 56px; color: #8f6bff; }
.deco--gem2 { left: 560px; top: 210px; width: 28px; height: 28px; color: #5d7bff; animation-delay: -3s; }
.deco--coin1 { left: 450px; top: 360px; width: 66px; height: 66px; animation-delay: -1s; }
.deco--coin2 { left: 530px; top: 296px; width: 36px; height: 36px; animation-delay: -2s; }
.deco--coin3 { left: 150px; top: 446px; width: 44px; height: 44px; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- facts ---------- */
.facts-wrap { padding-bottom: clamp(1rem, 2.5vw, 1.8rem); }
.facts { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: 1rem; padding: 1.3rem 1.7rem; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, .82); box-shadow: var(--shadow); }
.fact { display: flex; align-items: center; gap: .9rem; }
.fact__icon { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 16px; background: linear-gradient(135deg, #eee8ff, #dcd1ff); color: var(--primary); }
.fact__icon .ic { width: 24px; height: 24px; }
.fact p { display: flex; flex-direction: column; line-height: 1.3; }
.fact strong { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.fact p span { font-size: .78rem; color: var(--muted); }
.facts__note { margin-top: .8rem; text-align: center; font-size: .74rem; color: var(--muted); }

/* ---------- section heads ---------- */
.head { max-width: 40rem; margin-bottom: 2rem; }
.head--center { margin-inline: auto; text-align: center; }
.eyebrow { margin-bottom: .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.sub { margin-top: .7rem; font-size: .95rem; color: var(--ink-2); }

.grid { display: grid; gap: 1.1rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }

/* products */
.product { padding: 1.5rem 1.4rem 1.6rem; }
.product h3 { margin: 1.1rem 0 .4rem; font-size: 1.02rem; font-weight: 700; }
.product p { font-size: .86rem; line-height: 1.6; color: var(--muted); }
.tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; box-shadow: 0 12px 18px -12px currentColor; }
.tile .ic { width: 26px; height: 26px; stroke-width: 1.9; }
.tile--blue { background: linear-gradient(135deg, #e3edff, #bdd4ff); color: #3b82f6; }
.tile--orange { background: linear-gradient(135deg, #fff0e3, #ffd0a8); color: #f97316; }
.tile--purple { background: linear-gradient(135deg, #efe9ff, #d7c9ff); color: #7b57ff; }
.tile--green { background: linear-gradient(135deg, #e0f7ec, #b7ecd2); color: #12a36b; }
.tile--pink { background: linear-gradient(135deg, #ffe9f4, #ffc4de); color: #ec4899; }
.tile--yellow { background: linear-gradient(135deg, #fff6d9, #ffe08a); color: #d97706; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.8rem .6rem 1.7rem; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .86); box-shadow: var(--shadow); }
.step { position: relative; padding: 0 1.1rem; text-align: center; }
.step:not(:last-child)::after { content: "\2192"; position: absolute; right: -9px; top: 18px; font-size: 1.1rem; color: #8b86b0; }
.step__icon { position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%; background: linear-gradient(135deg, #f0eaff, #e0d5ff); color: var(--primary); }
.step__icon .ic { width: 26px; height: 26px; }
.step__icon i { position: absolute; top: -8px; left: -10px; padding: .08rem .42rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .62rem; font-style: normal; font-weight: 700; color: var(--primary); }
.step h3 { font-size: .98rem; font-weight: 700; }
.step p { margin-top: .4rem; font-size: .82rem; line-height: 1.55; color: var(--muted); }
.steps__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.6rem; font-weight: 600; color: var(--ink-2); }

/* security tips */
.tip { display: flex; gap: 1rem; padding: 1.3rem 1.3rem 1.4rem; }
.tip__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: #efe9ff; color: var(--primary); }
.tip h3 { font-size: .98rem; font-weight: 700; }
.tip p { margin-top: .3rem; font-size: .84rem; line-height: 1.6; color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; font-size: .82rem; font-weight: 700; color: var(--primary); }
.link .ic { width: 13px; height: 13px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* subscribe band */
.band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: 2rem 2.2rem; border-radius: 28px; color: #fff; background: linear-gradient(100deg, #5a3df0 0%, #7d5cff 55%, #9a78ff 100%); box-shadow: 0 30px 60px -30px rgba(91, 61, 245, .7); }
.band__copy { display: flex; align-items: center; gap: 1.2rem; }
.band__icon { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 18px; background: rgba(255, 255, 255, .2); }
.band__icon .ic { width: 28px; height: 28px; }
.band h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.band__copy p { margin-top: .4rem; max-width: 28em; font-size: .9rem; opacity: .9; }
.band__actions { display: flex; flex-direction: column; align-items: stretch; gap: .8rem; width: min(100%, 440px); }
.band .subscribe { max-width: none; }
.band .subscribe__row { border-color: transparent; }
.band .subscribe__msg, .band .subscribe__note { color: #fff; }
.band .subscribe__note { opacity: .8; }
.band .subscribe__msg[data-kind="ok"], .band .subscribe__msg[data-kind="error"], .band .subscribe__msg[data-kind="info"] { color: #fff; }

/* faq */
.faq { display: grid; gap: .8rem; }
.faq__item { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 700; font-size: .98rem; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ic { width: 20px; height: 20px; color: var(--primary); transition: transform .2s; }
.faq__item[open] summary .ic { transform: rotate(180deg); }
.faq__a { padding: 0 1.3rem 1.2rem; }
.faq__a p { font-size: .9rem; line-height: 1.7; color: var(--ink-2); }

/* notes */
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.note { display: flex; gap: 1rem; padding: 1.3rem 1.4rem; border-radius: 20px; border: 1px solid; }
.note h3 { font-size: .98rem; font-weight: 700; }
.note p { margin-top: .3rem; font-size: .84rem; line-height: 1.65; }
.note__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; }
.note--info { border-color: #dcd1ff; background: #f5f1ff; }
.note--info .note__icon { background: #e6dcff; color: var(--primary); }
.note--info p { color: var(--ink-2); }
.note--warn { border-color: #fde3c1; background: #fff8ee; }
.note--warn .note__icon { background: #ffe9cc; color: var(--warn); }
.note--warn p { color: #6b4a1d; }

/* footer */
.footer { padding: 2.4rem 0 1.5rem; background: #0e1030; color: #b9bbe0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 1.6rem; }
.footer__brand p { margin-top: .8rem; font-size: .84rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; max-width: 520px; font-size: .86rem; }
.footer__links a:hover { color: #fff; }
.footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; }
.footer .lang { background: transparent; border-color: rgba(255, 255, 255, .2); }
.footer .lang__item { color: #b9bbe0; }
.footer .lang__item.is-active { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
	.hero__visual { --vs: .88; }
}

@media (max-width: 960px) {
	.header__inner { gap: 1rem; }
	.nav-toggle { display: inline-flex; }
	.header__actions { margin-left: auto; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; gap: 0; margin: 0; padding: .5rem 1.5rem 1.2rem; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 24px 40px -24px rgba(60, 40, 140, .3); }
	.header.is-open .nav { display: flex; }
	.nav a { padding: .85rem 0; font-size: 1rem; }

	.hero__grid { grid-template-columns: 1fr; gap: 2.2rem; }
	.hero__visual { --vs: 1; }
	.hero__title { max-width: 11em; }
	.facts { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); row-gap: 1.8rem; }
	.step:nth-child(2)::after { display: none; }
	.band { grid-template-columns: 1fr; }
	.band__actions { width: 100%; }
	.notes { grid-template-columns: 1fr; }
}

@media (max-width: 680px) { .hero__visual { --vs: .86; } }
@media (max-width: 600px) { .hero__visual { --vs: .74; } }
@media (max-width: 560px) {
	.grid--3 { grid-template-columns: 1fr; }
	.facts { padding: 1.2rem; }
	.band { padding: 1.6rem 1.3rem; }
	.band__copy { align-items: flex-start; }
	.subscribe__row { flex-direction: column; padding: .5rem; }
	.subscribe__row input[type="email"] { padding: .8rem .8rem; }
	.header__actions .btn--primary { display: none; }
}
@media (max-width: 520px) {
	.hero__visual { --vs: .62; }
	.steps { grid-template-columns: 1fr; }
	.step::after { display: none !important; }
}
@media (max-width: 440px) { .hero__visual { --vs: .56; } .hero__cta .btn { width: 100%; } }
@media (max-width: 390px) { .hero__visual { --vs: .5; } }
@media (max-width: 340px) { .hero__visual { --vs: .46; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.deco { animation: none; }
	.btn { transition: none; }
}
