/*
 * NEOXMINE home hero. Markup: neoxmine-hero.php ([neoxmine_hero]); the builder row carries class .nx-hero-row.
 * Every animation is switched off for prefers-reduced-motion at the bottom of this file.
 */

/* ------------------------------------------------------------------ Row: living background */

.nx-hero-row { position: relative; overflow: hidden; isolation: isolate; }
.nx-hero-row > .row_inner { position: relative; z-index: 1; }
/* Themify's column is a flex item: without min-width:0 the marquee's max-content width stretches it past the screen. */
.nx-hero-row > .row_inner > .module_column { min-width: 0; max-width: 100%; }
.nx-hero-row > .tb_row_frame_wrap { z-index: 2; }
.nx-hero-row::before,
.nx-hero-row::after { content: ""; position: absolute; z-index: 0; pointer-events: none; }

/* Aurora: copper and blue light drifting over the waves image */
.nx-hero-row::before {
	inset: -25%;
	background:
		radial-gradient(36% 40% at 78% 70%, rgba(249, 115, 22, .40), transparent 70%),
		radial-gradient(32% 38% at 16% 24%, rgba(37, 99, 235, .30), transparent 70%),
		radial-gradient(24% 28% at 52% 42%, rgba(245, 158, 11, .14), transparent 70%);
	mix-blend-mode: screen;
	animation: nx-aurora 22s ease-in-out infinite alternate;
}

/* Contour lines that slowly flow sideways (tile repeats every 1200px) */
.nx-hero-row::after {
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-width='1.3'%3E%3Cpath stroke='rgba(253,186,116,.20)' d='M0 120C300 60 900 180 1200 120'/%3E%3Cpath stroke='rgba(147,197,253,.16)' d='M0 190C300 260 900 120 1200 190'/%3E%3Cpath stroke='rgba(253,186,116,.13)' d='M0 265C300 185 900 345 1200 265'/%3E%3Cpath stroke='rgba(255,255,255,.08)' d='M0 335C300 385 900 285 1200 335'/%3E%3Cpath stroke='rgba(253,186,116,.16)' d='M0 405C300 315 900 495 1200 405'/%3E%3Cpath stroke='rgba(147,197,253,.12)' d='M0 475C300 555 900 395 1200 475'/%3E%3Cpath stroke='rgba(253,186,116,.10)' d='M0 545C300 485 900 605 1200 545'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 1200px 100%;
	animation: nx-drift 70s linear infinite;
}

@keyframes nx-aurora {
	0%   { transform: translate3d(0, 0, 0) scale(1); }
	50%  { transform: translate3d(3%, -2%, 0) scale(1.08); }
	100% { transform: translate3d(-3%, 3%, 0) scale(1.02); }
}
@keyframes nx-drift { to { background-position: -1200px 0; } }

/* ------------------------------------------------------------------ Layout */

.nx-hero { position: relative; width: 100%; min-width: 0; color: #e2e8f0; text-align: left; }
.nx-hero__marquee, .nx-hero__rotator { contain: inline-size; } /* sized by the page, never by their one-line content */
.nx-hero *, .nx-hero *::before, .nx-hero *::after { box-sizing: border-box; }
.nx-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	gap: clamp(24px, 4vw, 64px);
	align-items: center;
}
.nx-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ Copy */

