* {
	box-sizing: border-box;
}

:root {
	color-scheme: light;
	--bg: #fff5fb;
	--bg-accent: #ffe5f4;
	--card: rgba(255, 255, 255, 0.82);
	--card-border: rgba(255, 160, 206, 0.45);
	--text: #5f3a58;
	--muted: #8a6d83;
	--primary: #ff77b7;
	--primary-deep: #ff4d9b;
	--secondary: #9d7bff;
	--shadow: 0 24px 60px rgba(255, 112, 183, 0.18);
}

html, body {
	min-height: 100%;
}

body {
	margin: 0;
	font-family: "M PLUS Rounded 1c", sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at top left, rgba(255, 172, 214, 0.42), transparent 32%),
		radial-gradient(circle at bottom right, rgba(162, 135, 255, 0.24), transparent 28%),
		linear-gradient(180deg, #fff8fc 0%, var(--bg) 100%);
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(rgba(255, 135, 193, 0.13) 1px, transparent 1px);
	background-size: 24px 24px;
	opacity: 0.45;
}

.app-shell {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
	padding: 32px 0 48px;
	position: relative;
	z-index: 1;
}

.card {
	background: var(--card);
	border: 1px solid var(--card-border);
	border-radius: 28px;
	box-shadow: var(--shadow);
	backdrop-filter: blur(10px);
}

.hero {
	padding: 32px;
	margin-bottom: 24px;
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
	gap: 24px;
	align-items: center;
}

.hero::after {
	content: "";
	position: absolute;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 136, 198, 0.22), transparent 70%);
	top: -140px;
	right: -120px;
}

.hero-copy,
.hero-visual {
	position: relative;
	z-index: 1;
}

.hero-copy {
	display: grid;
	gap: 16px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.ghost-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: 999px;
	border: 1px solid rgba(255, 138, 194, 0.48);
	color: var(--primary-deep);
	text-decoration: none;
	font-weight: 800;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: 0 10px 20px rgba(255, 155, 203, 0.12);
}

.hero-note {
	font-size: 0.92rem;
	color: var(--muted);
}

.hero-visual {
	min-height: 320px;
	display: grid;
	place-items: center;
	position: relative;
}

.floating-card {
	position: absolute;
	display: grid;
	place-items: center;
	padding: 16px;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.58);
	border: 1px solid rgba(255, 159, 208, 0.32);
	box-shadow: 0 20px 36px rgba(255, 121, 188, 0.16);
	backdrop-filter: blur(8px);
}

.floating-card img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.floating-card--large {
	width: min(100%, 260px);
	transform: rotate(-6deg);
	z-index: 2;
}

.floating-card--small {
	width: 132px;
	padding: 12px;
}

.floating-card--left {
	left: 0;
	top: 24px;
	transform: rotate(-12deg);
}

.floating-card--right {
	right: 0;
	bottom: 12px;
	transform: rotate(10deg);
}

.eyebrow {
	display: inline-flex;
	margin: 0 0 12px;
	padding: 8px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(255, 127, 184, 0.18), rgba(158, 122, 255, 0.16));
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero h1 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.6rem);
	line-height: 1.12;
}

/* Heading image used instead of text: constrain size and keep responsive */
.hero-heading {
	display: flex;
 	align-items: center;
 	gap: 12px;
}

#heroHeadingImage {
 	display: block;
 	width: auto;
 	max-width: 100%;
 	max-height: 160px;
 	object-fit: contain;
}

.lead {
	margin: 14px 0 0;
	max-width: 68ch;
	color: var(--muted);
	line-height: 1.9;
}

.lead span {
	color: var(--primary-deep);
	font-weight: 800;
}

.workspace {
	display: grid;
	grid-template-columns: minmax(280px, 360px) 1fr;
	gap: 24px;
	align-items: start;
}

.upload-card, .preview-card {
	padding: 24px;
}

