:root {
	--bg: #050505;
	--fg: #f5f5f7;
	--muted: #9a9aa2;
	--pink: #ff3d6e;
	--purple: #7b2ff7;
	--border: rgba(255, 255, 255, 0.14);
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
}

body {
	background: var(--bg);
	color: var(--fg);
	font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a {
	color: inherit;
}

main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem clamp(1.5rem, 5vw, 4rem) 4rem;
}

.hero {
	/* bolio-text-only.png carries 12.4% transparent padding above the
	   lettering and 17.5% below it; the lockup offsets below subtract that
	   dead space so spacing stays constant as --wordmark-h scales. */
	--wordmark-h: clamp(4.75rem, 11vw, 7rem);
	max-width: 40rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

.cta-row {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.waitlist-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
}

.waitlist-form[hidden] {
	display: none;
}

.waitlist-form input {
	min-width: 14rem;
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--fg);
	font: inherit;
	font-size: 0.95rem;
	outline: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.waitlist-form input:focus {
	border-color: var(--pink);
	background: rgba(255, 255, 255, 0.06);
}

.waitlist-form input::placeholder {
	color: var(--muted);
}

.waitlist-form button {
	border: 1px solid var(--border);
	cursor: pointer;
}

.waitlist-form.is-submitting {
	opacity: 0.65;
}

.waitlist-form.is-complete {
	animation: form-exit 0.2s ease forwards;
}

.form-message {
	flex-basis: 100%;
	margin: 0;
	color: var(--pink);
	font-size: 0.85rem;
}

.waitlist-success {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 2.6rem;
	padding: 0.55rem 1.1rem;
	border: 1px solid rgba(255, 61, 110, 0.35);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	font-size: 0.95rem;
	font-weight: 600;
	opacity: 0;
	transform: translateY(8px) scale(0.96);
}

.waitlist-success[hidden] {
	display: none;
}

.waitlist-success.is-visible {
	animation: success-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.25) forwards;
}

.success-check {
	display: inline-grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--pink), var(--purple));
	box-shadow: 0 0 22px rgba(199, 46, 143, 0.45);
	animation: check-pulse 1.8s ease-in-out 0.45s infinite;
}

@keyframes form-exit {
	to {
		opacity: 0;
		transform: translateY(-6px) scale(0.98);
	}
}

@keyframes success-pop {
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes check-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 61, 110, 0.35); }
	50% { box-shadow: 0 0 0 8px rgba(255, 61, 110, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.waitlist-form.is-complete,
	.waitlist-success.is-visible,
	.success-check {
		animation: none;
	}

	.waitlist-success.is-visible {
		opacity: 1;
		transform: none;
	}
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hero h1 {
	margin: 0;
}

.hero-mark {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero-icon {
	display: block;
	height: clamp(3rem, 7vw, 4.25rem);
	width: auto;
	filter: drop-shadow(0 0 50px rgba(199, 46, 143, 0.4));
}

.hero-text {
	display: block;
	height: var(--wordmark-h);
	width: auto;
	margin-top: calc(0.5rem - 0.124 * var(--wordmark-h));
}

.alpha-badge {
	display: inline-flex;
	align-items: center;
	margin-top: calc(-1.2rem - 0.175 * var(--wordmark-h));
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.hero p.tagline {
	color: var(--muted);
	font-size: clamp(1.05rem, 2.2vw, 1.35rem);
	line-height: 1.5;
	margin: 0;
}

.cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.4rem;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--fg);
	background: linear-gradient(90deg, var(--pink), var(--purple));
	box-shadow: 0 8px 30px rgba(199, 46, 143, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 36px rgba(199, 46, 143, 0.5);
}

.coming-soon {
	border: 0;
	cursor: default;
	opacity: 1;
}

.coming-soon:hover {
	transform: none;
	box-shadow: 0 8px 30px rgba(199, 46, 143, 0.35);
}

.cta .arrow {
	transition: transform 0.15s ease;
}

.cta:hover .arrow {
	transform: translateX(3px);
}

.cta-outline {
	background: transparent;
	box-shadow: none;
	color: var(--fg);
	border: 1px solid var(--border);
}

.cta-outline:hover {
	border-color: rgba(255, 255, 255, 0.3);
	box-shadow: none;
	background: rgba(255, 255, 255, 0.04);
}

footer {
	text-align: center;
	padding: 1.5rem;
	color: var(--muted);
	font-size: 0.85rem;
}

/* Placeholder / alpha page */

.placeholder {
	max-width: 34rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.75rem;
}

.placeholder img.orb {
	width: 4rem;
	height: 4rem;
	animation: spin 6s linear infinite;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.placeholder h1 {
	font-size: clamp(1.75rem, 4.5vw, 2.5rem);
	margin: 0;
}

.placeholder p {
	color: var(--muted);
	line-height: 1.6;
	margin: 0;
}

.back-link {
	color: var(--muted);
	text-decoration: none;
	font-size: 0.95rem;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.back-link:hover {
	color: var(--fg);
	border-color: var(--border);
}
