* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
	--blue: #3f57e1;
	--blue-dark: #2233c9;
	--pink: #ea3e7a;
	--ink: #10142b;
	--muted: #5b6178;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ink);
	background: #fff;
	line-height: 1.6;
}

/* ---------- Hero ---------- */

.hero {
	background:
		radial-gradient(1200px 600px at 75% 20%, rgba(63, 87, 225, 0.35), transparent 60%),
		linear-gradient(160deg, #0b1020 0%, #131b45 55%, #1a2560 100%);
	color: #fff;
	overflow: hidden;
	position: relative;
	isolation: isolate; /* Keep the cloud/content stacking self-contained. */
}

/* Nav and content sit above the cloud layer, always. */
.nav,
.hero-inner {
	position: relative;
	z-index: 2;
}

.nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1100px;
	margin: 0 auto;
	padding: 28px 24px 0;
}

.nav-home {
	align-items: center;
}

.nav-logo {
	height: 56px;
}

.nav-cta {
	color: #fff;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.35);
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 14px;
	transition: background 0.15s ease;
}

.nav-cta:hover {
	background: rgba(255, 255, 255, 0.12);
}

.hero-inner {
	display: flex;
	gap: 32px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 48px 24px 0;
}

.hero-copy {
	flex: 1.2;
	padding-bottom: 64px;
}

h1 {
	font-size: clamp(40px, 6vw, 64px);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin-bottom: 20px;
}

.lede {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.82);
	max-width: 520px;
	margin-bottom: 32px;
}

.btn-download {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(180deg, #4a63f0, var(--blue-dark));
	color: #fff;
	text-decoration: none;
	font-size: 22px;
	font-weight: 700;
	padding: 20px 40px;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(63, 87, 225, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-download:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 40px rgba(63, 87, 225, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.version-line {
	margin-top: 14px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
}

.hero-art {
	flex: 1;
	min-width: 0;
	display: flex;
	justify-content: center;
}

.hero-art img {
	display: block;
	max-width: 100%;
	height: auto;
	max-height: 440px;
	filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

/* Clouds drifting across the whole hero, behind text and pilot alike.
   Cartoon-flat shapes to match the illustration, white at low opacity so
   they read as sky and never fight the copy. The track is measured in
   container-query units so each cloud crosses the full page width
   whatever the viewport; negative delays put them mid-flight on first
   paint instead of all entering from the left at once. The scarf blows
   right, so the sky moves right too. */
.hero-clouds {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	container-type: inline-size;
	pointer-events: none;
}

.cloud {
	position: absolute;
	left: 0;
	fill: #fff;
	animation: cloud-drift linear infinite;
	will-change: transform;
}

.cloud-1 { top: 62%; width: 22%; opacity: 0.13; animation-duration: 150s; animation-delay: -40s; }
.cloud-2 { top: 14%; width: 15%; opacity: 0.18; animation-duration: 110s; animation-delay: -85s; }
.cloud-3 { top: 6%;  width: 9%;  opacity: 0.24; animation-duration: 80s;  animation-delay: -20s; }
.cloud-4 { top: 38%; width: 18%; opacity: 0.09; animation-duration: 200s; animation-delay: -130s; filter: blur(1.5px); }
.cloud-5 { top: 78%; width: 12%; opacity: 0.17; animation-duration: 95s;  animation-delay: -60s; }

@keyframes cloud-drift {
	from { transform: translateX(-100%); }
	to   { transform: translateX(100cqw); }
}

@media (prefers-reduced-motion: reduce) {
	/* Paused rather than removed: the negative delays leave each cloud
	   parked where it would have been, so the sky still has clouds. */
	.cloud { animation-play-state: paused; }
}

/* ---------- Features ---------- */

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

.features h2,
.steps h2 {
	font-size: 34px;
	letter-spacing: -0.01em;
	text-align: center;
	margin-bottom: 40px;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

.card {
	border: 1px solid #e6e8f0;
	border-radius: 14px;
	padding: 26px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	background: #fff;
}

.card:hover {
	box-shadow: 0 12px 28px rgba(16, 20, 43, 0.08);
	transform: translateY(-2px);
}

.card-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: rgba(63, 87, 225, 0.09);
	color: var(--blue);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.card-icon svg {
	width: 26px;
	height: 26px;
}

.card h3 {
	font-size: 18px;
	margin-bottom: 8px;
}

.card p {
	color: var(--muted);
	font-size: 15px;
}

/* ---------- Steps ---------- */

.steps {
	background: #f6f7fb;
	padding: 72px 24px;
	text-align: center;
}

.steps ol {
	list-style: none;
	counter-reset: step;
	max-width: 560px;
	margin: 0 auto 36px;
	text-align: left;
}

.steps li {
	counter-increment: step;
	position: relative;
	padding: 10px 0 10px 56px;
	font-size: 17px;
	color: var(--muted);
}

.steps li strong,
.steps li em {
	color: var(--ink);
}

.steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 8px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--blue);
	color: #fff;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-secondary {
	font-size: 18px;
	padding: 14px 30px;
}

/* ---------- Footer ---------- */

.footer {
	padding: 40px 24px 48px;
	text-align: center;
}

.footer img {
	height: 26px;
	width: auto; /* keep the 4:1 ratio; the img carries width/height attrs for CLS */
	opacity: 0.8;
	transition: opacity 0.15s ease;
}

.footer a:hover img {
	opacity: 1;
}

.footer p {
	margin-top: 12px;
	font-size: 13px;
	color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
	.hero-inner {
		flex-direction: column;
		text-align: center;
	}

	.hero-copy {
		padding-bottom: 24px;
	}

	.lede {
		margin-left: auto;
		margin-right: auto;
	}

	.hero-art img {
		max-height: 260px;
	}

	/* Cloud widths are a share of the page, so on a phone they would be
	   thumbnail-sized; roughly double them to keep the sky readable. */
	.cloud-1 { width: 44%; }
	.cloud-2 { width: 30%; }
	.cloud-3 { width: 18%; }
	.cloud-4 { width: 36%; }
	.cloud-5 { width: 24%; }
}

/* ---------- SEO/content additions (v5) ---------- */

.skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	background: var(--blue);
	color: #fff;
	padding: 8px 14px;
	border-radius: 8px;
	z-index: 100;
}

.skip-link:focus {
	left: 8px;
}

.nav-home {
	display: inline-flex;
}

.nav-logo {
	width: auto;
}

.eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 14px;
}

.hero-compact .hero-inner-compact {
	padding-bottom: 48px;
}

.hero-copy a {
	color: #fff;
}

.section-intro {
	max-width: 720px;
	margin: -24px auto 36px;
	text-align: center;
	color: var(--muted);
	font-size: 17px;
}

.steps .cli {
	color: var(--muted);
	font-size: 15px;
	margin: -12px 0 28px;
}

.steps code,
.detail code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.92em;
	background: rgba(16, 20, 43, 0.06);
	padding: 2px 6px;
	border-radius: 6px;
	word-break: break-all;
}

/* Under the hood */

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

.detail h2,
.faq h2,
.changelog h2 {
	font-size: 34px;
	letter-spacing: -0.01em;
	text-align: center;
	margin-bottom: 40px;
}

.detail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 28px 40px;
}

