/* =====================================================
   OTB dev. — Layout v12 (FROZEN + White Glow)
===================================================== */

:root {
	--bg: #0c0f14;
	--bg-soft: #11151c;
	--text: #e6edf3;
	--text-dim: #9aa4af;
	--accent: #22d3ee;
	--accent-soft: rgba(34, 211, 238, 0.25);

	--border: rgba(255, 255, 255, 0.08);
	--card-bg: rgba(255, 255, 255, 0.03);

	--radius: 16px;
	--ease: cubic-bezier(.25, 1, .5, 1);

	--container: 1240px;
	--header-height: 90px;
}

/* --- BASE --- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Inter", sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
}

/* --- UTILS --- */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 40px;
}

.stack>*+* {
	margin-top: 24px;
}

/* --- HEADER --- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(12, 15, 20, 0.85);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
	width: 100%;
}

.header-inner {
	height: var(--header-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	max-width: 100%;
	padding: 0 50px;
}

.brand {
	font-size: 26px;
	font-weight: 800;
	color: var(--text);
	letter-spacing: -0.5px;
	/* UPDATE: Легке світіння бренду */
	text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

nav {
	display: flex;
	align-items: center;
}

nav a {
	margin-left: 40px;
	text-decoration: none;
	color: var(--text-dim);
	font-size: 15px;
	font-weight: 500;
	transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover,
nav a.active {
	color: var(--accent);
	/* UPDATE: Світіння активного лінка */
	text-shadow: 0 0 15px var(--accent-soft);
}

/* --- SECTIONS --- */
.section {
	padding: 100px 0;
}

.section-sm {
	padding: 80px 0;
}

/* --- HOME CARDS --- */
.card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 40px;

	opacity: 0;
	transform: translateY(30px);
	transition:
		opacity 0.8s var(--ease),
		transform 0.8s var(--ease),
		border-color 0.3s ease,
		box-shadow 0.3s ease;
}

.card.visible {
	opacity: 1;
	transform: translateY(0);
}

/* UPDATE: Біле світіння (Glow) замість чорної тіні */
.card:hover {
	border-color: rgba(255, 255, 255, 0.3);
	/* Яскравіший бордер */
	box-shadow: 0 0 40px -5px rgba(255, 255, 255, 0.15);
	/* Біле світіння */
	transform: translateY(-2px);
}

.card h2,
.card h3 {
	color: #fff;
	margin-top: 0;
	margin-bottom: 16px;
}

/* --- HERO --- */
.hero {
	text-align: center;
	max-width: 900px;
	margin: 0 auto;
}

.hero h1 {
	font-size: 52px;
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 24px 0;
	background: linear-gradient(to right, #fff, #9aa4af);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.hero p {
	font-size: 20px;
	color: var(--text-dim);
	max-width: 700px;
	margin: 0 auto;
}

/* --- LAYOUT GRID --- */
.layout-main {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 40px;
	align-items: start;
}

.side-stack {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* =========================================
   APPS SLIDER (GAME STYLE)
========================================= */

.apps-wrapper {
	position: relative;
	padding: 60px 0;
}

.apps-row {
	display: flex;
	gap: 24px;
	padding: 40px 6vw;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	align-items: center;
	min-height: 550px;
}

.apps-row::-webkit-scrollbar {
	display: none;
}

.app-card {
	position: relative;
	flex: 0 0 280px;
	height: 380px;
	border-radius: var(--radius);
	overflow: hidden;
	cursor: pointer;
	background: #0c0f14;
	scroll-snap-align: center;
	border: 1px solid var(--border);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
	transition: all 0.6s var(--ease);
}

/* ACTIVE STATE */
.app-card.active {
	flex: 0 0 600px;
	height: 440px;
	border-color: var(--app-color, var(--accent));
	box-shadow: 0 25px 60px -10px var(--app-glow, var(--accent-soft));
	z-index: 10;
}

.app-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.8s var(--ease);
}

.app-card.active .app-bg {
	transform: scale(1.05);
}

.app-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 30%, rgba(12, 15, 20, 0.95) 90%);
	opacity: 0.7;
	transition: opacity 0.5s ease;
}

.app-card.active .app-overlay {
	opacity: 0.9;
}

.app-content {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 32px;
	z-index: 2;
	transform: translateY(calc(100% - 110px));
	transition: transform 0.6s var(--ease);
}

.app-card.active .app-content {
	transform: translateY(0);
}

.app-content h3 {
	margin: 0;
	font-size: 24px;
	color: #fff;
	font-weight: 700;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.app-content p {
	font-size: 15px;
	color: #ccc;
	margin-top: 16px;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.5s ease 0.1s;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.app-card.active .app-content p {
	opacity: 1;
	transform: translateY(0);
}

.app-link {
	display: inline-block;
	margin-top: 20px;
	color: var(--app-color, var(--accent));
	font-weight: 600;
	text-decoration: none;
	opacity: 0;
	transition: 0.5s ease 0.2s;
}

.app-card.active .app-link {
	opacity: 1;
}

/* --- DOTS --- */
.apps-dots {
	display: flex;
	justify-content: center;
	gap: 12px;
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
}

.dot-btn {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.15);
	cursor: pointer;
	transition: 0.3s;
	padding: 0;
}

.dot-btn.active {
	background: var(--accent);
	transform: scale(1.4);
	box-shadow: 0 0 10px var(--accent-soft);
}

/* --- FOOTER --- */
footer {
	border-top: 1px solid var(--border);
	padding: 60px 0;
	margin-top: 60px;
	text-align: center;
}

footer .container {
	display: block;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
	.header-inner {
		padding: 0 20px;
	}

	.layout-main {
		grid-template-columns: 1fr;
	}

	.apps-row {
		padding: 20px 20px;
	}

	.app-card {
		flex: 0 0 260px;
		height: 360px;
	}

	.app-card.active {
		flex: 0 0 320px;
		height: 380px;
	}

	.section {
		padding: 60px 0;
	}

	nav a {
		margin-left: 20px;
		font-size: 14px;
	}
}