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

:root {
	--bg: #100b1c;
	--bg-2: #170f2b;
	--bg-3: #1e1638;
	--card: #1b1332;
	--violet: #8b5cf6;
	--violet-light: #b58bff;
	--gold: #f5c15a;
	--gold-light: #ffe0a0;
	--crimson: #e0496b;
	--text: #ece7fa;
	--muted: #a89bc4;
	--border: rgba(181, 139, 255, 0.16);
	--grad-gold: linear-gradient(135deg, #ffe0a0 0%, #f5c15a 45%, #e0a13a 100%);
	--grad-violet: linear-gradient(135deg, #b58bff 0%, #7a3ff2 100%);
	--header-h: 5rem;
	--radius: 1rem;
	--maxw: 75rem;
}

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

html {
	font-family: 'Inter', sans-serif;
	color: var(--text);
	line-height: 1.6;
	scroll-padding-top: 6rem;
}

html.hide #preloader {
	display: none;
}

body {
	background: var(--bg);
	overflow-x: hidden;
}

body.fixed {
	overflow: hidden;
}

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

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

h1, h2, h3, h4 {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	line-height: 1.18;
}

.container {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.section {
	padding: 6rem 0;
	position: relative;
}

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

.eyebrow {
	font-family: 'Cinzel', serif;
	font-size: 0.85rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 1rem;
}

.section-title {
	font-size: 2.4rem;
	color: var(--text);
	margin-bottom: 1.4rem;
}

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

.lead {
	color: var(--muted);
	font-size: 1.05rem;
	max-width: 46rem;
}

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

#preloader img {
	width: 4.5rem;
	height: 4.5rem;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 1rem;
	border: 0;
	cursor: pointer;
	border-radius: 999px;
	padding: 0.9rem 1.8rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-store {
	background: var(--grad-gold);
	color: #1a1230;
	box-shadow: 0 0.6rem 1.6rem rgba(245, 193, 90, 0.28);
}

.btn-store:hover {
	transform: translateY(-2px);
	box-shadow: 0 0.9rem 2rem rgba(245, 193, 90, 0.42);
	filter: brightness(1.05);
}

.btn-store svg {
	width: 1.2rem;
	height: 1.2rem;
	flex-shrink: 0;
}

.btn-ghost {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--border);
}

.btn-ghost:hover {
	border-color: var(--violet-light);
	color: var(--violet-light);
}

.cta-note {
	color: var(--muted);
	font-size: 0.9rem;
	margin-top: 0.7rem;
}

/* Header */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-h);
	z-index: 1100;
	display: flex;
	align-items: center;
	transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
	background: rgba(16, 11, 28, 0.9);
	backdrop-filter: blur(10px);
	box-shadow: 0 1px 0 var(--border);
}

.header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo {
	display: flex;
	align-items: center;
	z-index: 120;
}

.logo img {
	height: 2.6rem;
	width: auto;
}

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

.nav-list {
	display: flex;
	align-items: center;
	gap: 1.8rem;
	list-style: none;
}

.nav-link {
	position: relative;
	font-weight: 500;
	color: var(--text);
	font-size: 0.95rem;
	padding: 0.2rem 0;
	transition: color 0.2s ease;
}

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

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

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

.header-cta {
	padding: 0.6rem 1.3rem;
	font-size: 0.9rem;
}

.burger-btn {
	display: none;
	background: transparent;
	border: 0;
	width: 2.6rem;
	height: 2.6rem;
	position: relative;
	cursor: pointer;
	z-index: 120;
}

.burger-btn span {
	position: absolute;
	left: 0.5rem;
	right: 0.5rem;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.burger-btn span:nth-child(1) { top: 0.8rem; }
.burger-btn span:nth-child(2) { top: 1.25rem; }
.burger-btn span:nth-child(3) { top: 1.7rem; }

.burger-btn.act span:nth-child(1) { top: 1.25rem; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 1.25rem; transform: rotate(-45deg); }

/* Mobile menu */
#mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 1050;
	background: rgba(13, 9, 22, 0.98);
	backdrop-filter: blur(12px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

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

#mobile-menu .nav-list {
	flex-direction: column;
	gap: 1.6rem;
}

#mobile-menu .nav-link {
	font-family: 'Cinzel', serif;
	font-size: 1.4rem;
}

#mobile-menu .btn {
	margin-top: 1rem;
}

/* Hero */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: calc(var(--header-h) + 3rem);
	padding-bottom: 4rem;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background: url('../img/hero-bg.webp') center/cover no-repeat;
	z-index: 0;
}

.hero-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(16, 11, 28, 0.72) 0%, rgba(16, 11, 28, 0.55) 45%, rgba(16, 11, 28, 0.95) 100%),
		linear-gradient(90deg, rgba(16, 11, 28, 0.85) 0%, rgba(16, 11, 28, 0.2) 70%);
}

.hero .container {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 3rem;
	align-items: center;
}

.hero-content {
	max-width: 34rem;
}

.hero h1 {
	font-size: 3.4rem;
	margin-bottom: 1.4rem;
}

.hero h1 span {
	background: var(--grad-gold);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	display: block;
}

.hero p {
	color: #d8d0ee;
	font-size: 1.1rem;
	margin-bottom: 1.2rem;
}

.hero-actions {
	margin-top: 2rem;
}

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

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

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

.pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 2rem;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--violet-light);
	background: rgba(139, 92, 246, 0.12);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 0.4rem 0.9rem;
}

.hero-visual {
	position: relative;
	justify-self: end;
}

.device {
	position: relative;
	border-radius: 1.2rem;
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.55), 0 0 3rem rgba(139, 92, 246, 0.25);
	transform: rotate(-1.5deg);
}

.device img {
	width: 100%;
	display: block;
}

