/* ==========================================================================
   Nexora main stylesheet
   Loaded on the front end and inside the block editor.
   Colours, fonts and spacing come from theme.json; this file adds layout,
   component styling and motion.
   ========================================================================== */

:root {
	--nx-ink: #0c1020;
	--nx-ink-2: #171b30;
	--nx-on-ink: #f4f3ee;
	--nx-on-ink-muted: #a9adc1;
	--nx-line-on-ink: rgba(255, 255, 255, 0.14);
	--nx-radius-sm: var(--wp--custom--radius--sm, 0.5rem);
	--nx-radius-md: var(--wp--custom--radius--md, 0.875rem);
	--nx-radius-lg: var(--wp--custom--radius--lg, 1.5rem);
	--nx-ease: var(--wp--custom--transition, 180ms cubic-bezier(0.2, 0.7, 0.2, 1));
	--nx-border: var(--wp--preset--color--border);
	--nx-muted: var(--wp--preset--color--muted);
	--nx-accent: var(--wp--preset--color--accent);
	--nx-accent-soft: var(--wp--preset--color--accent-soft);
	--nx-signal: var(--wp--preset--color--signal);
	--nx-surface: var(--wp--preset--color--surface);
	--nx-base: var(--wp--preset--color--base);
	--nx-text: var(--wp--preset--color--contrast);
	--nx-wide: var(--wp--style--global--wide-size, 75rem);
}

/* ---------- Base ---------- */
html {
	-webkit-text-size-adjust: 100%;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
		scroll-padding-top: 6rem;
	}
}

::selection {
	background: var(--nx-signal);
	color: #0c1020;
}

:where(a, button, summary, input, textarea, select, [tabindex]):focus-visible {
	outline: 2px solid var(--nx-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > * {
	margin-block: 0;
}

.wp-site-blocks > main {
	flex: 1 0 auto;
}

img {
	height: auto;
	max-width: 100%;
}

.wp-block-heading em,
h1 em,
h2 em,
h3 em {
	font-style: italic;
	color: var(--nx-accent);
}

.nx-narrow {
	max-width: 46rem;
	margin-inline: auto !important;
}


/* ---------- Announcement bar ---------- */
.nx-announce {
	background: var(--nx-ink);
	color: var(--nx-on-ink);
	padding: 0.6rem var(--wp--style--root--padding-left, 1.25rem);
	gap: 0.75rem;
	font-size: var(--wp--preset--font-size--x-small);
	text-align: center;
}

.nx-announce p {
	margin: 0;
}

.nx-announce__tag {
	background: var(--nx-signal);
	color: #0c1020;
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 600;
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
}

.nx-announce a {
	color: var(--nx-on-ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(255, 255, 255, 0.4);
	transition: text-decoration-color var(--nx-ease);
}

.nx-announce a:hover {
	text-decoration-color: var(--nx-signal);
	color: #fff;
}

/* ---------- Header ---------- */
header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0);
	z-index: 50;
	border-bottom: 1px solid var(--nx-border);
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu overlay inside the header box. */
header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--nx-base) 84%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
}

.nx-header {
	max-width: calc(var(--nx-wide) + 2 * var(--wp--style--root--padding-left, 1.25rem));
	margin-inline: auto !important;
	padding: 0.7rem var(--wp--style--root--padding-left, 1.25rem);
	gap: 1.5rem;
	min-height: 4.25rem;
}

.nx-brand {
	gap: 0.6rem;
	flex-shrink: 0;
}

.nx-brand .wp-block-site-title {
	margin: 0;
	line-height: 1;
}

/* Default brand mark (shown only when no custom logo is set). */
.nx-brand:not(:has(.wp-block-site-logo)) .wp-block-site-title::before {
	content: "";
	display: inline-block;
	width: 1.6rem;
	height: 1.6rem;
	margin-right: 0.55rem;
	vertical-align: -0.38rem;
	border-radius: 0.5rem;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1020' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 18V6l11 12V6'/%3E%3C/svg%3E") center / 72% no-repeat,
		var(--nx-signal);
}

.nx-nav {
	flex: 1 1 auto;
	gap: 0.25rem;
}

.nx-nav .wp-block-navigation-item__content {
	padding: 0.5rem 0.8rem;
	border-radius: 999px;
	transition: background var(--nx-ease), color var(--nx-ease);
}

.nx-nav .wp-block-navigation-item__content:hover {
	background: color-mix(in srgb, var(--nx-text) 6%, transparent);
}

.nx-nav .current-menu-item > .wp-block-navigation-item__content,
.nx-nav [aria-current="page"] {
	background: var(--nx-accent-soft);
	color: var(--nx-accent);
}

.nx-header__cta {
	flex-shrink: 0;
	gap: 0.5rem;
}

.nx-header__cta .wp-block-button__link {
	padding: 0.7rem 1.2rem !important;
}

/* Mobile navigation overlay */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wp-block-navigation.nx-nav:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--nx-base);
	color: var(--nx-text);
	padding: 1.25rem var(--wp--style--root--padding-left, 1.25rem) 2rem;
}

.nx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem;
	align-items: stretch;
}

.nx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: stretch;
	gap: 0;
	width: 100%;
}

.nx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	border-bottom: 1px solid var(--nx-border);
	width: 100%;
}

.nx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 9vw, 2.75rem);
	line-height: 1.15;
	padding: 0.7rem 0;
	border-radius: 0;
	background: none !important;
	width: 100%;
}

.nx-nav .wp-block-navigation__responsive-container.is-menu-open [aria-current="page"] {
	color: var(--nx-accent);
}

