/* سایت معرفی «به کجا رفت؟» — رنگ‌ها همون تم اپ (KojaraftApp/src/assets/css/app.css) */

@font-face { font-family: IRANSansX; font-weight: 400; font-display: swap; src: url('fonts/IRANSansX-Regular.woff2') format('woff2'); }
@font-face { font-family: IRANSansX; font-weight: 500; font-display: swap; src: url('fonts/IRANSansX-Medium.woff2') format('woff2'); }
@font-face { font-family: IRANSansX; font-weight: 700; font-display: swap; src: url('fonts/IRANSansX-Bold.woff2') format('woff2'); }
@font-face { font-family: IRANSansX; font-weight: 800; font-display: swap; src: url('fonts/IRANSansX-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: IRANSansX; font-weight: 900; font-display: swap; src: url('fonts/IRANSansX-Black.woff2') format('woff2'); }

:root {
	--primary: #4f46e5;
	--primary-dark: #4338ca;
	--primary-soft: #e0e7ff;
	--violet: #7c3aed;
	--amber: #f59e0b;
	--coin: #fbbf24;
	--red: #e11d48;
	--green: #059669;

	--bg: #f4f5fb;
	--fg: #0f1430;
	--fg-body: #343a55;
	--muted: #6b7280;
	--card: #ffffff;
	--card-border: rgba(79, 70, 229, .10);
	--inset: #f1f2fa;
	--shadow: 0 10px 30px -18px rgba(30, 27, 75, .35);
	--shadow-lg: 0 30px 70px -30px rgba(30, 27, 75, .45);
	--header: rgba(255, 255, 255, .72);
	--grid-line: rgba(79, 70, 229, .07);
	--dark-surface: #15123a;
	--radius: 28px;
	--ease: cubic-bezier(.22, 1, .36, 1);
}

/* تیره: زغالی با رگه‌ی نیلی */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0d0f1a; --fg: #eef0ff; --fg-body: #c9cce3; --muted: #9196b4;
		--card: #161a2b; --card-border: rgba(129, 140, 248, .14); --inset: #1d2236;
		--shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);
		--header: rgba(18, 21, 36, .72); --grid-line: rgba(129, 140, 248, .07); --dark-surface: #1a1745;
		--primary-soft: #2a2c5c;
	}
}
:root[data-theme="dark"] {
	--bg: #0d0f1a; --fg: #eef0ff; --fg-body: #c9cce3; --muted: #9196b4;
	--card: #161a2b; --card-border: rgba(129, 140, 248, .14); --inset: #1d2236;
	--shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);
	--header: rgba(18, 21, 36, .72); --grid-line: rgba(129, 140, 248, .07); --dark-surface: #1a1745;
	--primary-soft: #2a2c5c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0; background: var(--bg); color: var(--fg-body);
	font-family: IRANSansX, Tahoma, sans-serif; line-height: 1.8;
	-webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--fg); margin: 0; line-height: 1.4; }
p { margin: 0; }
bdi { unicode-bidi: isolate; }

/* ── پس‌زمینه ── */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.backdrop-glow {
	position: absolute; inset: 0;
	background:
		radial-gradient(60rem 30rem at 85% -10%, rgba(124, 58, 237, .16), transparent 60%),
		radial-gradient(50rem 28rem at 10% 0%, rgba(79, 70, 229, .14), transparent 60%),
		radial-gradient(40rem 24rem at 50% 110%, rgba(245, 158, 11, .08), transparent 60%);
}
.backdrop-grid {
	position: absolute; inset: 0;
	background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}

