@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
	--paper: #FDF8F0;
	--ink: #111827;
	--ink-soft: #6B7280;
	--brand-blue: #3B82F6;
	--brand-blue-soft: #DBEAFE;
	--go-green: #22C55E;
	--go-green-soft: #DCFCE7;
	--accent-purple: #A78BFA;
	--border: #EBE4D6;
	--card-bg: #FFFFFF;
	--radius: 20px;
	--radius-sm: 10px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	line-height: 1.5;
}

header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 2rem;
	background: var(--paper);
}

header a {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	background: #FFFFFF;
	padding: 0.75rem 1.25rem;
	border-radius: var(--radius);
	box-shadow: 0 2px 10px rgba(17, 24, 39, 0.05);
}
header img.logo {
	height: 56px;
	width: auto;
}

@media (max-width: 480px) {
	header {
		padding: 1.25rem;
	}
	header a {
		padding: 0.5rem 0.75rem;
	}
}

main {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 2rem 4rem;
}

/* Hero */
.hero {
	padding: 4.5rem 0 3rem;
	text-align: center;
}

.hero h1 {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: clamp(2.25rem, 5.5vw, 3.5rem);
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0 0 1rem;
	color: var(--ink);
}

.hero h1 .accent {
	color: var(--brand-blue);
}

.hero p {
	font-family: 'JetBrains Mono', monospace;
	font-size: 1rem;
	color: var(--ink-soft);
	max-width: 34em;
	margin: 0 auto;
}

/* Product grid */
h2 {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 1.5rem;
	margin: 0 0 1.5rem;
}

#product-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
}

.product {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.product-preview {
	width: 100%;
	aspect-ratio: 16 / 10;
	background: var(--brand-blue-soft);
	object-fit: cover;
	display: block;
}

.product-body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.product h3 {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.1rem;
	margin: 0;
}

.product p.description {
	color: var(--ink-soft);
	font-size: 0.9rem;
	margin: 0;
	flex: 1;
}

.product .price {
	font-family: 'JetBrains Mono', monospace;
	color: var(--brand-blue);
	font-weight: 500;
	font-size: 1.05rem;
	margin: 0;
}

/* Buttons */
button, .btn {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.95rem;
	border: none;
	border-radius: var(--radius-sm);
	padding: 0.7rem 1.25rem;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.1s ease;
}

button[type="submit"], .btn-primary {
	background: var(--go-green);
	color: #FFFFFF;
	width: 100%;
}

button:hover, .btn:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

/* Forms */
label {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--ink);
}

input, textarea, select {
	font-family: 'Inter', sans-serif;
	font-size: 0.95rem;
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--card-bg);
	color: var(--ink);
	margin-top: 0.3rem;
}

input:focus, textarea:focus, select:focus {
	outline: 2px solid var(--brand-blue);
	outline-offset: 1px;
}

.error {
	color: #DC2626;
}

.success {
	color: var(--go-green);
}

@media (prefers-reduced-motion: reduce) {
	.product {
		transition: none;
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #0A0A0F;
		--ink: #E4E4E7;
		--ink-soft: #9CA3AF;
		--brand-blue: #00F0FF;
		--brand-blue-soft: #133339;
		--go-green: #39FF14;
		--go-green-soft: #0F2E0A;
		--accent-purple: #FF10F0;
		--border: #2A2A38;
		--card-bg: #1A1A24;
	}

	header a {
		background: var(--card-bg);
		box-shadow: 0 0 20px rgba(57, 255, 20, 0.15);
	}

	.hero h1 {
		text-shadow: 0 0 20px rgba(0, 240, 255, 0.35), 0 0 40px rgba(0, 240, 255, 0.15);
	}

	:root {
		--wave-tile: 130px;
	}

	.hero h1 .accent {
		position: relative;
		color: transparent;
		padding-bottom: 0.15em;
		background-image:
			url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='60' viewBox='0 0 200 60'%3E%3Cpath d='M0 20 Q 25 5, 50 20 T 100 20 T 150 20 T 200 20 V60 H0 Z' fill='%23E600C2'/%3E%3C/svg%3E"),
			linear-gradient(180deg, #E600C2 0%, #8A0072 100%);
		background-repeat: repeat-x, no-repeat;
		background-size: var(--wave-tile) 130%, 100% 130%;
		background-position: 0 60%, 0 100%;
		-webkit-background-clip: text;
		background-clip: text;
		filter: drop-shadow(0 0 18px rgba(230, 0, 194, 0.6));
		animation: wave-scroll 4s linear infinite;
	}

	@keyframes wave-scroll {
		from {
			background-position: 0 60%, 0 100%;
		}
		to {
			background-position: var(--wave-tile) 60%, 0 100%;
		}
	}


	@media (prefers-reduced-motion: reduce) {
		.hero h1 .accent {
			animation: none;
		}
	}

	@media (min-width: 900px) {
		:root {
			--wave-tile: 210px;
		}
	}
	

	.product {
		box-shadow: 0 0 0 1px var(--border);
	}

	.product:hover {
		box-shadow: 0 0 24px rgba(57, 255, 20, 0.2);
	}

	.product .price {
		text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
	}

	button[type="submit"], .btn-primary {
		background: var(--go-green);
		color: #0A0A0F;
		box-shadow: none;
	}

	button:hover, .btn:hover {
		box-shadow: 0 0 6px rgba(57, 255, 20, 0.25);
	}