/* ---------- Typography helpers ---------- */
.is-style-nx-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nx-accent);
	margin-block-end: 1rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.is-style-nx-eyebrow::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 2px;
	background: var(--nx-signal);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--nx-accent) 25%, transparent);
	flex-shrink: 0;
}

.is-style-nx-eyebrow.has-text-align-center {
	justify-content: center;
}

.is-style-nx-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
	color: var(--nx-muted);
	max-width: 38rem;
}

.is-style-nx-lead.has-text-align-center {
	margin-inline: auto !important;
}

.nx-note {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--nx-muted);
	margin-top: 1.5rem;
}

.nx-link-arrow a {
	font-weight: 600;
	text-decoration: none;
	color: var(--nx-accent);
}

.nx-link-arrow a::after {
	content: "\2192";
	display: inline-block;
	margin-left: 0.4rem;
	transition: transform var(--nx-ease);
}

.nx-link-arrow a:hover::after {
	transform: translateX(4px);
}

/* ---------- Buttons ---------- */
.wp-block-button__link {
	transition: background-color var(--nx-ease), color var(--nx-ease), border-color var(--nx-ease), transform var(--nx-ease), box-shadow var(--nx-ease);
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wp-block-button__link:active {
	transform: translateY(1px);
}

.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button {
	background: var(--nx-surface);
	color: var(--nx-text);
	border: 1px solid color-mix(in srgb, var(--nx-text) 22%, var(--nx-border));
}

.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button:hover {
	border-color: var(--nx-text);
	background: var(--nx-surface);
	color: var(--nx-text);
}

.wp-block-button.is-style-nx-accent .wp-block-button__link {
	background: var(--nx-accent);
	color: #fff;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 16px -6px color-mix(in srgb, var(--nx-accent) 70%, transparent);
}

.wp-block-button.is-style-nx-accent .wp-block-button__link:hover,
.wp-block-button.is-style-nx-accent .wp-block-button__link:focus {
	background: var(--wp--preset--color--accent-strong);
	color: #fff;
	transform: translateY(-1px);
}

.wp-block-button.is-style-nx-signal .wp-block-button__link {
	background: var(--nx-signal);
	color: #0c1020;
}

.wp-block-button.is-style-nx-signal .wp-block-button__link:hover,
.wp-block-button.is-style-nx-signal .wp-block-button__link:focus {
	background: #fff;
	color: #0c1020;
	transform: translateY(-1px);
}

.wp-block-button.is-style-nx-ghost .wp-block-button__link {
	background: transparent;
	color: inherit;
	border: 1px solid transparent;
}

.wp-block-button.is-style-nx-ghost .wp-block-button__link:hover,
.wp-block-button.is-style-nx-ghost .wp-block-button__link:focus {
	background: color-mix(in srgb, currentColor 8%, transparent);
	color: inherit;
	border-color: color-mix(in srgb, currentColor 22%, transparent);
}

/* ---------- Sections ---------- */
.nx-section {
	padding-block: var(--wp--custom--section-y, 6rem);
	padding-inline: var(--wp--style--root--padding-left, 1.25rem);
	position: relative;
}

.nx-section--tight {
	padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.nx-section--flush-top {
	padding-top: 0;
}

.nx-section--surface {
	background: var(--nx-surface);
	border-block: 1px solid var(--nx-border);
}

.nx-section--soft {
	background: var(--nx-accent-soft);
}

.nx-section--dark {
	background: var(--nx-ink);
	color: var(--nx-on-ink);
	overflow: hidden;
}

.nx-section--dark :where(h1, h2, h3, h4) {
	color: var(--nx-on-ink);
}

.nx-section--dark h2 em,
.nx-section--dark h3 em {
	color: var(--nx-signal);
}

.nx-section--dark .is-style-nx-lead {
	color: var(--nx-on-ink-muted);
}

.nx-section--dark .is-style-nx-eyebrow {
	color: var(--nx-signal);
}

.nx-section--dark::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(60rem 28rem at 85% -10%, color-mix(in srgb, var(--nx-accent) 45%, transparent), transparent 70%);
	pointer-events: none;
}

.nx-section--dark > * {
	position: relative;
}

.nx-section__head {
	max-width: 46rem;
	margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
	margin-inline: 0 auto !important;
}

.nx-section__head h2 {
	margin: 0;
}

.nx-section__head > * + * {
	margin-block-start: 1.25rem;
}

.nx-section__head--center {
	margin-inline: auto !important;
	text-align: center;
}

.nx-grid {
	display: grid;
	gap: 1.25rem;
}

.nx-grid > * {
	margin: 0;
}

.nx-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Cards and panels ---------- */
.wp-block-group.is-style-nx-card {
	background: var(--nx-surface);
	border: 1px solid var(--nx-border);
	border-radius: var(--nx-radius-lg);
	padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
	box-shadow: var(--wp--preset--shadow--soft);
	transition: transform var(--nx-ease), box-shadow var(--nx-ease), border-color var(--nx-ease);
}

.wp-block-group.is-style-nx-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--lifted);
}

.wp-block-group.is-style-nx-panel {
	background: linear-gradient(160deg, var(--nx-ink-2) 0%, var(--nx-ink) 70%);
	color: var(--nx-on-ink);
	border-radius: var(--nx-radius-lg);
	padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
	position: relative;
	overflow: hidden;
}

.wp-block-group.is-style-nx-panel :where(h1, h2, h3, h4) {
	color: var(--nx-on-ink);
}

.wp-block-group.is-style-nx-panel :where(p) {
	color: var(--nx-on-ink-muted);
}

