/* Local Inter (self-hosted) */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/fonts/Inter-400-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/fonts/Inter-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
		U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('/fonts/Inter-600-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('/fonts/Inter-600-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
		U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('/fonts/Inter-700-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('/fonts/Inter-700-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
		U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
	--bg-primary: #0a0a0f;
	--bg-secondary: #12121a;
	--bg-card: #1a1a24;
	--bg-card-hover: #22222e;
	--accent: #f97316;
	--accent-hover: #fb923c;
	--accent-glow: rgba(249, 115, 22, 0.3);
	--text-primary: #ffffff;
	--text-secondary: #a1a1aa;
	--text-muted: #71717a;
	--border: #27272a;
	--success: #22c55e;
	--warning: #eab308;
	--danger: #ef4444;
}

html {
	scroll-behavior: smooth;
}

html,
body {
	/* Hard safety-net against horizontal scroll caused by any stray element */
	overflow-x: hidden;
}

body {
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial,
		'Helvetica Neue', 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji',
		'Segoe UI Symbol', sans-serif;
	background-color: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.6;
}

/* Accessibility + perf: reduce animations if user prefers */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 12px;
	z-index: 1000;
	background: var(--bg-card);
	border: 1px solid var(--border);
	color: var(--text-primary);
	padding: 0.75rem 1rem;
	border-radius: 10px;
}

.skip-link:focus {
	left: 12px;
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: color 0.2s;
}

a:hover {
	color: var(--accent-hover);
}

.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* Safer text wrapping for narrow screens */
.section-content,
.toc,
.sidebar-card,
.footer {
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* Prevent grid/flex children from overflowing their containers */
.hero-grid > *,
.main-layout > * {
	min-width: 0;
}

/* Header */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: rgba(10, 10, 15, 0.8);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-primary);
}

.logo-icon {
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, var(--accent) 0%, #dc2626 100%);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
}

.nav {
	display: none;
}

@media (min-width: 768px) {
	.nav {
		display: flex;
		gap: 2rem;
	}
}

.nav a {
	color: var(--text-secondary);
	font-weight: 600;
	transition: color 0.2s;
}

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

.header-cta {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.2s;
	border: none;
}

