:root {
	--lime: #accb10;
	--dark: #0d0d0d;
	--dark-2: #171717;
	--dark-3: #262626;
	--line: #343434;
	--light: #f8f8f6;
	--muted: #b8b8b2;
	--white: #ffffff;
	--ink: #090909;
	--max: 1180px;
	font-family:
		"Space Grotesk",
		Inter,
		ui-sans-serif,
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
	color: var(--light);
	background: var(--dark);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background:
		linear-gradient(135deg, rgba(172, 203, 16, 0.12), transparent 32rem),
		linear-gradient(180deg, #0d0d0d 0%, #141414 44%, #0d0d0d 100%);
	color: var(--light);
}

a {
	color: inherit;
	text-decoration: none;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	width: min(100% - 2rem, var(--max));
	margin: 0 auto;
	padding: 1rem 0;
	backdrop-filter: blur(18px);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	min-width: max-content;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	border: 1px solid #ff9900;
	background: #181818;
	box-shadow: 6px 6px 0 var(--dark-3);
}

.brand-mark img {
	display: block;
	width: 100%;
	height: 100%;
}

.brand strong,
.brand small {
	display: block;
	line-height: 1;
}

.brand small {
	margin-top: 0.25rem;
	color: var(--muted);
	font-size: 0.75rem;
}

.nav {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	color: var(--muted);
	font-size: 0.92rem;
}

.nav a:hover {
	color: var(--white);
}

.nav-cta {
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--lime);
	color: var(--light);
}

.hero,
.problem-section,
.positioning,
.features,
.partner-section,
.version-section,
.cta-section,
.site-footer {
	width: min(100% - 2rem, var(--max));
	margin: 0 auto;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.86fr);
	align-items: center;
	gap: clamp(2rem, 6vw, 5rem);
	min-height: calc(100vh - 4.8rem);
	padding: clamp(4rem, 8vw, 7rem) 0 5rem;
}

.eyebrow,
.section-label {
	margin: 0 0 1rem;
	color: var(--lime);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	max-width: 13ch;
	margin-bottom: 1.4rem;
	font-size: 7rem;
	line-height: 0.9;
	letter-spacing: 0;
}

h2 {
	margin-bottom: 1.2rem;
	font-size: 4rem;
	line-height: 0.98;
	letter-spacing: 0;
}

h3 {
	margin-bottom: 0.75rem;
	font-size: 1.25rem;
	line-height: 1.08;
}

.lead {
	max-width: 41rem;
	color: var(--muted);
	font-size: 1.3rem;
	line-height: 1.55;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2rem;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.2rem;
	padding: 0.9rem 1.2rem;
	border: 1px solid var(--lime);
	font-weight: 800;
	transition:
		transform 160ms ease,
		box-shadow 160ms ease,
		background 160ms ease;
}

.button:hover {
	transform: translate(-2px, -2px);
}

.button.primary {
	background: var(--lime);
	color: var(--ink);
	box-shadow: 6px 6px 0 var(--dark-3);
}

.button.secondary {
	color: var(--light);
}

.hero-proof {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 2rem;
	color: var(--muted);
	font-size: 0.9rem;
}

.hero-proof span {
	border: 1px solid var(--line);
	padding: 0.5rem 0.7rem;
	background: rgba(255, 255, 255, 0.03);
}

.product-visual {
	min-width: 0;
	perspective: 1400px;
}

.sidebar-render {
	position: relative;
	min-height: 42rem;
	transform: rotateX(8deg) rotateY(-18deg) rotateZ(1deg);
	transform-style: preserve-3d;
}

.render-shadow {
	position: absolute;
	right: 1.2rem;
	bottom: 2rem;
	width: 78%;
	height: 6rem;
	background: rgba(0, 0, 0, 0.6);
	filter: blur(24px);
	transform: translateZ(-90px) rotateX(76deg);
}

.xbees-rail {
	position: absolute;
	top: 4rem;
	left: -1.2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 4.4rem;
	height: 31rem;
	padding: 1rem 0.8rem;
	border: 1px solid #313131;
	background: #202020;
	box-shadow: 12px 14px 0 rgba(172, 203, 16, 0.22);
	transform: translateZ(-36px);
}

.xbees-rail span {
	display: block;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 999px;
	background: #333;
}

.xbees-rail span:first-child {
	background: var(--lime);
}

.sidebar-frame {
	position: relative;
	overflow: hidden;
	width: min(100%, 28rem);
	min-height: 38rem;
	margin-left: auto;
	border: 1px solid rgba(172, 203, 16, 0.65);
	background:
		linear-gradient(180deg, rgba(172, 203, 16, 0.08), transparent 16rem),
		#101010;
	box-shadow:
		18px 18px 0 var(--lime),
		0 30px 70px rgba(0, 0, 0, 0.55);
	transform: translateZ(70px);
}

.sidebar-frame::before {
	position: absolute;
	inset: 0;
	pointer-events: none;
	content: "";
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 22%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 35%);
}

.sidebar-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.2rem;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.03);
}

