/* ── Homepage Hub: یک لینک برای همه‌جا ── */

.home-hub {
	--hub-bg: #04344c;
	--hub-box: #b0edf9;
	--hub-accent: #b0edf9;
	--hub-accent-deep: #04344c;
	--hub-accent-rgb: 176, 237, 249;
	--hub-ink: #b0edf9;
	--hub-muted: rgba(176, 237, 249, 0.78);
	--hub-card: #b0edf9;
	--hub-card-elevated: #b0edf9;
	--hub-line: rgba(4, 52, 76, 0.12);
	--hub-soft: rgba(176, 237, 249, 0.18);
	--hub-store: #b0edf9;
	--hub-store-ink: #04344c;
	--hub-store-muted: rgba(4, 52, 76, 0.68);
	--hub-store-line: rgba(4, 52, 76, 0.12);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--hub-bg);
	color: var(--hub-ink);
}

html[data-theme="dark"] .home-hub {
	--hub-bg: #04344c;
	--hub-box: #b0edf9;
	--hub-accent: #b0edf9;
	--hub-accent-deep: #04344c;
	--hub-accent-rgb: 176, 237, 249;
	--hub-ink: #b0edf9;
	--hub-muted: rgba(176, 237, 249, 0.78);
	--hub-card: #b0edf9;
	--hub-card-elevated: #b0edf9;
	--hub-line: rgba(4, 52, 76, 0.12);
	--hub-soft: rgba(176, 237, 249, 0.18);
	--hub-store: #b0edf9;
	--hub-store-ink: #04344c;
	--hub-store-muted: rgba(4, 52, 76, 0.68);
	--hub-store-line: rgba(4, 52, 76, 0.12);
}

.home-hub__inner {
	position: relative;
	z-index: 1;
}

.home-hub__header {
	max-width: 44rem;
	margin: 0 auto 2rem;
}

@media (min-width: 768px) {
	.home-hub__header {
		margin-bottom: 2.5rem;
	}
}

.home-hub__title {
	margin: 0;
	font-family: var(--font-heading, Dana, Vazir, sans-serif);
	font-size: clamp(0.95rem, 2.5vw, 1.35rem);
	font-weight: 800;
	line-height: 1.55;
	letter-spacing: -0.01em;
	color: var(--hub-ink);
}

.home-hub__title-accent {
	color: var(--hub-accent);
}

html[data-theme="dark"] .home-hub__title-accent {
	color: var(--hub-accent);
}

.home-hub__tagline {
	margin: 0.75rem auto 0;
	font-family: var(--font-heading, Dana, Vazir, sans-serif);
	font-size: clamp(1rem, 2.9vw, 1.45rem);
	font-weight: 900;
	line-height: 1.5;
	color: var(--hub-box);
}

html[data-theme="dark"] .home-hub__tagline {
	color: var(--hub-box);
}

@media (max-width: 639px) {
	.home-hub__title {
		font-size: 0.88rem;
		line-height: 1.5;
	}

	.home-hub__tagline {
		font-size: 0.95rem;
		line-height: 1.45;
		margin-top: 0.55rem;
	}
}

.home-hub__highlights {
	list-style: none;
	margin: 1.15rem auto 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.55rem;
	width: 100%;
	max-width: 34rem;
	box-sizing: border-box;
}

.home-hub__highlight {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
	max-width: 100%;
	margin-inline: 0;
	padding: 0.7rem 0.85rem;
	border-radius: 0.95rem;
	background: #ffffff;
	border: 1px solid rgba(4, 52, 76, 0.08);
	box-shadow: none;
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1.65;
	color: var(--hub-bg);
	text-align: right;
	box-sizing: border-box;
	transform: none;
	transition: transform 0.3s ease;
}

.home-hub__highlight > span:last-child {
	flex: 1 1 auto;
	min-width: 0;
}

.home-hub__highlight:hover {
	transform: translateY(-2px);
	background: #ffffff;
	border-color: rgba(4, 52, 76, 0.12);
}

@media (max-width: 639px) {
	.home-hub__highlights {
		max-width: 100%;
		padding-inline: 0;
	}

	.home-hub__highlight {
		width: 100%;
		transform: none !important;
	}
}

.home-hub__highlight-icon {
	display: grid;
	place-items: center;
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 0.6rem;
	flex-shrink: 0;
	background: var(--hub-bg);
	color: var(--hub-box);
	box-shadow: none;
}

html[data-theme="dark"] .home-hub__highlight-icon {
	color: var(--hub-box);
	background: var(--hub-bg);
}