.dropzone {
	display: grid;
	gap: 10px;
	padding: 28px 22px;
	border: 2px dashed rgba(255, 125, 188, 0.42);
	border-radius: 24px;
	background: linear-gradient(180deg, rgba(255, 247, 252, 0.92), rgba(255, 230, 244, 0.82));
	text-align: center;
	cursor: pointer;
	transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dropzone:hover,
.dropzone.is-over {
	transform: translateY(-2px);
	border-color: rgba(255, 77, 155, 0.72);
	box-shadow: 0 18px 32px rgba(255, 125, 188, 0.18);
}

.dropzone-badge {
	justify-self: center;
	display: inline-flex;
	padding: 7px 12px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: #fff;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.dropzone strong {
	font-size: 1.08rem;
}

.dropzone span:last-child {
	color: var(--muted);
	font-size: 0.95rem;
}

.toolbar {
	display: grid;
	gap: 12px;
	margin-top: 20px;
}

.primary-button,
.secondary-button {
	border: none;
	border-radius: 18px;
	font-family: inherit;
	font-weight: 800;
	transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.primary-button {
	padding: 14px 18px;
	color: #fff;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	box-shadow: 0 14px 28px rgba(255, 95, 169, 0.28);
}

.secondary-button {
	padding: 12px 14px;
	color: var(--primary-deep);
	background: rgba(255, 255, 255, 0.84);
	border: 1px solid rgba(255, 138, 194, 0.48);
}

.primary-button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: none;
}

.primary-button:not(:disabled),
.secondary-button:not(:disabled) {
	cursor: pointer;
}

.primary-button:not(:disabled):hover,
.secondary-button:not(:disabled):hover {
	transform: translateY(-1px);
}

.status-text {
	margin: 0;
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.7;
}

.section-heading {
	display: grid;
	gap: 6px;
	margin-bottom: 20px;
}

.section-heading h2,
.frame-meta h3 {
	margin: 0;
}

.section-heading p {
	margin: 0;
	color: var(--muted);
}

.icon-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.icon-strip img {
	width: 100%;
	height: 120px;
	object-fit: contain;
	padding: 10px;
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(255, 247, 252, 0.92), rgba(255, 229, 244, 0.8));
	border: 1px solid rgba(255, 169, 210, 0.34);
	box-shadow: 0 12px 24px rgba(255, 121, 188, 0.1);
}

.frame-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
}

.frame-gallery.empty-state {
	min-height: 300px;
	place-items: center;
	align-content: center;
	color: var(--muted);
	text-align: center;
	border: 1px dashed rgba(255, 142, 199, 0.45);
	border-radius: 24px;
	background: rgba(255, 245, 251, 0.75);
}

.frame-card {
	display: grid;
	gap: 14px;
	padding: 18px;
	border-radius: 24px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 248, 0.9));
	border: 1px solid rgba(255, 169, 210, 0.38);
}

.frame-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.frame-meta h3 {
	font-size: 1rem;
}

.frame-canvas {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 20px;
	background: linear-gradient(135deg, #fff, #ffeaf5);
}

@media (max-width: 940px) {
	.hero {
		grid-template-columns: 1fr;
	}

	.hero-visual {
		min-height: 260px;
		margin-top: 8px;
	}

	.workspace {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.app-shell {
		width: min(100% - 20px, 1180px);
		padding-top: 20px;
	}

	.hero,
	.upload-card,
	.preview-card {
		padding: 20px;
	}

	.hero {
		gap: 16px;
	}

	.hero-visual {
		min-height: 220px;
	}

	#heroHeadingImage {
		max-height: 120px;
	}

	.floating-card--large {
		width: min(100%, 200px);
	}

	.floating-card--small {
		width: 96px;
	}

	.floating-card--left {
		top: 6px;
	}

	.floating-card--right {
		bottom: 2px;
	}

	.icon-strip {
		grid-template-columns: 1fr;
	}

	.icon-strip img {
		height: 96px;
	}

	.frame-meta {
		flex-direction: column;
		align-items: stretch;
	}
}