.hero-glow {
	position: absolute;
	width: 26rem;
	height: 26rem;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 65%);
	filter: blur(30px);
	top: -6rem;
	right: -6rem;
	z-index: 1;
	pointer-events: none;
}

/* Split (Gameplay / About) */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3.5rem;
	align-items: center;
}

.split-media {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.45);
}

.split-media img {
	width: 100%;
	display: block;
}

.split-text p {
	color: var(--muted);
	margin-bottom: 1.1rem;
}

.split-text p:last-child {
	margin-bottom: 0;
}

/* Features */
.features-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	margin-top: 3rem;
}

.feature-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 2rem 1.8rem;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
	transform: translateY(-4px);
	border-color: rgba(245, 193, 90, 0.4);
	box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.4);
}

.feature-icon {
	width: 3rem;
	height: 3rem;
	border-radius: 0.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(139, 92, 246, 0.15);
	border: 1px solid var(--border);
	margin-bottom: 1.2rem;
}

.feature-icon svg {
	width: 1.5rem;
	height: 1.5rem;
	stroke: var(--gold);
}

.feature-card h3 {
	font-size: 1.2rem;
	margin-bottom: 0.7rem;
	color: var(--text);
}

.feature-card p {
	color: var(--muted);
	font-size: 0.98rem;
}

.features-note {
	margin-top: 2.6rem;
	text-align: center;
	color: var(--muted);
	font-style: italic;
	max-width: 50rem;
	margin-left: auto;
	margin-right: auto;
}

/* Screenshots gallery */
.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.4rem;
	margin-top: 3rem;
}

.gallery figure {
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, 0.4);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery figure:hover {
	transform: translateY(-4px) scale(1.01);
	box-shadow: 0 1.4rem 2.8rem rgba(139, 92, 246, 0.28);
}

.gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Support */
.support-inner {
	max-width: 44rem;
	margin: 0 auto;
	text-align: center;
}

.support-inner p {
	color: var(--muted);
	margin-bottom: 1.1rem;
}

.support-actions {
	margin-top: 2rem;
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* Final CTA */
.final-cta {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: 7rem 0;
}

.final-cta-bg {
	position: absolute;
	inset: 0;
	background: url('../img/world-bg.webp') center/cover no-repeat;
	z-index: 0;
}

.final-cta-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(16, 11, 28, 0.85), rgba(16, 11, 28, 0.75));
}

.final-cta .container {
	position: relative;
	z-index: 2;
}

.final-cta h2 {
	font-size: 2.8rem;
	margin-bottom: 1.5rem;
}

.final-cta h2 span {
	background: var(--grad-gold);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.final-cta .cta-note {
	color: #d8d0ee;
}

.final-actions {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
}

/* Footer */
.footer {
	background: #0c0817;
	border-top: 1px solid var(--border);
	padding: 3.5rem 0 2rem;
}

.footer-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
	flex-wrap: wrap;
	padding-bottom: 2.2rem;
	border-bottom: 1px solid var(--border);
}

.footer-brand {
	max-width: 22rem;
}

.footer-brand img {
	height: 2.6rem;
	margin-bottom: 1rem;
}

.footer-brand p {
	color: var(--muted);
	font-size: 0.92rem;
}

.footer-brand a {
	color: var(--gold);
}

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

.footer-col h4 {
	font-family: 'Cinzel', serif;
	font-size: 0.9rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text);
	margin-bottom: 1rem;
}

.footer-col ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.footer-col a {
	color: var(--muted);
	font-size: 0.92rem;
	transition: color 0.2s ease;
}

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

.footer-bottom {
	padding-top: 1.8rem;
	color: var(--muted);
	font-size: 0.85rem;
	text-align: center;
}

/* Legal pages */
.legal-page {
	padding-top: calc(var(--header-h) + 4rem);
	padding-bottom: 5rem;
	min-height: 70vh;
}

.legal-content {
	max-width: 52rem;
	margin: 0 auto;
}

.legal-content h1 {
	font-size: 2.4rem;
	margin-bottom: 2rem;
	background: var(--grad-gold);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.legal-content h3 {
	font-size: 1.25rem;
	color: var(--gold);
	margin: 2rem 0 0.8rem;
}

.legal-content p {
	color: var(--muted);
	margin-bottom: 1rem;
}

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

.legal-content .name,
.legal-content .app-domain,
.legal-content .domain {
	color: var(--violet-light);
}

/* Responsive */
@media (max-width: 1024px) {
	.hero h1 { font-size: 2.9rem; }
	.section-title { font-size: 2.1rem; }
	.split { gap: 2.5rem; }
}

@media (max-width: 768px) {
	.nav .nav-list,
	.header .header-cta {
		display: none;
	}
	.burger-btn {
		display: block;
	}
	.section {
		padding: 4.5rem 0;
	}
	.hero .container {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
	.hero-content {
		max-width: none;
	}
	.hero-visual {
		justself: center;
		max-width: 32rem;
		margin: 0 auto;
	}
	.split {
		grid-template-columns: 1fr;
	}
	.split-media {
		order: -1;
	}
	.features-grid {
		grid-template-columns: 1fr;
	}
	.gallery {
		grid-template-columns: repeat(2, 1fr);
	}
	.footer-top {
		flex-direction: column;
	}
	.footer-nav {
		align-self: center;
		justify-content: center;
		text-align: center;
	}
	.footer-col ul {
		align-items: center;
	}
}

@media (max-width: 640px) {
	.hero h1 { font-size: 2.3rem; }
	.section-title { font-size: 1.8rem; }
	.final-cta h2 { font-size: 2rem; }
	.gallery {
		grid-template-columns: 1fr;
	}
	.container {
		padding: 0 1.2rem;
	}
	.btn {
		font-size: 0.95rem;
	}
}
