.spx-site {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

.spx-main {
	flex: 1 0 auto;
}

body:not(.home) .spx-main {
	position: relative;
	min-height: clamp(38rem, 72vh, 56rem);
	overflow-x: clip;
	padding-top: var(--spx-header-height);
	background:
		radial-gradient(ellipse at 88% 8%, rgb(215 43 255 / 10%), transparent 32rem),
		radial-gradient(ellipse at 4% 72%, rgb(45 73 190 / 8%), transparent 34rem),
		linear-gradient(180deg, #080b12 0%, #03060b 44%, #050711 100%);
	isolation: isolate;
}

body:not(.home) .spx-main::before {
	position: absolute;
	top: -5rem;
	right: -12rem;
	z-index: -2;
	width: min(64rem, 112vw);
	height: min(48rem, 88vw);
	background-image: url("../images/spinnax-hero-grid.svg");
	background-repeat: no-repeat;
	background-position: right top;
	background-size: 100% 100%;
	content: "";
	filter: saturate(0.9);
	-webkit-mask-image: linear-gradient(125deg, transparent 4%, #000 34%, #000 62%, transparent 92%);
	mask-image: linear-gradient(125deg, transparent 4%, #000 34%, #000 62%, transparent 92%);
	opacity: 0.065;
	pointer-events: none;
}

body:not(.home) .spx-main::after {
	position: absolute;
	top: 30rem;
	left: -20rem;
	z-index: -2;
	width: min(44rem, 120vw);
	height: min(44rem, 120vw);
	border-radius: 50%;
	background: radial-gradient(circle, rgb(70 42 190 / 13%), rgb(20 31 94 / 6%) 42%, transparent 70%);
	content: "";
	filter: blur(1.5rem);
	pointer-events: none;
}

body:not(.home) .spx-main > .spx-container {
	position: relative;
	z-index: 1;
}

.spx-container {
	width: calc(100% - var(--spx-container-padding) - var(--spx-container-padding));
	max-width: var(--spx-container-width);
	margin-inline: auto;
}

.spx-section {
	padding-block: clamp(var(--spx-space-xl), 8vw, var(--spx-space-3xl));
}

.spx-section--title-hidden {
	padding-top: 0;
}

.spx-section--title-hidden .spx-content__body > .spx-app-slider:first-child {
	margin-top: 0;
}

.home .spx-section {
	padding-block: clamp(2.25rem, 3.5vw, 3rem);
}

.spx-section + .spx-section {
	border-top: var(--spx-border-width) solid var(--spx-color-border);
}

.spx-section__eyebrow {
	margin-bottom: var(--spx-space-sm);
	color: var(--spx-color-primary);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.25;
	text-transform: uppercase;
}

.spx-footer {
	flex: 0 0 auto;
	border-top: var(--spx-border-width) solid var(--spx-color-border);
	background:
		linear-gradient(145deg, rgb(215 43 255 / 3%), transparent 38%),
		#070a0f;
}

.spx-footer__inner {
	padding-block: clamp(var(--spx-space-xl), 6vw, var(--spx-space-2xl));
}

.spx-footer__top,
.spx-footer__bottom {
	display: flex;
	align-items: flex-start;
	gap: var(--spx-space-lg);
}

.spx-footer__top {
	flex-direction: column;
	padding-bottom: var(--spx-space-xl);
}

.spx-footer__bottom {
	flex-direction: column;
	padding-top: var(--spx-space-lg);
	border-top: var(--spx-border-width) solid var(--spx-color-border);
}

.spx-footer__navigation {
	min-width: 0;
}

.spx-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spx-space-sm) var(--spx-space-lg);
	margin: 0;
	padding: 0;
	list-style: none;
}

.spx-footer__copyright {
	margin: 0;
}

.spx-footer__brand {
	display: inline-flex;
	width: 5rem;
}

.spx-footer__brand img {
	width: 100%;
	filter: brightness(0) invert(1);
}

.spx-footer__copyright,
.spx-footer__menu--legal {
	color: var(--spx-color-text-muted);
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.spx-footer__menu--main {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.spx-footer__menu a {
	text-decoration: none;
}

.spx-footer__menu a:hover,
.spx-footer__menu a:focus-visible {
	color: var(--spx-color-primary);
}

@media (min-width: 48rem) {
	body:not(.home) .spx-main::before {
		right: -8rem;
		opacity: 0.09;
	}

	.spx-footer__top {
		align-items: center;
		flex-direction: row;
		justify-content: space-between;
	}

	.spx-footer__navigation--main {
		margin-left: auto;
	}

	.spx-footer__menu--main {
		justify-content: flex-end;
	}

	.spx-footer__bottom {
		align-items: center;
		flex-direction: row;
		justify-content: space-between;
	}
}
