:root {
	/* Default (dark) theme */
	--bg: #0f172a;
	--bg-2: #071028;
	--accent-1: #6366f1;
	--accent-2: #7c3aed;
	--cyan-1: #06b6d4;
	--text: #e6eef8;
	/* Slightly brighter muted text for better contrast on dark background */
	--muted: #b4c0d3;

	/* Theme-dependent surfaces */
	--card-1: rgba(255, 255, 255, 0.04);
	--card-2: rgba(255, 255, 255, 0.02);
	--card-border: rgba(255, 255, 255, 0.06);

	/* Theme-dependent interactive/borders */
	--ghost-border: rgba(255, 255, 255, 0.14);
	--muted-underline: rgba(255, 255, 255, 0.16);

	/* Theme-dependent accents */
	--logo-shadow: rgba(99, 102, 241, 0.22);
	--btn-shadow: rgba(99, 102, 241, 0.18);

	/* Accessible focus ring color (used for keyboard focus) */
	--focus-ring: rgba(99, 102, 241, 0.42);

	/* Theme-dependent gradients */
	--bg-grad-1: rgba(67, 56, 202, 0.12);
	--bg-grad-2: rgba(6, 182, 212, 0.07);
	--bg-grad-bottom: #000;
	--blob-1-a: rgba(99, 102, 241, 0.38);
	--blob-1-b: rgba(124, 58, 237, 0.22);
	--blob-2-a: rgba(6, 182, 212, 0.28);
	--blob-2-b: rgba(16, 185, 129, 0.08);
}

/* Prefer stronger default focus for accessibility */
:focus {
	outline: none;
}
:focus-visible {
	outline: 3px solid var(--focus-ring);
	outline-offset: 3px;
}

/* Make underline consistently visible for link affordance */
a {
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
}

/* Light theme via system preference */
@media (prefers-color-scheme: light) {
	:root {
		--bg: #f8fafc;
		--bg-2: #eef2ff;
		--accent-1: #4338ca;
		--accent-2: #6d28d9;
		--cyan-1: #0e7490;
		--text: #0b1220;
		/* Slightly darker muted text for better contrast on light background */
		--muted: #334155;

		--card-1: rgba(15, 23, 42, 0.06);
		--card-2: rgba(15, 23, 42, 0.03);
		--card-border: rgba(15, 23, 42, 0.1);

		--ghost-border: rgba(15, 23, 42, 0.18);
		--muted-underline: rgba(15, 23, 42, 0.28);

		--logo-shadow: rgba(67, 56, 202, 0.18);
		--btn-shadow: rgba(67, 56, 202, 0.2);

		--focus-ring: rgba(67, 56, 202, 0.4);

		--bg-grad-1: rgba(67, 56, 202, 0.1);
		--bg-grad-2: rgba(14, 116, 144, 0.08);
		--bg-grad-bottom: #ffffff;
		--blob-1-a: rgba(67, 56, 202, 0.18);
		--blob-1-b: rgba(109, 40, 217, 0.12);
		--blob-2-a: rgba(14, 116, 144, 0.14);
		--blob-2-b: rgba(16, 185, 129, 0.07);
	}
}

* {
	box-sizing: border-box;
}
html,
body {
	height: 100%;
	margin: 0;
}
body {
	min-height: 100vh;
	margin: 0;
	font-family:
		Inter,
		system-ui,
		-apple-system,
		"Segoe UI",
		Roboto,
		"Helvetica Neue",
		Arial;
	background-color: var(--bg);
	color: var(--text);
	display: grid;
	place-items: center;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

	background-image:
		radial-gradient(
			600px 340px at 10% 18%,
			var(--bg-grad-1),
			transparent 30%
		),
		radial-gradient(
			420px 260px at 86% 72%,
			var(--bg-grad-2),
			transparent 35%
		),
		linear-gradient(180deg, var(--bg) 0%, var(--bg-grad-bottom) 100%);
}

