/* ─── RESET & ROOT ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
	--bg:      #020c0e;
	--bg2:     #0a1618;
	--bg3:     #0f1e21;
	--bg4:     #162426;
	--accent:  #26d9c4;
	--accent2: #2ef9e1;
	--dim:     #86acb3;
	--text:    #e8fffc;
	--textmid: #b8d3d0;
	--border:  rgba(38,217,196,.15);
	--glow:    rgba(38,217,196,.12);
	--radius:  10px;
}

html { scroll-behavior: smooth; }

body {
	font-family: 'Montserrat', sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	font-size: 15px;
	overflow-x: hidden;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	background: repeating-linear-gradient(
		0deg,
		transparent, transparent 2px,
		rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px
	);
	pointer-events: none;
	z-index: 9999;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent2); }

/* ─── HERO ─── */
.hero {
	position: relative;
	height: 420px;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 30%;
	filter: brightness(.45) saturate(.8);
	transition: filter 8s ease;
}
.hero:hover .hero-bg { filter: brightness(.55) saturate(.9); }

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		var(--bg) 0%,
		rgba(2,12,14,.7) 40%,
		transparent 100%
	);
}

.hero-content {
	position: relative;
	z-index: 2;
	padding: 0 60px 44px;
	max-width: 900px;
}

.hero-tag {
	display: inline-block;
	font-size: .65rem;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--accent);
	background: rgba(38,217,196,.1);
	border: 1px solid rgba(38,217,196,.25);
	padding: 4px 12px;
	border-radius: 20px;
	margin-bottom: 14px;
}

.hero-title {
	font-size: 2.4rem;
	font-weight: 700;
	color: var(--text);
	line-height: 1.15;
	letter-spacing: -.3px;
	text-shadow: 0 2px 20px rgba(0,0,0,.6);
}

.hero-subtitle {
	margin-top: 10px;
	font-size: .9rem;
	color: var(--textmid);
	max-width: 560px;
}

/* ─── BACK BUTTON ─── */
.back-bar {
	position: absolute;
	top: 22px;
	left: 28px;
	z-index: 10;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: rgba(232,255,252,.7);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .5px;
	background: rgba(2,12,14,.5);
	border: 1px solid var(--border);
	padding: 7px 16px;
	border-radius: 30px;
	backdrop-filter: blur(6px);
	transition: color .2s, background .2s;
}
.back-link:hover { color: var(--accent2); background: rgba(38,217,196,.1); }

/* ─── MAIN WRAPPER ─── */
.page-body {
	max-width: 940px;
	margin: 0 auto;
	padding: 52px 32px 80px;
}

/* ─── TECH TAGS ─── */
.tech-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 40px;
}
.tech-tag {
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--accent);
	background: rgba(38,217,196,.07);
	border: 1px solid rgba(38,217,196,.2);
	padding: 5px 13px;
	border-radius: 20px;
}

/* ─── SECTION TITLES ─── */
.section-eyebrow {
	font-size: .62rem;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 8px;
}
.section-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border);
}

/* ─── DESCRIPTION BLOCK ─── */
.desc-block {
	margin-bottom: 48px;
}
.desc-block p {
	font-size: .88rem;
	color: var(--textmid);
	line-height: 1.8;
	margin-bottom: 14px;
}
.desc-block p:last-child { margin-bottom: 0; }
.desc-block strong { color: var(--text); }
.desc-block .highlight { color: var(--accent); font-weight: 600; }

/* ─── INFO GRID ─── */
.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 48px;
}
.info-cell {
	background: var(--bg3);
	padding: 18px 20px;
	transition: background .2s;
}
.info-cell:hover { background: var(--bg4); }
.info-cell-label {
	font-size: .62rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--dim);
	margin-bottom: 5px;
}
.info-cell-value {
	font-size: .85rem;
	font-weight: 600;
	color: var(--text);
}
.info-cell-value a { color: var(--accent); }