/* ── هدر ── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 16px 16px 0; transition: padding .4s var(--ease); }
.site-header.scrolled { padding-top: 8px; }
.header-bar {
	max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 16px;
	padding: 10px 14px 10px 18px; border-radius: 20px;
	background: var(--header); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
	border: 1px solid var(--card-border); box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--fg); font-size: 17px; white-space: nowrap; }
.brand img { border-radius: 10px; }
.main-nav { display: flex; gap: 28px; margin: 0 auto; }
.main-nav a { font-size: 14.5px; font-weight: 700; color: var(--muted); position: relative; padding-bottom: 4px; transition: color .2s; }
.main-nav a::after { content: ''; position: absolute; right: 0; bottom: 0; height: 2px; width: 0; border-radius: 2px; background: linear-gradient(to left, var(--primary), var(--violet)); transition: width .3s var(--ease); }
.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
	width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--card-border); background: var(--card);
	color: var(--fg); display: grid; place-items: center; cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .i-sun { display: block; }
	:root:not([data-theme="light"]) .i-moon { display: none; }
}

/* ── دکمه‌ها ── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 48px; padding: 0 26px; border-radius: 14px; font-weight: 800; font-size: 15px;
	border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; box-shadow: 0 12px 28px -12px rgba(79, 70, 229, .7); }
.btn-ghost { background: var(--card); color: var(--primary); border-color: rgba(79, 70, 229, .35); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-outline-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }

/* ── عمومی بخش‌ها ── */
main { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 120px; }
.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; color: var(--primary); margin-bottom: 10px; }
.eyebrow.on-dark { color: #c7d2fe; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; }
.section-head .sub { margin-top: 10px; color: var(--muted); font-size: 17px; }
.grad-text { background: linear-gradient(120deg, var(--primary), var(--violet) 60%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ظاهر شدن با اسکرول */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── هیرو ── */
.hero { padding-top: 140px; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 58px); font-weight: 900; letter-spacing: -.01em; }
.lead { font-size: clamp(15px, 1.6vw, 18px); color: var(--fg-body); max-width: 640px; font-weight: 500; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.hero-copy .reveal:nth-child(2) { transition-delay: .08s; }
.hero-copy .reveal:nth-child(3) { transition-delay: .16s; }
.hero-copy .reveal:nth-child(4) { transition-delay: .24s; }

/* صحنه‌ی موشن: اندازه‌ی طراحی ثابت (دسکتاپ ۱۱۰۰×۵۲۰، موبایل ۳۶۰×۶۴۰) که با JS مقیاس می‌گیره */
.stage-wrap { margin-top: 36px; position: relative; width: 100%; height: calc(var(--h, 520px) * var(--s, 1)); transition-delay: .3s; }
.stage {
	position: absolute; top: 0; left: 50%; width: 1100px; height: 520px;
	transform: translateX(-50%) scale(var(--s, 1)); transform-origin: top center;
}
.ph-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 76px; height: 20px; border-radius: 12px; background: #1b1d2e; z-index: 3; }

.floor {
	position: absolute; left: 0; right: 0; top: 462px; height: 40px; border-radius: 50%;
	background: radial-gradient(ellipse at center, rgba(79, 70, 229, .16), transparent 70%);
}

/* صندوق پیامک */
.inbox { position: absolute; left: 950px; top: 262px; width: 110px; text-align: center; z-index: 2; }
.inbox-phone {
	position: relative; width: 110px; height: 180px; border-radius: 24px; background: linear-gradient(160deg, #312e81, #4c1d95);
	border: 6px solid #1b1d2e; box-shadow: var(--shadow-lg); display: grid; place-items: center;
}
.inbox-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 34px; height: 8px; border-radius: 6px; background: #1b1d2e; }
.inbox-ic { font-size: 38px; }
.inbox-ring { position: absolute; inset: -6px; border-radius: 26px; border: 3px solid var(--coin); opacity: 0; }
.inbox.ding .inbox-ring { animation: ring 1s var(--ease); }
.inbox.ding .inbox-phone { animation: shake .5s; }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes shake { 20% { transform: rotate(-6deg); } 40% { transform: rotate(5deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(2deg); } }
.inbox-badge {
	position: absolute; top: -10px; left: -10px; min-width: 28px; height: 28px; border-radius: 14px; padding: 0 6px;
	background: var(--red); color: #fff; font-weight: 900; font-size: 13px; display: grid; place-items: center;
	transform: scale(0); transition: transform .35s var(--ease);
}
.inbox.has .inbox-badge { transform: scale(1); }
.inbox-label { margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--muted); }

/* کارت پیامک (بیرون اومده از گوشی، توی دست، در حال پرواز) */
.sms-out, .held, .fly-card {
	background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; box-shadow: var(--shadow-lg);
	color: var(--fg); text-align: right; overflow: hidden;
}
.sms-mini { padding: 8px 10px; font-size: 12px; line-height: 1.7; }
.sms-mini .h { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 11px; color: var(--muted); }
.sms-mini .h::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.sms-mini b { display: block; color: var(--red); font-size: 14px; font-weight: 900; }
.sms-out {
	position: absolute; left: 820px; top: 258px; width: 150px; z-index: 1;
	opacity: 0; transform: translateX(110px) scale(.5); transition: opacity .15s, transform .3s var(--ease);
}
.sms-out.out { opacity: 1; transform: none; }
.sms-out.gone { transition: none; opacity: 0; }
.fly-card { position: absolute; top: 0; left: 0; width: 104px; z-index: 6; pointer-events: none; }

/* «چی بوده»ها */
.bins { position: absolute; left: 20px; top: 56px; display: flex; gap: 14px; z-index: 1; }
/* قفسه زیر جعبه‌ها */
.bins::after { content: ''; position: absolute; left: -14px; right: -14px; top: 121px; height: 10px; border-radius: 6px; background: linear-gradient(var(--card-border), rgba(79, 70, 229, .25)); box-shadow: 0 10px 20px -10px rgba(30, 27, 75, .4); z-index: -1; }
.bin { width: 100px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bin-box {
	position: relative; width: 100%; height: 118px; border: 3px solid var(--c); border-top: 0; border-radius: 6px 6px 22px 22px;
	background: var(--card); overflow: hidden; box-shadow: var(--shadow);
}
.bin-box::before { content: ''; position: absolute; left: -3px; right: -3px; top: 0; height: 8px; border-radius: 6px; background: var(--c); }
.bin-fill { position: absolute; left: 0; right: 0; bottom: 0; height: var(--f, 30%); background: var(--c); opacity: .22; transition: height .4s var(--ease); }
.bin-ic { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; }
.bin b { margin-top: 6px; color: var(--fg); font-size: 14px; font-weight: 800; }
.bin-amt { color: var(--muted); font-size: 13px; font-weight: 700; transition: color .15s; }
.bin.hit .bin-box { animation: binBounce .3s var(--ease); }
.bin.hit .bin-amt { color: var(--c); }
@keyframes binBounce { 30% { transform: scale(1.08, .92); } 60% { transform: scale(.96, 1.05); } }

/* حباب حرف و گزینه‌ها */
.bubble {
	position: absolute; top: 0; left: 0; z-index: 7; padding: 10px 18px; border-radius: 18px; white-space: nowrap;
	background: var(--card); color: var(--fg); font-weight: 900; font-size: 20px; box-shadow: var(--shadow-lg);
	border: 2px solid rgba(79, 70, 229, .25); transform: translate(-50%, 0) scale(0); transform-origin: 50% 120%;
	transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.bubble::after { content: ''; position: absolute; bottom: -9px; left: 50%; margin-left: -9px; width: 16px; height: 16px; background: var(--card); border-right: 2px solid rgba(79, 70, 229, .25); border-bottom: 2px solid rgba(79, 70, 229, .25); transform: rotate(45deg); }
.bubble.on { transform: translate(-50%, 0) scale(1); }
.answers { position: absolute; top: 0; left: 0; z-index: 7; display: flex; gap: 8px; transform: translateX(-50%); }
.answers span {
	padding: 7px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--shadow);
	color: var(--fg); font-weight: 800; font-size: 13.5px; white-space: nowrap;
	opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .15s, transform .2s var(--ease), background .125s, color .125s;
}
.answers.on span { opacity: 1; transform: none; }
.answers.on span:nth-child(2) { transition-delay: .03s; }
.answers.on span:nth-child(3) { transition-delay: .06s; }
.answers.on span:nth-child(4) { transition-delay: .09s; }
.answers span.pick { background: var(--primary); color: #fff; transform: scale(1.1); }
.tap { position: absolute; top: 0; left: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; z-index: 8; pointer-events: none; opacity: 0; border: 3px solid var(--coin); }
.tap.go { animation: tap .35s var(--ease); }
@keyframes tap { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.8); } }

/* آدمک: پاها روی زمین، مبدأ تبدیل پایین وسط */
.guy { position: absolute; top: 0; left: 0; width: 150px; height: 260px; z-index: 5; transform-origin: 75px 260px; will-change: transform; }
.guy-svg { width: 100%; height: 100%; overflow: visible; display: block; }
.guy-svg * { transform-box: view-box; }
.guy-shadow { fill: rgba(30, 27, 75, .18); }
.leg-l { transform-origin: 63px 184px; }
.leg-r { transform-origin: 87px 184px; }
.arm-l { transform-origin: 39px 122px; transition: transform .175s var(--ease); }
.arm-r { transform-origin: 111px 122px; transition: transform .175s var(--ease); }
.head { transform-origin: 75px 108px; transition: transform .15s var(--ease); }
.eyes { transform-origin: 75px 70px; animation: blink 4.2s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.brow { transition: transform .15s var(--ease); }
.mouth-o { opacity: 0; transform-origin: 75px 94px; }
.torso, .head, .arm { transition: transform .175s var(--ease); }

/* ایستاده: نفس کشیدن */
.guy .guy-svg { animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(-2px); } }
.arm-l { transform: rotate(6deg); }
.arm-r { transform: rotate(-6deg); }

/* راه رفتن */
.guy.walk .guy-svg { animation: bob .18s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-6px); } }
.guy.walk .leg-l { animation: legSwing .18s ease-in-out infinite alternate; }
.guy.walk .leg-r { animation: legSwing .18s ease-in-out infinite alternate-reverse; }
@keyframes legSwing { from { transform: rotate(22deg); } to { transform: rotate(-22deg); } }
.guy.walk:not(.carry) .arm-l { animation: armSwing .18s ease-in-out infinite alternate-reverse; }
.guy.walk:not(.carry) .arm-r { animation: armSwing .18s ease-in-out infinite alternate; }
@keyframes armSwing { from { transform: rotate(18deg); } to { transform: rotate(-18deg); } }
.guy.walk.to-left .head { transform: rotate(-6deg); }
.guy.walk.to-right .head { transform: rotate(6deg); }

/* دست بردن، حمل، نشون دادن، انداختن */
.guy.reach .arm-r { transform: rotate(-115deg); }
.guy.reach .head { transform: rotate(8deg); }
.guy.carry .arm-r { transform: rotate(-60deg); }
.guy.show .arm-r { transform: rotate(33deg); }
.guy.show .arm-l { transform: rotate(-33deg); }
.guy.show .brow { transform: translateY(-3px); }
.guy.talk .mouth { opacity: 0; }
.guy.talk .mouth-o { animation: talk .11s ease-in-out infinite alternate; }
@keyframes talk { from { opacity: 1; transform: scaleY(.4); } to { opacity: 1; transform: scaleY(1); } }
.guy.nod .head { animation: nod .25s ease-in-out 2; }
@keyframes nod { 50% { transform: rotate(0) translateY(5px); } }
.guy.throw .arm-r { transform: rotate(-150deg); transition-duration: .1s; }
.guy.happy .guy-svg { animation: hop .225s var(--ease); }
@keyframes hop { 40% { transform: translateY(-18px); } }
.guy.happy .arm-l { transform: rotate(140deg); }

/* کارت توی دست: در حالت حمل کنار دست راست، در حالت نشون دادن جلوی سینه و بزرگ‌تر */
.held { position: absolute; left: 118px; top: 112px; width: 88px; opacity: 0; transform: scale(.6) rotate(-8deg); transition: left .2s var(--ease), top .2s var(--ease), width .2s var(--ease), transform .2s var(--ease), opacity .1s; z-index: 2; }
.guy.carry .held, .guy.show .held, .guy.throw .held { opacity: 1; transform: rotate(-6deg); }
.guy.show .held { left: 18px; top: 118px; width: 114px; transform: rotate(-3deg) scale(1.05); }
.held.gone { opacity: 0 !important; transition: none; }
.held .sms-mini { font-size: 10.5px; padding: 6px 8px; }
.held .sms-mini b { font-size: 12.5px; }

/* چیدمان موبایل */
.stage.m { width: 360px; height: 640px; }
.stage.m .floor { top: 420px; }
.stage.m .inbox { left: 272px; top: 236px; width: 80px; }
.stage.m .inbox-phone { width: 80px; height: 136px; border-radius: 20px; }
.stage.m .inbox-ic { font-size: 28px; }
.stage.m .inbox-label { font-size: 11px; }
.stage.m .sms-out { left: 176px; top: 280px; width: 120px; transform: translateX(90px) scale(.5); }
.stage.m .sms-out.out { transform: none; }
.stage.m .bins { left: 6px; top: 476px; gap: 6px; }
.stage.m .bins::after { display: none; }
.stage.m .bin { width: 81px; }
.stage.m .bin-box { height: 92px; }
.stage.m .bin-ic { font-size: 26px; }
.stage.m .bin b { font-size: 12px; }
.stage.m .bin-amt { font-size: 11.5px; }
.stage.m .answers { display: grid; grid-template-columns: 1fr 1fr; width: 280px; }
.stage.m .answers span { text-align: center; }
.stage.m .bubble { font-size: 18px; }

/* نوار واقعیت‌ها */
.facts {
	list-style: none; margin: 48px 0 0; padding: 8px; display: grid; grid-template-columns: repeat(4, 1fr);
	background: var(--card); border: 1px solid var(--card-border); border-radius: 22px; box-shadow: var(--shadow);
}
.facts li { padding: 16px; text-align: center; font-size: 14.5px; color: var(--fg-body); font-weight: 500; }
.facts li + li { border-inline-start: 1px solid var(--card-border); }
.facts b { color: var(--primary); font-weight: 800; }

/* ── چطور کار می‌کنه ── */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.story-phone-wrap { position: sticky; top: 110px; height: calc(100vh - 140px); max-height: 640px; display: grid; place-items: center; }
.phone {
	position: relative; width: 280px; height: 570px; border-radius: 44px; background: var(--card);
	border: 9px solid #1b1d2e; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .04) inset; overflow: hidden;
}
.phone::before {
	content: ''; position: absolute; inset: -40% -40% auto; height: 70%; z-index: 0;
	background: radial-gradient(circle, rgba(124, 58, 237, .18), transparent 65%);
}
.screen {
	position: absolute; inset: 0; padding: 44px 18px 18px; z-index: 1;
	opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.phone[data-step="0"] .s0, .phone[data-step="1"] .s1, .phone[data-step="2"] .s2, .phone[data-step="3"] .s3 { opacity: 1; transform: none; }
.scr-title { font-weight: 800; color: var(--fg); font-size: 15px; margin-bottom: 14px; }

.s0 { background: linear-gradient(170deg, #312e81, #4c1d95 60%, #1e1b4b); color: #fff; text-align: center; }
.lock-time { font-size: 54px; font-weight: 300; margin-top: 18px; line-height: 1.2; }
.lock-date { font-size: 13px; opacity: .8; }
.notif {
	margin-top: 34px; text-align: right; background: rgba(255, 255, 255, .92); color: #0f1430; border-radius: 20px; padding: 12px 14px;
	box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
}
.phone[data-step="0"] .notif { animation: drop .7s .25s var(--ease) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-30px) scale(.95); } }
.notif-head { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #6b7280; font-weight: 700; margin-bottom: 4px; }
.notif-head img { border-radius: 5px; }
.notif-head span { margin-inline-start: auto; font-weight: 500; }
.notif b { font-size: 14px; }
.notif p { font-size: 12px; color: #374151; }
.notif-btn { display: inline-block; margin-top: 8px; padding: 4px 14px; border-radius: 10px; background: #e0e7ff; color: #4338ca; font-weight: 800; font-size: 12.5px; }

.tx { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tx li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--inset); font-size: 13px; }
.phone[data-step="1"] .tx li { animation: slideIn .5s var(--ease) both; }
.phone[data-step="1"] .tx li:nth-child(2) { animation-delay: .08s; }
.phone[data-step="1"] .tx li:nth-child(3) { animation-delay: .16s; }
.phone[data-step="1"] .tx li:nth-child(4) { animation-delay: .24s; }
.phone[data-step="1"] .tx li:nth-child(5) { animation-delay: .32s; }
.tx li.new { box-shadow: 0 0 0 2px rgba(245, 158, 11, .65); }
.tx-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; flex: none; }
.tx-ic.out { background: rgba(225, 29, 72, .12); color: var(--red); }
.tx-ic.in { background: rgba(5, 150, 105, .12); color: var(--green); }
.tx-t { flex: 1; color: var(--fg); font-weight: 700; display: flex; flex-direction: column; line-height: 1.5; }
.tx-t small { color: var(--muted); font-weight: 500; font-size: 11px; }
.tx-a { font-weight: 800; font-size: 12.5px; }
.tx-a.out { color: var(--red); }
.tx-a.in { color: var(--green); }

.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick-grid span { padding: 12px 4px; text-align: center; border-radius: 14px; background: var(--inset); font-size: 12px; font-weight: 700; color: var(--fg); }
.pick-grid span.on { background: var(--primary); color: #fff; }
.phone[data-step="2"] .pick-grid span.on { animation: pop .6s .4s var(--ease) both; }
@keyframes pop { 0% { background: var(--inset); color: var(--fg); transform: scale(1); } 50% { transform: scale(1.12); } 100% { transform: scale(1); } }
.rule { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--fg-body); }
.rule i { width: 36px; height: 20px; border-radius: 12px; background: var(--primary); position: relative; flex: none; }
.rule i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }

.donut { display: block; width: 190px; height: 190px; margin: 6px auto 0; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 16; }
.d-bg { stroke: var(--inset); }
.d-seg { stroke: var(--c); stroke-dasharray: 0 276.5; stroke-dashoffset: calc(var(--off) * -2.765); transition: stroke-dasharray 1s var(--ease); }
.phone[data-step="3"] .d-seg { stroke-dasharray: calc(var(--len) * 2.765 - 3) 276.5; }
.phone[data-step="3"] .d-seg:nth-child(3) { transition-delay: .15s; }
.phone[data-step="3"] .d-seg:nth-child(4) { transition-delay: .3s; }
.phone[data-step="3"] .d-seg:nth-child(5) { transition-delay: .45s; }
.donut-center { position: absolute; top: 152px; left: 0; right: 0; text-align: center; line-height: 1.3; }
.donut-center b { display: block; font-size: 24px; color: var(--fg); font-weight: 900; }
.donut-center small { color: var(--muted); font-size: 11px; }
.legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; color: var(--fg); font-weight: 700; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 4px; background: var(--c); }
.legend span { margin-inline-start: auto; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s var(--ease); }
.step.on { opacity: 1; }
.step-n {
	width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 18px;
	background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; transition: background .4s, color .4s;
}
.step.on .step-n { background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; }
.step h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin-bottom: 10px; }
.step p { font-size: 17px; max-width: 460px; color: var(--fg-body); }

/* ── بنتو ── */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.bento-side { display: grid; gap: 18px; }
.card {
	background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px;
	box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
	transition: border-color .3s, box-shadow .3s, opacity .8s var(--ease), transform .8s var(--ease);
}
.card:hover { border-color: rgba(79, 70, 229, .3); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 19px; font-weight: 800; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.9; }
.card-dark {
	background: linear-gradient(150deg, var(--dark-surface), #0f0c29); border-color: rgba(255, 255, 255, .06);
	color: #fff; position: relative; overflow: hidden; padding: 30px;
}
.card-dark::before { content: ''; position: absolute; width: 260px; height: 260px; left: -80px; top: -80px; background: radial-gradient(circle, rgba(124, 58, 237, .45), transparent 70%); }
.card-dark h3 { color: #fff; font-size: 26px; }
.card-dark p { color: rgba(255, 255, 255, .72); }
.card-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; position: relative; height: 100%; }
.card-copy { display: flex; flex-direction: column; gap: 10px; }
.card-row { display: flex; gap: 16px; align-items: flex-start; }
.card-row .card-copy { flex: 1; }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; gap: 8px; align-items: center; font-size: 14px; color: rgba(255, 255, 255, .85); }
.ticks li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--coin); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 3px 10px; border-radius: 8px; background: var(--inset); font-size: 12px; color: var(--fg-body); font-weight: 500; }