/* Decorative background shapes (CSS only) */
.background {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}
.background .blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(64px);
	opacity: 0.5;
	transform: translate3d(0, 0, 0);
	will-change: transform;
}
.blob-1 {
	width: 760px;
	height: 760px;
	left: 50%;
	top: -140px;
	transform: translateX(-50%);
	background: radial-gradient(
		circle at 30% 30%,
		var(--blob-1-a),
		var(--blob-1-b) 60%,
		transparent 80%
	);
}
.blob-2 {
	width: 450px;
	height: 450px;
	right: 56px;
	bottom: -96px;
	background: radial-gradient(
		circle at 70% 70%,
		var(--blob-2-a),
		var(--blob-2-b) 60%,
		transparent 80%
	);
}

.container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 930px;
	padding: 48px 24px;
	text-align: center;
}

.branding {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}

.logo {
	width: 64px;
	height: 64px;
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
	color: #fff;
	background: linear-gradient(190deg, var(--accent-1), var(--accent-2));
	box-shadow: 0 12px 30px var(--logo-shadow);
}

.logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 9999px;
}

.brand-name {
	text-align: left;
}

.brand-name h1 {
	font-size: 22px;
	margin: 0;
	line-height: 1.02;
	font-weight: 700;
	color: var(--text);
}

.brand-name p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.hero-title {
	margin: 12px 0 8px 0;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	font-size: 34px;
}

.hero-subtitle {
	margin: 12px 0 8px 0;
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.02em;
	font-size: 24px;
}

@media (min-width: 720px) {
	.hero-title {
		font-size: 48px;
	}
	.hero-subtitle {
		font-size: 32px;
	}
	.brand-name h1 {
		font-size: 28px;
	}
}

.hero-desc {
	margin: 0 auto 18px auto;
	color: var(--muted);
	max-width: 62ch;
	font-size: 16px;
}

.actions {
	display: inline-flex;
	gap: 12px;
	margin-top: 22px;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	transition:
		transform 180ms ease,
		box-shadow 160ms ease,
		filter 160ms ease;
	border: none;
}

.btn:focus {
	outline: none;
}
.btn:focus-visible {
	outline: 3px solid var(--focus-ring);
	outline-offset: 3px;
}

.btn-primary {
	background: linear-gradient(140deg, var(--accent-1), var(--accent-2));
	/* Ensure readable text on the gradient in both schemes */
	color: #ffffff;
	box-shadow: 0 8px 22px var(--btn-shadow);
}
.btn-primary:hover {
	transform: translateY(-2px);
	filter: brightness(1.04);
}

.btn-ghost {
	border: 1px solid var(--ghost-border);
	color: var(--text);
	background: transparent;
}
.btn-ghost:hover {
	border-color: color-mix(in srgb, var(--accent-1) 40%, transparent);
	color: var(--accent-1);
}

.grid {
	display: grid;
	gap: 18px;
	margin-top: 26px;
	align-items: start;
}

@media (min-width: 900px) {
	.grid {
		grid-template-columns: 1fr 360px;
	}
}

.card {
	background: linear-gradient(180deg, var(--card-1), var(--card-2));
	border-radius: 14px;
	padding: 12px;
	border: 1px solid var(--card-border);
}

.card h3 {
	margin: 0 0 8px 0;
	font-size: 15px;
	color: var(--text);
}

.card p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

footer {
	margin-top: 28px;
	color: var(--muted);
	font-size: 13px;
}

a.muted {
	color: var(--muted);
	text-decoration: underline;
	text-decoration-color: var(--muted-underline);
	text-decoration-style: dotted;
}
a.muted:hover {
	color: var(--accent-1);
	text-decoration-color: color-mix(
		in srgb,
		var(--accent-1) 50%,
		var(--muted-underline)
	);
}
a.muted:focus-visible {
	text-decoration-style: solid;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	.btn-primary:hover,
	.btn-ghost:hover {
		transform: none;
	}
}
