@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
	--bg: #d9c4de;
	--surface: #ffffff;
	--tint-veil: rgba(243, 238, 255, 0.82);
	--ink: #171233;
	--ink-soft: #514b72;
	--primary: #5b3df5;
	--accent: #ff4d8f;
	--grad: linear-gradient(135deg, #5b3df5 0%, #ff4d8f 100%);
	--line: rgba(91, 61, 245, 0.12);
	--shadow: 0 2.4rem 6rem rgba(38, 20, 110, 0.1);
	--shadow-btn: 0 1.4rem 3.2rem rgba(91, 61, 245, 0.28);
	--radius: 2.4rem;
	--font-head: 'Space Grotesk', sans-serif;
	--font-body: 'Inter', sans-serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 62.5%;
	scroll-behavior: smooth;
	background: var(--bg);
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: transparent;
	font-family: var(--font-body);
	font-size: 1.7rem;
	font-weight: 400;
	line-height: 1.6;
	color: var(--ink-soft);
	overflow-x: hidden;
}

main {
	flex: 1 0 auto;
}

body.fixed {
	overflow: hidden;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	background: url('../img/page-bg.webp') center / cover no-repeat;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	list-style: none;
}

h1,
h2,
h3 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.1;
	color: var(--ink);
}

.container {
	width: 100%;
	max-width: 132rem;
	margin: 0 auto;
	padding: 0 4rem;
}

.grad-text {
	background: var(--grad);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

#preloader {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
}

html.hide #preloader {
	display: none;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 6rem;
	padding: 0 3.4rem;
	border: 0;
	border-radius: 1.6rem;
	font-family: var(--font-head);
	font-size: 1.7rem;
	font-weight: 600;
	letter-spacing: 0.02rem;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
	background: var(--grad);
	color: #fff;
	box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
	box-shadow: 0 1.8rem 4rem rgba(91, 61, 245, 0.36);
	transform: translateY(-0.3rem);
}

.btn-outline {
	background: rgba(255, 255, 255, 0.7);
	border: 0.2rem solid rgba(91, 61, 245, 0.28);
	color: var(--primary);
}

.btn-outline:hover {
	background: #fff;
	border-color: var(--primary);
}

.btn-lg {
	min-height: 7rem;
	padding: 0 4.4rem;
	font-size: 1.9rem;
}

@keyframes levitate {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-0.8rem);
	}
}

.hero-actions .btn-primary {
	animation: levitate 3s ease-in-out infinite;
}

.hero-actions .btn-primary:hover {
	animation-play-state: paused;
}

.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(1.2rem);
	box-shadow: 0 0.6rem 2.4rem rgba(38, 20, 110, 0.08);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 8.6rem;
}

.logo {
	display: flex;
	align-items: center;
	gap: 1.2rem;
}

.logo img {
	width: 4.2rem;
	height: 4.2rem;
}

.logo-text {
	font-family: var(--font-head);
	font-size: 2.4rem;
	font-weight: 700;
	letter-spacing: -0.03rem;
	background: var(--grad);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.nav {
	display: flex;
	align-items: center;
	gap: 3.4rem;
}

.nav .nav-link {
	position: relative;
	font-size: 1.6rem;
	font-weight: 500;
	color: var(--ink-soft);
	transition: color 0.25s ease;
}

.nav .nav-link::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -0.8rem;
	width: 0;
	height: 0.2rem;
	border-radius: 0.2rem;
	background: var(--grad);
	transition: width 0.25s ease;
}

.nav .nav-link:hover {
	color: var(--ink);
}

.nav .nav-link:hover::after {
	width: 100%;
}

.burger-btn {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 0.6rem;
	width: 4.8rem;
	height: 4.8rem;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.burger-btn span {
	display: block;
	width: 2.8rem;
	height: 0.3rem;
	margin: 0 auto;
	border-radius: 0.3rem;
	background: var(--primary);
	transition: transform 0.3s ease, opacity 0.2s ease;
}

.burger-btn.act span:nth-child(1) {
	transform: translateY(0.9rem) rotate(45deg);
}

.burger-btn.act span:nth-child(2) {
	opacity: 0;
}

.burger-btn.act span:nth-child(3) {
	transform: translateY(-0.9rem) rotate(-45deg);
}

#mobile-menu {
	position: fixed;
	top: 8.6rem;
	left: 0;
	width: 100%;
	height: calc(100% - 8.6rem);
	z-index: 99;
	padding: 4rem;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(1.2rem);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

#mobile-menu.opened {
	opacity: 1;
	pointer-events: auto;
}