.mini-panel { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mp-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 13px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.limit { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 12.5px; }
.limit b { font-weight: 800; }
.limit div { grid-column: 1 / -1; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.limit i { display: block; height: 100%; width: 100%; border-radius: 6px; background: linear-gradient(to left, #818cf8, #c084fc); transform: scaleX(0); transform-origin: right; transition: transform 1.2s var(--ease); }
.in .limit i { transform: scaleX(var(--p)); }
.limit:nth-of-type(3) i { transition-delay: .1s; }
.limit:nth-of-type(4) i { transition-delay: .2s; }
.limit:nth-of-type(5) i { transition-delay: .3s; }
.limit.over b { color: #fb7185; }
.limit.over i { background: linear-gradient(to left, #fb7185, var(--red)); }
.mp-foot { margin-top: auto; text-align: center; padding: 8px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--violet)); font-size: 12.5px; font-weight: 800; }

.mini { flex: none; border-radius: 18px; background: var(--inset); padding: 12px; }
.mini.wide { height: 110px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.share-card { width: 132px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.bank-card {
	width: 108px; height: 66px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--violet));
	display: flex; align-items: flex-end; padding: 8px; color: #fff; font-size: 10px; font-weight: 700;
}
.avatars { display: flex; }
.avatars i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; color: #fff; border: 2px solid var(--card); }
.avatars i:first-child { background: var(--amber); }
.avatars i:last-child { background: var(--green); margin-inline-start: -8px; }
.in .avatars i:last-child { animation: joinIn .8s .4s var(--ease) both; }
@keyframes joinIn { from { transform: translateX(-18px); opacity: 0; } }
.debt { width: 150px; display: flex; flex-direction: column; gap: 8px; }
.d-row { display: flex; justify-content: space-between; font-size: 12px; padding: 7px 9px; border-radius: 10px; background: var(--card); color: var(--fg); font-weight: 700; }
.d-row.in b { color: var(--green); }
.d-row.out b { color: var(--red); }

.split-bar { display: flex; height: 22px; gap: 3px; }
.split-bar i { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 8px; transition: width .9s var(--ease), margin .9s var(--ease); }
.card:not(.in) .split-bar i:first-child { width: 100%; }
.card:not(.in) .split-bar i:not(:first-child) { width: 0; }
.split-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 700; }
.files { flex-direction: row !important; align-items: center; justify-content: center; }
.file { width: 62px; height: 76px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; font-size: 12px; font-weight: 800; position: relative; }
.file::before { content: ''; position: absolute; top: 12px; left: 12px; right: 12px; height: 4px; border-radius: 2px; background: var(--inset); box-shadow: 0 9px 0 var(--inset), 0 18px 0 var(--inset); }
.file.xls { color: var(--green); }
.file.pdf { color: var(--red); }
.file.img { color: var(--primary); }
.in .file { animation: fileDrop .7s var(--ease) both; }
.in .file:nth-child(2) { animation-delay: .12s; }
.in .file:nth-child(3) { animation-delay: .24s; }
@keyframes fileDrop { from { opacity: 0; transform: translateY(-20px) rotate(-6deg); } }
.notif-demo { align-items: stretch; }
.nd { background: var(--card); border-radius: 14px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow); font-size: 13px; color: var(--fg); }
.nd span { padding: 4px 12px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 12px; }
.in .nd { animation: drop .7s .2s var(--ease) both; }

/* ── حریم خصوصی ── */
.privacy { border-radius: 32px; background: linear-gradient(140deg, #1e1b4b, #312e81 55%, #4c1d95); color: #fff; overflow: hidden; position: relative; }
.privacy::after { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -160px; background: radial-gradient(circle, rgba(251, 191, 36, .25), transparent 70%); }
.privacy-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 56px; }
.privacy h2 { color: #fff; font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; margin-bottom: 14px; }
.privacy p { color: rgba(255, 255, 255, .78); font-size: 16.5px; }
.flow-diagram { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.fd-node { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 18px 16px; text-align: center; display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.fd-ic { font-size: 30px; }
.fd-node b { font-size: 15px; }
.fd-node small { color: rgba(255, 255, 255, .6); font-size: 12px; }
.fd-pipe { position: relative; height: 120px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.fd-pipe::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(to left, rgba(255, 255, 255, .5) 0 6px, transparent 6px 14px); background-size: 28px 2px; animation: pipe 1s linear infinite; }
@keyframes pipe { to { background-position: -28px 0; } }
.fd-chip { position: relative; padding: 2px 10px; border-radius: 8px; background: var(--coin); color: #1e1b4b; font-size: 11.5px; font-weight: 800; }
.privacy.in .fd-chip { animation: chipFlow 3.2s var(--ease) infinite; }
.privacy.in .fd-chip:nth-child(2) { animation-delay: .25s; }
.privacy.in .fd-chip:nth-child(3) { animation-delay: .5s; }
.privacy.in .fd-chip:nth-child(4) { animation-delay: .75s; }
@keyframes chipFlow { 0% { transform: translateX(40px); opacity: 0; } 20%, 70% { transform: none; opacity: 1; } 100% { transform: translateX(-40px); opacity: 0; } }

/* ── دانلود ── */
.final-cta {
	text-align: center; padding: 64px 24px; border-radius: 32px; color: #fff; position: relative; overflow: hidden;
	background: linear-gradient(135deg, var(--primary), var(--violet));
	display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.final-cta::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle at 50% 40%, #000, transparent 70%); }
.final-cta > * { position: relative; }
.final-logo { border-radius: 20px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.final-cta h2 { color: #fff; font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; }
.final-cta p { color: rgba(255, 255, 255, .82); font-size: 17px; }

/* ── فوتر ── */
.site-footer { margin-top: 80px; border-top: 1px solid var(--card-border); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 28px 16px 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-inline-start: auto; }
.site-footer nav a { font-size: 14px; font-weight: 700; color: var(--muted); }
.site-footer nav a:hover { color: var(--primary); }
.copy { width: 100%; color: var(--muted); font-size: 13px; }

/* ── واکنش‌گرا ── */
@media (max-width: 980px) {
	.main-nav { display: none; }
	.header-actions { margin-inline-start: auto; }
	.span-7, .span-5 { grid-column: 1 / -1; }
	.span-4 { grid-column: span 6; }
	.privacy-inner { grid-template-columns: 1fr; padding: 40px 28px; }
	.facts { grid-template-columns: 1fr 1fr; }
	.facts li:nth-child(3) { border-inline-start: 0; }
	.facts li:nth-child(n+3) { border-top: 1px solid var(--card-border); }
}
@media (max-width: 760px) {
	main { gap: 84px; }
	.hero { padding-top: 112px; }
	.br-wide { display: none; }
	.hero-ctas .btn { flex: 1 1 100%; }
	.span-4 { grid-column: 1 / -1; }
	.card-split { grid-template-columns: 1fr; }
	.card-row { flex-direction: column; }
	.card-row .mini { align-self: stretch; width: auto; }

	/* داستان روی موبایل: گوشی کوچیک بالا ثابت، متن‌ها از زیرش رد می‌شن */
	.story-grid { grid-template-columns: 1fr; gap: 0; }
	.story-phone-wrap { top: 76px; height: auto; z-index: 2; padding: 8px 0 18px; background: linear-gradient(var(--bg) 85%, transparent); }
	.phone { width: 210px; height: 428px; border-width: 7px; border-radius: 34px; }
	.screen { padding: 36px 12px 12px; transform-origin: top center; }
	.screen > * { zoom: .78; }
	.donut-center { top: 116px; }
	.step { min-height: 46vh; justify-content: flex-start; padding-top: 12px; }
	.flow-diagram { grid-template-columns: 1fr; justify-items: center; }
	.fd-pipe { height: 90px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}