.wp-block-group.is-style-nx-panel h2 em,
.wp-block-group.is-style-nx-panel h3 em {
	color: var(--nx-signal);
}

.wp-block-group.is-style-nx-card :where(h3) {
	margin-block: 0 0.6rem;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.25;
}

.wp-block-group.is-style-nx-card :where(p) {
	color: var(--nx-muted);
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

.wp-block-group.is-style-nx-card :where(p.nx-link-arrow) {
	margin-top: 1rem;
	font-size: var(--wp--preset--font-size--small);
}

/* Icon badge: add a nx-i-* class to a card to show an icon. */
[class*="nx-i-"]::before {
	content: "";
	display: block;
	width: 2.75rem;
	height: 2.75rem;
	margin-bottom: 1.25rem;
	border-radius: var(--nx-radius-md);
	background-color: var(--nx-accent-soft);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 1.375rem;
}

.nx-i-bolt::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234536f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.nx-i-pulse::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234536f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l3-8 4 16 3-8h4'/%3E%3C/svg%3E"); }
.nx-i-lock::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234536f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.nx-i-chat::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234536f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.5 7.2L4 21l1.8-5.5A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }
.nx-i-link::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234536f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E"); }

/* Checklist */
ul.is-style-nx-checks {
	list-style: none;
	padding-left: 0 !important;
	margin-block: 1.25rem 0;
	display: grid;
	gap: 0.7rem;
}

ul.is-style-nx-checks li {
	position: relative;
	padding-left: 1.9rem;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

ul.is-style-nx-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.12rem;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234536f5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat,
		var(--nx-accent-soft);
}

/* Browser frame image */
.wp-block-image.is-style-nx-frame {
	position: relative;
	background: var(--nx-surface);
	border: 1px solid var(--nx-border);
	border-radius: var(--nx-radius-lg);
	box-shadow: var(--wp--preset--shadow--float);
	padding-top: 2.4rem;
	overflow: hidden;
}

.wp-block-image.is-style-nx-frame::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2.4rem;
	border-bottom: 1px solid var(--nx-border);
	background:
		radial-gradient(circle at 1.4rem 50%, #ff5f57 0.28rem, transparent 0.3rem),
		radial-gradient(circle at 2.4rem 50%, #febc2e 0.28rem, transparent 0.3rem),
		radial-gradient(circle at 3.4rem 50%, #28c840 0.28rem, transparent 0.3rem),
		var(--nx-base);
}

.wp-block-image.is-style-nx-frame img {
	display: block;
	width: 100%;
	border-radius: 0;
}

.nx-soft-img img {
	width: 100%;
	display: block;
	border-radius: var(--nx-radius-lg);
	border: 1px solid var(--nx-border);
	box-shadow: var(--wp--preset--shadow--lifted);
}

/* ---------- Hero ---------- */
.nx-hero {
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(3.5rem, 2rem + 5vw, 7rem) clamp(3rem, 2rem + 4vw, 6rem);
}

.nx-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(to right, color-mix(in srgb, var(--nx-text) 6%, transparent) 1px, transparent 1px),
		linear-gradient(to bottom, color-mix(in srgb, var(--nx-text) 6%, transparent) 1px, transparent 1px);
	background-size: 4.5rem 4.5rem;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}

.nx-hero__top {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: clamp(2rem, 1rem + 5vw, 5rem);
	align-items: end;
}

.nx-hero__top > * {
	margin: 0;
}

.nx-hero__title {
	margin: 0;
	letter-spacing: -0.03em;
	line-height: 0.96;
	text-wrap: balance;
}

.nx-hero__title em {
	color: var(--nx-text);
	background: linear-gradient(transparent 80%, var(--nx-signal) 80% 93%, transparent 93%);
	padding-inline: 0.06em;
}

.nx-hero__aside > * + * {
	margin-block-start: 1.5rem;
}

.nx-hero__note {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--nx-muted);
	margin-top: 1rem;
}

.nx-hero__visual {
	margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.nx-hero--centered {
	text-align: center;
}

.nx-hero--centered .nx-hero__title {
	margin-bottom: 1.5rem;
}

.nx-hero--centered > * + * {
	margin-block-start: 1.5rem;
}

@media (prefers-reduced-motion: no-preference) {
	.nx-hero__copy > *,
	.nx-hero__aside > *,
	.nx-hero--centered > * {
		animation: nx-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.nx-hero__copy > :nth-child(2) { animation-delay: 0.08s; }
	.nx-hero__aside > :nth-child(1) { animation-delay: 0.16s; }
	.nx-hero__aside > :nth-child(2) { animation-delay: 0.24s; }
	.nx-hero__aside > :nth-child(3) { animation-delay: 0.3s; }
	.nx-hero__visual { animation: nx-rise 1s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}

@keyframes nx-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Logos ---------- */
.nx-logos__label {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--nx-muted);
	margin-bottom: 1.75rem;
}

.nx-logos__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1.25rem clamp(1.75rem, 1rem + 3vw, 4rem);
}

.nx-logos__row > * {
	margin: 0;
}

.nx-wordmark {
	color: color-mix(in srgb, var(--nx-text) 52%, transparent);
	font-size: 1.5rem;
	line-height: 1;
	transition: color var(--nx-ease);
}

.nx-wordmark:hover { color: var(--nx-text); }
.nx-wordmark--1 { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 1.8rem; }
.nx-wordmark--2 { font-weight: 800; letter-spacing: -0.05em; }
.nx-wordmark--3 { font-family: var(--wp--preset--font-family--display); font-size: 1.7rem; }
.nx-wordmark--4 { font-family: var(--wp--preset--font-family--mono); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.04em; }
.nx-wordmark--5 { font-weight: 700; letter-spacing: 0.22em; font-size: 1.05rem; }
.nx-wordmark--6 { font-weight: 600; letter-spacing: -0.03em; font-size: 1.4rem; }

/* ---------- Bento ---------- */
.nx-bento {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1.25rem;
}

.nx-bento > * {
	margin: 0;
}

.nx-bento__a,
.nx-bento__d {
	grid-column: span 4;
}

.nx-bento__b,
.nx-bento__c {
	grid-column: span 2;
}

.nx-bento__a,
.nx-bento__d {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	align-items: center;
	padding-block: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
}

.nx-bento__a > *,
.nx-bento__d > * {
	margin: 0;
}

.nx-bento__text > * + * {
	margin-top: 0.9rem;
}

.nx-bento__text h3 {
	margin: 0;
}

.nx-bento__img img {
	display: block;
	width: 100%;
	border-radius: var(--nx-radius-md);
}

.nx-bento__a .nx-bento__img img {
	border: 1px solid var(--nx-line-on-ink);
}

.nx-bento__d .nx-bento__img img {
	border: 1px solid var(--nx-border);
}

.nx-bento__d {
	background: var(--nx-accent-soft);
	border-color: transparent;
}

/* ---------- Split rows ---------- */
.nx-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(2rem, 1rem + 5vw, 6rem);
	align-items: center;
}

