/*
 * Redirect page (homepage) — Figma "Recursion (Copy)", node 312:7938.
 * Self-contained: the main theme stylesheet is not loaded on this template.
 */

@font-face {
	font-family: "DM Mono";
	src: url("fonts/DMMono-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "DM Mono";
	src: url("fonts/DMMono-Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Bai Jamjuree";
	src: url("fonts/BaiJamjuree-SemiBold.ttf") format("truetype");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

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

html,
body.vl-redirect-body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	background: #3b2996;
}

.vl-redirect {
	--vl-white: #fff;
	--vl-violet: #3a24a0;

	position: relative;
	isolation: isolate;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Design places the content block 253px from the top of a 900px frame,
	   ~39px above true centre; the bottom padding reproduces that offset. */
	padding: 120px 24px 198px;
	color: var(--vl-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ---------- Background ---------- */

.vl-redirect__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

/* 1600×900 artboard, scaled to cover the viewport and centred
   (at 1440×900 this is exactly the Figma frame: 1600 wide, offset -80px). */
.vl-redirect__pattern {
	position: absolute;
	left: 50%;
	top: 50%;
	width: max(100vw, 177.7778vh);
	height: max(100vh, 56.25vw);
	transform: translate(-50%, -50%);
	background:
		linear-gradient(180deg, rgba(40, 19, 77, 0) 0%, rgba(37, 16, 66, 0.46) 100%),
		radial-gradient(60% 95% at 60% 0%, rgba(68, 229, 206, 0.9) 0%, rgba(68, 229, 206, 0) 100%),
		radial-gradient(70% 95% at 0% 0%, rgba(215, 123, 206, 0.85) 0%, rgba(215, 123, 206, 0) 100%),
		linear-gradient(90deg, #803d91 0%, #7545a9 24%, #4944a7 44%, #4d85b1 67%, #2db8ab 100%);
}

.vl-redirect__hex {
	position: absolute;
	display: block;
	max-width: none;
	top: -13.333%;
	height: 133.95%;
}

.vl-redirect__hex--outlines {
	left: -19.44%;
	width: 126.37%;
}

.vl-redirect__hex--solids {
	left: -14.78%;
	width: 131.03%;
}

.vl-redirect__grain {
	position: absolute;
	inset: 0;
	background: url("images/grain.webp") repeat 0 0 / 360px 360px;
	opacity: 0.5;
}

/* ---------- Valence Labs logo plate ---------- */

.vl-redirect__plate {
	position: absolute;
	top: 36px;
	left: 40px;
	display: flex;
	align-items: center;
	padding: 14px 20px;
	border-radius: 8px;
	background: var(--vl-white);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	line-height: 0;
}

.vl-redirect__plate img {
	display: block;
	width: 126.591px;
	height: 26px;
}

/* ---------- Message + button ---------- */

.vl-redirect__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 75px;
	width: 100%;
	max-width: 860px;
}

.vl-redirect__message {
	margin: 0;
	font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	font-weight: 400;
	font-size: clamp(26px, 2.2vw + 16px, 48px);
	line-height: 1.25;
	letter-spacing: -0.02em;
	text-align: center;
	color: var(--vl-white);
	text-wrap: balance;
}

.vl-redirect__message a {
	font-weight: 500;
	letter-spacing: -0.0067em;
	color: inherit;
	text-decoration: underline;
	text-decoration-skip-ink: none;
	text-underline-position: from-font;
	transition: opacity 0.2s ease;
}

.vl-redirect__message a:hover {
	opacity: 0.8;
}

.vl-redirect__button {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	height: 68px;
	padding: 6px 6px 6px 40px;
	border: 1.5px solid var(--vl-white);
	border-radius: 45px;
	font-family: "Bai Jamjuree", system-ui, sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 1;
	color: var(--vl-white);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.25s ease;
}

.vl-redirect__button-label {
	padding-bottom: 4px;
}

.vl-redirect__button-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	border-radius: 32px;
	background: var(--vl-white);
}

.vl-redirect__button-icon img {
	display: block;
	width: 24px;
	height: 24px;
	transition: transform 0.25s ease;
}

.vl-redirect__button:hover {
	background-color: rgba(255, 255, 255, 0.12);
}

.vl-redirect__button:hover .vl-redirect__button-icon img {
	transform: translateX(3px);
}

.vl-redirect a:focus-visible {
	outline: 2px solid var(--vl-white);
	outline-offset: 4px;
}

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

/* ---------- Recursion logo ---------- */

.vl-redirect__recursion {
	position: absolute;
	left: 50%;
	bottom: 60px;
	width: 198px;
	height: auto;
	transform: translateX(-50%);
}

/* ---------- Smaller screens ---------- */

@media (max-width: 767px) {
	.vl-redirect {
		padding: 120px 24px 160px;
	}

	.vl-redirect__plate {
		top: 24px;
		left: 24px;
		padding: 12px 16px;
	}

	.vl-redirect__content {
		gap: 48px;
	}

	.vl-redirect__button {
		height: 60px;
		padding-left: 28px;
		font-size: 16px;
	}

	.vl-redirect__button-icon {
		padding: 12px;
	}

	.vl-redirect__recursion {
		bottom: 40px;
		width: 160px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vl-redirect * {
		transition: none !important;
	}
}

/* Admin bar: keep the page full-height without a scrollbar. */
.admin-bar .vl-redirect {
	min-height: calc(100vh - 32px);
	min-height: calc(100svh - 32px);
}

@media (max-width: 782px) {
	.admin-bar .vl-redirect {
		min-height: calc(100svh - 46px);
	}
}
