/* ==========================================================================
   Hero component (.gx-hero)
   ========================================================================== */

.gx-hero {
	padding-block: calc(var(--gls-header-offset, 128px) + clamp(28px, 4vw, 48px)) var(--gx-section-y);
	position: relative;
	overflow: clip;
}
.gx-hero::before {
	content: "";
	position: absolute;
	inset-block-start: -160px;
	inset-inline: 0;
	height: 720px;
	background: radial-gradient(640px 420px at 50% 20%, var(--gx-accent-glow), transparent 72%);
	opacity: .65;
	pointer-events: none;
}
.gx-hero > * {
	position: relative;
}
.gx-hero--noglow::before {
	display: none;
}

.gx-hero__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gx-s-4);
	text-align: center;
	max-width: 820px;
	margin-inline: auto;
}
.gx-hero__title {
	font-size: var(--gx-h1);
	font-weight: var(--gx-head-weight, 600);
	line-height: var(--gx-lh-tight);
	letter-spacing: var(--gx-ls-display, var(--gx-ls-head));
	color: var(--gx-text);
	margin: 0;
	max-width: 17ch;
	text-wrap: balance;
}
.gx-hero__sub {
	font-size: var(--gx-body-lg);
	line-height: var(--gx-lh-body);
	color: var(--gx-text-2);
	margin: 0;
	max-width: 58ch;
}
.gx-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--gx-s-3);
	margin-block-start: var(--gx-s-2);
}
.gx-hero__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--gx-s-2);
	margin: var(--gx-s-2) 0 0;
	padding: 0;
	list-style: none;
}
.gx-chip__check {
	color: var(--gx-success);
}

/* ---- Stage: mockup + floating cards ------------------------------------ */
.gx-hero__stage {
	position: relative;
	margin-block-start: var(--gx-s-8);
}
.gx-hero__floats {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.gx-float-card {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 16px;
	background: var(--gx-surface);
	border: 1px solid var(--gx-border);
	border-radius: var(--gx-r-md);
	box-shadow: var(--gx-shadow-md);
	font-size: 12.5px;
	line-height: 1.35;
	min-width: 128px;
}
.gx-float-card__title {
	font-weight: 600;
	color: var(--gx-text);
}
.gx-float-card__meta {
	color: var(--gx-text-3);
}
.gx-float-card__price {
	font-size: 18px;
	font-weight: 600;
	color: var(--gx-text);
	font-variant-numeric: tabular-nums;
}
.gx-float-card__price span {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--gx-text-3);
}
.gx-float-card__badge {
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: var(--gx-accent);
}
.gx-float-card__file {
	font-weight: 600;
	color: var(--gx-text);
}
.gx-float-card--tl { top: 4%;  left: 2%;  rotate: -3deg; }
.gx-float-card--tr { top: 10%; right: 2%; rotate: 2.5deg; }
.gx-float-card--ml { top: 42%; left: 0;   rotate: 2deg; }
.gx-float-card--mr { top: 38%; right: 0;  rotate: -2.5deg; }
.gx-float-card--bl { bottom: 6%; left: 4%;  rotate: 3deg; }
.gx-float-card--br { bottom: 2%; right: 5%; rotate: -3deg; }

