/* ==========================================================================
   SECTIONS — hero, feature split, CTA band, contact, doc cards
   ========================================================================== */

/* ---- Hero ---------------------------------------------------------------- */

.nx-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(3rem, 2rem + 6vw, 6.5rem);
	background:
		radial-gradient(120% 90% at 78% 8%, rgba(0, 163, 224, 0.10) 0%, transparent 55%),
		linear-gradient(180deg, var(--nx-grey-50) 0%, var(--nx-white) 100%);
}

/* Decorative wave, echoes the packaging. Purely visual. */
.nx-hero__wave {
	position: absolute;
	inset: auto 0 0 0;
	height: 180px;
	pointer-events: none;
	opacity: 0.5;
}

.nx-hero__wave svg { width: 100%; height: 100%; }

.nx-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: clamp(var(--nx-space-7), 5vw, var(--nx-space-9));
	align-items: center;
	grid-template-columns: 1fr;
}

@media (min-width: 980px) {
	.nx-hero__inner { grid-template-columns: 1.05fr 0.95fr; }
}

.nx-hero__title {
	margin-bottom: var(--nx-space-5);
	font-size: var(--nx-text-4xl);
}

.nx-hero__sub {
	max-width: 54ch;
	margin-bottom: var(--nx-space-5);
	font-size: var(--nx-text-lg);
	color: var(--nx-text-muted);
	line-height: var(--nx-leading-loose);
}

.nx-hero__support {
	max-width: 56ch;
	margin-bottom: var(--nx-space-7);
	color: var(--nx-text-muted);
}

.nx-hero__media { position: relative; }

.nx-hero__trust { margin-top: var(--nx-space-8); }

/* Subtle float on the hero visual */
@media (prefers-reduced-motion: no-preference) {
	.nx-float { animation: nx-float 7s var(--nx-ease) infinite; }
}

@keyframes nx-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-12px); }
}

/* ---- Feature split ------------------------------------------------------- */

.nx-feature__media { position: relative; }

.nx-feature__list {
	margin: var(--nx-space-6) 0 0;
	padding: 0;
	list-style: none;
}

.nx-feature__list li {
	position: relative;
	margin: 0 0 var(--nx-space-4);
	padding-left: var(--nx-space-7);
	color: var(--nx-text-muted);
	line-height: var(--nx-leading-loose);
}

.nx-feature__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 18px;
	height: 18px;
	border-radius: var(--nx-radius-full);
	background: var(--nx-action);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M4.8 8.9 2.1 6.2l.9-.9 1.8 1.8L9 2.9l.9.9z'/%3E%3C/svg%3E");
	background-size: 12px;
	background-position: center;
	background-repeat: no-repeat;
}

/* ---- Pillar / pathway cards ---------------------------------------------
   Generic 3-up emphasis cards.                                            */

.nx-pillars {
	display: grid;
	gap: var(--nx-space-5);
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.nx-pillar {
	position: relative;
	padding: var(--nx-space-7) var(--nx-space-6);
	background: var(--nx-surface);
	border: 1px solid var(--nx-border);
	border-radius: var(--nx-radius-md);
	overflow: hidden;
	transition: transform var(--nx-dur) var(--nx-ease), box-shadow var(--nx-dur) var(--nx-ease);
}

.nx-pillar::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, var(--nx-blue-600), var(--nx-accent));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--nx-dur) var(--nx-ease);
}

.nx-pillar:hover { transform: translateY(-4px); box-shadow: var(--nx-shadow); }
.nx-pillar:hover::before { transform: scaleX(1); }

.nx-pillar__label {
	display: block;
	margin-bottom: var(--nx-space-3);
	font-family: var(--nx-font-mono);
	font-size: var(--nx-text-xl);
	font-weight: var(--nx-weight-bold);
	letter-spacing: var(--nx-tracking-wide);
	color: var(--nx-primary);
}

.nx-pillar__text {
	margin: 0;
	color: var(--nx-text-muted);
	font-size: var(--nx-text-sm);
	line-height: var(--nx-leading-loose);
}

.nx-pillars__caption {
	margin-top: var(--nx-space-6);
	text-align: center;
	font-size: var(--nx-text-lg);
	font-weight: var(--nx-weight-medium);
	color: var(--nx-primary);
}

/* ---- Document cards ------------------------------------------------------ */

.nx-doc {
	display: flex;
	align-items: flex-start;
	gap: var(--nx-space-4);
	padding: var(--nx-space-5);
	background: var(--nx-surface);
	border: 1px solid var(--nx-border);
	border-radius: var(--nx-radius-md);
	text-decoration: none;
	transition: border-color var(--nx-dur) var(--nx-ease), box-shadow var(--nx-dur) var(--nx-ease);
}

.nx-doc:hover { border-color: var(--nx-action); box-shadow: var(--nx-shadow-sm); }