.mobile-nav {
	display: flex;
	flex-direction: column;
	gap: 2.8rem;
}

.mobile-nav .nav-link {
	font-family: var(--font-head);
	font-size: 2.6rem;
	font-weight: 600;
	color: var(--ink);
}

.hero {
	position: relative;
	padding: 16rem 0 10rem;
	background:
		linear-gradient(100deg, rgba(246, 244, 255, 0.94) 0%, rgba(246, 244, 255, 0.6) 45%, rgba(246, 244, 255, 0.2) 100%),
		url('../img/hero-bg.webp') center / cover no-repeat;
}

.hero-inner {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: 5rem;
}

.hero-title {
	font-size: 6.6rem;
	letter-spacing: -0.16rem;
}

.hero-text {
	margin-top: 2.6rem;
	font-size: 1.8rem;
	max-width: 62rem;
}

.pills {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
	margin-top: 3.2rem;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.9rem 1.8rem;
	border: 0.1rem solid var(--line);
	border-radius: 10rem;
	background: rgba(255, 255, 255, 0.8);
	font-size: 1.4rem;
	font-weight: 500;
	color: var(--ink);
}

.pill::before {
	content: '';
	width: 0.8rem;
	height: 0.8rem;
	border-radius: 50%;
	background: var(--grad);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1.8rem;
	margin-top: 4rem;
}

.hero-figure img {
	width: 100%;
	max-width: 52rem;
	margin: 0 auto;
	filter: drop-shadow(0 3rem 5rem rgba(38, 20, 110, 0.22));
}

.section {
	padding: 12rem 0;
}

.section-title {
	font-size: 4.6rem;
	letter-spacing: -0.1rem;
}

.section-head {
	max-width: 76rem;
	margin: 0 auto 6rem;
	text-align: center;
}

.section-lead {
	margin-top: 2rem;
	font-size: 1.9rem;
}

.about-inner {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	align-items: center;
	gap: 7rem;
}

.about-media img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.about-content {
	padding: 4rem;
	border: 0.1rem solid var(--line);
	border-radius: var(--radius);
	background: var(--tint-veil);
}

.about-content p {
	margin-top: 2.2rem;
}

.about-content .section-title + p {
	margin-top: 3rem;
}

.how {
	background: var(--tint-veil);
}

.steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2.4rem;
}

.step-card {
	position: relative;
	padding: 3.6rem 2.8rem;
	border: 0.1rem solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
	transition: transform 0.3s ease;
}

.step-card:hover {
	transform: translateY(-0.8rem);
}

.step-num {
	display: block;
	margin-bottom: 1.8rem;
	font-family: var(--font-head);
	font-size: 4.4rem;
	font-weight: 700;
	line-height: 1;
	background: var(--grad);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.step-card p {
	font-size: 1.6rem;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.4rem;
}

.feature-card {
	display: flex;
	flex-direction: column;
	gap: 2.2rem;
	padding: 3.6rem 3rem;
	border: 0.1rem solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(246, 244, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
	transform: translateY(-0.8rem);
	box-shadow: var(--shadow);
}

.feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 6rem;
	height: 6rem;
	border-radius: 1.8rem;
	background: var(--grad);
	color: #fff;
	box-shadow: var(--shadow-btn);
}

.feature-icon svg {
	width: 2.8rem;
	height: 2.8rem;
}

.feature-card p {
	font-size: 1.6rem;
	color: var(--ink);
	font-weight: 500;
}

.community {
	background: var(--tint-veil);
}

.community-inner {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: 7rem;
}

.community-content p {
	margin-top: 2.2rem;
}

.community-content .section-title + p {
	margin-top: 3rem;
}

.community-content .btn {
	margin-top: 4rem;
}

.community-media img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.contact-panel {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 6rem;
	padding: 5rem;
	border: 0.1rem solid var(--line);
	border-radius: 3.2rem;
	background: var(--tint-veil);
}

.contact-media img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.contact-content p {
	margin-top: 2.4rem;
	font-size: 1.9rem;
}

.contact-content .btn {
	margin-top: 3.4rem;
}

.footer {
	padding: 9rem 0 3.4rem;
	background:
		linear-gradient(180deg, rgba(246, 244, 255, 0.86) 0%, rgba(246, 244, 255, 0.96) 100%),
		url('../img/footer-bg.webp') center / cover no-repeat;
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 3rem;
	padding-bottom: 3.4rem;
	border-bottom: 0.1rem solid var(--line);
}

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 3rem;
}

