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

:root {
	--bg: #17100b;
	--bg-alt: #1f1610;
	--bg-card: #291c13;
	--bg-card-hi: #33241a;
	--line: rgba(255, 176, 32, 0.16);
	--line-hi: rgba(255, 176, 32, 0.45);
	--gold: #ffb020;
	--gold-light: #ffd66b;
	--ember: #ff7a18;
	--sky: #37a8f2;
	--text: #f7eddf;
	--muted: #bfa78d;
	--font-head: 'Fredoka', 'Trebuchet MS', sans-serif;
	--font-body: 'Nunito', 'Segoe UI', sans-serif;
	--header-h: 76px;
	--radius: 20px;
}

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

html {
	font-family: var(--font-body);
	color: var(--text);
	background: var(--bg);
	-webkit-text-size-adjust: 100%;
}

body {
	font-size: 17px;
	line-height: 1.65;
	overflow-x: hidden;
}

body.fixed {
	overflow: hidden;
}

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

a {
	color: var(--gold);
	text-decoration: none;
}

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.15;
}

.container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

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

html.hide .preloader {
	display: none;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 34px;
	border: 0;
	border-radius: 999px;
	font-family: var(--font-head);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.3px;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-play-icon {
	flex-shrink: 0;
}

.btn-primary {
	background: linear-gradient(135deg, var(--gold-light), var(--ember));
	color: #2a1a10;
	box-shadow: 0 10px 26px rgba(255, 122, 24, 0.32);
}

.btn-primary:hover {
	box-shadow: 0 14px 34px rgba(255, 122, 24, 0.5);
	transform: translateY(-2px);
}

.btn-sm {
	padding: 11px 22px;
	font-size: 16px;
}

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

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

.btn-levitate:hover {
	animation-play-state: paused;
}

.cta-group {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 18px;
	margin-top: 32px;
}

.cta-group.center {
	justify-content: center;
}

.cta-group .cta-note {
	margin-bottom: 0;
	font-family: var(--font-head);
	font-size: 14px;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--muted);
}

.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--header-h);
	display: flex;
	align-items: center;
	transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
	background: rgba(23, 16, 11, 0.94);
	box-shadow: 0 1px 0 var(--line), 0 12px 30px rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(10px);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.logo-mark {
	width: 42px;
	height: 42px;
	border-radius: 12px;
}

.logo-text {
	font-family: var(--font-head);
	font-size: 22px;
	font-weight: 700;
	color: var(--text);
	white-space: nowrap;
}

.nav {
	display: flex;
	align-items: center;
	gap: 26px;
	margin-left: auto;
}

.nav-link {
	position: relative;
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	padding: 4px 0;
}

.nav-link::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--gold-light), var(--ember));
	transition: width 0.25s ease;
}

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

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

