:root {
	color-scheme: dark;
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	background: #0d0f12;
	color: #edf3ff;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	background: linear-gradient(180deg, #14181d 0%, #0d0f12 48%, #090a0d 100%);
}

a {
	color: #67e8f9;
	text-decoration-color: rgba(103, 232, 249, .35);
	text-underline-offset: 4px;
}

a:hover {
	color: #a5f3fc;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 14px clamp(16px, 4vw, 48px);
	border-bottom: 1px solid rgba(148, 163, 184, .18);
	background: rgba(13, 15, 18, .9);
	backdrop-filter: blur(18px);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #f8fafc;
	text-decoration: none;
}

.brand-mark {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	background: #101418;
	box-shadow: 0 0 0 1px rgba(148, 163, 184, .24);
	object-fit: contain;
}

.brand strong,
.brand small {
	display: block;
}

.brand small {
	margin-top: 2px;
	color: #9fb1ca;
	font-size: 13px;
}

.header-tools,
.hero-actions,
.button-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.header-tools {
	justify-content: flex-end;
}

.header-tools a {
	color: #d9e5f7;
	text-decoration: none;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
	gap: clamp(24px, 5vw, 72px);
	align-items: center;
	padding: clamp(44px, 7vw, 86px) clamp(16px, 4vw, 48px) clamp(28px, 5vw, 58px);
}

.hero-copy {
	max-width: 760px;
}

.eyebrow {
	margin: 0 0 12px;
	color: #5eead4;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	margin-bottom: 18px;
	max-width: 760px;
	font-size: clamp(38px, 6vw, 72px);
	line-height: .98;
	letter-spacing: 0;
}

h2 {
	margin-bottom: 0;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.05;
	letter-spacing: 0;
}

h3 {
	margin-bottom: 10px;
	font-size: 20px;
	line-height: 1.2;
}

.hero p:not(.eyebrow) {
	max-width: 680px;
	color: #c8d4e6;
	font-size: 20px;
	line-height: 1.6;
}

.button,
button,
select {
	border: 1px solid rgba(148, 163, 184, .28);
	border-radius: 8px;
	background: #181d23;
	color: #edf3ff;
	font: inherit;
}

.button,
button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	text-decoration: none;
	cursor: pointer;
}

.button.primary,
button:not(:disabled) {
	border-color: rgba(45, 212, 191, .7);
	background: linear-gradient(135deg, #14b8a6, #0891b2);
	color: #f8fafc;
	font-weight: 750;
}

.button.ghost {
	background: rgba(20, 24, 29, .72);
}

button:disabled {
	opacity: .48;
	cursor: default;
}

select {
	min-height: 44px;
	padding: 10px 36px 10px 12px;
}

.hero-panel {
	display: grid;
	gap: 12px;
	padding: 18px;
	border: 1px solid rgba(148, 163, 184, .2);
	border-radius: 8px;
	background: rgba(20, 24, 29, .78);
	box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

.hero-panel div {
	padding: 18px;
	border: 1px solid rgba(148, 163, 184, .14);
	border-radius: 8px;
	background: rgba(10, 12, 15, .72);
}

.hero-panel span,
.controls label span {
	display: block;
	margin-bottom: 7px;
	color: #9fb1ca;
	font-size: 13px;
}

.hero-panel strong {
	display: block;
	font-size: 22px;
}

.workspace {
	display: grid;
	grid-template-columns: minmax(300px, 460px) 1fr;
	min-height: 560px;
	margin: 0 clamp(16px, 4vw, 48px) clamp(44px, 7vw, 80px);
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, .2);
	border-radius: 8px;
	background: rgba(12, 14, 17, .82);
	box-shadow: 0 22px 80px rgba(0, 0, 0, .28);
}

.demo-band {
	display: grid;
	grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
	gap: clamp(22px, 4vw, 44px);
	align-items: center;
	padding: 0 clamp(16px, 4vw, 48px) clamp(44px, 7vw, 76px);
}

.demo-copy p:not(.eyebrow) {
	color: #c8d4e6;
	font-size: 18px;
	line-height: 1.6;
}

.demo-media {
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, .2);
	border-radius: 8px;
	background: rgba(10, 12, 15, .72);
	box-shadow: 0 22px 80px rgba(0, 0, 0, .28);
}

