.amd-page {
	--amd-primary: #2563eb;
	--amd-page: #f4f7fb;
	--amd-card: #fff;
	--amd-ink: #12213a;
	--amd-muted: #63728a;
	box-sizing: border-box;
	width: 100%;
	color: var(--amd-ink);
	background: var(--amd-page);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.55;
}

.amd-page *,
.amd-page *::before,
.amd-page *::after {
	box-sizing: border-box;
}

.amd-page a {
	color: inherit;
	text-decoration: none;
}

.amd-page button,
.amd-page input {
	font: inherit;
}

.amd-header {
	width: min(1120px, calc(100% - 48px));
	min-height: 84px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	border-bottom: 1px solid rgba(18, 33, 58, 0.08);
}

.amd-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	font-weight: 760;
	letter-spacing: -0.035em;
	white-space: nowrap;
}

.amd-brand-mark {
	width: 34px;
	height: 34px;
	display: inline-grid;
	place-items: center;
	border-radius: 11px;
	background: var(--amd-primary);
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.amd-nav,
.amd-footer-links {
	display: flex;
	align-items: center;
	gap: 26px;
}

.amd-nav a,
.amd-footer-links a {
	color: var(--amd-muted);
	font-size: 13px;
	font-weight: 650;
	transition: color 160ms ease;
}

.amd-nav a:hover,
.amd-footer-links a:hover {
	color: var(--amd-primary);
}

.amd-main {
	width: min(1120px, calc(100% - 48px));
	margin: 0 auto;
}

.amd-hero {
	max-width: 820px;
	margin: 0 auto;
	padding: clamp(56px, 8vw, 96px) 0 62px;
	text-align: center;
}

.amd-eyebrow,
.amd-overline,
.amd-result-kicker {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--amd-primary);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.15em;
	line-height: 1.3;
}

.amd-pulse {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #2bb987;
	box-shadow: 0 0 0 4px rgba(43, 185, 135, 0.12);
}

.amd-hero h1 {
	max-width: 760px;
	margin: 17px auto 15px;
	font-size: clamp(38px, 6.3vw, 68px);
	font-weight: 760;
	letter-spacing: -0.065em;
	line-height: 1.035;
}

.amd-intro {
	max-width: 600px;
	margin: 0 auto;
	color: var(--amd-muted);
	font-size: clamp(15px, 2vw, 18px);
}

.amd-downloader-card {
	margin-top: 34px;
	padding: clamp(20px, 4vw, 34px);
	border: 1px solid rgba(18, 33, 58, 0.08);
	border-radius: 20px;
	background: var(--amd-card);
	box-shadow: 0 20px 60px rgba(22, 44, 84, 0.09);
	text-align: left;
}

.amd-form > label:first-child {
	display: block;
	margin-bottom: 9px;
	font-size: 13px;
	font-weight: 750;
}

.amd-input-row {
	display: flex;
	gap: 8px;
}

