:root {
	--bg: #000;
	--text: #f7f7f7;
	--muted: rgba(247, 247, 247, .62);
	--accent: #4f8eff;
	--accent-2: #8fb6ff;
	--on-accent: #08121f;
	--line: rgba(255, 255, 255, .12);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
	background: var(--bg); color: var(--text);
	font-family: 'Outfit', system-ui, sans-serif; font-weight: 300; font-size: 16px; line-height: 1.55;
	min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* Minecraft scene behind everything, fading into black */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .3; filter: blur(4px) saturate(1.1); transform: scale(1.06); }
.backdrop::after {
	content: ''; position: absolute; inset: 0;
	background:
		radial-gradient(ellipse at 70% 45%, rgba(79, 142, 255, .18), transparent 55%),
		linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .82) 38%, rgba(0, 0, 0, .55) 100%),
		linear-gradient(0deg, #000 0%, transparent 40%);
}

/* navigation */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(16px, 5vw, 64px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: 'Pixelify Sans', sans-serif; font-weight: 700; letter-spacing: 1.5px; font-size: 18px; }
.brand img { border-radius: 9px; box-shadow: 0 0 22px rgba(79, 142, 255, .45); }
.brand b { color: var(--accent); font-weight: 700; }

/* buttons */
.btn {
	display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap;
	font-weight: 500; font-size: 15px; border-radius: 10px; padding: 13px 22px;
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.pill { border-radius: 999px; padding: 8px 18px; font-size: 13px; background: var(--accent); color: var(--on-accent); }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 34px rgba(79, 142, 255, .35); font-size: 16px; padding: 15px 26px; }
.btn.primary:hover { box-shadow: 0 14px 44px rgba(79, 142, 255, .55); }
.btn.ghost { color: var(--text); border: 1px solid var(--line); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.os { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* hero */
.hero {
	flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center;
	gap: clamp(28px, 4vw, 64px); padding: 2vh clamp(16px, 5vw, 64px) 6vh; max-width: 1500px; width: 100%; margin: 0 auto;
}
h1 {
	font-family: 'Pixelify Sans', sans-serif; font-weight: 700; font-size: clamp(34px, 3.7vw, 60px); line-height: 1.1;
	letter-spacing: .5px; margin: 0 0 22px; text-shadow: 0 4px 30px rgba(0, 0, 0, .6);
}
h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 30em; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.meta a { color: var(--muted); }
.meta a:hover { color: var(--text); }

/* the launcher, shown big with a glow */
.showcase { display: flex; flex-direction: column; align-items: center; gap: 18px; perspective: 1600px; }
.window {
	position: relative; width: 100%; aspect-ratio: 1280 / 780; border-radius: 16px; overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .14); background: #05070d;
	box-shadow: 0 0 0 1px rgba(79, 142, 255, .18), 0 30px 90px rgba(0, 0, 0, .7), 0 0 120px rgba(79, 142, 255, .28);
	transform: rotateY(-7deg) rotateX(3deg); transition: transform .6s ease;
	animation: float 7s ease-in-out infinite;
}
.window:hover { transform: rotateY(0) rotateX(0); }
@keyframes float { 50% { translate: 0 -10px; } }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.shot.active { opacity: 1; }
.tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.tabs button {
	border: 0; background: transparent; color: var(--muted); font: 500 13px 'Outfit', sans-serif;
	padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { background: var(--accent); color: var(--on-accent); }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px clamp(16px, 5vw, 64px) 24px; font-size: 12px; color: rgba(247, 247, 247, .4); }

/* phones and small windows: text on top, launcher below */
@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; text-align: center; padding-top: 4vh; }
	.lead { margin-left: auto; margin-right: auto; }
	.actions { justify-content: center; }
	.window { transform: none; }
	.nav .brand span { font-size: 15px; }
}
@media (max-width: 520px) {
	.btn.primary, .btn.ghost { width: 100%; justify-content: center; }
	.tabs button { padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.window { animation: none; }
	.shot { transition: none; }
}