.nx-split > * {
	margin: 0;
}

.nx-split + .nx-split {
	margin-top: clamp(4rem, 3rem + 5vw, 8rem);
}

.nx-split--reverse .nx-split__media {
	order: -1;
}

.nx-split__text > * + * {
	margin-block-start: 1.25rem;
}

.nx-split__text h1,
.nx-split__text h2 {
	margin: 0;
	text-wrap: balance;
}

/* ---------- Workflow steps ---------- */
.nx-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
}

.nx-steps > * {
	margin: 0;
}

.nx-step {
	border-top: 1px solid var(--nx-line-on-ink);
	padding-top: 1.5rem;
	position: relative;
}

.nx-step::before {
	content: "";
	position: absolute;
	top: -0.3rem;
	left: 0;
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: var(--nx-signal);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--nx-signal) 18%, transparent);
}

.nx-step > * + * {
	margin-block-start: 0.75rem;
}

.nx-step__num {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--nx-signal);
	letter-spacing: 0.08em;
}

.nx-step h3 {
	margin: 0;
}

.nx-step p:not(.nx-step__num) {
	color: var(--nx-on-ink-muted);
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Use cases ---------- */
.nx-usecases {
	border-bottom: 1px solid var(--nx-border);
}

.nx-usecases > * {
	margin: 0;
}

.nx-usecase {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
	padding-block: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
	border-top: 1px solid var(--nx-border);
	transition: background var(--nx-ease), padding var(--nx-ease);
}

.nx-usecase > * {
	margin: 0;
}

.nx-usecase:hover .nx-usecase__body h3 {
	color: var(--nx-accent);
}

.nx-usecase__num {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--nx-muted);
	padding-top: 0.6rem;
}

.nx-usecase__body h3 {
	margin: 0 0 0.5rem;
	transition: color var(--nx-ease);
}

.nx-usecase__body p {
	color: var(--nx-muted);
	max-width: 34rem;
	margin: 0;
}

.nx-usecase__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
	padding-top: 0.35rem;
}

.nx-tag {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	padding: 0.3rem 0.8rem;
	border: 1px solid var(--nx-border);
	border-radius: 999px;
	background: var(--nx-surface);
	line-height: 1.4;
}

/* ---------- Integrations ---------- */
.nx-integrations {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 1rem + 5vw, 6rem);
	align-items: center;
}

.nx-integrations > * {
	margin: 0;
}

.nx-integrations__intro > * + * {
	margin-block-start: 1.25rem;
}

.nx-integrations__intro h2 {
	margin: 0;
}

.nx-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
}

.nx-tiles > * {
	margin: 0;
}

.nx-tile {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 1rem;
	background: var(--nx-base);
	border: 1px solid var(--nx-border);
	border-radius: var(--nx-radius-md);
	transition: transform var(--nx-ease), border-color var(--nx-ease), background var(--nx-ease);
}

.nx-tile > * {
	margin: 0;
}

.nx-tile:hover {
	transform: translateY(-2px);
	border-color: var(--nx-accent);
	background: var(--nx-surface);
}

.nx-tile__mark {
	flex: 0 0 2.5rem;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.7rem;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 1.05rem;
	margin: 0;
	background: var(--nx-ink);
	color: var(--nx-on-ink);
}