.detail h3 {
	font-size: 18px;
	margin-bottom: 10px;
}

.detail ul {
	padding-left: 20px;
	color: var(--muted);
	font-size: 15px;
}

.detail li {
	margin-bottom: 6px;
}

/* FAQ */

.faq {
	background: #f6f7fb;
	padding: 72px 24px;
}

.faq-list {
	max-width: 760px;
	margin: 0 auto;
}

.faq details {
	background: #fff;
	border: 1px solid #e6e8f0;
	border-radius: 12px;
	padding: 4px 22px;
	margin-bottom: 12px;
}

.faq summary {
	cursor: pointer;
	list-style: none;
	padding: 14px 28px 14px 0;
	position: relative;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 12px;
	font-size: 22px;
	color: var(--blue);
	font-weight: 600;
}

.faq details[open] summary::after {
	content: "–";
}

.faq summary h3 {
	display: inline;
	font-size: 17px;
	font-weight: 600;
}

.faq details p {
	color: var(--muted);
	font-size: 15px;
	padding: 0 0 18px;
}

/* Changelog (home section + full page) */

.changelog,
.changelog-page {
	max-width: 760px;
	margin: 0 auto;
	padding: 72px 24px;
}

.changelog-page {
	padding-top: 32px;
}

.breadcrumb {
	font-size: 14px;
	color: var(--muted);
	margin-bottom: 28px;
}

.breadcrumb a {
	color: var(--blue);
	text-decoration: none;
}

.release {
	padding: 18px 0 8px;
	border-top: 1px solid #e6e8f0;
}

.release:first-of-type {
	border-top: 0;
}

.release h2,
.release h3 {
	font-size: 18px;
	margin-bottom: 8px;
}

.release h2 a,
.release h3 a {
	color: var(--ink);
	text-decoration: none;
}

.release h2 a:hover,
.release h3 a:hover {
	color: var(--blue);
}

.release ul {
	padding-left: 20px;
	color: var(--muted);
	font-size: 15px;
}

.release li {
	margin-bottom: 6px;
}

.badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--blue);
	background: rgba(63, 87, 225, 0.1);
	padding: 3px 8px;
	border-radius: 999px;
	vertical-align: middle;
	margin-left: 6px;
}

.changelog .more {
	margin-top: 20px;
}

.changelog .more a {
	color: var(--blue);
	font-weight: 600;
	text-decoration: none;
}

/* Footer links */

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	margin-top: 18px;
	font-size: 14px;
}

.footer-links a {
	color: var(--muted);
	text-decoration: none;
}

.footer-links a:hover {
	color: var(--blue);
}

.detail-grid-2 {
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	max-width: 860px;
	margin: 0 auto;
}