.btn-primary {
	background: linear-gradient(135deg, var(--accent) 0%, #ea580c 100%);
	color: white;
	box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 30px var(--accent-glow);
}

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

.btn-outline:hover {
	background: var(--bg-card);
	border-color: var(--accent);
}

.btn-lg {
	padding: 1rem 2rem;
	font-size: 1rem;
}

/* Hero Section */
.hero {
	padding-top: 120px;
	padding-bottom: 80px;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 800px;
	height: 800px;
	background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
	pointer-events: none;
}

.hero-grid {
	display: grid;
	gap: 3rem;
	align-items: center;
}

@media (min-width: 1024px) {
	.hero-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.hero-content {
	position: relative;
	z-index: 10;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 50px;
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
	max-width: 100%;
	flex-wrap: wrap;
}

.hero-badge-dot {
	width: 8px;
	height: 8px;
	background: var(--success);
	border-radius: 50%;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

.hero h1 {
	font-size: 3rem;
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 1.5rem;
	text-wrap: balance;
}

@media (min-width: 768px) {
	.hero h1 {
		font-size: 4rem;
	}
}

.hero h1 span {
	background: linear-gradient(135deg, var(--accent) 0%, #fbbf24 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-description {
	font-size: 1.125rem;
	color: var(--text-secondary);
	margin-bottom: 2rem;
	max-width: 500px;
}

.hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 3rem;
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

@media (max-width: 420px) {
	.hero-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
}

.stat-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--accent);
}

.stat-label {
	font-size: 0.875rem;
	color: var(--text-muted);
}

/* Game Preview */
.game-preview {
	position: relative;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 4/3;
	width: 100%;
	max-width: 100%;
}
@media (max-width: 768px) {
	.game-preview {
		padding: 200px 0;
	}
}

.game-preview-inner {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.game-multiplier {
	font-size: 4rem;
	font-weight: 700;
	background: linear-gradient(135deg, var(--accent) 0%, #fbbf24 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: grow 3s ease-in-out infinite;
}

@keyframes grow {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
}

.game-character {
	font-size: 5rem;
	margin-bottom: 1rem;
	animation: fly 2s ease-in-out infinite;
}

@keyframes fly {
	0%,
	100% {
		transform: translateY(0) rotate(-5deg);
	}
	50% {
		transform: translateY(-20px) rotate(5deg);
	}
}

.game-status {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: rgba(34, 197, 94, 0.2);
	border: 1px solid var(--success);
	border-radius: 50px;
	color: var(--success);
	font-weight: 600;
	font-size: 0.875rem;
	margin-top: 1.5rem;
}

/* Main Content Layout */
.main-layout {
	display: grid;
	gap: 3rem;
	padding-bottom: 80px;
}

@media (min-width: 1024px) {
	.main-layout {
		grid-template-columns: 1fr 320px;
	}
}

.content {
	display: flex;
	flex-direction: column;
	gap: 4rem;
}

/* Section Styles */
.section {
	scroll-margin-top: 100px;
}

.section-title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.section-title-icon {
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, var(--accent) 0%, #ea580c 100%);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
}

.section-content {
	color: var(--text-secondary);
	line-height: 1.8;
}

.section-content p {
	margin-bottom: 1rem;
}

.section-content h3 {
	color: var(--text-primary);
	font-size: 1.25rem;
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.section-content ul,
.section-content ol {
	margin: 1rem 0;
	padding-left: 1.5rem;
}

.section-content li {
	margin-bottom: 0.5rem;
}

/* Cards */
.card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1.5rem;
	transition: all 0.2s;
}

.card:hover {
	background: var(--bg-card-hover);
	border-color: var(--accent);
}

.card-grid {
	display: grid;
	gap: 1rem;
	margin-top: 1.5rem;
}

@media (min-width: 768px) {
	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.card-icon {
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 100%);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.card h4 {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.card p {
	color: var(--text-secondary);
	font-size: 0.875rem;
}

/* Table of Contents */
.toc {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1.5rem;
}

.toc-title {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.toc-list {
	list-style: none;
}

.toc-list li {
	margin-bottom: 0.25rem;
}

.toc-list a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem;
	color: var(--text-secondary);
	border-radius: 8px;
	transition: all 0.2s;
	font-size: 0.875rem;
	min-width: 0;
}

.toc-list a:hover {
	background: var(--bg-card-hover);
	color: var(--text-primary);
}

.toc-number {
	width: 24px;
	height: 24px;
	background: var(--bg-secondary);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--accent);
}

/* Sidebar */
.sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

@media (min-width: 1024px) {
	.sidebar {
		position: sticky;
		top: 100px;
		height: fit-content;
	}
}

.sidebar-card {
	background: linear-gradient(135deg, var(--bg-card) 0%, #1f1f2e 100%);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1.5rem;
}

.sidebar-card.accent {
	background: linear-gradient(
		135deg,
		rgba(249, 115, 22, 0.15) 0%,
		var(--bg-card) 100%
	);
	border-color: var(--accent);
}

.sidebar-title {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.bonus-value {
	font-size: 2.5rem;
	font-weight: 700;
	background: linear-gradient(135deg, var(--accent) 0%, #fbbf24 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 0.5rem;
}

.bonus-desc {
	color: var(--text-secondary);
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

/* Promo Code */
.promo-code {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--bg-secondary);
	border: 2px dashed var(--border);
	border-radius: 10px;
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.promo-code code {
	font-family: monospace;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--accent);
	letter-spacing: 0.1em;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.promo-code button {
	margin-left: auto;
	background: var(--accent);
	border: none;
	border-radius: 6px;
	padding: 0.375rem 0.75rem;
	color: white;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

@media (max-width: 420px) {
	.promo-code button {
		margin-left: 0;
		width: 100%;
	}
}

.promo-code button:hover {
	background: var(--accent-hover);
}

/* Stats List */
.stats-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.stats-item {
	display: flex;
	justify-content: space-between;
	padding: 0.75rem;
	background: var(--bg-secondary);
	border-radius: 8px;
}

.stats-item-label {
	color: var(--text-secondary);
	font-size: 0.875rem;
}

.stats-item-value {
	font-weight: 600;
	color: var(--success);
}

/* Games Grid */
.games-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
}

.game-item {
	background: var(--bg-secondary);
	border-radius: 10px;
	padding: 1rem;
	text-align: center;
	transition: all 0.2s;
	cursor: pointer;
}

.game-item:hover {
	background: var(--bg-card-hover);
	transform: translateY(-2px);
}

.game-item-icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.game-item-name {
	font-size: 0.75rem;
	font-weight: 600;
}

/* Advantages */
.advantages-grid {
	display: grid;
	gap: 1rem;
	margin-top: 1.5rem;
}

@media (min-width: 768px) {
	.advantages-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.advantage-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1.5rem;
	text-align: center;
	transition: all 0.3s;
}

.advantage-card:hover {
	transform: translateY(-4px);
	border-color: var(--accent);
	box-shadow: 0 10px 40px var(--accent-glow);
}

.advantage-icon {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 100%);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	margin: 0 auto 1rem;
}

.advantage-card h4 {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.advantage-card p {
	color: var(--text-secondary);
	font-size: 0.875rem;
}

/* Strategy Cards */
.strategy-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1.5rem;
	margin-bottom: 1rem;
}

.strategy-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

@media (max-width: 768px) {
	.strategy-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}

.strategy-badge {
	padding: 0.25rem 0.75rem;
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: 600;
}

.strategy-badge.safe {
	background: rgba(34, 197, 94, 0.2);
	color: var(--success);
}

.strategy-badge.medium {
	background: rgba(234, 179, 8, 0.2);
	color: var(--warning);
}

.strategy-badge.risky {
	background: rgba(239, 68, 68, 0.2);
	color: var(--danger);
}

.strategy-card h4 {
	font-size: 1.25rem;
	font-weight: 600;
}

.strategy-card p {
	color: var(--text-secondary);
	margin-bottom: 1rem;
}

.strategy-multiplier {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: var(--bg-secondary);
	border-radius: 8px;
	font-weight: 600;
	color: var(--accent);
}

/* FAQ */
.faq-item {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	margin-bottom: 0.75rem;
	overflow: hidden;
}

.faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem;
	background: transparent;
	border: none;
	color: var(--text-primary);
	font-size: 1rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: background 0.2s;
}

.faq-question:hover {
	background: var(--bg-card-hover);
}

.faq-icon {
	font-size: 1.25rem;
	color: var(--accent);
	transition: transform 0.3s;
}

.faq-item.active .faq-icon {
	transform: rotate(45deg);
}

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

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

.faq-answer-inner {
	padding: 0 1.25rem 1.25rem;
	color: var(--text-secondary);
	line-height: 1.7;
}

/* Warning Box */
.warning-box {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid var(--danger);
	border-radius: 12px;
	padding: 1.5rem;
	margin-top: 1.5rem;
}

.warning-title {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 600;
	color: var(--danger);
	margin-bottom: 0.75rem;
}

.warning-box p {
	color: var(--text-secondary);
	font-size: 0.875rem;
}

/* Info Box */
.info-box {
	background: rgba(249, 115, 22, 0.1);
	border: 1px solid var(--accent);
	border-radius: 12px;
	padding: 1.5rem;
	margin: 1.5rem 0;
}

.info-box h4 {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 600;
	color: var(--accent);
	margin-bottom: 0.75rem;
}

/* Steps */
.steps {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 1.5rem 0;
}

.step {
	display: flex;
	gap: 1rem;
	padding: 1rem;
	background: var(--bg-card);
	border-radius: 12px;
}

.step-number {
	width: 32px;
	height: 32px;
	background: linear-gradient(135deg, var(--accent) 0%, #ea580c 100%);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	flex-shrink: 0;
	color: white;
}

.step-content h4 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.step-content p {
	color: var(--text-secondary);
	font-size: 0.875rem;
}

/* Footer */
.footer {
	background: var(--bg-secondary);
	border-top: 1px solid var(--border);
	padding: 3rem 0;
	margin-top: 4rem;
}

.footer-grid {
	display: grid;
	gap: 2rem;
}

@media (min-width: 768px) {
	.footer-grid {
		grid-template-columns: 2fr 1fr 1fr 1fr;
	}
}

.footer-brand {
	max-width: 300px;
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.footer-desc {
	color: var(--text-secondary);
	font-size: 0.875rem;
	margin-bottom: 1.5rem;
}

.footer-title {
	font-weight: 600;
	margin-bottom: 1rem;
}

.footer-links {
	list-style: none;
}

.footer-links li {
	margin-bottom: 0.5rem;
}

.footer-links a {
	color: var(--text-secondary);
	font-size: 0.875rem;
}

.footer-links a:hover {
	color: var(--accent);
}

.footer-bottom {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	text-align: center;
}

@media (min-width: 768px) {
	.footer-bottom {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

.footer-copyright {
	color: var(--text-muted);
	font-size: 0.875rem;
}

.footer-badges {
	display: flex;
	align-items: center;
	gap: 1rem;
	justify-content: center;
}

@media (min-width: 768px) {
	.footer-badges {
		justify-content: flex-end;
	}
}

.age-badge {
	width: 36px;
	height: 36px;
	background: var(--danger);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.875rem;
}

/* Mobile Menu */
.mobile-menu-btn {
	display: flex;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

/* Ensure [hidden] always wins (otherwise .mobile-menu { display:flex } can override it) */
.mobile-menu[hidden],
.mobile-menu-overlay[hidden] {
	display: none !important;
}

.mobile-menu-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
	z-index: 45;
}

.mobile-menu {
	position: fixed;
	top: 72px;
	left: 0;
	right: 0;
	background: rgba(10, 10, 15, 0.95);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	z-index: 46;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.mobile-menu a {
	color: var(--text-secondary);
	font-weight: 600;
	padding: 0.9rem 0.75rem;
	border-radius: 10px;
}

.mobile-menu a:hover {
	background: var(--bg-card);
	color: var(--text-primary);
}

.mobile-menu-cta {
	margin-top: 0.5rem;
	width: 100%;
}

/* burger -> X */
.header.mobile-open .mobile-menu-btn span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.header.mobile-open .mobile-menu-btn span:nth-child(2) {
	opacity: 0;
}
.header.mobile-open .mobile-menu-btn span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
	.mobile-menu-btn {
		display: none;
	}
	.mobile-menu,
	.mobile-menu-overlay {
		display: none !important;
	}
}

.mobile-menu-btn span {
	width: 24px;
	height: 2px;
	background: var(--text-primary);
	transition: all 0.3s;
}

/* Scroll to top */
.scroll-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 48px;
	height: 48px;
	background: var(--accent);
	border: none;
	border-radius: 12px;
	color: white;
	font-size: 1.25rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
	z-index: 40;
}

.scroll-top.visible {
	opacity: 1;
	visibility: visible;
}

.scroll-top:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 30px var(--accent-glow);
}
