:root {
	--bg: #061006;
	--bg-deep: #020502;
	--panel: rgba(7, 26, 8, 0.88);
	--panel-strong: rgba(10, 34, 12, 0.94);
	--line: rgba(110, 255, 112, 0.28);
	--line-strong: rgba(110, 255, 112, 0.58);
	--text: #c8ffb9;
	--text-dim: #8dd98a;
	--text-soft: #74af72;
	--accent: #61ff5d;
	--accent-soft: #2dc84e;
	--shadow: 0 0 22px rgba(72, 255, 79, 0.16);
	--shadow-strong: 0 0 28px rgba(72, 255, 79, 0.28);
	--max-width: 1180px;
}

* {
	box-sizing: border-box;
}

html {
	zoom: 110%;
	min-height: 100%;
	background:
		radial-gradient(circle at top, rgba(32, 104, 39, 0.2), transparent 32%),
		linear-gradient(180deg, #081309 0%, #030703 100%);
	color-scheme: dark;
}

body {
	margin: 0;
	min-height: 100vh;
	font-size: 17px;
	font-family: Consolas, "Lucida Console", "Courier New", monospace;
	color: var(--text);
	background:
		linear-gradient(rgba(97, 255, 93, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(97, 255, 93, 0.035) 1px, transparent 1px);
	background-size: 24px 24px;
	position: relative;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12) 50%, rgba(255, 255, 255, 0.02));
	background-size: 100% 4px;
	pointer-events: none;
	opacity: 0.22;
	z-index: 1;
}

.screen-glow {
	position: fixed;
	inset: 0;
	background: radial-gradient(circle at center, transparent 50%, rgba(0, 0, 0, 0.36) 100%);
	pointer-events: none;
	z-index: 1;
}

.site-header,
main,
.site-footer {
	position: relative;
	z-index: 2;
	width: min(calc(100% - 2rem), var(--max-width));
	margin-inline: auto;
}

.site-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	padding: 1.5rem 0 1rem;
	border-bottom: 1px solid var(--line);
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.brand-lockup {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.compact-lockup {
	gap: 0.85rem;
}

.brand-mark {
	width: clamp(128px, 16vw, 220px);
	height: auto;
	filter: drop-shadow(0 0 20px rgba(97, 255, 93, 0.18));
}

.small-mark {
	width: clamp(120px, 14vw, 196px);
}

.site-header h1,
.hero-panel h2,
.panel h2,
.panel h3 {
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.05;
}

.site-header h1 {
	font-size: clamp(1.5rem, 2.3vw, 2rem);
	text-shadow: 0 0 8px rgba(97, 255, 93, 0.2);
}

.eyebrow,
.panel-label,
.terminal-line {
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.9rem;
	color: var(--text-soft);
	margin: 0 0 0.65rem;
}

.site-nav {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.site-nav a,
.button {
	text-decoration: none;
	color: var(--accent);
	border: 1px solid var(--line-strong);
	background: rgba(14, 48, 16, 0.7);
	padding: 0.78rem 1rem;
	text-transform: uppercase;
	letter-spacing: 0.11em;
	font-size: 0.92rem;
	transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
	box-shadow: inset 0 0 0 1px rgba(97, 255, 93, 0.12);
}

.site-nav a:hover,
.button:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-strong);
	background: rgba(17, 61, 20, 0.9);
}

.site-nav a.active {
	background: rgba(97, 255, 93, 0.14);
	color: #e4ffd7;
	box-shadow: var(--shadow);
}

.button-secondary {
	color: var(--text);
	border-color: var(--line);
	background: rgba(11, 28, 12, 0.8);
}

main {
	display: grid;
	gap: 1.5rem;
	padding-bottom: 2.5rem;
}

.hero-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.9fr) minmax(220px, 0.7fr);
	gap: 1.25rem;
	align-items: stretch;
}

.hero-panel h2 {
	font-size: clamp(2rem, 3.8vw, 3.4rem);
	max-width: 30ch;
	margin-bottom: 1rem;
	text-shadow: 0 0 14px rgba(97, 255, 93, 0.12);
}

.lead {
	font-size: 1.2rem;
	line-height: 1.7;
	color: var(--text);
	max-width: 74ch;
}

.hero-actions {
	display: flex;
	gap: 0.85rem;
	flex-wrap: wrap;
	margin-top: 1.5rem;
}

.panel {
	background: linear-gradient(180deg, var(--panel-strong), var(--panel));
	border: 1px solid var(--line);
	padding: 1.4rem;
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}

.panel::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid rgba(97, 255, 93, 0.06);
	pointer-events: none;
}

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

.two-up {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide-panel {
	grid-column: 1 / -1;
}

.hero-stat-grid {
	display: grid;
	gap: 0.85rem;
}

.stat-card {
	border: 1px solid var(--line);
	background: rgba(8, 30, 9, 0.82);
	padding: 1rem;
	display: grid;
	gap: 0.35rem;
	min-height: 90px;
}

.stat-value {
	font-size: 1.55rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--accent);
}

.stat-label,
.panel p,
.feature-list,
.steps-list,
.support-copy,
.download-note {
	font-size: 1.02rem;
	line-height: 1.7;
	color: var(--text-dim);
	margin: 0;
}

