.ns-how-it-works {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	color: #08070a;
	direction: rtl;
	font-family: "Vazirmatn", sans-serif;
	isolation: isolate;
}

.ns-how-it-works,
.ns-how-it-works * {
	box-sizing: border-box;
}

.ns-how-it-works__heading {
	margin: 0 0 clamp(12px, 2vw, 24px);
	color: #08070a;
	font-family: "Vazirmatn", sans-serif;
	font-size: clamp(20px, 2vw, 30px);
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
}

.ns-how-it-works__stage {
	position: relative;
	width: 100%;
	max-width: 1160px;
	margin-inline: auto;
	padding: clamp(38px, 5vw, 66px) clamp(10px, 2.4vw, 28px);
	overflow: clip;
	isolation: isolate;
}

.ns-how-it-works__glow {
	display: none;
}

.ns-how-it-works__line {
	position: absolute;
	z-index: 0;
	top: 50%;
	right: 6%;
	left: 6%;
	display: block;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(50, 0, 80, .7) 12%, rgba(0, 0, 0, .84) 50%, rgba(50, 0, 80, .7) 88%, transparent);
	pointer-events: none;
	transform: translateY(-50%);
}

.ns-how-it-works__cards {
	position: relative;
	z-index: 1;
	display: grid;
	width: 100%;
	grid-template-columns: minmax(0, .68fr) minmax(0, 1fr) minmax(0, .68fr);
	align-items: stretch;
	gap: clamp(14px, 2.2vw, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
	direction: rtl;
}

.ns-how-it-works__card {
	position: relative;
	z-index: 1;
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 21px;
	padding: 12px clamp(12px, 1.8vw, 24px);
	border-radius: 40px;
	box-shadow: 0 25px 34.3px -16px rgba(0, 0, 0, .25);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	text-align: center;
}

.ns-how-it-works__card--light {
	background: rgba(255, 255, 255, .9);
	color: #08070a;
}

.ns-how-it-works__card--featured {
	background: linear-gradient(215.09deg, #000000 12.44%, #3E0E57 95%);
	color: #fff;
}

.ns-how-it-works__icon {
	display: block;
	width: 78px;
	height: 78px;
	flex: 0 0 auto;
	object-fit: contain;
}

.ns-how-it-works__card--light:last-child .ns-how-it-works__icon {
	width: 79px;
	height: 79px;
}

.ns-how-it-works__logo {
	display: grid;
	width: 91px;
	height: 91px;
	flex: 0 0 91px;
	place-items: center;
	overflow: hidden;
	border-radius: 50%;
}

.ns-how-it-works__logo-svg {
	display: block;
	width: 68px;
	height: 68px;
	overflow: visible;
}

.ns-how-it-works__logo-image {
	display: block;
	width: 68px;
	height: 68px;
	object-fit: contain;
}

.ns-how-it-works__logo-blob {
	transform-box: fill-box;
	transform-origin: center;
}

.ns-how-it-works__logo-blob--one {
	animation: ns-how-it-works-drift-one 17s ease-in-out infinite alternate;
}

.ns-how-it-works__logo-blob--two {
	animation: ns-how-it-works-drift-two 19s ease-in-out infinite alternate;
}

.ns-how-it-works__logo-blob--three {
	animation: ns-how-it-works-drift-three 21s ease-in-out infinite alternate;
}

.ns-how-it-works__logo-blob--four {
	animation: ns-how-it-works-drift-four 18s ease-in-out infinite alternate;
}

@keyframes ns-how-it-works-drift-one {
	to { transform: translate(12px, 9px) rotate(16deg); }
}

@keyframes ns-how-it-works-drift-two {
	to { transform: translate(-10px, 13px) rotate(-14deg); }
}

@keyframes ns-how-it-works-drift-three {
	to { transform: translate(-14px, -10px) rotate(11deg); }
}

@keyframes ns-how-it-works-drift-four {
	to { transform: translate(11px, -12px) rotate(-12deg); }
}

.ns-how-it-works__text {
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.ns-how-it-works__card--light .ns-how-it-works__text {
	max-width: 203px;
}

.ns-how-it-works__card--featured .ns-how-it-works__text {
	max-width: 347px;
}

.ns-how-it-works__title {
	margin: 0;
	color: inherit;
	font-family: "Vazirmatn", sans-serif;
	font-size: clamp(21px, 2.15vw, 32px);
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: 0;
	text-align: center;
}

.ns-how-it-works__card--light .ns-how-it-works__title {
	color: #4B30FF;
}

.ns-how-it-works__card--featured .ns-how-it-works__title {
	color: #fff;
	line-height: 1.1;
}

.ns-how-it-works__subtitle {
	margin: 0;
	color: rgba(0, 0, 0, .54);
	font-family: "Vazirmatn", sans-serif;
	font-size: clamp(15px, 1.38vw, 20px);
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0;
	text-align: center;
}

.ns-how-it-works__card--featured .ns-how-it-works__subtitle {
	color: rgba(255, 255, 255, .54);
	font-size: clamp(15px, 1.38vw, 20px);
	line-height: 1.25;
}

@media (max-width: 900px) {
	.ns-how-it-works__stage {
		padding-inline: 8px;
	}

	.ns-how-it-works__cards {
		gap: 14px;
	}

	.ns-how-it-works__card {
		padding-inline: 12px;
	}

	.ns-how-it-works__title {
		font-size: clamp(20px, 2.65vw, 23px);
	}

	.ns-how-it-works__subtitle,
	.ns-how-it-works__card--featured .ns-how-it-works__subtitle {
		font-size: clamp(14px, 1.9vw, 16px);
	}
}

@media (max-width: 640px) {
	.ns-how-it-works__heading {
		margin-bottom: 4px;
	}

	.ns-how-it-works__stage {
		max-width: none;
		padding: 28px 16px 36px;
	}

	.ns-how-it-works__cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.ns-how-it-works__line {
		top: 7%;
		right: 50%;
		bottom: 7%;
		left: auto;
		width: 1px;
		height: auto;
		background: linear-gradient(180deg, transparent, rgba(50, 0, 80, .65) 12%, rgba(0, 0, 0, .75) 50%, rgba(50, 0, 80, .65) 88%, transparent);
		transform: translateX(50%);
	}

	.ns-how-it-works__card {
		width: 100%;
		min-height: 0;
		padding-inline: 16px;
	}

	.ns-how-it-works__title {
		font-size: 24px;
		line-height: 1.35;
	}

	.ns-how-it-works__card--featured .ns-how-it-works__title {
		font-size: 25px;
		line-height: 1.35;
	}

	.ns-how-it-works__subtitle,
	.ns-how-it-works__card--featured .ns-how-it-works__subtitle {
		font-size: 16px;
		line-height: 1.5;
	}
}

@media (max-width: 390px) {
	.ns-how-it-works__stage {
		padding-inline: 8px;
	}

	.ns-how-it-works__card {
		padding-inline: 14px;
	}

	.ns-how-it-works__title,
	.ns-how-it-works__card--featured .ns-how-it-works__title {
		font-size: 22px;
	}

	.ns-how-it-works__subtitle,
	.ns-how-it-works__card--featured .ns-how-it-works__subtitle {
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ns-how-it-works__logo-blob {
		animation: none;
	}
}