.nx-hero p.nx-hero__eyebrow {
	display: inline-flex; align-items: center; gap: .65em;
	margin: 0 0 1.4rem; padding: .5em 1.05em .5em .85em;
	border: 1px solid rgba(253, 186, 116, .35); border-radius: 999px;
	background: rgba(11, 31, 58, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	color: #fed7aa; font: 600 .74rem/1.2 Poppins, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase;
}
.nx-hero__pulse {
	flex: none; width: .6em; height: .6em; border-radius: 50%;
	background: #f97316; box-shadow: 0 0 0 0 rgba(249, 115, 22, .6);
	animation: nx-pulse 2s ease-out infinite;
}
@keyframes nx-pulse { 70%, 100% { box-shadow: 0 0 0 .75em rgba(249, 115, 22, 0); } }

.nx-hero h1.nx-hero__title {
	margin: 0 0 1.35rem; color: #fff;
	font: 700 clamp(2.05rem, 3.6vw, 3.2rem)/1.12 Poppins, Arial, sans-serif; letter-spacing: -.02em;
}
.nx-hero__line { display: block; }
.nx-hero__rotator { display: block; height: 1.3em; overflow: hidden; font-size: min(1em, 7.2vw); white-space: nowrap; }
.nx-hero__words { display: block; animation: nx-rotate 21s cubic-bezier(.76, 0, .24, 1) infinite; }
.nx-hero__words > span {
	display: block; height: 1.3em; line-height: 1.3em;
	background: linear-gradient(90deg, #fed7aa, #fb923c 35%, #f97316 60%, #fdba74);
	background-size: 200% 100%;
	-webkit-background-clip: text; background-clip: text; color: transparent;
	animation: nx-shimmer 6s linear infinite;
}
/* 7 areas + a copy of the first, ~2.4s on each */
@keyframes nx-rotate {
	0%, 11.43%     { transform: translateY(0); }
	14.29%, 25.71% { transform: translateY(-1.3em); }
	28.57%, 40%    { transform: translateY(-2.6em); }
	42.86%, 54.29% { transform: translateY(-3.9em); }
	57.14%, 68.57% { transform: translateY(-5.2em); }
	71.43%, 82.86% { transform: translateY(-6.5em); }
	85.71%, 97.14% { transform: translateY(-7.8em); }
	100%           { transform: translateY(-9.1em); }
}
@keyframes nx-shimmer { to { background-position: -200% 0; } }

.nx-hero p.nx-hero__lead {
	max-width: 35em; margin: 0 0 2rem;
	color: #cbd5e1; font-size: clamp(1rem, 1.15vw, 1.12rem); line-height: 1.7;
}

.nx-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 2rem; }
.nx-hero a.nx-btn {
	position: relative; display: inline-flex; align-items: center; gap: .6em;
	padding: 1em 1.75em; border-radius: 999px; overflow: hidden;
	font: 600 .95rem/1 Poppins, Arial, sans-serif; text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}
.nx-hero a.nx-btn svg { width: 1.15em; height: 1.15em; transition: transform .25s ease; }
.nx-hero a.nx-btn--primary {
	color: #fff; background: linear-gradient(90deg, #c2410c, #f97316);
	box-shadow: 0 12px 30px -10px rgba(249, 115, 22, .75);
}
.nx-hero a.nx-btn--primary::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
	transform: translateX(-120%);
	animation: nx-shine 5s ease-in-out 1.6s infinite;
}
.nx-hero a.nx-btn--primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 38px -12px rgba(249, 115, 22, .9); }
.nx-hero a.nx-btn--primary:hover svg { transform: translateX(4px); }
.nx-hero a.nx-btn--ghost {
	color: #fff; border: 1px solid rgba(255, 255, 255, .35);
	background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.nx-hero a.nx-btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); transform: translateY(-3px); }