.panel h2 {
	font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

.panel h3 {
	font-size: clamp(1.15rem, 1.9vw, 1.5rem);
}

.feature-list,
.steps-list {
	padding-left: 1.1rem;
}

.feature-list li,
.steps-list li {
	margin-bottom: 0.55rem;
}

.terminal-panel {
	background: linear-gradient(180deg, rgba(8, 36, 9, 0.95), rgba(6, 18, 6, 0.92));
	border-color: rgba(97, 255, 93, 0.38);
}

.narrative-panel {
	padding-block: 1.8rem;
	text-align: center;
}

.narrative-panel .lead,
.narrative-panel p {
	max-width: 74ch;
	margin-inline: auto;
}

.about-page .narrative-panel h2 {
	font-size: clamp(2rem, 3.8vw, 3.4rem);
}

.about-page .narrative-panel .panel-label {
	text-align: left;
	margin-inline: 0;
}

.downloads-page .featured-download h2 {
	font-size: clamp(2rem, 3.8vw, 3.4rem);
	word-break: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
}

.pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1rem 0 1.25rem;
}

.info-pill {
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--line-strong);
	background: rgba(15, 48, 16, 0.72);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.76rem;
	color: var(--accent);
}

.download-card {
	min-height: 100%;
}

.featured-download {
	box-shadow: 0 0 30px rgba(97, 255, 93, 0.2);
}

.download-note span {
	color: var(--text);
}

.site-footer {
	padding: 0.25rem 0 2rem;
	border-top: 1px solid var(--line);
	color: var(--text-soft);
	font-size: 0.9rem;
}

.features {
	padding: 2rem 1.4rem;
}

.features-intro {
	text-align: center;
	margin-bottom: 2.5rem;
	max-width: 78ch;
	margin-inline: auto;
}

.features-intro h2 {
	font-size: clamp(1.8rem, 3.2vw, 2.8rem);
	margin-bottom: 1.2rem;
	text-shadow: 0 0 12px rgba(97, 255, 93, 0.15);
}

.feature-showcase {
	display: grid;
	gap: 2.5rem;
}

.feature-item {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
	gap: 1.8rem;
	align-items: start;
	border: 1px solid var(--line);
	background: rgba(8, 30, 9, 0.5);
	padding: 1.5rem;
}

.feature-item:nth-child(even) {
	grid-template-columns: minmax(320px, 1.2fr) minmax(280px, 1fr);
}

.feature-item:nth-child(even) .feature-screenshot {
	order: 2;
}

.feature-item:nth-child(even) .feature-content {
	order: 1;
}

.feature-screenshot {
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: 420px;
	border: 1px solid var(--line-strong);
	box-shadow: 0 0 18px rgba(97, 255, 93, 0.12);
	display: block;
	object-fit: contain;
	cursor: pointer;
	transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-screenshot:hover {
	transform: scale(1.02);
	box-shadow: 0 0 24px rgba(97, 255, 93, 0.22);
}

.feature-content h3 {
	color: var(--accent);
	margin-bottom: 0.9rem;
	margin-top: 0;
	text-shadow: 0 0 8px rgba(97, 255, 93, 0.18);
}

.feature-content p {
	line-height: 1.75;
	color: var(--text-dim);
}

/* Lightbox styles */
.lightbox {
	display: none;
	position: fixed;
	z-index: 1000;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.92);
	align-items: center;
	justify-content: center;
	padding: 2rem;
	backdrop-filter: blur(4px);
}

.lightbox-content {
	max-width: 95%;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border: 2px solid var(--line-strong);
	box-shadow: 0 0 40px rgba(97, 255, 93, 0.3);
	animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.lightbox-close {
	position: absolute;
	top: 1.5rem;
	right: 2rem;
	color: var(--accent);
	font-size: 3rem;
	font-weight: bold;
	cursor: pointer;
	transition: color 150ms ease, transform 150ms ease;
	line-height: 1;
	user-select: none;
	z-index: 1001;
}

.lightbox-close:hover {
	color: #fff;
	transform: scale(1.1);
}

.lightbox-caption {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	color: var(--text);
	background: rgba(8, 30, 9, 0.9);
	padding: 0.75rem 1.5rem;
	border: 1px solid var(--line);
	text-align: center;
	max-width: 80%;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

@media (max-width: 920px) {
	.hero-panel,
	.content-grid,
	.two-up {
		grid-template-columns: 1fr;
	}

	.site-header {
		align-items: flex-start;
	}

	.hero-panel h2 {
		max-width: 100%;
	}

	.feature-item,
	.feature-item:nth-child(even) {
		grid-template-columns: 1fr;
	}

	.feature-item:nth-child(even) .feature-screenshot,
	.feature-item:nth-child(even) .feature-content {
		order: 0;
	}
}

@media (max-width: 640px) {
	body {
		background-size: 18px 18px;
	}

	.site-header,
	main,
	.site-footer {
		width: min(calc(100% - 1rem), var(--max-width));
	}

	.site-nav,
	.hero-actions {
		width: 100%;
	}

	.site-nav a,
	.button {
		flex: 1 1 100%;
		text-align: center;
	}

	.panel {
		padding: 1.1rem;
	}

	.lightbox {
		padding: 1rem;
	}

	.lightbox-close {
		top: 1rem;
		right: 1rem;
		font-size: 2.5rem;
	}

	.lightbox-caption {
		bottom: 1rem;
		font-size: 0.85rem;
		padding: 0.5rem 1rem;
		max-width: 90%;
	}
}