/* ==========================================================================
   GeoXYZ — homepage sections aligned with the reference layout.
   Loaded after home.css on the front page only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   02 · Product categories — image cards on a subtle band
   -------------------------------------------------------------------------- */

.gxh-products {
	background: var(--gx-soft);
	border-block: 1px solid var(--gx-line);
}

.gxh-cats {
	gap: 20px;
}

.gxh-cat {
	min-height: 0;
	padding: 0;
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
}

.gxh-cat__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(160deg, #0a1526, #12233d);
}

.gxh-cat__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s var(--gx-ease);
}

.gxh-cat:hover .gxh-cat__media img {
	transform: scale(1.06);
}

.gxh-cat__index {
	position: absolute;
	top: 14px;
	inset-inline-start: 14px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(4, 9, 19, 0.62);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #fff;
	opacity: 1;
	font-variant-numeric: tabular-nums;
}

.gxh-cat__count {
	position: absolute;
	top: 14px;
	inset-inline-end: 14px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--gx-ink);
}

.gxh-cat__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 24px 26px 26px;
}

.gxh-cat__title {
	margin: 0;
	font-size: 1.24rem;
}

.gxh-cat__text {
	margin: 9px 0 20px;
	font-size: 13.6px;
}

/* --------------------------------------------------------------------------
   03 · Choose by application — image cards on white
   -------------------------------------------------------------------------- */

.gxh-apps {
	background: #fff;
	color: var(--gx-ink);
	padding-block: clamp(64px, 7.4vw, 108px);
}

.gxh-apps::before {
	display: none;
}

.gxh-apps .gxh-kicker {
	color: var(--gx-orange-600);
}

.gxh-apps .gxh-head h2 {
	color: var(--gx-ink);
}

.gxh-apps .gxh-head h2 span {
	color: var(--gx-blue-600);
}

.gxh-apps .gxh-head__text {
	color: var(--gx-muted);
}

.gxh-apps .gxh-link {
	color: var(--gx-ink);
	border-color: var(--gx-line-strong);
}

.gxh-apps .gxh-link:hover {
	color: var(--gx-blue-600);
	border-color: var(--gx-blue-600);
}

.gxh-app-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	border-top: 0;
}

.gxh-app {
	display: flex;
	flex-direction: column;
	padding: 0;
	border: 1px solid var(--gx-line);
	border-radius: 20px;
	background: #fff;
	overflow: hidden;
	transition: transform 0.35s var(--gx-ease), box-shadow 0.35s var(--gx-ease), border-color 0.35s;
}

.gxh-app:hover {
	transform: translateY(-4px);
	border-color: rgba(11, 92, 255, 0.3);
	box-shadow: 0 30px 60px -34px rgba(8, 20, 42, 0.42);
}

.gxh-app__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #0a1526;
}

.gxh-app__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s var(--gx-ease);
}

.gxh-app:hover .gxh-app__media img {
	transform: scale(1.05);
}

.gxh-app__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 20px 22px 24px;
}

.gxh-app__row {
	padding-inline-end: 0;
	gap: 12px;
	align-items: baseline;
}

.gxh-app h3 {
	color: var(--gx-ink);
	font-size: 1.06rem;
	line-height: 1.28;
}

.gxh-app:hover h3 {
	color: var(--gx-blue-700);
}

.gxh-app__text {
	margin: 9px 0 16px;
	padding-inline-start: 0;
	font-size: 13.4px;
	line-height: 1.58;
	color: var(--gx-muted);
}

.gxh-app:hover .gxh-app__text {
	color: var(--gx-muted);
}

.gxh-app__more {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gx-ink);
	transition: color 0.3s, gap 0.3s;
}

.gxh-app__more svg {
	width: 15px;
	height: 15px;
}

.gxh-app:hover .gxh-app__more {
	color: var(--gx-orange-600);
	gap: 11px;
}

/* --------------------------------------------------------------------------
   04 · Featured products — four cards on a subtle band
   -------------------------------------------------------------------------- */

.gxh-featured {
	padding-block: clamp(64px, 7.6vw, 108px);
	background: var(--gx-soft);
	border-block: 1px solid var(--gx-line);
}

.gxh-feature-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

/* --------------------------------------------------------------------------
   05 · Company overview — dark band, lab image + four workflow points
   -------------------------------------------------------------------------- */