.home-hub__lead {
	margin: 1rem auto 0;
	max-width: 34rem;
	font-size: 0.88rem;
	line-height: 1.85;
	color: #ffffff;
}

html[data-theme="dark"] .home-hub__lead {
	color: #ffffff;
}

/* Stage */
.home-hub__stage {
	display: grid;
	gap: 1.15rem;
	align-items: stretch;
}

@media (min-width: 1024px) {
	.home-hub__stage {
		grid-template-columns: minmax(10rem, 0.85fr) minmax(0, 1.5fr) minmax(10rem, 0.9fr);
		gap: 1.35rem;
		align-items: center;
	}
}

/* موبایل: باکس پیش‌نمایش فروشگاه میترا مخفی */
@media (max-width: 1023px) {
	.home-hub__store {
		display: none !important;
	}

	.home-hub__stage {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

.home-hub__socials,
.home-hub__qr {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.home-hub__socials-label,
.home-hub__qr-label {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--hub-muted);
}

html[data-theme="dark"] .home-hub__socials-label {
	color: var(--hub-muted);
}

html[data-theme="dark"] .home-hub__store-head strong,
html[data-theme="dark"] .home-hub__product-name,
html[data-theme="dark"] .home-hub__qr-title {
	color: var(--hub-store-ink);
}

html[data-theme="dark"] .home-hub__benefit-title {
	color: var(--hub-bg);
}

html[data-theme="dark"] .home-hub__benefit-desc {
	color: rgba(4, 52, 76, 0.68);
}

html[data-theme="dark"] .home-hub__store-head span,
html[data-theme="dark"] .home-hub__product-desc,
html[data-theme="dark"] .home-hub__qr-sub,
html[data-theme="dark"] .home-hub__qr-meta,
html[data-theme="dark"] .home-hub__store-chrome em {
	color: var(--hub-store-muted);
}

.home-hub__qr-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.home-hub__social-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.55rem;
	width: 100%;
}

@media (min-width: 480px) and (max-width: 1023px) {
	.home-hub__social-list {
		grid-template-columns: 1fr 1fr;
	}
}

.home-hub__social {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
	min-height: 3.1rem;
	padding: 0.65rem 0.85rem;
	border-radius: 1rem;
	background: #ffffff;
	border: 1px solid rgba(4, 52, 76, 0.08);
	color: var(--hub-bg);
	box-shadow: none;
	overflow: hidden;
	/* بدون transition روی transform — تداخل با GSAP باعث گیر می‌شود */
	transition: border-color 0.25s ease, background-color 0.25s ease;
	backface-visibility: hidden;
}

.home-hub__social.is-motion-ready:hover {
	transform: translate3d(0, -2px, 0);
}

.home-hub__social-icon {
	display: grid;
	place-items: center;
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 0.7rem;
	background: var(--hub-bg);
	color: var(--hub-box);
	flex-shrink: 0;
}

.home-hub__social-icon .home-hub__icon,
.home-hub__social-icon svg {
	width: 1.15rem;
	height: 1.15rem;
	display: block;
	color: inherit;
	fill: none;
	stroke: currentColor;
}

.home-hub__social-icon .home-hub__icon--bale {
	width: 1.15rem;
	height: 1.15rem;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.home-hub__social-name {
	flex: 1;
	min-width: 0;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--hub-bg);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.home-hub__social-line {
	position: absolute;
	inset-inline-end: 0;
	top: calc(50% - 1px);
	width: 1.1rem;
	height: 2px;
	background: var(--hub-bg);
	opacity: 0.35;
	transform: scaleX(0);
	transform-origin: right center;
	pointer-events: none;
}

html[dir="rtl"] .home-hub__social-line {
	transform-origin: left center;
}

.home-hub__link-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	align-self: stretch;
	width: 100%;
	min-height: 2.6rem;
	padding: 0.55rem 0.85rem;
	border-radius: 9999px;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--hub-bg);
	background: var(--hub-box);
	border: 1px solid transparent;
	box-shadow: none;
	transition: transform 0.25s ease;
}

.home-hub__link-chip:hover {
	transform: translateY(-2px);
	box-shadow: none;
}

.home-hub__link-chip .home-hub__icon {
	color: var(--hub-bg);
	flex-shrink: 0;
}

html[data-theme="dark"] .home-hub__social {
	background: #ffffff;
	border-color: rgba(4, 52, 76, 0.08);
	color: var(--hub-bg);
}