.nx-tile__mark--1 { background: var(--nx-accent); color: #fff; }
.nx-tile__mark--2 { background: var(--nx-signal); color: #0c1020; }
.nx-tile__mark--3 { background: var(--nx-accent-soft); color: var(--nx-accent); }
.nx-tile__mark--4 { background: #0c1020; color: #cdf545; }
.nx-tile__mark--5 { background: #ffe9d6; color: #b4470f; }

.nx-tile__text {
	min-width: 0;
}

.nx-tile__name {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.25;
}

.nx-tile__cat {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--nx-muted);
	line-height: 1.3;
}

/* ---------- Stats ---------- */
.nx-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
}

.nx-stats > * {
	margin: 0;
}

.nx-stat {
	border-left: 1px solid var(--nx-border);
	padding-left: 1.5rem;
}

.nx-stat > * {
	margin: 0;
}

.nx-stat__num {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem);
	line-height: 1;
	letter-spacing: -0.02em;
}

.nx-stat__label {
	font-size: var(--wp--preset--font-size--small);
	color: var(--nx-muted);
	margin-top: 0.6rem;
}

/* ---------- Testimonials ---------- */
.nx-quotes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.nx-quotes > * {
	margin: 0;
}

.nx-quote {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 2rem;
}

.wp-block-group.is-style-nx-card .nx-quote__text {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
	color: var(--nx-text);
}

.nx-quote__who {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.nx-quote__who > * {
	margin: 0;
}

.nx-avatar {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--nx-accent-soft);
	color: var(--nx-accent);
	font-weight: 700;
	font-size: 0.8125rem;
	flex-shrink: 0;
	margin: 0;
}

.nx-quote__meta > * {
	margin: 0;
}

.wp-block-group.is-style-nx-card .nx-quote__name {
	font-weight: 600;
	color: var(--nx-text);
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-group.is-style-nx-card .nx-quote__role {
	font-size: var(--wp--preset--font-size--x-small);
}

.wp-block-quote.nx-bigquote {
	border: 0;
	padding: 0;
	text-align: center;
	font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
}

.wp-block-quote.nx-bigquote p {
	line-height: 1.2;
	color: var(--nx-text);
}

.wp-block-quote.nx-bigquote cite {
	display: block;
	margin-top: 1.5rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	color: var(--nx-muted);
}

/* ---------- Pricing ---------- */
.nx-plans {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	align-items: stretch;
}

.nx-plans > * {
	margin: 0;
}

.nx-plan {
	position: relative;
	background: var(--nx-surface);
	border: 1px solid var(--nx-border);
	border-radius: var(--nx-radius-lg);
	padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	box-shadow: var(--wp--preset--shadow--soft);
}

.nx-plan > * {
	margin: 0;
}

.nx-plan__name {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--nx-muted);
}

.nx-plan__price {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(3rem, 2.4rem + 2vw, 4rem);
	line-height: 1;
	letter-spacing: -0.02em;
}

.nx-plan__price span {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0;
	color: var(--nx-muted);
}

.nx-plan__desc {
	color: var(--nx-muted);
	font-size: var(--wp--preset--font-size--small);
	min-height: 2.9em;
}

.nx-plan .wp-block-buttons {
	margin-block: 0.5rem 0.25rem;
}

.nx-plan .wp-block-button {
	width: 100%;
}

.nx-plan ul.is-style-nx-checks {
	margin-top: 0.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--nx-border);
}

.nx-plan--featured {
	background: linear-gradient(165deg, var(--nx-ink-2), var(--nx-ink) 75%);
	border-color: var(--nx-ink);
	color: var(--nx-on-ink);
	box-shadow: var(--wp--preset--shadow--float);
}

.nx-plan--featured .nx-plan__name,
.nx-plan--featured .nx-plan__desc,
.nx-plan--featured .nx-plan__price span {
	color: var(--nx-on-ink-muted);
}

.nx-plan--featured .nx-plan__price {
	color: var(--nx-on-ink);
}

.nx-plan--featured ul.is-style-nx-checks {
	border-top-color: var(--nx-line-on-ink);
}

.nx-plan--featured ul.is-style-nx-checks li::before {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1020' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat,
		var(--nx-signal);
}

.nx-plan__badge {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	background: var(--nx-signal);
	color: #0c1020;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	margin: 0;
}

.nx-compare {
	overflow-x: auto;
	margin-top: 1.5rem;
	border: 1px solid var(--nx-border);
	border-radius: var(--nx-radius-lg);
	background: var(--nx-surface);
	-webkit-overflow-scrolling: touch;
}

.nx-compare table {
	min-width: 40rem;
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
}

.nx-compare :is(th, td) {
	padding: 1rem 1.25rem;
	text-align: center;
	border: 0;
	border-bottom: 1px solid var(--nx-border);
}

.nx-compare :is(th, td):first-child {
	text-align: left;
	font-weight: 500;
}

.nx-compare thead th {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--nx-muted);
	font-weight: 500;
	border-bottom: 1px solid var(--nx-border);
	background: var(--nx-base);
}

.nx-compare tbody tr:last-child td {
	border-bottom: 0;
}

.nx-compare :is(th, td):nth-child(3) {
	background: color-mix(in srgb, var(--nx-accent-soft) 55%, transparent);
	font-weight: 600;
}

/* ---------- FAQ ---------- */
.nx-faq {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 1rem + 5vw, 6rem);
	align-items: start;
}

.nx-faq > * {
	margin: 0;
}

.nx-faq__intro {
	position: sticky;
	top: 7rem;
}

.nx-faq__intro > * + * {
	margin-block-start: 1.25rem;
}

.nx-faq__intro h2 {
	margin: 0;
}

.nx-faq__list {
	border-bottom: 1px solid var(--nx-border);
}

.nx-faq__list > * {
	margin: 0;
}

.wp-block-details {
	border-top: 1px solid var(--nx-border);
	padding: 0;
	margin: 0;
}

.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	padding: 1.35rem 0;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--medium);
	letter-spacing: -0.01em;
	transition: color var(--nx-ease);
	min-height: 44px;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "";
	flex: 0 0 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	border: 1px solid var(--nx-border);
	background:
		linear-gradient(currentColor, currentColor) center / 0.7rem 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1.5px 0.7rem no-repeat;
	transition: transform var(--nx-ease), background-color var(--nx-ease), border-color var(--nx-ease);
}

.wp-block-details summary:hover {
	color: var(--nx-accent);
}

.wp-block-details[open] summary::after {
	transform: rotate(45deg);
	background-color: var(--nx-accent-soft);
	border-color: transparent;
	color: var(--nx-accent);
}