.nx-hero a.nx-btn:focus-visible { outline: 2px solid #fdba74; outline-offset: 3px; }
@keyframes nx-shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.nx-hero ul.nx-hero__trust {
	display: flex; flex-wrap: wrap; gap: 10px 24px;
	margin: 0; padding: 0; list-style: none;
	color: #cbd5e1; font-size: .92rem;
}
.nx-hero ul.nx-hero__trust li { display: inline-flex; align-items: center; gap: .5em; margin: 0; padding: 0; }
.nx-hero ul.nx-hero__trust li::before { display: none; }
.nx-hero ul.nx-hero__trust svg { width: 1.2em; height: 1.2em; color: #fb923c; }

/* ------------------------------------------------------------------ Visual */

.nx-hero__visual {
	--px: 0; --py: 0;
	position: relative; width: min(100%, 500px); aspect-ratio: 1 / 1; margin-inline: auto;
	perspective: 900px;
	animation: nx-zoom 1.3s cubic-bezier(.2, .7, .2, 1) .25s both;
}
.nx-hero__glow {
	position: absolute; inset: 16%; border-radius: 50%;
	background: radial-gradient(circle, rgba(249, 115, 22, .6), rgba(194, 65, 12, .2) 45%, transparent 70%);
	filter: blur(22px);
	animation: nx-breathe 6s ease-in-out infinite;
}
.nx-hero__orbit {
	position: absolute; inset: 5%; border-radius: 50%;
	border: 1px dashed rgba(253, 186, 116, .38);
	transform: rotateX(70deg) rotateY(-14deg); transform-style: preserve-3d;
}
.nx-hero__orbit--b { inset: 15%; border-color: rgba(147, 197, 253, .3); transform: rotateX(70deg) rotateY(40deg); }
.nx-hero__orbit > i { position: absolute; inset: -1px; border-radius: 50%; animation: nx-spin 16s linear infinite; }
.nx-hero__orbit--b > i { animation-duration: 24s; animation-direction: reverse; }
.nx-hero__orbit > i::before {
	content: ""; position: absolute; top: -7px; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%;
	background: #f97316; box-shadow: 0 0 16px 5px rgba(249, 115, 22, .75);
}
.nx-hero__orbit--b > i::before { background: #93c5fd; box-shadow: 0 0 16px 5px rgba(147, 197, 253, .6); }

.nx-hero__gem {
	position: absolute; inset: 26%;
	translate: calc(var(--px) * -16px) calc(var(--py) * -16px);
	transition: translate .4s ease-out;
}
.nx-hero__gem-inner {
	width: 100%; height: 100%;
	filter: drop-shadow(0 26px 40px rgba(234, 88, 12, .5));
	animation: nx-float 7s ease-in-out infinite;
}
.nx-hero__gem svg { display: block; width: 100%; height: 100%; }

.nx-hero__card {
	position: absolute; display: inline-flex; align-items: center; gap: .55em;
	padding: .7em 1.05em; border-radius: 14px;
	background: rgba(15, 35, 66, .55); border: 1px solid rgba(255, 255, 255, .14);
	box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	color: #f1f5f9; font: 600 .84rem/1 Poppins, Arial, sans-serif; white-space: nowrap;
	translate: calc(var(--px) * 10px) calc(var(--py) * 10px);
	transition: translate .4s ease-out;
	animation: nx-bob 6s ease-in-out var(--d, 0s) infinite;
}
.nx-hero__card svg { width: 1.3em; height: 1.3em; color: #fb923c; }
.nx-hero__card--1 { top: 7%;    left: 2%;   --d: 0s; }
.nx-hero__card--2 { top: 4%;    right: 4%;  --d: -1.2s; }
.nx-hero__card--3 { top: 45%;   left: -7%;  --d: -2.4s; }
.nx-hero__card--4 { top: 47%;   right: -6%; --d: -3.1s; }
.nx-hero__card--5 { bottom: 8%; left: 6%;   --d: -4s; }
.nx-hero__card--6 { bottom: 5%; right: 9%;  --d: -5.2s; }

.nx-hero__spark {
	position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; border-radius: 50%;
	background: #fed7aa; box-shadow: 0 0 10px 2px rgba(253, 186, 116, .7);
	animation: nx-twinkle 3.4s ease-in-out var(--d, 0s) infinite;
}

@keyframes nx-zoom    { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes nx-breathe { 0%, 100% { transform: scale(.9); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes nx-spin    { to { transform: rotate(360deg); } }
@keyframes nx-float   { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
@keyframes nx-bob     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes nx-twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.3); } }

/* ------------------------------------------------------------------ Marquee of services and products */

.nx-hero__marquee {
	margin-top: clamp(40px, 6vw, 76px); overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.nx-hero__track { display: flex; width: max-content; animation: nx-marquee 45s linear infinite; }
.nx-hero__marquee:hover .nx-hero__track { animation-play-state: paused; }
.nx-hero__chip {
	display: inline-flex; align-items: center; gap: .55em; margin-right: 14px;
	padding: .65em 1.15em; border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05);
	color: #e2e8f0; font: 500 .9rem/1 Poppins, Arial, sans-serif; white-space: nowrap;
}
.nx-hero__chip svg { width: 1.15em; height: 1.15em; color: #fb923c; }
@keyframes nx-marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ Entrance */

.nx-reveal { animation: nx-rise .9s cubic-bezier(.2, .7, .2, 1) var(--r, 0s) both; }
@keyframes nx-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

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

@media (max-width: 960px) {
	/* minmax(0, …): the one-line rotating headline must not widen the column past the screen */
	.nx-hero__grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
	.nx-hero__copy { display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 100%; }
	.nx-hero__rotator { font-size: min(1em, 6.3vw); }
	.nx-hero p.nx-hero__lead { margin-inline: auto; }
	.nx-hero__actions, .nx-hero ul.nx-hero__trust { justify-content: center; }
	.nx-hero__visual { width: min(86%, 420px); }
	.nx-hero__card--3 { left: -2%; }
	.nx-hero__card--4 { right: -2%; }
}
@media (max-width: 560px) {
	.nx-hero p.nx-hero__eyebrow { font-size: .62rem; letter-spacing: .1em; }
	.nx-hero__card { font-size: .7rem; padding: .55em .8em; }
	.nx-hero__card--3, .nx-hero__card--4 { display: none; }
	.nx-hero a.nx-btn { flex: 1 1 100%; justify-content: center; }
}

/* ------------------------------------------------------------------ Reduced motion */

@media (prefers-reduced-motion: reduce) {
	.nx-hero-row::before, .nx-hero-row::after,
	.nx-hero *, .nx-hero *::before, .nx-hero *::after { animation: none !important; transition: none !important; }
	.nx-hero__sheen { display: none; }
}
