/* Starlift site. No frameworks, no scripts, no third-party requests. */

:root {
	--ink: #05071a;
	--night: #070a24;
	--deep: #0d1440;
	--glass: rgba(10, 14, 40, 0.72);
	--line: rgba(120, 190, 255, 0.28);
	--text: #eef2ff;
	--dim: #9aa6c8;
	--cyan: #59c8ff;
	--pink: #ff7ad9;
	--gold: #ffd84a;
	--ember: #ff6a3c;
	--mint: #7dffb0;
	--display: "Avenir Next", "Avenir", ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
	--radius: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
	margin: 0;
	font-family: var(--display);
	font-weight: 500;
	font-size: 17px;
	line-height: 1.55;
	color: var(--text);
	background-color: var(--ink);
	/* two star layers and a slow nebula, all gradients */
	background-image:
		radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 71% 9%, #cfe4ff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 38% 62%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 88% 44%, #ffe9c7 50%, transparent 51%),
		radial-gradient(1px 1px at 54% 83%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 6% 77%, #cfe4ff 50%, transparent 51%),
		radial-gradient(1px 1px at 93% 91%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 27% 36%, #fff 50%, transparent 51%),
		radial-gradient(60% 40% at 78% 8%, rgba(42, 63, 184, 0.45), transparent 70%),
		radial-gradient(50% 35% at 8% 30%, rgba(155, 60, 200, 0.18), transparent 70%),
		linear-gradient(180deg, var(--ink), var(--night) 40%, #060818);
	background-size: 420px 420px, 380px 380px, 520px 520px, 610px 610px, 470px 470px,
		560px 560px, 330px 330px, 290px 290px, 100% 1400px, 100% 1600px, 100% 100%;
	background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat,
		no-repeat, no-repeat, no-repeat;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
main { overflow-x: clip; }

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ------------------------------------------------------------ top bar */

.bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--text);
	text-decoration: none;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 18px rgba(89, 200, 255, 0.45); }
.bar nav { display: flex; gap: 22px; font-weight: 700; font-size: 15px; }
.bar nav a { color: var(--dim); text-decoration: none; }
.bar nav a:hover { color: var(--text); }

/* ------------------------------------------------------------ hero */

.hero {
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: 24px;
	min-height: min(860px, 100svh - 76px);
	padding: 12px 0 150px;
}
.hero > div:first-child { position: relative; z-index: 3; }
.hero h1 {
	margin: 0;
	font-size: clamp(60px, 11.5vw, 148px);
	font-weight: 800;
	line-height: 0.9;
	letter-spacing: -0.02em;
	color: #f4f8ff;
	text-shadow: 0 0 18px rgba(127, 208, 255, 0.85), 0 0 70px rgba(64, 120, 255, 0.7);
}
.pitch {
	margin: 26px 0 0;
	font-size: clamp(20px, 2.5vw, 30px);
	font-weight: 700;
	line-height: 1.25;
	max-width: 15em;
}
.pitch span { color: var(--gold); }
.soon {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 30px;
	padding: 13px 22px;
	border-radius: 999px;
	background: var(--cyan);
	color: var(--ink);
	font-weight: 800;
	letter-spacing: 0.02em;
	box-shadow: 0 0 34px rgba(89, 200, 255, 0.55);
}
.soon i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); animation: blink 1.6s infinite; }
.sub { margin-top: 14px; color: var(--dim); font-size: 15px; }