html[data-theme="dark"] .home-hub__link-chip {
	background: var(--hub-box);
	border-color: transparent;
	color: var(--hub-bg);
}

html[data-theme="dark"] .home-hub__social-name {
	color: var(--hub-bg);
}

html[data-theme="dark"] .home-hub__social-icon {
	background: var(--hub-bg);
	color: var(--hub-box);
}

html[data-theme="dark"] .home-hub__link-chip .home-hub__icon {
	color: var(--hub-bg);
}

/* Store mock */
.home-hub__store {
	border-radius: 1.35rem;
	background: var(--hub-box);
	color: var(--hub-store-ink);
	border: 1px solid transparent;
	box-shadow: none;
	overflow: hidden;
}

html[data-theme="dark"] .home-hub__store {
	box-shadow: none;
}

.home-hub__store-chrome {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.7rem 0.9rem;
	background: transparent;
	border-bottom: 1px solid var(--hub-store-line);
}

.home-hub__store-chrome span {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: #cbd5e1;
}

.home-hub__store-chrome span:nth-child(1) { background: #fb7185; }
.home-hub__store-chrome span:nth-child(2) { background: #fbbf24; }
.home-hub__store-chrome span:nth-child(3) { background: #34d399; }

.home-hub__store-chrome em {
	margin-inline-start: auto;
	font-style: normal;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--hub-store-muted);
	padding: 0.2rem 0.55rem;
	border-radius: 9999px;
	background: rgba(15, 23, 42, 0.04);
}

html[data-theme="dark"] .home-hub__store-chrome em {
	background: rgba(148, 163, 184, 0.12);
	color: var(--hub-store-muted);
}

.home-hub__store-body {
	padding: 0.95rem;
}

.home-hub__store-head {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin-bottom: 0.75rem;
}

.home-hub__store-head strong {
	font-size: 1rem;
	font-weight: 800;
	color: var(--hub-store-ink);
}

.home-hub__store-head span {
	font-size: 0.75rem;
	color: var(--hub-store-muted);
}

.home-hub__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.85rem;
}

.home-hub__cat {
	padding: 0.35rem 0.7rem;
	border-radius: 9999px;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--hub-store-muted);
	background: rgba(15, 23, 42, 0.04);
	border: 1px solid transparent;
}

html[data-theme="dark"] .home-hub__cat {
	background: rgba(255, 255, 255, 0.06);
	color: var(--hub-store-muted);
}

.home-hub__cat.is-active {
	color: var(--hub-box);
	background: var(--hub-bg);
	border-color: transparent;
}

html[data-theme="dark"] .home-hub__cat.is-active {
	color: var(--hub-box);
	background: var(--hub-bg);
}

html[data-theme="dark"] .home-hub__product-price {
	color: var(--hub-bg);
}

.home-hub__products {
	display: grid;
	gap: 0.65rem;
	align-items: stretch;
}

@media (min-width: 480px) {
	.home-hub__products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.home-hub__product {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	align-self: stretch;
	border-radius: 1rem;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--hub-store-line);
	color: var(--hub-store-ink);
	transform: none;
	transition: box-shadow 0.25s ease;
}

html[data-theme="dark"] .home-hub__product {
	background: #fff;
	border-color: var(--hub-store-line);
	color: var(--hub-store-ink);
}

.home-hub__product:hover {
	transform: none;
	box-shadow: 0 8px 20px rgba(4, 52, 76, 0.1);
}

.home-hub__product-media {
	display: grid;
	place-items: center;
	height: 5.5rem;
	color: var(--hub-box);
}

.home-hub__product--a .home-hub__product-media,
.home-hub__product--b .home-hub__product-media,
.home-hub__product--c .home-hub__product-media {
	background: var(--hub-bg);
}

.home-hub__product-body {
	padding: 0.65rem 0.7rem 0.75rem;
}

.home-hub__product-name {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.4;
	color: var(--hub-store-ink);
}

.home-hub__product-desc {
	margin: 0.2rem 0 0;
	font-size: 0.68rem;
	color: var(--hub-store-muted);
}

.home-hub__product-price {
	margin: 0.45rem 0 0;
	font-size: 0.82rem;
	font-weight: 800;
	color: var(--hub-bg);
}

.home-hub__product-price small {
	font-size: 0.65rem;
	font-weight: 600;
	color: var(--hub-store-muted);
}

/* QR */
.home-hub__qr-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.9rem;
	padding: 1.15rem 1rem 1.2rem;
	border-radius: 1.35rem;
	background: var(--hub-box);
	border: 1px solid transparent;
	box-shadow: none;
	text-align: center;
	transition: transform 0.3s ease;
}