.gxh-overview {
	position: relative;
	padding-block: clamp(64px, 7.4vw, 110px);
	background:
		radial-gradient(820px 520px at 8% 4%, rgba(11, 92, 255, 0.18), transparent 66%),
		radial-gradient(560px 420px at 94% 92%, rgba(255, 106, 0, 0.1), transparent 70%),
		linear-gradient(180deg, var(--gx-navy-900), var(--gx-navy-950));
	color: #fff;
	overflow: hidden;
}

.gxh-overview .gxh-kicker {
	color: var(--gx-orange-400);
}

.gxh-overview .gxh-head h2 {
	color: #fff;
}

.gxh-overview .gxh-head h2 span {
	color: var(--gx-blue-300);
}

.gxh-overview__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
	gap: clamp(32px, 4vw, 60px);
	align-items: center;
	margin-top: clamp(34px, 4vw, 56px);
}

.gxh-overview__media {
	position: relative;
	margin: 0;
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.gxh-overview__media img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.gxh-overview__badge {
	position: absolute;
	inset-inline-end: 20px;
	bottom: 20px;
	padding: 14px 18px;
	border-radius: 14px;
	background: rgba(4, 9, 19, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.16);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	text-align: end;
}

.gxh-overview__badge-num {
	display: block;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--gx-orange-400);
	line-height: 1;
}

.gxh-overview__badge-text {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.66);
}

.gxh-overview__copy {
	min-width: 0;
}

.gxh-overview__intro {
	margin: 0 0 26px;
	font-size: 15px;
	line-height: 1.66;
	color: rgba(255, 255, 255, 0.68);
}

.gxh-ovsteps {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gxh-ovstep {
	display: flex;
	gap: 18px;
	padding: 18px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gxh-ovstep__num {
	flex: none;
	width: 34px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.9;
	color: var(--gx-orange-400);
	font-variant-numeric: tabular-nums;
}

.gxh-ovstep h3 {
	margin: 0 0 5px;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #fff;
}

.gxh-ovstep p {
	margin: 0;
	font-size: 13.4px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.56);
}

/* --------------------------------------------------------------------------
   06 · Technical resources
   -------------------------------------------------------------------------- */

.gxh-resources {
	background: #fff;
}

/* --------------------------------------------------------------------------
   07 · CTA kicker on the dark band
   -------------------------------------------------------------------------- */

.gx-cta .gxh-kicker {
	color: var(--gx-orange-400);
	margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
	.gxh-feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1080px) {
	.gxh-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gxh-app-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gxh-overview__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.gxh-overview__media img {
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 860px) {
	.gxh-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.gxh-app-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.gxh-feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.gxh-cat__body {
		padding: 18px 18px 20px;
	}

	.gxh-app__body {
		padding: 16px 16px 20px;
	}
}

@media (max-width: 620px) {
	.gxh-cats,
	.gxh-app-grid,
	.gxh-feature-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.gxh-overview__badge {
		inset-inline-end: 12px;
		bottom: 12px;
		padding: 10px 13px;
	}
}

/* --------------------------------------------------------------------------
   Hero scrim — keep the copy dark-side legible, let the photograph read
   -------------------------------------------------------------------------- */

@media (min-width: 861px) {
	.gxh-hero .gxh-slide__wash {
		background:
			linear-gradient(94deg, rgba(4, 8, 15, 0.94) 0%, rgba(4, 8, 15, 0.83) 24%, rgba(6, 16, 35, 0.48) 48%, rgba(4, 8, 15, 0.08) 72%, rgba(4, 8, 15, 0.26) 100%),
			linear-gradient(180deg, rgba(4, 8, 15, 0.44) 0%, rgba(4, 8, 15, 0.04) 22%, rgba(4, 8, 15, 0) 48%, rgba(4, 8, 15, 0.88) 100%);
	}

	[dir="rtl"] .gxh-hero .gxh-slide__wash {
		background:
			linear-gradient(266deg, rgba(4, 8, 15, 0.94) 0%, rgba(4, 8, 15, 0.83) 24%, rgba(6, 16, 35, 0.48) 48%, rgba(4, 8, 15, 0.08) 72%, rgba(4, 8, 15, 0.26) 100%),
			linear-gradient(180deg, rgba(4, 8, 15, 0.44) 0%, rgba(4, 8, 15, 0.04) 22%, rgba(4, 8, 15, 0) 48%, rgba(4, 8, 15, 0.88) 100%);
	}
}
