:root {
	--navy: #0b2540;
	--blue: #2f8be6;
	--teal: #36c6b6;
	--mint: #5ee0cf;
	--bg: #ffffff;
	--bg-alt: #f4f8fc;
	--text: #14243a;
	--muted: #51637a;
	--card: #ffffff;
	--border: #dde6f0;
	--code-bg: #eaf1f9;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(11, 37, 64, .08);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0a1828;
		--bg-alt: #0d1f33;
		--text: #e6eef8;
		--muted: #9fb3c8;
		--card: #102841;
		--border: #1e3a57;
		--code-bg: #17324f;
		--shadow: 0 10px 30px rgba(0, 0, 0, .3);
	}
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
	margin: 0;
	font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
code { font: .88em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--code-bg); padding: .12em .4em; border-radius: 5px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 19px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(11, 37, 64, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.brand b { color: var(--mint); }
.brand em { font-style: normal; font-weight: 600; color: #cfe3f7; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #cfe3f7; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-links a.nav-cta { padding: 8px 16px; border-radius: 8px; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--teal), var(--blue)); }
.nav-links a.nav-cta:hover { filter: brightness(1.08); }

/* Hero */
.hero {
	color: #fff;
	background:
		radial-gradient(1000px 520px at 85% 10%, rgba(47,139,230,.55), transparent 60%),
		radial-gradient(800px 480px at 0% 100%, rgba(14,124,134,.6), transparent 60%),
		linear-gradient(120deg, #0a1f38 0%, #0d3460 55%, #0f4c81 100%);
	padding: 72px 0 40px;
	overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: 14px; font-weight: 600; color: #cfe3f7; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; }
.hero h1 span { color: var(--mint); white-space: nowrap; }
.lede { font-size: clamp(17px, 2vw, 20px); color: #cfe3f7; max-width: 560px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--blue)); color: #fff; box-shadow: 0 10px 24px rgba(47,139,230,.35); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(47,139,230,.45); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.meta { margin: 18px 0 0; font-size: 14px; color: #9fc3e6; }
.hero-art svg { width: 100%; height: auto; overflow: visible; font-family: inherit; }
.parcel { animation: hop 3.2s ease-in-out infinite; }
.trail { animation: dash 1.6s linear infinite; }
@keyframes hop { 0%, 100% { transform: translate(-36px, 14px); } 50% { transform: translate(36px, -10px); } }
@keyframes dash { to { stroke-dashoffset: -32; } }
@media (prefers-reduced-motion: reduce) { .parcel, .trail { animation: none; } html { scroll-behavior: auto; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 56px; }
.stats div { padding: 18px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); text-align: center; }
.stats b { display: block; font-size: 30px; color: var(--mint); line-height: 1.1; }
.stats span { font-size: 14px; color: #cfe3f7; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { text-align: center; }
.section-lede { text-align: center; color: var(--muted); max-width: 640px; margin: -4px auto 44px; font-size: 18px; }
.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: linear-gradient(135deg, rgba(54,198,182,.18), rgba(47,139,230,.18)); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Definition */
.what { padding: 64px 0 0; }
.definition { font-size: 19px; line-height: 1.7; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 24px 28px; margin: 0; box-shadow: var(--shadow); }
.definition strong { color: var(--text); }
.what + .section { padding-top: 64px; }

/* Pain points */
.pains { grid-template-columns: repeat(2, 1fr); }
.pain { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.pain .q { font-size: 19px; font-weight: 700; }
.pain .a { color: var(--muted); }
.pain .a::before { content: "✓ "; color: var(--teal); font-weight: 800; }

/* Use cases */
.uses { grid-template-columns: repeat(4, 1fr); margin-top: 36px; }
.use { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; text-align: center; box-shadow: var(--shadow); }
.use .emoji { display: block; font-size: 38px; line-height: 1; margin-bottom: 12px; }
.use p { color: var(--muted); margin: 0; font-size: 16px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: none; }
.steps li { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px 26px; box-shadow: var(--shadow); }
.steps p { color: var(--muted); margin: 0; font-size: 16px; }
.num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 14px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--teal), var(--blue)); }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shots figure { margin: 0; }
.shots button { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--card); cursor: zoom-in; box-shadow: var(--shadow); transition: transform .15s; }
.shots button:hover { transform: translateY(-2px); }
.shots img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; object-position: center top; background: #f0f0f1; }
.shots figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); }
.lightbox::backdrop { background: rgba(5, 15, 28, .85); }
.lightbox img { border-radius: 10px; max-height: 88vh; width: auto; margin: auto; }
.lb-close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

/* CLI */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.split h2 { text-align: left; }
.split p { color: var(--muted); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { padding-left: 30px; margin: 10px 0; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.term { margin: 0; padding: 24px; border-radius: var(--radius); background: #0a1828; color: #cfe3f7; box-shadow: 0 20px 50px rgba(0,0,0,.25); overflow-x: auto; font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.term code { background: none; padding: 0; font: inherit; }
.term .c { color: #6f88a3; }
.term .p { color: var(--mint); }
.term .ok { color: var(--teal); font-weight: 700; }

/* Requirements */
.reqs { grid-template-columns: repeat(4, 1fr); margin-top: 36px; }
.reqs div { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; }
.reqs b { display: block; margin-bottom: 4px; }
.reqs span { color: var(--muted); font-size: 15px; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin: 12px 0; padding: 0 22px; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--blue); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); }

/* Final CTA */
.final { text-align: center; color: #fff; padding: 88px 0; background: linear-gradient(120deg, #0a1f38 0%, #0d3460 55%, #0f4c81 100%); }
.final img { margin: 0 auto 20px; border-radius: 18px; }
.final p { color: #cfe3f7; font-size: 18px; margin: 0 0 28px; }
.final .cta { justify-content: center; }

.footer { background: #071422; color: #9fb3c8; padding: 28px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer p { margin: 0; }
.footer a { color: #cfe3f7; }

/* Back to top */
.to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 30;
	width: 48px; height: 48px; border: 0; border-radius: 50%;
	display: grid; place-items: center; cursor: pointer; color: #fff;
	background: linear-gradient(135deg, var(--teal), var(--blue));
	box-shadow: 0 10px 24px rgba(47,139,230,.4);
	opacity: 0; transform: translateY(12px); pointer-events: none;
	transition: opacity .2s, transform .2s, box-shadow .15s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { box-shadow: 0 14px 30px rgba(47,139,230,.55); transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

/* Responsive */
@media (max-width: 960px) {
	.hero-inner, .split { grid-template-columns: 1fr; }
	.hero-art { max-width: 560px; }
	.features, .steps { grid-template-columns: repeat(2, 1fr); }
	.shots, .reqs, .stats, .uses { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.nav-links a:not(.nav-cta) { display: none; }
	.brand { font-size: 18px; }
	.hero { padding-top: 48px; }
	.features, .steps, .shots, .reqs, .pains, .uses { grid-template-columns: 1fr; }
	.section { padding: 64px 0; }
	.btn { width: 100%; justify-content: center; }
	.to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}