.footer-nav a {
	font-size: 1.6rem;
	font-weight: 500;
	transition: color 0.25s ease;
}

.footer-nav a:hover {
	color: var(--primary);
}

.footer-bottom {
	padding-top: 2.6rem;
	text-align: center;
	font-size: 1.5rem;
}

.legal-page {
	padding: 16rem 0 10rem;
}

.legal-content {
	max-width: 92rem;
	margin: 0 auto;
	padding: 5rem;
	border: 0.1rem solid var(--line);
	border-radius: 3.2rem;
	background: var(--surface);
	box-shadow: var(--shadow);
}

.legal-content h1 {
	font-size: 4.4rem;
	letter-spacing: -0.1rem;
}

.legal-content h3 {
	margin-top: 4rem;
	font-size: 2.2rem;
	text-transform: uppercase;
	letter-spacing: 0.06rem;
}

.legal-content p {
	margin-top: 2rem;
	font-size: 1.7rem;
}

.legal-content h1 + p {
	margin-top: 3rem;
}

.legal-content a {
	color: var(--primary);
	font-weight: 500;
	word-break: break-word;
}

.legal-content a:hover {
	text-decoration: underline;
}

.legal-content .name {
	font-weight: 600;
	color: var(--ink);
}

@media (max-width: 1024px) {
	body::before {
		background-image: url('../img/page-bg-mobile.webp');
	}

	.nav {
		display: none;
	}

	.burger-btn {
		display: flex;
	}

	.hero {
		padding: 14rem 0 8rem;
	}

	.hero-inner {
		grid-template-columns: 1fr;
		gap: 4rem;
		text-align: center;
	}

	.hero-text,
	.pills,
	.hero-actions {
		justify-content: center;
	}

	.hero-text {
		margin-left: auto;
		margin-right: auto;
	}

	.hero-figure {
		order: -1;
	}

	.hero-figure img {
		max-width: 38rem;
	}

	.hero-title {
		font-size: 5.2rem;
	}

	.section {
		padding: 9rem 0;
	}

	.section-title {
		font-size: 3.8rem;
	}

	.about-inner,
	.community-inner {
		grid-template-columns: 1fr;
		gap: 4.4rem;
	}

	.community-media {
		order: -1;
	}

	.steps {
		grid-template-columns: repeat(2, 1fr);
	}

	.feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.contact-panel {
		grid-template-columns: 1fr;
		gap: 4rem;
		padding: 4rem;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 0 2.6rem;
	}

	.footer .footer-inner {
		padding: 2.6rem 2.6rem 3.4rem;
	}

	.footer .footer-bottom {
		padding: 2.6rem 2.6rem 0;
	}

	.hero-title {
		font-size: 4.4rem;
		letter-spacing: -0.1rem;
	}

	.hero-text {
		font-size: 1.7rem;
	}

	.about-content {
		padding: 3rem;
	}

	.section-title {
		font-size: 3.2rem;
	}

	.section-head {
		margin-bottom: 4.4rem;
	}

	.legal-page {
		padding: 13rem 0 8rem;
	}

	.legal-content {
		padding: 3.4rem;
	}

	.legal-content h1 {
		font-size: 3.4rem;
	}
}

@media (max-width: 640px) {
	html {
		font-size: 58%;
	}

	.header-inner {
		height: 7.4rem;
	}

	#mobile-menu {
		top: 7.4rem;
		height: calc(100% - 7.4rem);
	}

	.hero {
		padding: 12rem 0 7rem;
	}

	.hero-figure img {
		max-width: 30rem;
	}

	.hero-actions .btn {
		width: 100%;
	}

	.section {
		padding: 7.4rem 0;
	}

	.steps,
	.feature-grid {
		grid-template-columns: 1fr;
	}

	.contact-panel {
		padding: 3rem;
	}

	.contact-content .btn {
		width: 100%;
		padding: 0 2rem;
		font-size: 1.6rem;
	}

	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 2.4rem;
	}
}