.home-hub__qr-card:hover {
	transform: translateY(-3px);
	border-color: transparent;
}

.home-hub__qr-top {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.45rem;
}

.home-hub__qr-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.28rem 0.65rem;
	border-radius: 9999px;
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--hub-box);
	background: var(--hub-bg);
	border: 1px solid transparent;
}

html[data-theme="dark"] .home-hub__qr-badge {
	color: var(--hub-box);
}

.home-hub__qr-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	color: var(--hub-store-ink);
}

.home-hub__qr-sub {
	margin: 0;
	max-width: 14rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.7;
	color: var(--hub-store-muted);
}

.home-hub__qr-frame {
	position: relative;
	width: min(100%, 10.25rem);
	aspect-ratio: 1;
	padding: 0.8rem;
	border-radius: 1.1rem;
	background: #fff;
	border: 1px solid var(--hub-store-line);
	box-shadow: none;
	overflow: hidden;
}

html[data-theme="dark"] .home-hub__qr-frame {
	background: #fff;
}

.home-hub__qr-svg {
	width: 100%;
	height: 100%;
	display: block;
	fill: #04344c;
}

.home-hub__qr-scan {
	position: absolute;
	left: 10%;
	right: 10%;
	height: 2px;
	top: 18%;
	border-radius: 9999px;
	background: #04344c;
	opacity: 0.55;
	box-shadow: none;
	animation: home-hub-qr-scan 2.4s ease-in-out infinite;
	pointer-events: none;
}

@keyframes home-hub-qr-scan {
	0%, 100% { top: 16%; opacity: 0.35; }
	50% { top: 78%; opacity: 1; }
}

.home-hub__qr-meta {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--hub-store-muted);
}

.home-hub__qr-meta em {
	font-style: normal;
	font-weight: 600;
	opacity: 0.9;
}

/* Benefits */
.home-hub__benefits {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	margin-top: 1.75rem;
	align-items: stretch;
}

@media (min-width: 640px) {
	.home-hub__benefits {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.home-hub__benefits {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		margin-top: 2.25rem;
		gap: 1rem;
	}
}

.home-hub__benefit {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
	padding: 1.1rem 1rem 1.2rem;
	border-radius: 1.2rem;
	background: #ffffff;
	border: 1px solid rgba(4, 52, 76, 0.08);
	box-shadow: none;
	transform: none;
	transition: transform 0.3s ease;
	color: var(--hub-bg);
}

.home-hub__benefit:hover {
	transform: translateY(-4px);
	background: #ffffff;
	border-color: rgba(4, 52, 76, 0.12);
	box-shadow: none;
}

.home-hub__benefit-icon {
	display: grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	margin-bottom: 0.85rem;
	border-radius: 0.85rem;
	background: var(--hub-bg);
	color: #ffffff;
	box-shadow: none;
}

.home-hub__benefit-title {
	margin: 0 0 0.45rem;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.4;
	color: var(--hub-bg);
}

.home-hub__benefit-desc {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.75;
	color: rgba(4, 52, 76, 0.68);
}

.home-hub__icon {
	width: 1.2rem;
	height: 1.2rem;
	display: block;
}

.home-hub__icon--sm {
	width: 1rem;
	height: 1rem;
}

.home-hub__icon--media {
	width: 1.75rem;
	height: 1.75rem;
	opacity: 0.9;
}

/* Hero scroll indicator */
.home-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 8;
	transform: translateX(-50%);
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.65rem 1.15rem;
	border: 0;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.32);
	color: #fff;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
	transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.home-hero__scroll:hover {
	background: rgba(255, 255, 255, 0.24);
	transform: translateX(-50%) translateY(-2px);
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
}

.home-hero__scroll-icon {
	width: 1.15rem;
	height: 1.15rem;
	display: block;
	flex-shrink: 0;
	animation: home-hero-scroll-bounce 1.6s ease-in-out infinite;
}

.home-hero__scroll-text {
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1;
	white-space: nowrap;
	opacity: 0.95;
}

@keyframes home-hero-scroll-bounce {
	0%, 100% { transform: translateY(0); opacity: 0.85; }
	50% { transform: translateY(5px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.home-hero__scroll-icon,
	.home-hub__qr-scan {
		animation: none;
	}

	.home-hub__benefit,
	.home-hub__product,
	.home-hub__highlight,
	.home-hub__social,
	.home-hub__link-chip,
	.home-hub__qr-card {
		transition: none;
	}
}
