/* سکشن سوالات متداول — صفحه اصلی */

.home-faq {
	--faq-deep: #0c1224;
	--faq-base: #151d38;
	--faq-light: #1e2a52;
	--faq-accent: #a3e635;
	--faq-accent-soft: #c4b5fd;
	position: relative;
	z-index: 2;
	overflow: hidden;
	isolation: isolate;
	color: #f8fafc;
	background: linear-gradient(165deg, var(--faq-deep) 0%, var(--faq-base) 45%, var(--faq-light) 100%);
}

.home-faq::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(163, 230, 53, 0.28), transparent);
	pointer-events: none;
	z-index: 2;
}

.home-faq__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 70% 55% at 100% 15%, rgba(139, 92, 246, 0.18), transparent 55%),
		radial-gradient(ellipse 60% 45% at 0% 85%, rgba(34, 211, 238, 0.12), transparent 50%);
}

.home-faq__blobs {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.home-faq__blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.45;
}

.home-faq__blob--violet {
	width: min(28rem, 55vw);
	height: min(28rem, 55vw);
	top: -8%;
	right: -6%;
	background: rgba(139, 92, 246, 0.35);
}

.home-faq__blob--cyan {
	width: min(22rem, 45vw);
	height: min(22rem, 45vw);
	bottom: -10%;
	left: -4%;
	background: rgba(34, 211, 238, 0.22);
}

.home-faq__inner {
	position: relative;
	z-index: 3;
}

.home-faq__layout {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

@media (min-width: 1024px) {
	.home-faq__layout {
		gap: 2rem;
	}
}

.home-faq__header {
	min-width: 0;
}

.home-faq__main {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.home-faq__main {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr);
		gap: 3rem;
		align-items: center;
	}
}

.home-faq__list {
	min-width: 0;
	align-self: center;
}

.home-faq__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
	align-self: center;
}

.home-faq__lottie {
	position: relative;
	z-index: 1;
	width: min(100%, 29rem);
	max-width: 29rem;
	aspect-ratio: 1;
}

@media (min-width: 1024px) {
	.home-faq__lottie {
		width: min(100%, 24rem);
		max-width: 24rem;
	}
}

.home-faq__lottie dotlottie-wc {
	display: block;
	width: 100%;
	height: 100%;
}

.home-faq__image {
	position: relative;
	z-index: 1;
	width: min(100%, 29rem);
	height: auto;
	max-width: 29rem;
	object-fit: contain;
}

@media (min-width: 1024px) {
	.home-faq__image {
		width: min(100%, 24rem);
		max-width: 24rem;
	}
}

.home-faq__eyebrow {
	display: inline-flex;
	align-items: center;
	margin-bottom: 0.75rem;
	padding: 0.35rem 0.9rem;
	border-radius: 9999px;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--faq-accent);
	background: rgba(163, 230, 53, 0.1);
	border: 1px solid rgba(163, 230, 53, 0.22);
}

.home-faq__title {
	margin: 0 0 0.85rem;
	font-size: clamp(1.15rem, 3vw, 2rem);
	line-height: 1.25;
	color: #fff;
}

.home-faq__title-accent {
	color: var(--faq-accent-soft);
}

.home-faq__lead {
	max-width: 38rem;
	margin: 0 0 1.75rem;
	color: rgba(255, 255, 255, 0.72);
}

.home-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.home-faq__item {
	border-radius: 1.1rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(12px);
	transition:
		border-color 0.28s ease,
		background 0.28s ease,
		box-shadow 0.28s ease;
}

.home-faq__item.is-open {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(163, 230, 53, 0.28);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.home-faq__question-wrap {
	margin: 0;
}

.home-faq__question {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.1rem;
	text-align: right;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.55;
	background: transparent;
	border: 0;
	cursor: pointer;
	transition: color 0.2s ease;
}

@media (min-width: 640px) {
	.home-faq__question {
		padding: 1.15rem 1.25rem;
		font-size: 1rem;
	}
}

.home-faq__question:hover {
	color: var(--faq-accent-soft);
}

.home-faq__question-text {
	flex: 1;
	min-width: 0;
}

.home-faq__icon {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--faq-accent);
	transition:
		transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
		background 0.28s ease,
		border-color 0.28s ease;
}

.home-faq__item.is-open .home-faq__icon {
	transform: rotate(45deg);
	background: rgba(163, 230, 53, 0.12);
	border-color: rgba(163, 230, 53, 0.35);
}

.home-faq__icon-plus {
	width: 1rem;
	height: 1rem;
}

.home-faq__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-faq__item.is-open .home-faq__panel {
	grid-template-rows: 1fr;
}

.home-faq__panel-inner {
	overflow: hidden;
}

.home-faq__answer {
	margin: 0;
	padding: 0 1.1rem 1.15rem;
	font-size: 0.875rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.68);
}

@media (min-width: 640px) {
	.home-faq__answer {
		padding: 0 1.25rem 1.25rem;
		font-size: 0.925rem;
	}
}

html[data-theme="dark"] .home-faq {
	--faq-deep: #080d1a;
	--faq-base: #0f1528;
	--faq-light: #161f3a;
}

html[data-theme="dark"] .home-faq__item {
	background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .home-faq__item.is-open {
	background: rgba(255, 255, 255, 0.06);
}