.mini-label,
.mailbees-card p,
.composer-card p {
	margin-bottom: 0.35rem;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.sync-pill {
	padding: 0.4rem 0.6rem;
	background: rgba(172, 203, 16, 0.16);
	color: var(--lime);
	font-size: 0.75rem;
	font-weight: 900;
}

.mailbees-card {
	position: relative;
	margin: 1.2rem;
	padding: 1.2rem;
	border: 1px solid var(--line);
	background: #151515;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
	transform: translateZ(45px);
}

.main-card {
	z-index: 2;
}

.panel-head,
.composer-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.status-dot {
	padding: 0.35rem 0.55rem;
	background: rgba(172, 203, 16, 0.15);
	color: var(--lime);
	font-size: 0.75rem;
	font-weight: 900;
}

.thread {
	display: grid;
	grid-template-columns: 0.8rem 1fr;
	gap: 0.8rem;
	margin-top: 1rem;
	padding: 1rem;
	border: 1px solid var(--line);
	background: #161616;
}

.thread.active {
	border-color: rgba(172, 203, 16, 0.8);
}

.thread.raised {
	box-shadow: 8px 8px 0 rgba(172, 203, 16, 0.18);
	transform: translateZ(30px);
}

.thread > span {
	width: 0.65rem;
	height: 0.65rem;
	margin-top: 0.2rem;
	border-radius: 50%;
	background: #555;
}

.thread > span.unread {
	background: var(--lime);
}

.thread p {
	text-transform: none;
	font-weight: 500;
}

.composer-card {
	padding: 1rem;
	border: 1px solid var(--line);
	background: var(--light);
	color: var(--ink);
	box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.floating-card {
	position: relative;
	z-index: 3;
	width: calc(100% - 3.2rem);
	margin: -0.1rem 1.6rem 1.4rem;
	transform: translateZ(88px) translateX(1rem);
}

.composer-card p {
	color: #555;
}

.composer-line {
	height: 0.7rem;
	margin: 0.75rem 0;
	background: #d9d9d4;
}

.composer-line.short {
	width: 62%;
}

.composer-footer {
	margin-top: 1rem;
	font-size: 0.8rem;
}

.composer-footer strong {
	padding: 0.45rem 0.7rem;
	background: var(--lime);
	color: var(--ink);
}

.problem-section,
.positioning,
.features,
.partner-section,
.version-section,
.cta-section {
	padding: clamp(4rem, 8vw, 7rem) 0;
	border-top: 1px solid var(--line);
}

.problem-grid,
.positioning,
.partner-section {
	display: grid;
	grid-template-columns: 0.9fr 1fr;
	gap: clamp(2rem, 6vw, 5rem);
}

.problem-grid p,
.position-card p,
.partner-copy p,
.section-heading p,
.cta-section p {
	color: var(--muted);
	font-size: 1.12rem;
	line-height: 1.65;
}

.position-card {
	align-self: start;
	padding: 1.5rem;
	border: 1px solid var(--lime);
	background: var(--light);
	color: var(--ink);
	box-shadow: 8px 8px 0 var(--lime);
}

.position-card p {
	color: #272727;
}

.section-heading {
	max-width: 52rem;
	margin-bottom: 2.4rem;
}

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

.feature-grid article,
.partner-list div,
.included,
.roadmap {
	min-height: 100%;
	padding: 1.2rem;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.035);
}

.feature-grid article span {
	display: inline-block;
	margin-bottom: 1.8rem;
	color: var(--lime);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-weight: 900;
}

.feature-grid article p,
.partner-list p,
.version-grid li {
	color: var(--muted);
	line-height: 1.55;
}

.partner-list {
	display: grid;
	gap: 1rem;
}

.partner-list strong {
	display: block;
	margin-bottom: 0.55rem;
	color: var(--lime);
}

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

.included {
	border-color: rgba(172, 203, 16, 0.75);
}

.version-grid ul {
	margin: 0;
	padding-left: 1.1rem;
}

.version-grid li + li {
	margin-top: 0.75rem;
}

.cta-section {
	max-width: 58rem;
	text-align: center;
}

.cta-section .button {
	margin-top: 1rem;
}

.site-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 2rem 0;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.9rem;
}

@media (max-width: 980px) {
	.nav {
		display: none;
	}

	.hero,
	.problem-grid,
	.positioning,
	.partner-section,
	.version-grid {
		grid-template-columns: 1fr;
	}

	.hero {
		min-height: auto;
	}

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

	.product-visual {
		max-width: 32rem;
		margin: 0 auto;
	}

	.sidebar-render {
		min-height: 39rem;
		transform: rotateX(6deg) rotateY(-10deg);
	}

	h1 {
		font-size: 5.4rem;
	}

	h2 {
		font-size: 3.2rem;
	}
}

@media (max-width: 620px) {
	.hero,
	.problem-section,
	.positioning,
	.features,
	.partner-section,
	.version-section,
	.cta-section {
		width: min(100% - 1.2rem, var(--max));
	}

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

	h1 {
		font-size: 3.5rem;
	}

	h2 {
		font-size: 2.35rem;
	}

	.lead {
		font-size: 1.08rem;
	}

	.feature-grid {
		grid-template-columns: 1fr;
	}

	.hero-actions,
	.site-footer {
		align-items: stretch;
		flex-direction: column;
	}

	.button {
		width: 100%;
	}

	.product-visual {
		max-width: 100%;
		perspective: none;
	}

	.sidebar-render {
		min-height: 35rem;
		transform: none;
	}

	.xbees-rail {
		left: -0.4rem;
		width: 3.2rem;
		height: 27rem;
	}

	.xbees-rail span {
		width: 1.3rem;
		height: 1.3rem;
	}

	.sidebar-frame {
		width: calc(100% - 1.4rem);
		min-height: 34rem;
		box-shadow: 6px 6px 0 var(--lime);
		transform: translateX(1.2rem);
	}

	.floating-card {
		width: calc(100% - 2rem);
		margin-right: 1rem;
		margin-left: 1rem;
		transform: none;
	}
}
