/* Geometry Pulse: Hyper Dash — promo site. The game's own palette: night navy, cyan rails, hot yellow
   HYPER DASH, a touch of magenta. No grid backgrounds (owner), no purple gradients. Motion only via
   transform / opacity, everything calm under prefers-reduced-motion. */

@font-face { font-family: "Unbounded"; src: url("/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("/fonts/exo2.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
	--bg: #05080f;
	--bg-2: #0a1122;
	--panel: rgba(16, 26, 48, 0.62);
	--panel-edge: rgba(150, 210, 255, 0.14);
	--ink: #eef6ff;
	--dim: rgba(226, 238, 255, 0.72);
	--faint: rgba(226, 238, 255, 0.46);
	--cyan: #36c8ff;
	--cyan-2: #9ef3ff;
	--yellow: #ffc83d;
	--orange: #ff8a1f;
	--magenta: #ff4fa8;
	--green: #3dff8a;
	--outline: #0a1430;
	--r-lg: 28px;
	--r-md: 18px;
	--r-sm: 12px;
	--gut: clamp(16px, 4vw, 40px);
	--max: 1200px;
	--display: "Unbounded", "Arial Black", system-ui, sans-serif;
	--text: "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background:
		radial-gradient(1100px 700px at 12% 120vh, rgba(54, 200, 255, 0.07), transparent 70%),
		radial-gradient(900px 600px at 92% 220vh, rgba(255, 200, 61, 0.05), transparent 70%),
		var(--bg);
	color: var(--ink);
	font: 400 17px/1.6 var(--text);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.12; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
/* hidden above the page, not off to the side: a negative left widens right-to-left pages */
.skip { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 100; transform: translateY(-200%); background: var(--yellow); color: #1a1000; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { transform: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
	--h: 48px;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	height: var(--h); padding: 0 22px; border-radius: 999px;
	font: 700 16px/1 var(--text); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
	border: 0; cursor: pointer; user-select: none;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, opacity 0.25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { --h: 60px; padding: 0 30px; font-size: 18px; }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 15px; }
.btn-play {
	color: #1c0f00;
	background: linear-gradient(180deg, #fff1a8 0%, var(--yellow) 38%, #ffaa2a 100%);
	box-shadow: 0 5px 0 #b4560a, 0 10px 28px rgba(255, 170, 40, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #b4560a, 0 16px 36px rgba(255, 170, 40, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.btn-play:active { transform: translateY(4px); box-shadow: 0 1px 0 #b4560a, 0 6px 16px rgba(255, 170, 40, 0.3); }
.btn-ghost {
	color: var(--ink);
	background: rgba(255, 255, 255, 0.07);
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-2l { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: start; }
.btn-2l small { font: 600 12px/1 var(--text); letter-spacing: 0.02em; color: var(--dim); }
.btn-apk.is-busy { opacity: 0.6; pointer-events: none; }
.is-soon { opacity: 0.62; cursor: default; }
.is-soon:hover { background: rgba(255, 255, 255, 0.07); }

/* ------------------------------------------------------------------ top bar */
.top {
	position: fixed; inset: 0 0 auto; z-index: 50;
	display: flex; align-items: center; gap: 20px;
	padding: 14px var(--gut);
	padding-top: max(14px, env(safe-area-inset-top));
	transition: background-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.top.scrolled, body.doc .top {
	background: rgba(5, 8, 15, 0.72);
	backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { filter: drop-shadow(0 0 8px rgba(255, 200, 61, 0.4)); transition: transform 0.3s var(--ease); }
.brand:hover img { transform: rotate(-8deg) translateY(-2px); }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font: 700 14px/1.1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.brand i { font: 700 11px/1.2 var(--display); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { text-decoration: none; color: var(--dim); font-weight: 600; font-size: 15px; transition: color 0.2s; }
.links a:hover { color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 12px; margin-left: 8px; }
body.doc .top-right, body.nf .top-right { margin-left: auto; }
/* language menu: a globe pill opening a scrollable list of every language (works without JS) */
.lang-menu { position: relative; }
.lang-menu summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
	border-radius: 999px; color: var(--dim); font: 700 12px/1 var(--display);
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18); transition: color 0.2s, box-shadow 0.2s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
/* one sprite (build.mjs sets its size and the cell in %, so any box size works) */
.flag {
	flex: none; display: inline-block; width: 24px; height: 18px; border-radius: 3px;
	background: url("/img/flags.webp") no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.lang-menu summary .flag { width: 22px; height: 16.5px; }
.foot-langs .flag { width: 16px; height: 12px; border-radius: 2px; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); }
.lang-list {
	position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60;
	width: min(560px, calc(100vw - 2 * var(--gut))); max-height: min(70vh, 520px); overflow-y: auto;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 10px;
	background: rgba(10, 16, 32, 0.96); border-radius: var(--r-md);
	box-shadow: inset 0 0 0 1px var(--panel-edge), 0 24px 60px rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.lang-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--dim); font-size: 15px; white-space: nowrap; min-width: 0; }
.lang-list a span { overflow: hidden; text-overflow: ellipsis; }
.lang-list a:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.lang-list a[aria-current] { color: var(--ink); background: rgba(54, 200, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(54, 200, 255, 0.5); }

/* ------------------------------------------------------------------ hero */
.hero {
	position: relative; min-height: 100vh; min-height: 100svh;
	display: flex; align-items: center;
	padding: 110px var(--gut) 90px;
	isolation: isolate; overflow: hidden;
}
.hero-stage { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* key art (make_images.mjs), the cube on the right; a slow camera drift, transform only */
.hero-art {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
	transform-origin: 72% 45%; animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09) translate3d(-1.2%, 0.6%, 0); } }
.hero-shade {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(5, 8, 15, 0.88) 0%, rgba(5, 8, 15, 0.62) 30%, rgba(5, 8, 15, 0.1) 58%, transparent 76%),
		linear-gradient(180deg, rgba(5, 8, 15, 0.5) 0%, transparent 20%, transparent 72%, var(--bg) 100%);
}
.hero-copy { width: 100%; max-width: var(--max); margin: 0 auto; }
.hero-copy > * { max-width: 600px; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font: 700 12px/1.35 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan-2);
	padding: 7px 14px; border-radius: 999px; background: rgba(54, 200, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(54, 200, 255, 0.3);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: beat 0.469s ease-out infinite; }
@keyframes beat { 0% { transform: scale(1.5); opacity: 1; } 100% { transform: scale(1); opacity: 0.7; } }

/* The wordmark: chunky letters with a dark outline (shadow stack on ::before, the font's contours overlap
   so text-stroke would show seams), white-to-cyan / yellow-to-orange faces like the loading screen. */
.wordmark { display: flex; flex-direction: column; margin: 22px 0 22px; text-transform: uppercase; font-weight: 800; letter-spacing: 0.01em; line-height: 0.98; }
.wordmark > span { position: relative; display: block; width: max-content; max-width: 100%; }
.wordmark > span::before {
	content: attr(data-t); position: absolute; inset: 0; z-index: -1; color: var(--outline);
	text-shadow:
		0.05em 0 0 var(--outline), -0.05em 0 0 var(--outline), 0 0.05em 0 var(--outline), 0 -0.05em 0 var(--outline),
		0.035em 0.035em 0 var(--outline), -0.035em 0.035em 0 var(--outline), 0.035em -0.035em 0 var(--outline), -0.035em -0.035em 0 var(--outline),
		0 0.11em 0 var(--outline), 0.05em 0.11em 0 var(--outline), -0.05em 0.11em 0 var(--outline),
		0 0.2em 0.35em rgba(0, 0, 0, 0.55);
}
.wm-1 {
	font-size: clamp(34px, 6.4vw, 84px);
	background: linear-gradient(180deg, #ffffff 0%, #ffffff 44%, var(--cyan-2) 60%, var(--cyan) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.wm-2 {
	font-size: clamp(26px, 4.7vw, 62px); margin-top: 0.16em; letter-spacing: 0.06em;
	background: linear-gradient(180deg, #fff6b0 0%, #ffe14a 40%, #ffb21e 62%, var(--orange) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--dim); max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.cta-center { justify-content: center; margin-top: 0; }
.note { margin-top: 18px; font-size: 14px; color: var(--faint); letter-spacing: 0.02em; }
.scroll-cue {
	position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); text-decoration: none;
}
.scroll-cue span { width: 2px; height: 34px; border-radius: 2px; background: linear-gradient(var(--cyan), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ------------------------------------------------------------------ install gift (D-056) */
.gift-chip {
	display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 9px 18px 9px 12px;
	border-radius: 999px; border: 1px solid rgba(61, 255, 138, 0.45); background: rgba(61, 255, 138, 0.1);
	color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: none;
}
.gift-chip svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.gift-chip:hover { background: rgba(61, 255, 138, 0.18); }
.gift-chip:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.gift-card {
	max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(150px, 260px) 1fr;
	gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px);
	border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--panel-edge);
}
.gift-art { display: grid; place-items: center; }
.gift-art img { width: 100%; max-width: 240px; height: auto; filter: drop-shadow(0 0 26px rgba(54, 200, 255, 0.45)); animation: gift-float 4.5s ease-in-out infinite; }
@keyframes gift-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.gift-copy h2 { font-size: clamp(26px, 3.2vw, 42px); }
.gift-copy > p { margin-top: 14px; color: var(--dim); font-size: clamp(16px, 1.3vw, 18px); max-width: 620px; }
.gift-steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: gift; display: grid; gap: 12px; }
.gift-steps li { counter-increment: gift; display: flex; gap: 14px; align-items: center; font-size: 16px; }
.gift-steps li::before {
	content: counter(gift); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
	font: 700 14px var(--display); color: var(--bg); background: var(--green);
}
.gift .cta { margin-top: 26px; }
@media (max-width: 767px) {
	.gift-card { grid-template-columns: 1fr; }
	.gift-art img { max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) { .gift-art img { animation: none; } }

/* ------------------------------------------------------------------ sections */
section:not(.hero) { padding: clamp(72px, 10vw, 130px) var(--gut); }
.sec-head { max-width: var(--max); margin: 0 auto clamp(32px, 4vw, 52px); }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 48px); max-width: 820px; }
.sec-head p { margin-top: 14px; color: var(--dim); max-width: 640px; font-size: clamp(16px, 1.3vw, 18px); }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* stats ribbon */
.stats { padding-top: 0 !important; padding-bottom: 0 !important; margin-top: -40px; position: relative; z-index: 2; }
.stats ul {
	list-style: none; margin: 0 auto; padding: 0; max-width: var(--max);
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: var(--panel); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--panel-edge), 0 30px 60px rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.stats li { padding: 26px 18px; text-align: center; position: relative; }
.stats li + li::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: rgba(255, 255, 255, 0.1); }
.stats b { display: block; font: 800 clamp(30px, 3.6vw, 48px)/1 var(--display); background: linear-gradient(180deg, #fff, var(--cyan-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats li:last-child b { background: linear-gradient(180deg, #fff6b0, var(--yellow)); -webkit-background-clip: text; background-clip: text; }
.stats span { display: block; margin-top: 8px; color: var(--dim); font-size: 15px; }

/* how to play: three beats on one neon line */
.track-steps {
	list-style: none; margin: 0 auto; padding: 0; max-width: var(--max);
	display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px);
	position: relative;
}
.track-steps::before {
	content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 3px; border-radius: 3px;
	background: linear-gradient(90deg, var(--cyan), var(--yellow) 55%, var(--magenta));
	box-shadow: 0 0 18px rgba(54, 200, 255, 0.45);
	opacity: 0.85;
}
.track-steps li { position: relative; padding-top: 80px; }
.beat {
	position: absolute; top: 0; left: 0; width: 56px; height: 56px; display: grid; place-items: center;
	font: 800 20px/1 var(--display); color: #08101e; border-radius: 16px;
	background: linear-gradient(180deg, #fff, var(--cyan-2) 55%, var(--cyan));
	box-shadow: 0 0 0 5px var(--bg), 0 0 26px rgba(54, 200, 255, 0.6);
	transform: rotate(-6deg);
}
.track-steps li:nth-child(2) .beat { background: linear-gradient(180deg, #fff6b0, var(--yellow)); box-shadow: 0 0 0 5px var(--bg), 0 0 26px rgba(255, 200, 61, 0.55); transform: rotate(5deg); }
.track-steps li:nth-child(3) .beat { background: linear-gradient(180deg, #ffd0e8, var(--magenta)); box-shadow: 0 0 0 5px var(--bg), 0 0 26px rgba(255, 79, 168, 0.5); transform: rotate(-3deg); }
.track-steps h3 { font-size: clamp(20px, 1.8vw, 24px); }
.track-steps p { margin-top: 10px; color: var(--dim); }

/* levels rail */
.rail-wrap { position: relative; max-width: calc(var(--max) + 120px); margin: 0 auto; }
.rail {
	list-style: none; margin: 0; padding: 6px 60px 24px; display: flex; gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 60px; scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.lvl { flex: 0 0 clamp(260px, 30vw, 360px); scroll-snap-align: start; }
.lvl figure {
	margin: 0; position: relative; border-radius: var(--r-md); overflow: hidden; height: 100%; display: flex; flex-direction: column;
	background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--panel-edge), 0 18px 40px rgba(0, 0, 0, 0.45);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.lvl .shot { overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.lvl .shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 17, 34, 0.9)); pointer-events: none; }
.lvl img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.lvl figcaption { position: relative; z-index: 1; padding: 4px 20px 20px; margin-top: -26px; flex: 1; }
.lvl-num { font: 700 12px/1 var(--display); letter-spacing: 0.18em; color: var(--faint); text-transform: uppercase; }
.lvl h3 { margin-top: 8px; font-size: clamp(20px, 1.9vw, 26px); }
.lvl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; font-size: 14px; color: var(--dim); }
.lvl-meta em { font-style: normal; font-weight: 700; color: hsl(calc(190 - var(--d) * 19) 95% 66%); }
.st { display: inline-flex; align-items: center; gap: 4px; color: var(--yellow); font-weight: 700; }
.st svg { width: 15px; height: 15px; }
.meter { display: block; height: 4px; margin-top: 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: hsl(calc(190 - var(--d) * 19) 95% 60%); box-shadow: 0 0 12px hsl(calc(190 - var(--d) * 19) 95% 60%); }
@media (hover: hover) {
	.lvl figure:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 26px 50px rgba(0, 0, 0, 0.55), 0 0 40px hsl(calc(190 - var(--d) * 19) 95% 55% / 0.25); }
	.lvl figure:hover img { transform: scale(1.06); }
}
.rail-btn {
	position: absolute; top: 42%; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
	font: 400 30px/1 var(--text); color: var(--ink);
	background: rgba(16, 26, 48, 0.85); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px);
	transition: transform 0.2s var(--ease), opacity 0.2s;
}
.rail-btn:hover { transform: scale(1.08); }
.rail-btn[disabled] { opacity: 0; pointer-events: none; }
.rail-btn.prev { left: 4px; }
.rail-btn.next { right: 4px; }

/* garage */
.garage-body { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.turntable { position: relative; display: grid; justify-items: center; padding: 30px 0 10px; perspective: 900px; }
.hero-icon {
	width: clamp(160px, 20vw, 230px); height: auto; position: relative; z-index: 1;
	filter: drop-shadow(0 0 22px rgba(61, 255, 138, 0.45)) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.6));
	animation: hover 3.2s ease-in-out infinite;
}
.hero-icon.swap { animation: swap 0.5s var(--ease); }
@keyframes hover { 0%, 100% { transform: translateY(0) rotateY(-14deg) rotateZ(-2deg); } 50% { transform: translateY(-14px) rotateY(14deg) rotateZ(2deg); } }
@keyframes swap { 0% { transform: scale(0.6) rotate(-90deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.pedestal { position: relative; width: clamp(240px, 30vw, 360px); height: 70px; margin-top: -26px; }
.pedestal i { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.pedestal i:nth-child(1) { width: 100%; height: 100%; box-shadow: 0 0 0 1.5px rgba(242, 196, 141, 0.35); }
.pedestal i:nth-child(2) { width: 76%; height: 74%; box-shadow: 0 0 0 3px rgba(242, 196, 141, 0.8), 0 0 30px rgba(255, 170, 60, 0.35); }
.pedestal i:nth-child(3) { width: 58%; height: 52%; background: radial-gradient(closest-side, rgba(255, 200, 100, 0.25), transparent); }
.variants { display: flex; gap: 12px; margin-top: 22px; }
.variants img { width: 58px; height: 58px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.form-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.form-btn {
	display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px;
	border: 0; border-radius: var(--r-sm); cursor: pointer; color: var(--dim); font: 600 14px/1.1 var(--text);
	background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.form-btn img { width: 40px; height: 40px; }
.form-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.form-btn.on { color: var(--ink); background: rgba(54, 200, 255, 0.12); box-shadow: inset 0 0 0 1.5px rgba(54, 200, 255, 0.7), 0 0 24px rgba(54, 200, 255, 0.18); }
.form-hint { margin-top: 20px; min-height: 3.2em; color: var(--dim); font-size: 17px; }

/* screenshots */
.shot-rail {
	list-style: none; margin: 0 auto; padding: 0 0 18px; max-width: var(--max);
	display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 760px); gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.shot-rail li { scroll-snap-align: start; }
.shot-rail img { width: 100%; height: auto; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--panel-edge), 0 20px 50px rgba(0, 0, 0, 0.5); }

/* faq */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq .sec-head { max-width: 860px; }
.faq details {
	border-radius: var(--r-md); background: var(--panel); box-shadow: inset 0 0 0 1px var(--panel-edge);
	transition: background-color 0.3s;
}
.faq details[open] { background: rgba(20, 34, 62, 0.7); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: 700 clamp(16px, 1.4vw, 19px)/1.3 var(--display); }
.faq summary::after {
	content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
	background:
		linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
		linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
		rgba(255, 255, 255, 0.08);
	transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--dim); max-width: 720px; }

/* final call */
.final { position: relative; text-align: center; overflow: hidden; isolation: isolate; padding-bottom: clamp(90px, 12vw, 160px) !important; }
.final-glow {
	position: absolute; inset: 10% 0 0; z-index: -1;
	background:
		radial-gradient(420px 220px at 50% 70%, rgba(255, 200, 61, 0.18), transparent 70%),
		radial-gradient(700px 320px at 50% 60%, rgba(54, 200, 255, 0.12), transparent 70%);
}
.final h2 { font-size: clamp(30px, 4.4vw, 58px); max-width: 900px; margin: 0 auto; }
.final p { margin: 18px auto 34px; color: var(--dim); font-size: 18px; }

/* footer */
.foot { padding: 40px var(--gut) calc(34px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, 0.07); background: #04060c; }
.foot-row { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot-brand b { font: 700 15px/1 var(--display); text-transform: uppercase; }
.foot-brand i { font: 700 13px/1 var(--display); font-style: normal; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.1em; margin-left: 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { color: var(--dim); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-langs { max-width: var(--max); margin: 22px auto 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-langs a { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); text-decoration: none; font-size: 13px; }
.foot-langs a:hover, .foot-langs a[aria-current] { color: var(--ink); }
.disclaimer, .copy { max-width: var(--max); margin: 18px auto 0; font-size: 13px; color: var(--faint); }
.copy { margin-top: 8px; }

/* documents: privacy, 404 */
.doc-main { max-width: 760px; margin: 0 auto; padding: 120px var(--gut) 80px; }
.doc-main h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 18px; }
.doc-main h2 { font-size: 21px; margin: 34px 0 8px; }
.doc-main p { color: var(--dim); }
.doc-main .muted { margin-top: 10px; color: var(--faint); font-size: 15px; }
.back { color: var(--cyan-2); text-decoration: none; font-weight: 600; }
.back:hover { text-decoration: underline; }
.nf-main { text-align: center; min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.nf-code { font: 800 clamp(80px, 16vw, 160px)/1 var(--display); background: linear-gradient(180deg, #fff6b0, var(--yellow) 45%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.nf-alt { font-size: 14px; color: var(--faint) !important; }

/* ------------------------------------------------------------------ right-to-left (ar, he, ur) */
/* the art is mirrored so its calm side stays under the right-aligned text */
[dir="rtl"] .hero-stage { transform: scaleX(-1); }
[dir="rtl"] .hero-shade {
	background:
		linear-gradient(270deg, rgba(5, 8, 15, 0.92) 0%, rgba(5, 8, 15, 0.7) 32%, rgba(5, 8, 15, 0.12) 62%, transparent 80%),
		linear-gradient(180deg, rgba(5, 8, 15, 0.55) 0%, transparent 22%, transparent 70%, var(--bg) 100%);
}
[dir="rtl"] .wordmark { align-items: flex-end; text-align: right; }
[dir="rtl"] .beat { left: auto; right: 0; }
[dir="rtl"] .links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .top-right { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .rail-btn.prev { left: auto; right: 4px; }
[dir="rtl"] .rail-btn.next { right: auto; left: 4px; }
[dir="rtl"] .foot-brand i { margin-left: 0; margin-right: 6px; }

/* ------------------------------------------------------------------ non-Latin scripts: tracking breaks Arabic
   joining and spreads Indic/Thai/CJK apart; their marks need taller heading lines (the wordmark stays lang="en") */
:is(:lang(ar), :lang(he), :lang(ur), :lang(hi), :lang(bn), :lang(gu), :lang(kn), :lang(ml), :lang(mr), :lang(pa), :lang(ta), :lang(te), :lang(th), :lang(zh), :lang(ja), :lang(ko)) { letter-spacing: normal !important; }
:is(:lang(ar), :lang(ur), :lang(hi), :lang(bn), :lang(gu), :lang(kn), :lang(ml), :lang(mr), :lang(pa), :lang(ta), :lang(te), :lang(th)) :is(h2, h3) { line-height: 1.4; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1023px) {
	.links { display: none; }
	.top-right { margin-left: auto; }
	[dir="rtl"] .top-right { margin-left: 0; margin-right: auto; }
	.garage-body { grid-template-columns: 1fr; }
	.hero-shade { background: linear-gradient(180deg, rgba(5, 8, 15, 0.5) 0%, rgba(5, 8, 15, 0.25) 30%, rgba(5, 8, 15, 0.82) 62%, var(--bg) 100%); }
	.hero { align-items: flex-end; }
}
@media (max-width: 767px) {
	body { font-size: 16px; }
	.brand span { display: none; }
	.hero { padding-top: 96px; padding-bottom: 84px; }
	/* the picture takes the top of the screen so the cube flies above the text, then fades into the page */
	.hero-stage { bottom: auto; height: 64%; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
	.hero-art { object-position: 74% 50%; }
	.cta .btn { flex: 1 1 100%; }
	.stats { margin-top: -24px; }
	.stats ul { grid-template-columns: repeat(2, 1fr); }
	.stats li:nth-child(3)::before { display: none; }
	.stats li:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.08); }
	.track-steps { grid-template-columns: 1fr; gap: 34px; }
	.track-steps::before { left: 26px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; background: linear-gradient(180deg, var(--cyan), var(--yellow) 55%, var(--magenta)); }
	.track-steps li { padding: 0 0 0 84px; min-height: 56px; }
	[dir="rtl"] .track-steps::before { left: auto; right: 26px; }
	[dir="rtl"] .track-steps li { padding: 0 84px 0 0; }
	.lang-list { grid-template-columns: repeat(2, 1fr); position: fixed; top: 64px; inset-inline: var(--gut); width: auto; }
	.rail { padding: 6px var(--gut) 24px; scroll-padding: 0 var(--gut); gap: 14px; }
	.lvl { flex-basis: 76vw; }
	.rail-btn { display: none; }
	.form-list { grid-template-columns: repeat(4, 1fr); gap: 8px; }
	.form-btn { font-size: 12px; padding: 10px 2px; }
	.form-btn img { width: 32px; height: 32px; }
	.shot-rail { grid-auto-columns: 88%; }
	.scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}