/* ---- Mockup ------------------------------------------------------------- */
.gx-hero__mockup {
	position: relative;
	max-width: 860px;
	margin-inline: auto;
}
.gx-hero__mock-window {
	background: var(--gx-surface);
	border: 1px solid var(--gx-border);
	border-radius: var(--gx-r-lg);
	box-shadow: var(--gx-shadow-lg);
	overflow: hidden;
}
.gx-hero__mock-bar {
	display: flex;
	gap: 6px;
	padding: 12px 16px;
	border-block-end: 1px solid var(--gx-border);
	background: var(--gx-bg-soft);
}
.gx-hero__mock-bar i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--gx-border-strong);
}
.gx-hero__mock-body {
	display: flex;
	flex-direction: column;
	gap: var(--gx-s-3);
	padding: var(--gx-s-5);
}
.gx-hero__mock-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--gx-s-2);
}
.gx-hero__mock-label {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--gx-text-3);
}
.gx-mock__chip--active {
	background: var(--gx-accent-100);
	border-color: transparent;
	color: var(--gx-accent-600);
}
.gx-mock__chip--ghost {
	border-style: dashed;
	color: var(--gx-text-3);
}
.gx-hero__mock-row--states {
	gap: 6px;
}
.gx-hero__mock-totals {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gx-s-3);
	margin-block-start: var(--gx-s-2);
	padding-block-start: var(--gx-s-4);
	border-block-start: 1px solid var(--gx-border);
}
.gx-hero__mock-totals div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: var(--gx-s-3);
	border-radius: var(--gx-r-sm);
	background: var(--gx-surface-2);
}
.gx-hero__mock-totals span {
	font-size: 12px;
	color: var(--gx-text-3);
}
.gx-hero__mock-totals strong {
	font-size: 18px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--gx-text);
}
.gx-hero__mock-totals .is-total strong {
	color: var(--gx-accent-600);
}

/* Cursor tags drift gently along a short looped path. */
@media (prefers-reduced-motion: no-preference) {
	html.js .gx-cursor-tag {
		animation: gx-drift 6s ease-in-out infinite alternate;
	}
	html.js .gx-cursor-tag--b {
		animation-duration: 7.5s;
		animation-delay: -3s;
	}
}
@keyframes gx-drift {
	from { translate: 0 0; }
	to   { translate: 16px -14px; }
}
.gx-cursor-tag--a { top: 18%; left: 6%; }
.gx-cursor-tag--b { bottom: 14%; right: 7%; }

/* ---- Stats ---------------------------------------------------------------- */
.gx-hero__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gx-s-4);
	max-width: 860px;
	margin: var(--gx-s-8) auto 0;
	padding: 0;
	list-style: none;
	text-align: center;
}
.gx-hero__stat-value {
	display: block;
	font-size: clamp(2rem, 4vw, 3rem);
}
.gx-hero__stat-label {
	display: block;
	margin-block-start: 6px;
	font-size: 14px;
	color: var(--gx-text-2);
}

/* ---- Trust badge strip ------------------------------------------------------- */
.gx-hero__badges {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--gx-s-3) var(--gx-s-4);
	margin: var(--gx-s-7) auto 0;
	max-width: 900px;
	padding: 16px 20px;
	background: var(--gx-surface);
	border: 1px solid var(--gx-border);
	border-radius: var(--gx-r-md);
	box-shadow: var(--gx-shadow-xs);
}
.gx-hero__badges-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--gx-accent);
	margin: 0;
	white-space: nowrap;
}
.gx-hero__badges-label::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--gx-secondary);
	box-shadow: 0 0 0 4px var(--gx-accent-glow);
	flex: none;
}
.gx-hero__badges ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--gx-s-2);
	margin: 0;
	padding: 0;
	list-style: none;
}
.gx-chip--muted {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--gx-accent-100);
	border: 1px solid rgba(10, 17, 114, .12);
	color: var(--gx-accent);
	font-weight: 700;
	box-shadow: none;
}
.gx-chip--muted::before {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--gx-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center / 10px no-repeat;
	flex: none;
}

/* ---- Responsive ---------------------------------------------------------------- */
@container (max-width: 1023px) {
	.gx-hero__floats {
		display: none;
	}
}
@media (max-width: 640px) {
	.gx-hero__stats {
		grid-template-columns: 1fr;
		gap: var(--gx-s-5);
	}
	.gx-hero__mock-totals {
		grid-template-columns: 1fr;
	}
	.gx-cursor-tag--a { top: -18px; left: 8px; }
	.gx-cursor-tag--b { bottom: -18px; right: 8px; }
}
