.page-transition-ready body {
	opacity: 1;
}

.page-transition-ready.page-transition-entered body {
	opacity: 1;
}

.page-transition-ready.page-transition-leaving body {
	opacity: 1;
}

.page-transition-ready::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	pointer-events: none;
	background:
		radial-gradient(circle at 50% 40%, rgba(255, 140, 66, 0.18), transparent 34%),
		linear-gradient(135deg, #170b2c 0%, #241038 48%, #10091d 100%);
	opacity: 1;
	transform: scale(1);
	transition: opacity 0.34s ease, transform 0.34s ease;
}

.page-transition-ready.page-transition-entered::before {
	opacity: 0;
	transform: scale(1.02);
}

.page-transition-ready.page-transition-leaving::before {
	opacity: 1;
	transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
	.page-transition-ready::before {
		transition-duration: 0.01ms;
	}
}

.header {
	position: sticky;
	top: 16px;
	z-index: 100;
	display: grid;
	grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
	align-items: center;
	gap: 18px;
	width: min(1320px, calc(100% - 32px));
	margin: 0 auto 44px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 18px;
	background: rgba(13, 13, 13, 0.72);
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.header.scrolled {
	border-color: rgba(255, 255, 255, 0.12);
	background: rgba(13, 13, 13, 0.72);
}

.header .logo {
	display: inline-flex;
	align-items: center;
	grid-column: 1;
	justify-self: start;
	flex: 0 0 auto;
	padding: 10px 12px;
	background: linear-gradient(135deg, #ff4757, #ff8c42, #6a5acd);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	font-family: "Press Start 2P", monospace;
	font-size: clamp(0.72rem, 1.5vw, 0.95rem);
	font-weight: 900;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.nav-toggle {
	position: relative;
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.26);
	outline: none;
	transform: translateY(-1px);
}

.nav-toggle span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transition: transform 0.25s ease, opacity 0.2s ease;
	transform: translate(-50%, -50%);
}

.nav-toggle span:nth-child(1) {
	transform: translate(-50%, calc(-50% - 6px));
}

.nav-toggle span:nth-child(3) {
	transform: translate(-50%, calc(-50% + 6px));
}

.header.nav-open .nav-toggle span:nth-child(1) {
	transform: translate(-50%, -50%) rotate(45deg);
}

.header.nav-open .nav-toggle span:nth-child(2) {
	opacity: 0;
}

.header.nav-open .nav-toggle span:nth-child(3) {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.nav {
	display: contents;
	align-items: stretch;
	justify-content: stretch;
	height: auto;
	list-style: none;
}

.nav-main-links,
.nav-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nav-main-links {
	grid-column: 2;
	justify-self: center;
}

.nav-actions {
	grid-column: 3;
	justify-self: end;
}

.nav a {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 14px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: rgba(255, 255, 255, 0.74);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.3s ease;
}

.nav a:hover,
.nav a:focus-visible {
	color: #fff;
	background: rgba(255, 255, 255, 0.09);
	outline: none;
	transform: translateY(-1px);
}

.nav .nav-trial-link {
	color: #ffd84d;
	font-weight: 700;
}

.nav .nav-trial-link:hover,
.nav .nav-trial-link:focus-visible {
	color: #ffe680;
}

.nav .nav-cta {
	display: inline-flex;
	color: #fff;
	background: linear-gradient(135deg, #ff4757, #ff8c42);
	box-shadow: 0 10px 24px rgba(255, 71, 87, 0.28);
}

.nav .nav-cta:hover,
.nav .nav-cta:focus-visible {
	background: linear-gradient(135deg, #ff5c6a, #ff9a5c);
}

.language-switch {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	min-height: 40px;
	padding: 3px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
}

.language-switch button {
	min-width: 38px;
	min-height: 32px;
	padding: 7px 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: rgba(255, 255, 255, 0.68);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.language-switch button:hover,
.language-switch button:focus-visible {
	color: #fff;
	outline: none;
	transform: translateY(-1px);
}

.language-switch button.is-active,
.language-switch button[aria-pressed="true"] {
	background: #fff;
	color: #111118;
}

.section-container {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
}

.site-footer {
	width: calc(100% + 40px);
	margin: 0 -20px -20px;
	padding: 42px 20px 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	background: linear-gradient(135deg, #101014 0%, #181823 52%, #25142c 100%);
	color: rgba(255, 255, 255, 0.72);
	letter-spacing: 0.02em;
}

body > .site-footer {
	width: 100%;
	margin: 0;
}

.footer-container {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(150px, 0.5fr) minmax(220px, 0.65fr) minmax(220px, 0.65fr);
	gap: clamp(24px, 4vw, 52px);
	align-items: start;
}

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

.footer-logo {
	display: inline-block;
	margin-bottom: 18px;
	background: linear-gradient(135deg, #ff4757, #ff8c42, #6a5acd);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	font-family: "Press Start 2P", monospace;
	font-size: clamp(0.9rem, 1.8vw, 1.2rem);
	line-height: 1.4;
	text-decoration: none;
}

.footer-logo:hover,
.footer-logo:focus-visible {
	outline: none;
	text-decoration: none;
}

.footer-brand p,
.footer-bottom {
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.95rem;
	line-height: 1.7;
}

.footer-title {
	margin: 0 0 18px;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.footer-links,
.footer-contact-list,
.footer-social {
	display: grid;
	gap: 12px;
}

.footer-links a,
.footer-contact-list a,
.social-link {
	color: rgba(255, 255, 255, 0.68);
	text-decoration: none;
	transition: color 0.25s ease, transform 0.25s ease;
}

.footer-contact-list {
	margin: 0;
	font-style: normal;
}

.footer-contact-list span {
	color: rgba(255, 255, 255, 0.68);
}

.footer-contact-list a {
	word-break: break-word;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-contact-list a:hover,
.footer-contact-list a:focus-visible,
.social-link:hover,
.social-link:focus-visible {
	color: #ff8c42;
	outline: none;
	transform: translateX(3px);
}

.social-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
}

.social-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
}

.social-icon svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.footer-bottom {
	width: min(1180px, calc(100% - 40px));
	margin: 30px auto 0;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
}

.site-footer strong {
	color: #fff;
	font-weight: 700;
}

@media (max-width: 1080px) {
	.footer-container {
		grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
	}

	.mobile-topbar {
		top: 94px;
	}

	.sidebar {
		top: 160px;
		height: calc(100vh - 176px);
	}
}

@media (max-width: 768px) {
	.header {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 12px;
		top: 12px;
		width: min(100%, calc(100% - 24px));
		margin-bottom: 30px;
		padding: 10px;
		border-radius: 16px;
	}

	.header .logo {
		min-width: 0;
		padding: 9px 10px;
		overflow: hidden;
		font-size: 0.7rem;
		text-overflow: ellipsis;
	}

	.nav-toggle {
		display: inline-flex;
		grid-column: 2;
		justify-self: end;
	}

	.nav {
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		right: 0;
		display: grid;
		grid-template-columns: 1fr;
		width: auto;
		max-height: 0;
		gap: 0;
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		padding: 0 8px;
		border: 1px solid transparent;
		border-radius: 16px;
		background: rgba(13, 13, 13, 0.92);
		box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
		transform: translateY(-6px);
		transition: max-height 0.32s ease, opacity 0.22s ease, visibility 0.22s ease, padding 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
	}

	.nav-main-links,
	.nav-actions {
		display: grid;
		grid-template-columns: 1fr;
		grid-column: auto;
		justify-self: stretch;
		width: 100%;
		gap: 6px;
	}

	.header.nav-open .nav {
		max-height: min(560px, calc(100dvh - 96px));
		gap: 6px;
		padding: 8px;
		overflow-y: auto;
		overscroll-behavior: contain;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		border-color: rgba(255, 255, 255, 0.12);
		transform: translateY(0);
	}

	.header.nav-open .nav::-webkit-scrollbar {
		width: 4px;
	}

	.header.nav-open .nav::-webkit-scrollbar-thumb {
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.24);
	}

	.nav a {
		width: 100%;
		min-height: 42px;
		justify-content: flex-start;
		padding: 10px 13px;
		background: rgba(255, 255, 255, 0.05);
		font-size: 0.9rem;
	}

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

	.language-switch {
		width: 100%;
		min-height: 44px;
		flex-shrink: 0;
		justify-content: center;
		margin-top: 2px;
	}

	.language-switch button {
		flex: 1 1 0;
		min-height: 34px;
	}

	.site-footer {
		width: calc(100% + 30px);
		margin: 0 -15px -24px;
		padding: 36px 15px max(18px, env(safe-area-inset-bottom));
		font-size: 0.85rem;
	}

	@supports (margin-bottom: calc(0px - max(24px, env(safe-area-inset-bottom)))) {
		.site-footer {
			margin-bottom: calc(0px - max(24px, env(safe-area-inset-bottom)));
		}
	}

	.footer-container {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.footer-bottom {
		width: 100%;
		margin-top: 24px;
		padding-top: 14px;
		text-align: left;
	}

	.mobile-topbar {
		top: 82px;
	}

	.sidebar {
		top: 148px;
		height: calc(100vh - 164px);
	}
}
