:root {
	color-scheme: dark;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: #0c0d0d;
	color: #f2f1eb;
	font-synthesis: none;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-width: 320px;
	min-height: 100vh;
	background:
		radial-gradient(circle at 78% 5%, rgba(207, 245, 105, 0.09), transparent 28rem),
		linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
		#0c0d0d;
	background-size: auto, 48px 48px, 48px 48px, auto;
}

button,
select,
textarea {
	font: inherit;
}

button,
.dropzone,
select {
	transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

button:focus-visible,
.dropzone:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid #cdf35e;
	outline-offset: 3px;
}

.shell {
	width: min(1440px, 100%);
	margin: 0 auto;
	padding: 0 32px 28px;
}

.masthead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 78px;
	border-bottom: 1px solid #292b29;
}

.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	font-size: 14px;
	font-weight: 650;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid #4a4d48;
	border-radius: 9px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 10px;
	color: #cdf35e;
}

.privacy {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #92968e;
}

.privacy span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #cdf35e;
	box-shadow: 0 0 12px rgba(205, 243, 94, 0.65);
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.55fr);
	gap: 36px;
	align-items: end;
	padding: clamp(54px, 8vw, 104px) 0 46px;
}

.eyebrow,
.label {
	margin: 0 0 18px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #cdf35e;
}

.hero h1 {
	grid-column: 1;
	margin: 0;
	font-size: clamp(48px, 7.8vw, 112px);
	font-weight: 520;
	letter-spacing: -0.065em;
	line-height: 0.89;
}

.hero .eyebrow {
	grid-column: 1 / -1;
	margin-bottom: -14px;
}

.lede {
	grid-column: 2;
	margin: 0;
	max-width: 390px;
	font-size: clamp(16px, 1.5vw, 20px);
	line-height: 1.55;
	letter-spacing: -0.02em;
	color: #aeb1aa;
}

.workspace {
	display: grid;
	grid-template-columns: minmax(330px, 0.68fr) minmax(440px, 1.32fr);
	min-height: 510px;
	border: 1px solid #30322f;
	border-radius: 18px;
	overflow: hidden;
	background: rgba(15, 16, 15, 0.88);
	box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.input-panel,
.output-panel {
	padding: clamp(20px, 3vw, 38px);
}

.input-panel {
	display: flex;
	flex-direction: column;
	border-right: 1px solid #30322f;
}

.dropzone {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 24px;
	min-height: 270px;
	padding: 32px;
	border: 1px dashed #454842;
	border-radius: 12px;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.012);
}

.dropzone:hover,
.dropzone.is-dragging {
	border-color: #cdf35e;
	background: rgba(205, 243, 94, 0.045);
}

.dropzone.has-file {
	border-style: solid;
	border-color: #747a6c;
}

.file-glyph {
	display: grid;
	place-items: end center;
	width: 64px;
	height: 80px;
	padding-bottom: 13px;
	border: 1px solid #5e625b;
	border-radius: 6px 13px 6px 6px;
	background: #191b19;
	color: #cdf35e;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 10px;
	letter-spacing: 0.08em;
	box-shadow: 9px 9px 0 #222420;
}

.dropzone h2 {
	margin: 0 0 7px;
	font-size: 20px;
	font-weight: 560;
	letter-spacing: -0.025em;
}

.dropzone p,
.output-head p,
.status {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #888d84;
}

.controls {
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: 12px;
	margin-top: 18px;
}

.controls label {
	display: grid;
	gap: 7px;
	font-size: 11px;
	color: #8d9189;
}

select,
button {
	border: 1px solid #3d403b;
	border-radius: 9px;
	background: #171917;
	color: #dedfd9;
}

select {
	height: 45px;
	padding: 0 10px;
	cursor: pointer;
}

button {
	cursor: pointer;
}

button:hover:not(:disabled) {
	border-color: #7d8278;
	color: #fff;
}

button:active:not(:disabled) {
	transform: translateY(1px);
}

button:disabled {
	cursor: not-allowed;
	opacity: 0.4;
}

.primary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	align-self: end;
	height: 45px;
	padding: 0 16px;
	border-color: #cdf35e;
	background: #cdf35e;
	color: #10120e;
	font-weight: 650;
}

.primary:hover:not(:disabled) {
	border-color: #dcff75;
	background: #dcff75;
	color: #10120e;
}

.status {
	min-height: 20px;
	margin-top: 14px;
}

.progress-track {
	height: 3px;
	margin-top: 18px;
	overflow: hidden;
	border-radius: 999px;
	background: #292c27;
}

.progress-track > div {
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: #cdf35e;
	transition: width 180ms ease;
}

.status.is-error {
	color: #ff8f85;
}

.output-panel {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #131513;
}

.output-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}

.output-head .label {
	margin-bottom: 5px;
}

.output-actions {
	display: flex;
	gap: 8px;
}

.output-actions button {
	padding: 8px 12px;
	font-size: 12px;
}

textarea {
	flex: 1;
	width: 100%;
	min-height: 385px;
	resize: vertical;
	padding: 22px;
	border: 1px solid #30332f;
	border-radius: 10px;
	outline: none;
	background: #0c0e0c;
	color: #d8dad3;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 13px;
	line-height: 1.65;
	tab-size: 2;
}

textarea::placeholder {
	color: #4e524b;
}

footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 20px;
	font-size: 11px;
	color: #6f746c;
}

footer p {
	margin: 0;
}

footer code {
	color: #9da394;
}

@media (max-width: 900px) {
	.shell {
		padding-inline: 18px;
	}

	.hero {
		grid-template-columns: 1fr;
		padding-top: 56px;
	}

	.hero h1,
	.lede {
		grid-column: 1;
	}

	.lede {
		margin-top: 4px;
	}

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

	.input-panel {
		border-right: 0;
		border-bottom: 1px solid #30322f;
	}
}

@media (max-width: 560px) {
	.shell {
		padding-inline: 12px;
	}

	.masthead {
		min-height: 66px;
	}

	.privacy {
		display: none;
	}

	.hero {
		padding: 42px 4px 30px;
	}

	.hero h1 {
		font-size: clamp(46px, 15vw, 72px);
	}

	.input-panel,
	.output-panel {
		padding: 16px;
	}

	.dropzone {
		flex-direction: column;
		text-align: center;
	}

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

	.output-head {
		align-items: flex-start;
		flex-direction: column;
	}

	footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