.amd-input-row input {
	min-width: 0;
	flex: 1;
	height: 58px;
	padding: 0 17px;
	border: 1px solid #dce3ee;
	border-radius: 11px;
	outline: none;
	background: #fbfcfe;
	color: var(--amd-ink);
	font-size: 14px;
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.amd-input-row input:focus {
	border-color: var(--amd-primary);
	background: #fff;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--amd-primary) 14%, transparent);
}

.amd-input-row input::placeholder {
	color: #98a5b7;
}

.amd-page .amd-paste,
.amd-page .amd-clear,
.amd-page .amd-share {
	min-height: 44px;
	padding: 0 15px;
	border: 1px solid #e0e6ef;
	border-radius: 10px;
	background: #fff;
	color: var(--amd-ink);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.amd-page .amd-paste:hover,
.amd-page .amd-clear:hover,
.amd-page .amd-share:hover {
	transform: translateY(-1px);
	border-color: #b8c5d8;
	background: #f8faff;
}

.amd-rights {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 16px 0 18px;
	color: var(--amd-muted);
	font-size: 12px;
}

.amd-rights input {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	margin: 1px 0 0;
	accent-color: var(--amd-primary);
}

.amd-form-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.amd-page .amd-submit,
.amd-page .amd-download {
	min-height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 17px;
	padding: 0 20px;
	border: 0;
	border-radius: 10px;
	background: var(--amd-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 750;
	cursor: pointer;
	box-shadow: 0 8px 18px color-mix(in srgb, var(--amd-primary) 22%, transparent);
	transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease;
}

.amd-page .amd-submit:hover,
.amd-page .amd-download:hover {
	transform: translateY(-1px);
	filter: brightness(1.04);
	color: #fff;
}

.amd-page .amd-submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.amd-page .amd-submit span,
.amd-page .amd-download span {
	font-size: 18px;
	line-height: 1;
}

.amd-page .amd-clear {
	min-height: 42px;
	border-color: transparent;
	color: var(--amd-muted);
}

.amd-status {
	min-height: 0;
	margin: 11px 0 0;
	font-size: 12px;
}

.amd-status:empty {
	display: none;
}

.amd-status.is-error {
	color: #b42332;
}

.amd-status.is-success {
	color: #13754d;
}

.amd-status.is-loading {
	color: var(--amd-primary);
}

.amd-source-note {
	max-width: 700px;
	margin: 16px auto 0;
	color: var(--amd-muted);
	font-size: 11px;
	line-height: 1.6;
}

.amd-result {
	margin-top: 25px;
	padding-top: 23px;
	border-top: 1px solid #e7ebf2;
}

.amd-result[hidden] {
	display: none;
}

.amd-result-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.amd-result-kicker {
	font-size: 9px;
}

.amd-result-name {
	margin: 5px 0 1px;
	font-size: 17px;
	font-weight: 750;
	overflow-wrap: anywhere;
}

.amd-result-meta {
	margin: 0;
	color: var(--amd-muted);
	font-size: 12px;
}

.amd-file-badge {
	flex: 0 0 auto;
	padding: 7px 10px;
	border-radius: 8px;
	background: #edf3ff;
	color: var(--amd-primary);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.amd-preview {
	width: 100%;
	max-height: 430px;
	display: block;
	border-radius: 12px;
	background: #0d1625;
	object-fit: contain;
}

.amd-result-actions {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-top: 15px;
}

.amd-page .amd-download {
	min-height: 44px;
	padding: 0 16px;
	font-size: 13px;
}

.amd-page .amd-share {
	min-height: 44px;
}

.amd-privacy-note {
	margin: 12px 0 0;
	color: var(--amd-muted);
	font-size: 11px;
}

.amd-section {
	padding: 56px 0 66px;
	border-top: 1px solid rgba(18, 33, 58, 0.08);
}

.amd-section-heading {
	max-width: 660px;
	margin: 0 auto 28px;
	text-align: center;
}

.amd-overline {
	font-size: 9px;
}

.amd-section-heading h2 {
	margin: 8px 0 0;
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 740;
	letter-spacing: -0.05em;
	line-height: 1.15;
}

.amd-steps,
.amd-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 15px;
}

.amd-step,
.amd-feature {
	min-height: 186px;
	padding: 23px;
	border: 1px solid rgba(18, 33, 58, 0.08);
	border-radius: 14px;
	background: color-mix(in srgb, var(--amd-card) 75%, transparent);
}

.amd-step-number,
.amd-feature-icon {
	width: 35px;
	height: 35px;
	display: inline-grid;
	place-items: center;
	border-radius: 10px;
	background: color-mix(in srgb, var(--amd-primary) 10%, white);
	color: var(--amd-primary);
	font-size: 11px;
	font-weight: 800;
}

.amd-step h3,
.amd-feature h3 {
	margin: 16px 0 6px;
	font-size: 15px;
	font-weight: 750;
	letter-spacing: -0.02em;
}

.amd-step p,
.amd-feature p {
	margin: 0;
	color: var(--amd-muted);
	font-size: 12px;
	line-height: 1.65;
}

.amd-formats {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 24px;
	color: var(--amd-muted);
	font-size: 11px;
}

.amd-formats span {
	margin-right: 4px;
}

.amd-formats b {
	padding: 5px 9px;
	border: 1px solid #dce4f1;
	border-radius: 6px;
	background: var(--amd-card);
	color: var(--amd-ink);
	font-size: 9px;
	letter-spacing: 0.06em;
}

.amd-faq {
	max-width: 820px;
	margin: 0 auto;
}

.amd-faq-list {
	border-top: 1px solid rgba(18, 33, 58, 0.12);
}

.amd-faq-item {
	border-bottom: 1px solid rgba(18, 33, 58, 0.12);
}

.amd-faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 2px;
	font-size: 14px;
	font-weight: 720;
	cursor: pointer;
	list-style: none;
}

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

.amd-faq-item summary span {
	color: var(--amd-primary);
	font-size: 21px;
	font-weight: 400;
	transition: transform 150ms ease;
}

.amd-faq-item[open] summary span {
	transform: rotate(45deg);
}

.amd-faq-item p {
	max-width: 720px;
	margin: -4px 0 18px;
	color: var(--amd-muted);
	font-size: 13px;
	line-height: 1.7;
}

.amd-footer {
	width: min(1120px, calc(100% - 48px));
	margin: 0 auto;
	padding: 30px 0 21px;
	border-top: 1px solid rgba(18, 33, 58, 0.1);
}

.amd-footer-brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.amd-footer-brand p {
	margin: 0;
	color: var(--amd-muted);
	font-size: 11px;
}

.amd-footer-links {
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 12px 22px;
	margin-top: 22px;
}

.amd-footer-links:empty {
	display: none;
}

.amd-footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 24px;
	padding-top: 15px;
	border-top: 1px solid rgba(18, 33, 58, 0.07);
	color: #8793a5;
	font-size: 10px;
}

.amd-page :focus-visible {
	outline: 3px solid color-mix(in srgb, var(--amd-primary) 55%, transparent);
	outline-offset: 3px;
}

@media (max-width: 700px) {
	.amd-header,
	.amd-main,
	.amd-footer {
		width: min(100% - 32px, 1120px);
	}

	.amd-header {
		min-height: 68px;
	}

	.amd-nav {
		gap: 12px;
	}

	.amd-nav a {
		font-size: 11px;
	}

	.amd-brand {
		gap: 7px;
		font-size: 14px;
	}

	.amd-brand-mark {
		width: 29px;
		height: 29px;
		border-radius: 9px;
		font-size: 15px;
	}

	.amd-hero {
		padding-top: 56px;
	}

	.amd-steps,
	.amd-feature-grid {
		grid-template-columns: 1fr;
	}

	.amd-step,
	.amd-feature {
		min-height: 0;
		padding: 18px;
	}

	.amd-step h3,
	.amd-feature h3 {
		margin-top: 12px;
	}
}

@media (max-width: 480px) {
	.amd-nav {
		gap: 9px;
	}

	.amd-nav a {
		font-size: 10px;
	}

	.amd-input-row {
		flex-wrap: wrap;
	}

	.amd-input-row input {
		flex-basis: 100%;
	}

	.amd-input-row .amd-paste {
		width: 100%;
	}

	.amd-form-actions {
		align-items: stretch;
	}

	.amd-page .amd-submit {
		flex: 1;
	}

	.amd-result-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.amd-result-actions > * {
		width: 100%;
	}

	.amd-footer-brand,
	.amd-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.amd-footer-links {
		justify-content: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.amd-page *,
	.amd-page *::before,
	.amd-page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
