/* FAQ section */

.rf-faq {
	position: relative;
	overflow: hidden;
	padding: clamp(76px, 8vw, 120px) 20px;
	color: #fff;
	background:
		radial-gradient(circle at 12% 15%, rgba(168, 85, 247, 0.22), transparent 34%),
		radial-gradient(circle at 88% 22%, rgba(37, 211, 102, 0.09), transparent 28%),
		linear-gradient(180deg, #10001d 0%, #080011 100%);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rf-faq *,
.rf-faq *::before,
.rf-faq *::after {
	box-sizing: border-box;
}

.rf-faq-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
	background-size: 34px 34px;
	opacity: 0.42;
	mask-image: radial-gradient(circle at 50% 45%, black, transparent 76%);
}

.rf-faq-wrap {
	position: relative;
	z-index: 2;
	width: min(1180px, 100%);
	margin: 0 auto;
}

.rf-faq-head {
	max-width: 820px;
	margin-bottom: 34px;
}

.rf-faq-head > .rf-faq-kicker,
.rf-faq-head > h2,
.rf-faq-head > p {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.rf-faq.is-in-view .rf-faq-head > .rf-faq-kicker {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.04s;
}

.rf-faq.is-in-view .rf-faq-head > h2 {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.12s;
}

.rf-faq.is-in-view .rf-faq-head > p {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.2s;
}

.rf-faq-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	margin-bottom: 16px;
	border-radius: 999px;
	color: #d8b4fe;
	background: rgba(168, 85, 247, 0.14);
	border: 1px solid rgba(216, 180, 254, 0.18);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.08em;
}

.rf-faq-kicker i {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #25d366;
	box-shadow: 0 0 16px rgba(37, 211, 102, 0.9);
	flex-shrink: 0;
}

.rf-faq-head h2 {
	margin: 0;
	font-size: clamp(2.125rem, 5.4vw, 4.5rem);
	line-height: 0.95;
	letter-spacing: -0.065em;
}

.rf-faq-head p {
	max-width: 720px;
	margin: 16px 0 0;
	color: rgba(255, 255, 255, 0.66);
	font-size: 16px;
	line-height: 1.65;
}

.rf-faq-grid {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 18px;
	align-items: start;
}

.rf-faq-left,
.rf-faq-item {
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.rf-faq-left {
	position: sticky;
	top: 24px;
	padding: 24px;
	border-radius: 32px;
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.rf-faq.is-in-view .rf-faq-left {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.26s;
}

.rf-faq-left h3 {
	margin: 0;
	font-size: clamp(1.625rem, 3vw, 2.375rem);
	line-height: 1;
	letter-spacing: -0.055em;
}

.rf-faq-left p {
	margin: 14px 0 0;
	color: rgba(255, 255, 255, 0.62);
	font-size: 14px;
	line-height: 1.6;
}

.rf-faq-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin-top: 20px;
	padding: 0 18px;
	border-radius: 999px;
	color: #fff;
	text-decoration: none;
	background: linear-gradient(135deg, rgba(168, 85, 247, 0.86), rgba(37, 211, 102, 0.42));
	font-size: 13px;
	font-weight: 900;
	box-shadow: 0 18px 42px rgba(168, 85, 247, 0.22);
	transition: 0.28s ease;
}

.rf-faq-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 24px 52px rgba(168, 85, 247, 0.32);
}

.rf-faq-mini {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
}

.rf-faq-mini strong {
	flex-basis: 100%;
	margin-bottom: 2px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.56);
}

.rf-faq-mini span {
	padding: 8px 10px;
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.74);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 11px;
	font-weight: 850;
}

.rf-faq-list {
	display: grid;
	gap: 10px;
}

.rf-faq-item {
	overflow: hidden;
	border-radius: 24px;
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 0.65s ease,
		transform 0.65s cubic-bezier(0.2, 0.9, 0.2, 1),
		border-color 0.3s ease,
		background 0.3s ease;
}