.demo-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.demo-media figcaption {
	padding: 12px 16px;
	border-top: 1px solid rgba(148, 163, 184, .16);
	color: #9fb1ca;
	font-size: 14px;
}

.tool {
	display: grid;
	align-content: start;
	gap: 20px;
	padding: clamp(18px, 3vw, 28px);
	border-right: 1px solid rgba(148, 163, 184, .2);
	background: rgba(20, 24, 29, .64);
}

.dropzone {
	display: grid;
	min-height: 250px;
	place-items: center;
	padding: 24px;
	border: 2px dashed #64748b;
	border-radius: 8px;
	background: rgba(18, 22, 27, .82);
	text-align: center;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.dropzone:hover,
.dropzone.dragover {
	border-color: #22d3ee;
	background: rgba(8, 145, 178, .13);
	transform: translateY(-1px);
}

.dropzone strong {
	display: block;
	margin-bottom: 8px;
	font-size: 20px;
}

.dropzone span span {
	color: #b8c5d9;
}

.controls {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.controls label,
.controls select {
	width: 100%;
}

.button-row {
	grid-column: 1 / -1;
}

.status {
	min-height: 24px;
	color: #bed0ea;
	line-height: 1.5;
}

.preview {
	display: grid;
	min-width: 0;
	grid-template-rows: auto 1fr;
}

.previewbar {
	padding: 14px 18px;
	border-bottom: 1px solid rgba(148, 163, 184, .2);
	color: #d9e5f7;
}

pre {
	margin: 0;
	padding: 20px;
	overflow: auto;
	background: #060910;
	color: #e2e8f0;
	font: 13px/1.55 Consolas, "Courier New", monospace;
	tab-size: 2;
	white-space: pre-wrap;
}

.content-band {
	padding: clamp(40px, 7vw, 76px) clamp(16px, 4vw, 48px);
	border-top: 1px solid rgba(148, 163, 184, .14);
}

.content-band.alt {
	background: rgba(20, 24, 29, .42);
}

.section-heading {
	max-width: 780px;
	margin-bottom: 28px;
}

.info-grid,
.link-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.info-grid article,
.link-grid a {
	min-height: 170px;
	padding: 22px;
	border: 1px solid rgba(148, 163, 184, .18);
	border-radius: 8px;
	background: rgba(20, 24, 29, .62);
}

.info-grid.compact article {
	min-height: 140px;
}

.info-grid p,
.link-grid span {
	color: #b8c5d9;
	line-height: 1.6;
}

.link-grid a {
	display: grid;
	align-content: start;
	gap: 10px;
	color: #edf3ff;
	text-decoration: none;
}

footer {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	padding: 26px clamp(16px, 4vw, 48px);
	border-top: 1px solid rgba(148, 163, 184, .16);
	color: #9fb1ca;
}

@media (max-width: 960px) {
	.hero,
	.demo-band,
	.workspace,
	.info-grid,
	.link-grid {
		grid-template-columns: 1fr;
	}

	.workspace {
		min-height: 0;
	}

	.tool {
		border-right: 0;
		border-bottom: 1px solid rgba(148, 163, 184, .2);
	}

	.preview {
		min-height: 420px;
	}
}

@media (max-width: 680px) {
	.site-header {
		position: static;
		align-items: flex-start;
		flex-direction: column;
	}

	.header-tools {
		justify-content: flex-start;
	}

	h1 {
		font-size: 40px;
	}

	.hero p:not(.eyebrow) {
		font-size: 17px;
	}

	.controls {
		grid-template-columns: 1fr;
	}

	.button-row,
	.button-row button,
	.hero-actions .button {
		width: 100%;
	}
}
