:root {
	--bg: #0f1720;
	--card: #0b1220;
	--muted: #9aa7b2;
	--accent: #EF582E;
	--accent-2: #EF582E;
	--glass: rgba(255, 255, 255, 0.04);
}

* {
	box-sizing: border-box
}

html,
body {
	height: 100%
}

body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	/* background: linear-gradient(180deg, #071226 0%, #071621 60%);*/ /* This was making a weird gradient will revisit*/
	background: #071226;
	color: #e6eef3;
	-webkit-font-smoothing: antialiased;
}

.inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px
}

.site-header {
	background: #071226;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04)
}

.site-header {
	position: relative;
	z-index: 2
}

.site-header .inner {
	display: flex;
	align-items: center;
	gap: 16px
}

.brand {
	font-weight: 700;
	color: var(--accent);
	text-decoration: none;
	font-size: 1.05rem;
	display: flex;
	align-items: center;
	gap: 10px
}

.brand img.logo {
	width: 44px;
	height: auto;
	display: block
}

.brand span {
	display: inline-block
}

.site-nav {
	margin-left: auto;
	display: flex;
	gap: 12px
}

.site-nav a {
	color: var(--muted);
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 8px
}

.site-nav a:hover {
	background: var(--glass);
	color: #fff
}

.site-nav a.active {
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	color: #071621;
	font-weight: 600
}

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	color: var(--muted);
	font-size: 1.25rem
}

.hero {
	padding: 36px 0;
	/* background: linear-gradient(180deg, rgba(34, 197, 94, 0.05), transparent); */
	background: #071226;
	position: relative
}

.hero::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 320px;
	height: 320px;
	background: url('/img/meshtastic-logo.svg') center/contain no-repeat;
	opacity: 0.85;
	z-index: 0;
	pointer-events: none
}

.hero-inner {
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
	padding: 24px 16px;
	position: relative;
	z-index: 1
}

.hero h1 {
	font-size: 1.75rem;
	margin: 0 0 10px;
	color: #fff
}

.hero p {
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 1.05rem
}

.btn {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--accent);
	color: #06121a;
	text-decoration: none;
	font-weight: 600
}

.btn.ghost {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.06)
}

.btn+.btn {
	margin-left: 10px
}

.content {
	padding: 32px 0
}

.grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px 18px
}

.card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
	padding: 20px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.02)
}

.card.welcome {
	padding: 34px 26px
}

.card .card-icon {
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	margin-right: 12px;
	display: inline-block;
	vertical-align: middle
}

.card .card-heading {
	display: flex;
	align-items: center;
	gap: 8px
}

.card h2 {
	margin-top: 0;
	color: #fff
}

.card p,
.card ul {
	color: var(--muted);
	margin: 0
}

.card img {
	max-width: 100%;
	display: block;
	border-radius: 8px;
	margin-top: 14px
}

.prose .card {
	padding: 20px
}

.prose h2 {
	font-size: 1.25rem
}

.prose h3 {
	margin-top: 14px;
	margin-bottom: 6px;
	color: #fff
}

.prose ul {
	margin: 8px 0 12px 1.2rem
}

.two-up {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px
}

.two-up img {
	width: 100%;
	height: auto;
	border-radius: 8px
}

.orangeLink {
	color: #EF582E;
	font-weight: bold;
}

/* Contact page image sizing similar to original site */
.prose img {
	max-width: 320px;
	width: 100%;
	height: auto;
	border-radius: 8px
}

.two-up img {
	max-width: 300px
}

/* Lead paragraph styling for restored homepage copy */
.lead {
	background: transparent;
	padding: 18px 24px;
	margin-top: 18px;
	border-radius: 8px;
	color: var(--muted)
}

.lead p {
	margin: 0 0 12px;
	color: var(--muted);
	line-height: 1.5
}

/* Utility: span a grid item across all columns */
.span-2 {
	grid-column: 1 / -1
}

.site-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.03);
	padding: 16px 0;
	margin-top: 18px;
	color: var(--muted);
	font-size: 0.85rem;
	text-align: center
}

@media (max-width:800px) {
	.grid {
		grid-template-columns: 1fr
	}

	.site-nav {
		position: absolute;
		right: 16px;
		top: 64px;
		background: #071226;
		padding: 12px;
		border-radius: 8px;
		display: none;
		flex-direction: column;
		box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
		z-index: 3
	}

	.site-nav.open {
		display: flex
	}

	.nav-toggle {
		display: inline-block;
		margin-left: auto;
		z-index: 4
	}
}

@media (max-width:480px) {
	.hero {
		padding: 22px 0
	}

	.hero h1 {
		font-size: 1.3rem
	}

	.hero-inner {
		padding: 12px
	}
}