/* ─── TASKS / CONTRIBUTION ─── */
.tasks-block {
	background: var(--bg3);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 28px 30px;
	margin-bottom: 48px;
}
.tasks-block p {
	font-size: .85rem;
	color: var(--textmid);
	margin-bottom: 14px;
	line-height: 1.75;
}
.tasks-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 16px 0;
}
.tasks-list li {
	display: flex;
	gap: 12px;
	font-size: .84rem;
	color: var(--textmid);
	line-height: 1.6;
}
.tasks-list li::before {
	content: '▸';
	color: var(--accent);
	flex-shrink: 0;
	margin-top: 1px;
}
.tasks-list strong { color: var(--text); }
.tasks-highlight {
	display: inline;
	color: var(--accent);
	font-weight: 600;
}

/* ─── DOWNLOAD SECTION ─── */
.download-block {
	background: var(--bg3);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 28px 30px;
	margin-bottom: 48px;
}
.download-block p {
	font-size: .84rem;
	color: var(--dim);
	margin-bottom: 16px;
}
.download-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
}
.download-row:last-of-type { border-bottom: none; }
.download-platform {
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--dim);
	width: 80px;
	flex-shrink: 0;
}
.download-info {
	font-size: .8rem;
	color: var(--textmid);
	flex: 1;
}
.dl-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--accent);
	color: #020c0e;
	font-size: .75rem;
	font-weight: 700;
	padding: 8px 18px;
	border-radius: 6px;
	white-space: nowrap;
	transition: background .2s, box-shadow .2s, transform .15s;
}
.dl-btn:hover {
	background: var(--accent2);
	box-shadow: 0 0 18px rgba(38,217,196,.35);
	transform: translateY(-1px);
	color: #020c0e;
}
.steam-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1px solid var(--accent);
	color: var(--accent);
	font-size: .8rem;
	font-weight: 700;
	padding: 10px 22px;
	border-radius: 6px;
	transition: background .2s, color .2s, box-shadow .2s;
}
.steam-btn:hover {
	background: var(--accent);
	color: #020c0e;
	box-shadow: 0 0 18px rgba(38,217,196,.3);
}

/* ─── GALLERY ─── */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 48px;
}
.gallery-grid img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--border);
	filter: brightness(.85) saturate(.85);
	transition: filter .3s, transform .3s, box-shadow .3s;
	cursor: zoom-in;
	display: block;
}
.gallery-grid img:hover {
	filter: brightness(1) saturate(1.05);
	transform: scale(1.02);
	box-shadow: 0 6px 24px rgba(0,0,0,.5);
	position: relative;
	z-index: 1;
}

/* ─── LIGHTBOX ─── */
.lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(2,12,14,.95);
	z-index: 10000;
	align-items: center;
	justify-content: center;
	cursor: zoom-out;
	backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox img {
	max-width: 90vw;
	max-height: 88vh;
	border-radius: 8px;
	box-shadow: 0 0 80px rgba(0,0,0,.8);
	object-fit: contain;
}
.lightbox-close {
	position: absolute;
	top: 24px; right: 28px;
	color: var(--dim);
	font-size: 1.6rem;
	cursor: pointer;
	transition: color .2s;
	line-height: 1;
}
.lightbox-close:hover { color: var(--text); }

/* ─── FOOTER ─── */
footer {
	text-align: center;
	padding: 32px 0 0;
	color: var(--dim);
	font-size: .72rem;
	border-top: 1px solid var(--border);
}

/* ─── FADE IN ─── */
.fade {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .5s ease, transform .5s ease;
}
.fade.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 700px) {
	.hero { height: 300px; }
	.hero-content { padding: 0 24px 32px; }
	.hero-title { font-size: 1.7rem; }
	.page-body { padding: 36px 20px 60px; }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.info-grid { grid-template-columns: 1fr 1fr; }
	.download-row { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 460px) {
	.gallery-grid { grid-template-columns: 1fr; }
	.info-grid { grid-template-columns: 1fr; }
}