.wp-block-details > :not(summary) {
	color: var(--nx-muted);
	max-width: 38rem;
}

.wp-block-details > p:last-child {
	margin-bottom: 1.5rem;
}

@media (prefers-reduced-motion: no-preference) {
	.wp-block-details[open] > :not(summary) {
		animation: nx-rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}
}

/* ---------- CTA ---------- */
.nx-cta {
	text-align: center;
	padding: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(1.5rem, 1rem + 4vw, 4rem) !important;
	isolation: isolate;
}

.nx-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(40rem 20rem at 100% 0%, color-mix(in srgb, var(--nx-accent) 55%, transparent), transparent 70%),
		radial-gradient(28rem 14rem at 0% 100%, color-mix(in srgb, var(--nx-signal) 14%, transparent), transparent 70%);
}

.nx-cta > * + * {
	margin-block-start: 1.5rem;
}

.nx-cta h2 {
	margin: 0;
}

.nx-cta p {
	margin-inline: auto;
}

.nx-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	background: var(--nx-accent-soft);
	border-radius: var(--nx-radius-lg);
	padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
}

.nx-banner > * {
	margin: 0;
}

.nx-banner__text h2 {
	margin: 0 0 0.35rem;
}

.nx-banner__text p {
	margin: 0;
	color: var(--nx-muted);
}

/* ---------- About / values / team ---------- */
.nx-values {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 1rem + 3vw, 4rem);
}

.nx-values > * {
	margin: 0;
}

.nx-value {
	border-top: 2px solid var(--nx-text);
	padding-top: 1.25rem;
}

.nx-value > * + * {
	margin-block-start: 0.75rem;
}

.nx-value h3 {
	margin: 0;
}

.nx-value p:not(.nx-value__num) {
	color: var(--nx-muted);
}

.nx-value__num {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--nx-accent);
}

.nx-team {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

.nx-team > * {
	margin: 0;
}

.nx-member > * {
	margin: 0;
}

.nx-member__photo {
	aspect-ratio: 1;
	border-radius: var(--nx-radius-lg);
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.5rem, 2rem + 2vw, 4rem);
	margin-bottom: 1rem !important;
	background: var(--nx-accent-soft);
	color: var(--nx-accent);
	transition: transform var(--nx-ease);
}

.nx-member:hover .nx-member__photo {
	transform: translateY(-3px);
}

.nx-member__photo--2 { background: var(--nx-ink); color: var(--nx-signal); }
.nx-member__photo--3 { background: var(--nx-signal); color: #0c1020; }
.nx-member__photo--4 { background: var(--nx-border); color: var(--nx-text); }

.nx-member__name {
	font-weight: 600;
}

.nx-member__role {
	font-size: var(--wp--preset--font-size--small);
	color: var(--nx-muted);
}

/* ---------- Page head, 404, search ---------- */
.nx-page-head {
	padding-block: clamp(3.5rem, 2rem + 5vw, 7rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.nx-page-head > * {
	max-width: 52rem;
	margin-inline: 0 auto !important;
}

.nx-page-head h1 {
	margin: 0;
	font-size: clamp(2.75rem, 2rem + 4vw, 5.25rem);
	line-height: 1;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.nx-page-head > * + * {
	margin-block-start: 1.25rem;
}

.nx-page-head .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.nx-404 {
	text-align: center;
	padding-block: clamp(4rem, 3rem + 6vw, 9rem);
}

.nx-404 > * + * {
	margin-block-start: 1.5rem;
}

.nx-404__code {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(7rem, 4rem + 18vw, 16rem);
	line-height: 0.8;
	letter-spacing: -0.04em;
	margin: 0;
	background: linear-gradient(180deg, var(--nx-accent) 20%, color-mix(in srgb, var(--nx-accent) 0%, transparent) 105%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.nx-404 h1 {
	margin: 0;
}

.nx-search {
	max-width: 34rem;
	margin-inline: auto;
}

.nx-page-head .nx-search {
	margin-inline: 0;
}

.nx-search .wp-block-search__inside-wrapper {
	gap: 0.5rem;
	border: 0;
	padding: 0;
}

.nx-search .wp-block-search__input {
	border: 1px solid color-mix(in srgb, var(--nx-text) 18%, var(--nx-border));
	background: var(--nx-surface);
	border-radius: 999px;
	padding: 0.85rem 1.4rem;
	min-height: 52px;
	font-size: var(--wp--preset--font-size--small);
	font-family: inherit;
	color: var(--nx-text);
}

.nx-search .wp-block-search__input:focus {
	outline: 2px solid var(--nx-accent);
	outline-offset: 2px;
	border-color: transparent;
}

.nx-search .wp-block-search__button {
	background: var(--nx-text);
	color: var(--nx-surface);
	border: 0;
	border-radius: 999px;
	padding: 0 1.6rem;
	margin: 0;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	min-height: 52px;
	cursor: pointer;
	transition: background var(--nx-ease);
}

.nx-search .wp-block-search__button:hover {
	background: var(--nx-accent);
	color: #fff;
}

.nx-empty {
	padding: clamp(2.5rem, 2rem + 3vw, 5rem) 1rem;
	border: 1px dashed color-mix(in srgb, var(--nx-text) 25%, var(--nx-border));
	border-radius: var(--nx-radius-lg);
	text-align: center;
}

.nx-empty > * + * {
	margin-block-start: 1.25rem;
}

.nx-empty__title {
	margin: 0;
}

/* ---------- Blog cards ---------- */
.nx-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2rem, 1.5rem + 2vw, 3.5rem) 1.75rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.nx-post-grid > li {
	margin: 0;
}

.nx-post-card > * + * {
	margin-block-start: 0.7rem;
}

.nx-post-card__media {
	aspect-ratio: 16 / 10;
	border-radius: var(--nx-radius-md);
	overflow: hidden;
	border: 1px solid var(--nx-border);
	background:
		radial-gradient(circle at 24% 120%, var(--nx-signal) 0 26%, transparent 27%),
		radial-gradient(circle at 78% -10%, var(--nx-accent) 0 34%, transparent 35%),
		var(--nx-accent-soft);
	margin-bottom: 0.4rem !important;
	transition: transform var(--nx-ease), box-shadow var(--nx-ease);
}

.nx-post-card:hover .nx-post-card__media {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--lifted);
}

.nx-post-card__media figure,
.nx-post-card__media .wp-block-post-featured-image {
	margin: 0;
	height: 100%;
}

.nx-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
}

.nx-post-card__cat,
.nx-post-card__cat a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--nx-accent);
	font-weight: 500;
}

.nx-post-card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large) !important;
	line-height: 1.12;
}