.nx-doc__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	border-radius: var(--nx-radius-sm);
	background: var(--nx-surface-alt);
	color: var(--nx-blue-600);
}

.nx-doc__icon svg { width: 20px; height: 20px; }

.nx-doc__title {
	margin: 0 0 var(--nx-space-1);
	font-size: var(--nx-text-base);
	font-weight: var(--nx-weight-semibold);
	color: var(--nx-primary);
}

.nx-doc__meta {
	margin: 0;
	font-size: var(--nx-text-xs);
	color: var(--nx-text-subtle);
}

/* ---- CTA band ------------------------------------------------------------ */

/* The section stays on the page background; the gradient sits on an inset
   panel so white shows on all four sides and the corners can round. */
.nx-cta {
	background: var(--nx-bg);
	color: var(--nx-white);
	text-align: center;
}

.nx-cta__panel {
	position: relative;
	overflow: hidden;
	padding: 3.5rem 1.5rem;
	background: linear-gradient(135deg, var(--nx-navy-900) 0%, var(--nx-blue-600) 100%);
	border-radius: var(--nx-radius-lg);
}

.nx-cta__panel::before {
	content: "";
	position: absolute;
	inset: -40% -10% auto auto;
	width: 60%;
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(79, 195, 232, 0.22), transparent 65%);
	pointer-events: none;
}

.nx-cta__inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
.nx-cta h2 { color: var(--nx-white); }

.nx-cta p {
	margin-bottom: var(--nx-space-7);
	color: rgba(255, 255, 255, 0.82);
	font-size: var(--nx-text-lg);
}

.nx-cta .nx-btn { background: var(--nx-white); color: var(--nx-navy-800); }
.nx-cta .nx-btn:hover { background: var(--nx-cyan); color: var(--nx-navy-900); }

.nx-cta .nx-btn--outline {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.45);
	color: var(--nx-white);
}

.nx-cta .nx-btn--outline:hover { border-color: var(--nx-white); background: rgba(255, 255, 255, 0.08); }

/* ---- Contact ------------------------------------------------------------- */

.nx-contact__inner {
	display: grid;
	gap: clamp(var(--nx-space-6), 4vw, var(--nx-space-9));
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 900px) {
	.nx-contact__inner { grid-template-columns: 0.85fr 1.15fr; }
}

.nx-contact__panel {
	padding: var(--nx-space-7);
	background: var(--nx-surface);
	border: 1px solid var(--nx-border);
	border-radius: var(--nx-radius-lg);
	box-shadow: var(--nx-shadow-sm);
}

.nx-contact__detail {
	display: flex;
	gap: var(--nx-space-4);
	margin-top: var(--nx-space-6);
}

.nx-contact__detail dt {
	min-width: 90px;
	font-size: var(--nx-text-xs);
	font-weight: var(--nx-weight-semibold);
	letter-spacing: var(--nx-tracking-caps);
	text-transform: uppercase;
	color: var(--nx-text-subtle);
}

.nx-contact__detail dd { margin: 0; color: var(--nx-text); }

/* ---- Reviews -------------------------------------------------------------- */

.nx-review__stars {
	display: flex;
	gap: 2px;
	margin-bottom: var(--nx-space-4);
}

.nx-review__star {
	width: 18px;
	height: 18px;
	fill: rgba(255, 255, 255, 0.2);
}

.nx-review__star.is-filled { fill: #f5b400; }

.nx-review__quote {
	margin: 0 0 var(--nx-space-6);
	color: rgba(255, 255, 255, 0.85);
	font-size: var(--nx-text-sm);
	font-style: italic;
	line-height: var(--nx-leading-loose);
}

.nx-review__author {
	display: flex;
	align-items: center;
	gap: var(--nx-space-3);
	margin-top: auto;
}

.nx-review__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: var(--nx-radius-full);
	background: var(--nx-action);
	color: var(--nx-white);
	font-size: var(--nx-text-xs);
	font-weight: var(--nx-weight-semibold);
	letter-spacing: var(--nx-tracking-wide);
}

.nx-review__who {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nx-review__name { color: var(--nx-white); font-size: var(--nx-text-sm); }

.nx-review__role {
	font-size: var(--nx-text-xs);
	color: rgba(255, 255, 255, 0.6);
}

/* ---- Placeholder marker -------------------------------------------------
   Makes unfilled content obvious in dev. Hidden in production via the
   NX_SHOW_PLACEHOLDERS constant in functions.php.                         */

.nx-ph {
	display: inline-block;
	padding: 0.1em 0.4em;
	border: 1px dashed var(--nx-border-strong);
	border-radius: var(--nx-radius-sm);
	background: rgba(0, 163, 224, 0.06);
	color: var(--nx-text-subtle);
	font-family: var(--nx-font-mono);
	font-size: 0.9em;
}