.burger-btn {
	display: none;
	width: 44px;
	height: 44px;
	background: transparent;
	border: 0;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.burger-btn span {
	display: block;
	width: 26px;
	height: 3px;
	border-radius: 2px;
	background: var(--gold);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 99;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 34px;
	padding: var(--header-h) 24px 40px;
	background: linear-gradient(160deg, #1f1610, #17100b);
	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;
	align-items: center;
	gap: 22px;
}

.mobile-nav .nav-link {
	font-family: var(--font-head);
	font-size: 26px;
}

.section {
	position: relative;
	padding: 110px 0;
}

.section-alt {
	background: var(--bg-alt);
}

.section-title {
	font-size: 42px;
	margin-bottom: 26px;
	background: linear-gradient(120deg, var(--gold-light), var(--ember));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.section-title.center {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.section p {
	color: var(--muted);
	margin-bottom: 18px;
}

.hero {
	padding: calc(var(--header-h) + 80px) 0 110px;
	background:
		radial-gradient(900px 520px at 78% 30%, rgba(255, 122, 24, 0.22), transparent 70%),
		radial-gradient(700px 480px at 10% 80%, rgba(55, 168, 242, 0.14), transparent 70%),
		linear-gradient(180deg, rgba(23, 16, 11, 0.74), rgba(23, 16, 11, 0.93)),
		url('../img/hero-bg.webp') center / cover no-repeat;
}

.hero-inner {
	display: grid;
	grid-template-columns: 1.08fr 0.92fr;
	align-items: center;
	gap: 60px;
}

.hero-title {
	font-size: 56px;
	margin-bottom: 24px;
	text-wrap: balance;
}

.hero-text {
	font-size: 18px;
}

.hero-lead {
	color: var(--text) !important;
	font-weight: 700;
}

.hero-visual {
	display: flex;
	justify-content: center;
}

.phone {
	position: relative;
	width: 100%;
	max-width: 310px;
	padding: 12px;
	border-radius: 38px;
	background: linear-gradient(160deg, #3b2919, #1b120c);
	border: 1px solid var(--line-hi);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 122, 24, 0.14);
}

.phone img {
	width: 100%;
	border-radius: 28px;
}

.phone-tilt {
	transform: rotate(-3deg);
}

.phone-tilt-alt {
	transform: rotate(3deg);
}

.split {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	align-items: center;
	gap: 64px;
}

.split-reverse {
	grid-template-columns: 1.15fr 0.85fr;
}

.split-visual {
	display: flex;
	justify-content: center;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin-top: 48px;
}

.feature-card {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 22px;
	border-radius: var(--radius);
	background: var(--bg-card);
	border: 1px solid var(--line);
	transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
	transform: translateY(-4px);
	border-color: var(--line-hi);
	background: var(--bg-card-hi);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 176, 32, 0.1);
}

.feature-card p {
	margin-bottom: 0;
}

.feature-media {
	flex-shrink: 0;
	width: 116px;
	padding: 6px;
	border-radius: 16px;
	background: linear-gradient(160deg, #3b2919, #1b120c);
	border: 1px solid var(--line);
}

.feature-media img {
	width: 100%;
	border-radius: 11px;
}

.feature-card-wide {
	grid-column: 1 / -1;
}

.feature-note {
	margin-top: 34px;
	padding: 22px 26px;
	border-left: 3px solid var(--gold);
	border-radius: 0 16px 16px 0;
	background: rgba(255, 176, 32, 0.06);
	color: var(--text) !important;
	font-weight: 600;
}

.pull-line {
	color: var(--sky) !important;
	font-family: var(--font-head);
	font-size: 20px;
}

.download {
	background:
		linear-gradient(180deg, rgba(23, 16, 11, 0.92), rgba(23, 16, 11, 0.86)),
		url('../img/cta-bg.webp') center / cover no-repeat;
}

.download-inner {
	max-width: 760px;
	text-align: center;
}

.app-icon {
	width: 112px;
	height: 112px;
	margin: 0 auto 26px;
	border-radius: 26px;
	border: 1px solid var(--line-hi);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.download-question {
	font-family: var(--font-head);
	font-size: 24px;
	color: var(--text) !important;
}

.support-inner {
	max-width: 780px;
	text-align: center;
	background:
		linear-gradient(180deg, rgba(41, 28, 19, 0.78), rgba(41, 28, 19, 0.78)),
		url('../img/pattern-forge.webp') center / 420px repeat;
	padding: 56px 46px;
	border-radius: 28px;
	border: 1px solid var(--line);
}

.support-inner a {
	border-bottom: 1px solid var(--line-hi);
}

.support-inner a:hover {
	color: var(--gold-light);
}

.footer {
	padding: 48px 0;
	background: #120c08;
	border-top: 1px solid var(--line);
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 22px;
}

.footer-nav {
	display: flex;
	gap: 26px;
	flex-wrap: wrap;
}

.footer-nav a {
	color: var(--muted);
	font-weight: 600;
	transition: color 0.25s ease;
}

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

.copyright {
	color: var(--muted);
	font-size: 15px;
}

.legal-page {
	padding: calc(var(--header-h) + 70px) 0 100px;
}

.legal-content {
	max-width: 900px;
	margin: 0 auto;
	padding: 46px 48px;
	border-radius: 24px;
	background: var(--bg-alt);
	border: 1px solid var(--line);
}

.legal-content h1 {
	font-size: 40px;
	margin-bottom: 28px;
	background: linear-gradient(120deg, var(--gold-light), var(--ember));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
	font-size: 22px;
	margin: 34px 0 14px;
	color: var(--gold-light);
}

.legal-content p,
.legal-content li {
	color: var(--muted);
	margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
	padding-left: 24px;
	margin-bottom: 18px;
}

.legal-content strong {
	color: var(--text);
}

.legal-content a {
	word-break: break-word;
	transition: color 0.2s;
}

.legal-content a:hover,
.legal-content a:focus-visible {
	color: var(--ember);
}

@media (max-width: 1024px) {
	.nav {
		display: none;
	}

	.header-cta {
		display: none;
	}

	.burger-btn {
		display: flex;
	}

	.section {
		padding: 84px 0;
	}

	.hero {
		padding: calc(var(--header-h) + 56px) 0 84px;
	}

	.hero-inner {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.hero-content {
		text-align: center;
	}

	.cta-group {
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	.hero-title {
		font-size: 44px;
	}

	.split,
	.split-reverse {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.split-reverse .split-visual {
		order: -1;
	}

	.split-content {
		text-align: center;
	}

	.section-title {
		text-align: center;
	}
}

@media (max-width: 768px) {
	.section-title {
		font-size: 34px;
	}

	.hero-title {
		font-size: 38px;
	}

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

	.legal-content {
		padding: 34px 26px;
	}

	.support-inner {
		padding: 40px 26px;
	}

	.footer-inner {
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 16px;
	}

	.container {
		padding: 0 18px;
	}

	.section {
		padding: 64px 0;
	}

	.hero-title {
		font-size: 31px;
	}

	.section-title {
		font-size: 28px;
	}

	.logo-text {
		font-size: 19px;
	}

	.logo-mark {
		width: 36px;
		height: 36px;
	}

	.feature-card {
		flex-direction: column;
		text-align: center;
		gap: 16px;
	}

	.feature-media {
		width: 132px;
	}

	.app-icon {
		width: 92px;
		height: 92px;
	}

	.download-question {
		font-size: 20px;
	}

	.mobile-nav .nav-link {
		font-size: 22px;
	}
}
