/**
 * Nexza Hero widget. Two columns from 861px, stacked below; type and
 * spacing scale down so nothing overflows on a 320px screen.
 */

.nx-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	padding-top: clamp(56px, 7vw, 110px);
	padding-bottom: clamp(40px, 7vw, 110px);
}

/* At least one screen tall, minus the header (88px desktop, 72px below 1081px). */
.nx-hero--full {
	min-height: calc(100vh - 88px);
	min-height: calc(100svh - 88px);
}

/* ---------- Decoration ---------- */
.nx-hero-deco {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

/* Positioned once; the pointer moves it with transform only (hero.js). */
.nx-hero-glow {
	position: absolute;
	left: 72%;
	top: 38%;
	width: 46vw;
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(255, 90, 31, .22), transparent 62%);
	transform: translate(-50%, -50%) translate(var(--nx-gx, 0px), var(--nx-gy, 0px));
	transition: transform 1.2s var(--nx-ease);
}

.nx-hero-orbit {
	position: absolute;
	right: -12vw;
	top: -14vw;
	width: 60vw;
	color: var(--nx-line-2);
	animation: nx-spin 70s linear infinite;
}

/* ---------- Columns ---------- */
.nx-hero-split {
	position: relative;
	display: grid;
	grid-template-columns: 58% 1fr;
	gap: 6vw;
	align-items: end;
}

.nx-hero-split > * {
	min-width: 0; /* let long words wrap instead of widening the grid */
}

.nx-hero-title {
	margin-top: 28px;
	font-size: clamp(40px, 8.4vw, 140px);
	overflow-wrap: break-word;
	hyphens: manual;
}

/* ---------- Side column ---------- */
.nx-avatars {
	display: flex;
	margin-bottom: 18px;
}

.nx-avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 52px;
	height: 52px;
	margin-left: -12px;
	border: 3px solid var(--nx-ink);
	border-radius: 50%;
	background: var(--nx-card-2);
	object-fit: cover;
	transition: transform .4s var(--nx-ease);
}

.nx-avatar:first-child {
	margin-left: 0;
}

.nx-avatar--badge {
	background: var(--nx-copper);
	color: var(--nx-ink);
	font-size: 13px;
	font-weight: 700;
}

.nx-avatars:hover .nx-avatar:not(:first-child) {
	transform: translateX(6px);
}

.nx-hero-trust {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--nx-sand);
}

.nx-hero-intro {
	max-width: 46ch;
}

.nx-hero-cta {
	margin-top: 28px;
}

/* ---------- Info bar ---------- */
.nx-hero-meta {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 18px;
	margin-top: clamp(40px, 5vw, 72px);
	padding-top: 22px;
	border-top: 1px solid var(--nx-line);
	font-size: 14px;
	color: var(--nx-muted-dark);
}

.nx-hero-meta b {
	font-weight: 600;
	color: var(--nx-sand);
	font-variant-numeric: tabular-nums;
}

.nx-avail {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

/* Pulsing dot: a ring that scales and fades (transform + opacity only). */
.nx-avail i {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--nx-copper);
}

.nx-avail i::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--nx-copper);
	animation: nx-hero-pulse 2s ease-out infinite;
}

.nx-scue {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.nx-scue i {
	position: relative;
	width: 1px;
	height: 28px;
	overflow: hidden;
	background: var(--nx-line-2);
}

.nx-scue i::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--nx-copper);
	transform: translateY(-100%);
	animation: nx-hero-drip 1.8s var(--nx-ease-io) infinite;
}

@keyframes nx-hero-pulse {
	from { transform: scale(1); opacity: .6; }
	to { transform: scale(3.5); opacity: 0; }
}

@keyframes nx-hero-drip {
	to { transform: translateY(100%); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
	.nx-hero--full {
		min-height: calc(100vh - 72px);
		min-height: calc(100svh - 72px);
	}

	.nx-hero-split {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}
}

/* ---------- Phones: one column ---------- */
@media (max-width: 860px) {
	.nx-hero-split {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.nx-hero-title {
		margin-top: 20px;
		font-size: clamp(40px, 11vw, 72px);
	}

	.nx-hero-glow {
		width: 90vw;
		left: 70%;
		top: 30%;
	}

	.nx-hero-orbit {
		width: 110vw;
		right: -45vw;
		top: -20vw;
	}

	.nx-avatars {
		margin-bottom: 22px;
	}

	.nx-hero-trust {
		margin-bottom: 14px;
	}

	.nx-hero-cta {
		margin-top: 32px;
	}

	.nx-hero-meta {
		margin-top: 56px;
		gap: 14px 18px;
	}
}

/* Narrow phones: the scroll cue drops out, the rest stacks. */
@media (max-width: 480px) {
	.nx-hero-meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.nx-scue {
		display: none;
	}

	.nx-hero-cta .nx-btn {
		width: 100%;
		justify-content: space-between;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nx-hero-orbit,
	.nx-avail i::after,
	.nx-scue i::after {
		animation: none;
	}

	.nx-hero-glow {
		transition: none;
	}
}