.rf-faq.is-in-view .rf-faq-item {
	opacity: 1;
	transform: translateY(0);
}

.rf-faq.is-in-view .rf-faq-item:nth-child(1) { transition-delay: 0.3s; }
.rf-faq.is-in-view .rf-faq-item:nth-child(2) { transition-delay: 0.34s; }
.rf-faq.is-in-view .rf-faq-item:nth-child(3) { transition-delay: 0.38s; }
.rf-faq.is-in-view .rf-faq-item:nth-child(4) { transition-delay: 0.42s; }
.rf-faq.is-in-view .rf-faq-item:nth-child(5) { transition-delay: 0.46s; }
.rf-faq.is-in-view .rf-faq-item:nth-child(6) { transition-delay: 0.5s; }
.rf-faq.is-in-view .rf-faq-item:nth-child(7) { transition-delay: 0.54s; }
.rf-faq.is-in-view .rf-faq-item:nth-child(8) { transition-delay: 0.58s; }
.rf-faq.is-in-view .rf-faq-item:nth-child(9) { transition-delay: 0.62s; }
.rf-faq.is-in-view .rf-faq-item:nth-child(10) { transition-delay: 0.66s; }

.rf-faq-item.active {
	border-color: rgba(37, 211, 102, 0.2);
	background:
		radial-gradient(circle at 95% 0%, rgba(37, 211, 102, 0.08), transparent 34%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
}

.rf-faq-item button {
	appearance: none;
	border: 0;
	cursor: pointer;
	width: 100%;
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: center;
	padding: 18px;
	color: #fff;
	background: transparent;
	text-align: left;
	font: inherit;
}

.rf-faq-item button span {
	font-size: 15px;
	font-weight: 900;
	line-height: 1.25;
}

.rf-faq-item button i {
	position: relative;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.09);
	transition: 0.3s ease;
}

.rf-faq-item button i::before,
.rf-faq-item button i::after {
	content: "";
	position: absolute;
	inset: 50% auto auto 50%;
	width: 12px;
	height: 2px;
	border-radius: 999px;
	background: #d8b4fe;
	transform: translate(-50%, -50%);
	transition: 0.3s ease;
}

.rf-faq-item button i::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.rf-faq-item.active button i {
	background: rgba(37, 211, 102, 0.13);
	border-color: rgba(37, 211, 102, 0.18);
}

.rf-faq-item.active button i::before,
.rf-faq-item.active button i::after {
	background: #86efac;
}

.rf-faq-item.active button i::after {
	transform: translate(-50%, -50%) rotate(0deg);
	opacity: 0;
}

.rf-faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.42s ease;
}

.rf-faq-item.active .rf-faq-answer {
	max-height: 220px;
}

.rf-faq-answer p {
	margin: 0;
	padding: 0 18px 18px;
	color: rgba(255, 255, 255, 0.62);
	font-size: 13px;
	line-height: 1.65;
}

@media (max-width: 920px) {
	.rf-faq-grid {
		grid-template-columns: 1fr;
	}

	.rf-faq-left {
		position: relative;
		top: auto;
	}
}

@media (max-width: 620px) {
	.rf-faq {
		padding: 58px 16px;
	}

	.rf-faq-left,
	.rf-faq-item {
		border-radius: 24px;
	}

	.rf-faq-left {
		padding: 18px;
	}

	.rf-faq-item button {
		padding: 16px;
	}

	.rf-faq-answer p {
		padding: 0 16px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rf-faq *,
	.rf-faq *::before,
	.rf-faq *::after {
		animation: none !important;
		transition: none !important;
	}

	.rf-faq-head > .rf-faq-kicker,
	.rf-faq-head > h2,
	.rf-faq-head > p,
	.rf-faq-left,
	.rf-faq-item {
		opacity: 1;
		transform: none;
	}

	.rf-faq-item.active .rf-faq-answer {
		max-height: none;
	}
}