/* The stores' own badges, at one height. Google's file carries a clear margin
   inside it, so it is drawn larger and pulled back in by that much. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.store { flex: none; margin-top: 24px; border-radius: 10px; }
.store[hidden] { display: none; }
.store img { display: block; height: 54px; width: auto; max-width: none; }
.store.play img { height: 80px; margin: -13px; }
.free .stores { grid-column: 1 / -1; }
.free .store { margin-top: 4px; }

.phones { position: relative; height: 640px; }
.phone {
	position: absolute;
	width: 270px;
	aspect-ratio: 468 / 1012;
	border-radius: 40px;
	border: 7px solid #161b3d;
	background: #000;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1.5px rgba(140, 200, 255, 0.35),
		0 0 70px rgba(64, 120, 255, 0.35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phones .phone:nth-child(1) { right: 150px; top: 60px; transform: rotate(-8deg); animation: drift 9s ease-in-out infinite; }
.phones .phone:nth-child(2) { right: 0; top: 10px; transform: rotate(5deg); animation: drift 9s ease-in-out -4.5s infinite; }

/* the row of three that lights up and leaves, forever */
.launch {
	position: absolute;
	left: 0;
	bottom: 60px;
	display: flex;
	gap: 6px;
	animation: liftoff 7s cubic-bezier(0.5, 0, 0.9, 0.4) infinite;
	z-index: 2;
}
.launch img { width: 62px; height: 62px; filter: drop-shadow(0 0 14px rgba(255, 122, 217, 0.9)); }
.launch::after {
	content: "";
	position: absolute;
	left: 4%;
	right: 4%;
	top: 86%;
	height: 230px;
	background: linear-gradient(180deg, #fff6c9, #ffb02e 22%, rgba(255, 90, 60, 0.55) 55%, transparent);
	clip-path: polygon(0 0, 100% 0, 68% 100%, 32% 100%);
	filter: blur(7px);
	opacity: 0;
	animation: flame 7s linear infinite;
}

/* the home world, rising under the fold */
.horizon {
	position: absolute;
	left: 50%;
	bottom: -2590px;
	width: 5200px;
	height: 2700px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: radial-gradient(closest-side, #060a26 97.5%, #16307a 99.2%, #5fc8ff 99.9%);
	box-shadow: 0 0 90px 14px rgba(70, 150, 255, 0.5), 0 0 240px 60px rgba(40, 80, 220, 0.3);
	pointer-events: none;
}

/* ------------------------------------------------------------ sections */

section { position: relative; padding: 84px 0; }
.kicker { color: var(--cyan); font-weight: 800; letter-spacing: 0.22em; font-size: 13px; }
h2 {
	margin: 10px 0 0;
	font-size: clamp(34px, 5vw, 60px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.015em;
	max-width: 14em;
}
.lede { color: var(--dim); max-width: 34em; margin: 16px 0 0; }

.panel {
	background: var(--glass);
	border: 2px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 0 40px rgba(40, 90, 220, 0.14);
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.step { padding: 26px 24px 28px; position: relative; overflow: hidden; }
.step b { display: block; font-size: 24px; font-weight: 800; letter-spacing: 0.02em; }
.step p { margin: 6px 0 0; color: #d5dcf5; font-size: 17px; font-weight: 600; }
.step .num {
	position: absolute;
	right: 14px;
	top: -18px;
	font-size: 120px;
	font-weight: 800;
	line-height: 1;
	color: rgba(120, 190, 255, 0.09);
}
.demo { display: flex; align-items: flex-end; gap: 4px; height: 132px; margin-bottom: 18px; }
.demo img { width: 40px; height: 40px; }
.demo .col { display: flex; flex-direction: column-reverse; gap: 2px; }
.demo .hot { filter: brightness(1.5) saturate(0.6) drop-shadow(0 0 12px #ffd27a); }
.demo .up { animation: nudge 2.4s ease-in-out infinite; }
.demo .rise { animation: rise 3s ease-in-out infinite; }

.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.world { padding: 22px 18px 24px; text-align: center; --c: var(--cyan); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.world img { width: 82%; margin: 0 auto; filter: drop-shadow(0 0 26px color-mix(in srgb, var(--c) 60%, transparent)); animation: float 7s ease-in-out infinite; }
.world:nth-child(2) img { animation-delay: -2s; }
.world:nth-child(3) img { animation-delay: -4s; }
.world:nth-child(4) img { animation-delay: -5.5s; }
.world h3 { margin: 14px 0 0; font-size: 26px; font-weight: 800; letter-spacing: 0.03em; color: color-mix(in srgb, var(--c) 55%, #fff); }
.world p { margin: 2px 0 14px; color: var(--dim); font-size: 15px; }
.stat { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--dim); text-align: left; margin-top: 7px; }
.pips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pips i { height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--c) 22%, transparent); }
.pips i.on { background: var(--c); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 70%, transparent); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.list { padding: 10px 24px; }
.row { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(120, 190, 255, 0.14); }
.row:last-child { border-bottom: 0; }
.row img, .row svg { width: 52px; height: 52px; }
.row svg { padding: 9px; border-radius: 14px; border: 2px solid currentColor; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.row b { display: block; font-weight: 800; font-size: 19px; letter-spacing: 0.02em; color: var(--text); }
.row span { color: var(--dim); font-size: 15px; }

.gallery { display: flex; justify-content: center; gap: 22px; margin-top: 48px; }
.gallery .phone { position: relative; width: 22%; min-width: 150px; border-radius: 12% / 5.6%; border-width: 5px; }
.gallery .phone:nth-child(odd) { transform: translateY(26px) rotate(-2deg); }
.gallery .phone:nth-child(even) { transform: translateY(-14px) rotate(2deg); }

/* a video of the game, or a row of wide screenshots, in the same frame */
.clip { margin: 44px 0 0; }
.clip video, .wideshots img {
	display: block;
	width: 100%;
	height: auto;
	background: #000;
	border-radius: 18px;
	border: 2px solid var(--line);
	box-shadow: 0 0 60px rgba(64, 120, 255, 0.22);
}
#duo .steps { margin-top: 18px; }
#duo .step b { font-size: 21px; }
.wideshots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.wideshots img { border-radius: 14px; box-shadow: none; }
.bigline { margin: 34px 0 0; font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; color: var(--text); }
#duo .step p { font-size: clamp(18px, 1.9vw, 22px); font-weight: 800; line-height: 1.25; color: var(--text); margin-top: 8px; }

.items-kicker { margin-top: 50px; }
.items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 16px; }
.item { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 16px 18px; }
.item img { width: 52px; height: 52px; }
.item b { display: block; font-weight: 800; font-size: 18px; color: var(--text); }
.item span { color: var(--dim); font-size: 14px; line-height: 1.35; display: block; }

.gallery .phone video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.gallery .phone.play { transform: none !important; }

.free { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px 44px; align-items: center; padding: clamp(26px, 4vw, 46px); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.free h2 { font-size: clamp(30px, 4vw, 46px); }
.free .kicker { color: var(--gold); }
.free .bigline { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; }

/* ------------------------------------------------------------ documents */

.doc { padding: 34px 0 90px; }
.doc .panel { padding: clamp(24px, 5vw, 54px); max-width: 780px; }
.doc h1 { margin: 0 0 6px; font-size: clamp(36px, 6vw, 58px); font-weight: 800; line-height: 1; letter-spacing: -0.015em; }
.doc h2 { font-size: 23px; margin: 34px 0 8px; letter-spacing: 0; max-width: none; }
.doc p, .doc li { color: #d5dcf5; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc .meta { color: var(--dim); font-size: 15px; }
.short {
	margin: 22px 0 6px;
	padding: 16px 20px;
	border-left: 4px solid var(--mint);
	background: rgba(125, 255, 176, 0.07);
	border-radius: 0 14px 14px 0;
	font-weight: 700;
	color: var(--text);
}
.contact { display: inline-block; margin-top: 6px; padding: 12px 20px; border-radius: 999px; background: var(--cyan); color: var(--ink); font-weight: 800; text-decoration: none; }
.contact:hover { color: var(--ink); background: #fff; }

/* ------------------------------------------------------------ press kit */

.press { padding: 34px 0 70px; }
.press h1 {
	margin: 8px 0 0;
	font-size: clamp(54px, 9vw, 104px);
	font-weight: 800;
	line-height: 0.92;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: #f4f8ff;
	text-shadow: 0 0 18px rgba(127, 208, 255, 0.7), 0 0 60px rgba(64, 120, 255, 0.55);
}
.press .lede { font-size: clamp(18px, 2.2vw, 22px); color: #d5dcf5; max-width: 30em; }
.press section { padding: 46px 0 0; }
.press h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 16px; }
.press h3 { margin: 26px 0 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); }
.press p, .press li { color: #d5dcf5; }
.press .meta, .press .note { color: var(--dim); font-size: 15px; }
.press .note { padding-left: 16px; border-left: 3px solid var(--line); align-self: start; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.actions .contact { margin: 0; }
.ghost {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 999px;
	border: 2px solid var(--line);
	color: var(--text);
	font-weight: 800;
	text-decoration: none;
}
.ghost:hover { border-color: var(--cyan); }
.keyart { width: 100%; margin-top: 38px; border-radius: var(--radius); border: 2px solid var(--line); box-shadow: 0 0 70px rgba(64, 120, 255, 0.3); }

.facts { margin: 0; padding: 6px 26px; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid rgba(120, 190, 255, 0.14); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--dim); font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 3px; }
.facts dd { margin: 0; font-weight: 600; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 44px; }
.cols p:first-child { margin-top: 0; }
.cols ul { margin: 0; padding-left: 20px; }
.cols li { margin: 0 0 9px; }
.cols b { color: var(--text); font-weight: 800; }

.videos { display: grid; grid-template-columns: 2.17fr 0.47fr; gap: 20px; align-items: start; }
.videos figure, .shots a { margin: 0; }
.videos video { display: block; width: 100%; height: auto; background: #000; border-radius: 18px; border: 2px solid var(--line); }
.videos figcaption { margin-top: 8px; color: var(--dim); font-size: 14px; }

.shots { display: grid; gap: 14px; }
.shots.duo { grid-template-columns: repeat(3, 1fr); }
.shots.tall { grid-template-columns: repeat(7, 1fr); }
.shots img { width: 100%; border-radius: 14px; border: 2px solid var(--line); transition: border-color 0.15s, translate 0.15s; }
.shots.tall img { border-radius: 12px; }
.shots a:hover img { border-color: var(--cyan); translate: 0 -3px; }

.files { list-style: none; margin: 0 0 18px; padding: 0; }
.files li { padding: 12px 0; border-bottom: 1px solid rgba(120, 190, 255, 0.14); }
.files a { font-weight: 800; }
.files span { color: var(--dim); font-size: 15px; margin-left: 10px; }

/* ------------------------------------------------------------ footer */

footer { padding: 34px 0 54px; border-top: 1px solid rgba(120, 190, 255, 0.16); color: var(--dim); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer a { color: var(--dim); margin-left: 20px; }
footer a:first-child { margin-left: 0; }
footer .marks { flex-basis: 100%; font-size: 12px; line-height: 1.5; opacity: 0.75; }

/* ------------------------------------------------------------ motion */

@keyframes blink { 50% { opacity: 0.25; } }
@keyframes drift { 50% { translate: 0 -14px; } }
@keyframes float { 50% { translate: 0 -9px; } }
@keyframes nudge { 0%, 20%, 100% { translate: 0 0; } 50%, 80% { translate: 0 -42px; } }
@keyframes rise { 0%, 15% { translate: 0 0; } 70%, 100% { translate: 0 -34px; } }
@keyframes liftoff {
	0%, 34% { translate: 0 0; filter: none; }
	38% { translate: 0 6px; filter: brightness(2.2); }
	72%, 100% { translate: 0 -1400px; filter: brightness(1.6); }
}
@keyframes flame { 0%, 36% { opacity: 0; } 40%, 72% { opacity: 1; } 73%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; scroll-behavior: auto !important; }
	.launch { display: none; }
}

@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; padding-bottom: 120px; text-align: left; }
	.phones { height: 470px; margin-top: 10px; }
	.phone { width: 200px; border-radius: 32px; }
	.phones .phone:nth-child(1) { right: auto; left: 2%; top: 40px; }
	.phones .phone:nth-child(2) { right: 2%; top: 0; }
	.launch { display: none; }
	.steps, .split { grid-template-columns: 1fr; }
	.worlds { grid-template-columns: 1fr 1fr; }
	.gallery { flex-wrap: wrap; }
	.gallery .phone { width: 42%; }
	section { padding: 60px 0; }
	.bar nav { gap: 16px; }
	.bar nav a { white-space: nowrap; }
	.world { padding: 18px 12px 20px; }
	.wideshots { grid-template-columns: 1fr; }
	.items { grid-template-columns: 1fr 1fr; }
	.free { grid-template-columns: 1fr; }
	.cols { grid-template-columns: 1fr; }
	.videos { grid-template-columns: 1fr; }
	.videos .tall { max-width: 260px; }
	.shots.duo { grid-template-columns: 1fr 1fr; }
	.shots.tall { grid-template-columns: repeat(4, 1fr); }
	.press section { padding-top: 36px; }
}

@media (max-width: 520px) {
	.bar nav .opt { display: none; }
	.items { grid-template-columns: 1fr; }
	.facts { padding: 4px 18px; }
	.facts div { grid-template-columns: 1fr; gap: 2px; }
	.shots.duo { grid-template-columns: 1fr; }
	.shots.tall { grid-template-columns: repeat(3, 1fr); }
	.files span { display: block; margin-left: 0; }
	.stat { grid-template-columns: 54px 1fr; letter-spacing: 0.08em; }
}