.nx-post-card__excerpt {
	color: var(--nx-muted);
	font-size: var(--wp--preset--font-size--small);
}

.nx-post-card__excerpt p {
	margin: 0;
}

.nx-pagination {
	margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
	gap: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
}

.nx-pagination :is(a, .page-numbers) {
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	text-decoration: none;
	min-width: 2.75rem;
	min-height: 2.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--nx-text);
}

.nx-pagination a:hover {
	background: var(--nx-accent-soft);
	color: var(--nx-accent);
}

.nx-pagination .page-numbers.current {
	background: var(--nx-text);
	color: var(--nx-surface);
}

/* ---------- Article ---------- */
.nx-article__head > * + * {
	margin-block-start: 1.25rem;
}

.nx-article__head h1 {
	margin: 0;
	font-size: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
	line-height: 1.02;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.nx-article__meta {
	gap: 1rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--nx-muted);
	margin-top: 1.5rem;
}

.nx-article__meta > * {
	margin: 0;
}

.nx-article__meta .wp-block-post-author__avatar img {
	border-radius: 50%;
}

.nx-article__meta .wp-block-post-author__name {
	font-weight: 600;
	color: var(--nx-text);
}

.nx-article__image {
	margin-block: clamp(2rem, 1.5rem + 3vw, 4rem) !important;
}

.nx-article__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--nx-radius-lg);
}

.nx-prose {
	font-size: 1.125rem;
	line-height: 1.75;
}

.nx-prose > * + * {
	margin-block-start: 1.4rem;
}

.nx-prose :where(h2, h3, h4) {
	margin-block-start: 2.5rem;
	margin-block-end: 0;
}

.nx-prose :where(h2) {
	font-size: var(--wp--preset--font-size--x-large);
}

.nx-prose :where(h3) {
	font-size: 1.5rem;
}

.nx-prose :where(a) {
	text-underline-offset: 3px;
}

.nx-prose :where(ul, ol) {
	padding-left: 1.4rem;
}

.nx-prose :where(li + li) {
	margin-top: 0.4rem;
}

.nx-prose :where(img) {
	border-radius: var(--nx-radius-md);
}

.nx-prose :where(hr) {
	margin-block: 3rem;
}

.nx-article__foot {
	margin-top: clamp(3rem, 2rem + 4vw, 5rem);
}

.nx-article__foot > * + * {
	margin-block-start: 1.5rem;
}

.nx-article__foot .wp-block-post-terms a {
	display: inline-block;
	padding: 0.25rem 0.8rem;
	border: 1px solid var(--nx-border);
	border-radius: 999px;
	text-decoration: none;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--nx-text);
	background: var(--nx-surface);
	margin: 0 0.25rem 0.25rem 0;
}

.wp-block-post-navigation-link a {
	text-decoration: none;
	font-weight: 600;
}

.nx-comments {
	margin-top: 3.5rem;
}

.nx-comments > * + * {
	margin-block-start: 1.5rem;
}

.nx-comment {
	padding: 1.25rem 0;
	border-top: 1px solid var(--nx-border);
	font-size: var(--wp--preset--font-size--small);
}

.nx-comments :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
	width: 100%;
	border: 1px solid var(--nx-border);
	border-radius: var(--nx-radius-sm);
	background: var(--nx-surface);
	padding: 0.7rem 1rem;
	font: inherit;
	color: var(--nx-text);
}

.nx-comments input[type="submit"] {
	background: var(--nx-text);
	color: var(--nx-surface);
	border: 0;
	border-radius: 999px;
	padding: 0.8rem 1.6rem;
	font-weight: 600;
	cursor: pointer;
	min-height: 44px;
}

/* ---------- Footer ---------- */
footer.wp-block-template-part {
	background: var(--nx-surface);
	border-top: 1px solid var(--nx-border);
}

.nx-footer {
	max-width: calc(var(--nx-wide) + 2 * var(--wp--style--root--padding-left, 1.25rem)) !important;
	margin-inline: auto !important;
	box-sizing: border-box;
	padding: clamp(3rem, 2rem + 4vw, 5.5rem) var(--wp--style--root--padding-left, 1.25rem) 2rem;
}

.nx-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: clamp(2rem, 1rem + 3vw, 4rem);
}

.nx-footer__top > * {
	margin: 0;
}

.nx-footer__brand > * + * {
	margin-block-start: 1.25rem;
}

.nx-footer__blurb {
	color: var(--nx-muted);
	font-size: var(--wp--preset--font-size--small);
	max-width: 22rem;
	margin: 0;
}

.nx-social {
	gap: 0.25rem 0.9rem;
}

.wp-block-social-links.is-style-logos-only.nx-social .wp-social-link {
	color: var(--nx-muted);
}

.wp-block-social-links.is-style-logos-only.nx-social .wp-social-link:hover {
	color: var(--nx-accent);
}

.nx-social .wp-social-link a {
	padding: 0.5rem;
	color: inherit;
	transition: color var(--nx-ease);
}

.nx-social .wp-social-link a:hover {
	color: var(--nx-accent);
}

.nx-footer__col > * + * {
	margin-block-start: 1rem;
}

.nx-footer__title {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--nx-muted);
	margin: 0;
}

.nx-footer-nav {
	gap: 0.2rem;
	font-size: var(--wp--preset--font-size--small);
}

.nx-footer-nav .wp-block-navigation-item__content {
	display: inline-block;
	padding-block: 0.3rem;
	color: var(--nx-text);
	transition: color var(--nx-ease);
}

.nx-footer-nav .wp-block-navigation-item__content:hover {
	color: var(--nx-accent);
}

.nx-footer__bottom {
	margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--nx-border);
	gap: 0.75rem 2rem;
}

.nx-footer__legal {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--nx-muted);
	margin: 0;
}

/* ---------- Scroll-driven reveal (progressive enhancement, transform only) ---------- */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.nx-section__head,
		.nx-bento > *,
		.nx-plans > *,
		.nx-quotes > *,
		.nx-step,
		.nx-usecase,
		.nx-split,
		.nx-stat,
		.nx-banner,
		.nx-cta,
		.nx-post-grid > li {
			animation: nx-reveal linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 28%;
		}
	}
}

@keyframes nx-reveal {
	from {
		transform: translateY(26px);
	}
	to {
		transform: none;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.nx-bento {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nx-bento__a,
	.nx-bento__d {
		grid-column: span 2;
	}

	.nx-bento__b,
	.nx-bento__c {
		grid-column: span 1;
	}

	.nx-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.5rem 1.5rem;
	}

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

	.nx-footer__top {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.nx-footer__brand {
		grid-column: 1 / -1;
	}

	.nx-usecase {
		grid-template-columns: 3rem minmax(0, 1fr);
	}

	.nx-usecase__tags {
		grid-column: 2;
		justify-content: flex-start;
	}

	.wp-block-buttons > .wp-block-button.nx-hide-mobile {
		display: none;
	}
}

/* Matches the Navigation block's own "mobile" overlay breakpoint (600px). */
@media (max-width: 599px) {
	.nx-announce .nx-announce__tag {
		display: none;
	}

	.nx-header .nx-nav {
		order: 3;
		flex: 0 0 auto;
	}

	.nx-header .nx-header__cta {
		margin-left: auto;
	}
}

@media (max-width: 900px) {
	.nx-hero__top,
	.nx-split,
	.nx-integrations,
	.nx-faq {
		grid-template-columns: minmax(0, 1fr);
	}

	.nx-split--reverse .nx-split__media {
		order: 0;
	}

	.nx-faq__intro {
		position: static;
	}

	.nx-plans,
	.nx-quotes,
	.nx-values,
	.nx-grid--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.nx-plan__desc {
		min-height: 0;
	}

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

	.nx-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2rem 1.5rem;
	}

	.nx-bento__a,
	.nx-bento__d {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.nx-bento {
		grid-template-columns: minmax(0, 1fr);
	}

	.nx-bento__a,
	.nx-bento__d,
	.nx-bento__b,
	.nx-bento__c {
		grid-column: 1;
	}

	.nx-steps,
	.nx-post-grid,
	.nx-team {
		grid-template-columns: minmax(0, 1fr);
	}

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

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

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

	.nx-header {
		gap: 0.75rem;
	}

	.nx-header__cta .wp-block-button__link {
		padding: 0.65rem 1rem !important;
	}

	.nx-hero__top .wp-block-buttons,
	.nx-hero--centered .wp-block-buttons,
	.nx-banner .wp-block-buttons,
	.nx-cta .wp-block-buttons {
		width: 100%;
	}

	.nx-hero__top .wp-block-button,
	.nx-banner .wp-block-button,
	.nx-cta .wp-block-button {
		flex: 1 1 100%;
	}

	.nx-hero__top .wp-block-button__link,
	.nx-banner .wp-block-button__link,
	.nx-cta .wp-block-button__link {
		width: 100%;
	}

	.nx-search .wp-block-search__inside-wrapper {
		flex-direction: column;
	}

	.nx-search .wp-block-search__button {
		width: 100%;
	}

	.nx-stat {
		padding-left: 1rem;
	}

	.wp-block-image.is-style-nx-frame {
		padding-top: 1.9rem;
		border-radius: var(--nx-radius-md);
	}

	.wp-block-image.is-style-nx-frame::before {
		height: 1.9rem;
		background-size: 100% 100%;
	}
}

@media (max-width: 380px) {
	.nx-footer__top {
		grid-template-columns: minmax(0, 1fr);
	}

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


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

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	header.wp-block-template-part,
	.nx-announce,
	footer.wp-block-template-part {
		display: none;
	}
}

/* Full-width sections sit flush; each section owns its vertical rhythm. */
.nx-main > .alignfull,
.nx-main > .wp-block-post-content.alignfull {
	margin-block: 0;
}

/* Inner pages: the first section after the page head starts closer. */
.nx-page-head + .nx-section:not(.nx-section--surface):not(.nx-section--dark):not(.nx-section--soft) {
	padding-top: 0;
}
