/* ============================================================
   GeniusAI — Magic Solutions & Affiliate pages
   Matches the landing visual language (aurora, sparks, reveal)
   ============================================================ */

/* ---- page shell ---- */
body.is-inner .inner-main { position: relative; z-index: 1; }

.mx-hero {
	position: relative;
	padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 8vw, 110px);
	overflow: hidden;
}
.mx-hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}
.mx-hero-bg .aurora-1 {
	width: min(560px, 70vw); height: min(560px, 70vw);
	top: -240px; left: -6%;
	background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 68%);
}
.mx-hero-bg .aurora-2 {
	width: min(520px, 65vw); height: min(520px, 65vw);
	top: -180px; right: -8%;
	background: radial-gradient(circle, rgba(255, 78, 205, .2), transparent 68%);
}
.mx-hero-bg .aurora-3 {
	width: min(420px, 50vw); height: min(420px, 50vw);
	bottom: -120px; left: 35%;
	background: radial-gradient(circle, rgba(124, 92, 255, .18), transparent 70%);
}
.mx-hero .container { position: relative; z-index: 1; }

.mx-crumbs {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	font-size: 13px; color: var(--text-3); margin-bottom: clamp(28px, 4vw, 44px);
}
.mx-crumbs a { color: var(--text-2); transition: color .3s ease; }
.mx-crumbs a:hover { color: var(--magenta); }
.mx-crumbs-sep { opacity: .5; }
.mx-crumbs-now {
	color: var(--text-1);
	background: linear-gradient(90deg, #22d3ee, #7c5cff, #ff4ecd);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.mx-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(36px, 5vw, 72px);
	align-items: center;
}
.mx-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px 6px 10px; border-radius: 100px;
	border: 1px solid var(--border-strong);
	background: rgba(12, 14, 28, .72);
	font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
	text-transform: uppercase; color: var(--text-2); margin-bottom: 22px;
}
.mx-eyebrow svg {
	width: 14px; height: 14px; fill: url(#mxSparkG);
	animation: eyebrowSpark 2.6s ease-in-out infinite;
	transform-origin: center; transform-box: fill-box;
}
.mx-title {
	font-family: var(--font-display);
	font-size: clamp(34px, 3.4vw + 16px, 56px);
	font-weight: 700; letter-spacing: -.03em; line-height: 1.08;
	margin: 0 0 20px; color: var(--text-1);
}
.mx-title em {
	font-style: normal;
	background: var(--grad);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mx-lead {
	font-size: clamp(16px, 1vw + 12px, 18.5px);
	line-height: 1.65; color: var(--text-2);
	max-width: 34em; margin: 0 0 28px;
}
.mx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.mx-note { font-size: 13.5px; color: var(--text-3); margin: 14px 0 0; }

/* ---- hero stage (SVG + orbiting tiles) ---- */
.mx-stage {
	position: relative;
	aspect-ratio: 1;
	max-width: 520px;
	margin-inline: auto;
	isolation: isolate;
}
.mx-stage-svg {
	position: relative; z-index: 2;
	width: 100%; height: 100%;
	overflow: visible;
	filter: drop-shadow(0 0 40px rgba(124, 92, 255, .35));
}
.mx-stage-glow {
	position: absolute; inset: 8%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(124, 92, 255, .35), rgba(34, 211, 238, .12) 42%, transparent 68%);
	z-index: 0; pointer-events: none;
	animation: mxGlowPulse 5.5s ease-in-out infinite;
}
@keyframes mxGlowPulse {
	0%, 100% { transform: scale(1); opacity: .85; }
	50% { transform: scale(1.08); opacity: 1; }
}

.mx-orbit {
	position: absolute; inset: 0; z-index: 3; pointer-events: none;
}
.mx-tile {
	position: absolute;
	width: clamp(72px, 14vw, 108px);
	aspect-ratio: 1;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .18);
	box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .75), 0 0 24px rgba(124, 92, 255, .25);
	animation: mxTileFloat 7s ease-in-out infinite;
}
.mx-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mx-tile:nth-child(1) { top: 2%; left: -4%; animation-delay: 0s; }
.mx-tile:nth-child(2) { top: 6%; right: -6%; width: clamp(64px, 12vw, 92px); animation-delay: -1.8s; }
.mx-tile:nth-child(3) { bottom: 8%; left: -8%; width: clamp(60px, 11vw, 88px); animation-delay: -3.4s; }
.mx-tile:nth-child(4) { bottom: 2%; right: -2%; animation-delay: -5s; }
@keyframes mxTileFloat {
	0%, 100% { transform: translateY(-8px) rotate(var(--tilt, -4deg)); }
	50% { transform: translateY(10px) rotate(calc(var(--tilt, -4deg) * -1)); }
}
.mx-stage.is-in .mx-tile {
	animation: mxTileIn .9s cubic-bezier(.2, .8, .25, 1) both, mxTileFloat 7s ease-in-out infinite;
}
.mx-stage.is-in .mx-tile:nth-child(1) { animation-delay: .05s, 0s; }
.mx-stage.is-in .mx-tile:nth-child(2) { animation-delay: .15s, -1.8s; }
.mx-stage.is-in .mx-tile:nth-child(3) { animation-delay: .25s, -3.4s; }
.mx-stage.is-in .mx-tile:nth-child(4) { animation-delay: .35s, -5s; }
@keyframes mxTileIn {
	from { opacity: 0; transform: scale(.6) translateY(24px); }
	to { opacity: 1; }
}

/* SVG motif shared animations — rich living art */
.mx-stage-svg { overflow: visible; }
.sa-orbit { fill: none; transform-origin: 180px 180px; }
.sa-orbit-a { animation: saSpin 22s linear infinite; }
.sa-orbit-b { animation: saSpin 36s linear infinite reverse; }
@keyframes saSpin { to { transform: rotate(360deg); } }

.sa-pulse {
	fill: none; stroke: url(#saG); stroke-width: 1.6; opacity: 0;
	transform-origin: 180px 180px;
	animation: saPulse 3.8s ease-out infinite;
}
.sa-pulse-2 { animation-delay: 1.25s; }
.sa-pulse-3 { animation-delay: 2.5s; }
@keyframes saPulse {
	0% { opacity: .65; transform: scale(.55); }
	100% { opacity: 0; transform: scale(1.45); }
}

.sa-halo { animation: mxGlowPulse 5s ease-in-out infinite; transform-origin: 180px 180px; }

.sa-spark {
	transform-origin: 180px 180px;
	animation: eyebrowSpark 2.8s ease-in-out infinite, saSparkHue 7s ease-in-out infinite;
}
@keyframes saSparkHue {
	0%, 100% { filter: hue-rotate(-20deg); }
	50% { filter: hue-rotate(28deg); }
}
.sa-mini {
	transform-origin: 228px 214px;
	animation: saMini 2.8s ease-in-out infinite;
}
@keyframes saMini {
	0%, 100% { opacity: 1; transform: scale(1); }
	45% { opacity: .35; transform: scale(.4); }
}

.sa-dot {
	fill: var(--c, #fff);
	filter: drop-shadow(0 0 6px var(--c, #fff));
	animation: saBlink 2.6s ease-in-out infinite;
	animation-delay: calc(var(--i, 0) * .18s);
}
.sa-dot-ring {
	animation: saRingPop 2.8s ease-in-out infinite;
	animation-delay: calc(var(--i, 0) * .18s);
	transform-origin: center;
	transform-box: fill-box;
}
@keyframes saBlink { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes saRingPop {
	0%, 100% { opacity: .25; transform: scale(.85); }
	50% { opacity: .7; transform: scale(1.15); }
}

.sa-wave {
	fill: none;
	stroke-dasharray: 8 12;
	animation: saDash 2.2s linear infinite;
}
.sa-arc {
	fill: none;
	animation: saArcPulse 2.4s ease-in-out infinite;
}
@keyframes saDash { to { stroke-dashoffset: -40; } }
@keyframes saArcPulse {
	0%, 100% { opacity: .35; }
	50% { opacity: 1; }
}

.sa-d1 { animation-delay: .35s !important; }
.sa-d2 { animation-delay: .7s !important; }
.sa-d3 { animation-delay: 1.05s !important; }
.sa-d4 { animation-delay: 1.4s !important; }
.sa-d5 { animation-delay: 1.75s !important; }

.sa-pkt {
	animation: saPacket 3.6s ease-in-out infinite;
	transform-box: fill-box; transform-origin: center;
}
@keyframes saPacket {
	0%, 100% { opacity: .3; transform: translate(0, 0) scale(.8); }
	40% { opacity: 1; transform: translate(18px, -10px) scale(1); }
	70% { opacity: .5; transform: translate(36px, -4px) scale(.7); }
}

.sa-wheel { transform-origin: 180px 180px; animation: saSpin 28s linear infinite; }
.sa-bezier {
	animation: saDash 1.8s linear infinite;
}
.sa-handle { animation: saBlink 2.4s ease-in-out infinite; }
.sa-swatch {
	animation: saSwatch 3.2s ease-in-out infinite;
	transform-box: fill-box; transform-origin: center;
	filter: drop-shadow(0 0 8px currentColor);
}
@keyframes saSwatch {
	0%, 100% { transform: translateX(0) scale(1); }
	50% { transform: translateX(-4px) scale(1.08); }
}

.sa-board-back, .sa-board-mid, .sa-board-front {
	transform-box: fill-box; transform-origin: center;
}
.sa-board-back { animation: saBoardFloat 5.5s ease-in-out infinite; }
.sa-board-mid { animation: saBoardFloat 5.5s ease-in-out infinite reverse; animation-delay: .4s; }
.sa-board-front { animation: saBoardFront 4.8s ease-in-out infinite; }
@keyframes saBoardFloat {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(0, -5px); }
}
@keyframes saBoardFront {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-3px); }
}
.sa-poster-spark {
	transform-origin: 192px 145px;
	animation: eyebrowSpark 2.8s ease-in-out infinite, saSparkHue 7s ease-in-out infinite;
}
.sa-stroke {
	stroke-dasharray: 120; stroke-dashoffset: 120;
	animation: saStrokeDraw 3.4s ease-in-out infinite;
}
@keyframes saStrokeDraw {
	0%, 12% { stroke-dashoffset: 120; opacity: .3; }
	45%, 100% { stroke-dashoffset: 0; opacity: .7; }
}

.sa-aperture { transform-origin: 180px 180px; animation: saSpin 18s linear infinite; }
.sa-blade {
	animation: saBlade 4s ease-in-out infinite;
	animation-delay: calc(var(--i, 0) * .12s);
	transform-origin: 180px 180px;
}
@keyframes saBlade {
	0%, 100% { opacity: .35; }
	50% { opacity: .85; }
}
.sa-iris { animation: saIris 3.5s ease-in-out infinite; transform-origin: 168px 188px; }
@keyframes saIris {
	0%, 100% { transform: scale(1); opacity: .35; }
	50% { transform: scale(1.18); opacity: .65; }
}
.sa-focus { animation: saFocus 2.8s ease-in-out infinite; }
@keyframes saFocus {
	0%, 100% { opacity: .4; }
	50% { opacity: 1; }
}
.sa-lens-outer { animation: saSpin 22s linear infinite; transform-origin: 168px 188px; stroke-dasharray: 8 14; }
.sa-lens-mid { animation: saSpin 16s linear infinite reverse; transform-origin: 168px 188px; stroke-dasharray: 4 10; }
.sa-shutter { animation: saShutter 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes saShutter {
	0%, 100% { transform: rotate(0deg) scale(1); opacity: .55; }
	50% { transform: rotate(45deg) scale(.72); opacity: .9; }
}
.sa-ray {
	animation: saRay 2.6s ease-in-out infinite;
	stroke-dasharray: 6 8;
}
@keyframes saRay {
	0%, 100% { opacity: .25; }
	50% { opacity: 1; }
}
.sa-blink { animation: saBlink 1.6s steps(1) infinite; }
.sa-film { animation: saFilm 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes saFilm {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}

.sa-iso {
	stroke-dasharray: 280;
	stroke-dashoffset: 280;
}
.mx-stage.is-in .sa-iso {
	animation: saDraw 1.5s var(--ease-out) forwards;
}
.mx-stage.is-in .sa-iso.sa-d1 { animation-delay: .18s; }
.mx-stage.is-in .sa-iso.sa-d2 { animation-delay: .36s; }
@keyframes saDraw { to { stroke-dashoffset: 0; } }
.sa-win {
	animation: saBlink 2.2s ease-in-out infinite;
}
.sa-link {
	animation: saDash 2.6s linear infinite;
}

.mx-aff-pct {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 4;
	width: 22%;
	height: 22%;
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	pointer-events: none;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(14px, 2.4vw, 20px);
	letter-spacing: -.03em;
	line-height: 1;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 0 12px rgba(124, 92, 255, .55));
}

/* ---- Made with GeniusAI — bento showcase ---- */
.mx-made { position: relative; padding: clamp(64px, 9vw, 120px) 0; overflow: hidden; }
.mx-made::before {
	content: ""; position: absolute; inset: 10% 0 auto; height: 50%;
	background: radial-gradient(50% 80% at 50% 0%, rgba(124, 92, 255, .12), transparent 70%);
	pointer-events: none;
}
.mx-bento {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 14px;
	min-height: clamp(420px, 52vw, 560px);
}
.mx-bento-card {
	position: relative;
	margin: 0;
	border-radius: clamp(16px, 2vw, 22px);
	overflow: hidden;
	border: 1px solid var(--border);
	background: #0a0b16;
	isolation: isolate;
	min-height: 0;
	transition: transform .55s var(--ease-out), border-color .35s ease, box-shadow .55s ease;
}
.mx-bento-card img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform 1.1s var(--ease-out), filter .5s ease;
}
.mx-bento-card:nth-child(1) {
	grid-column: 1;
	grid-row: 1 / 3;
}
.mx-bento-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.mx-bento-card:nth-child(3) { grid-column: 3; grid-row: 1; }
.mx-bento-card:nth-child(4) { grid-column: 2; grid-row: 2; }
.mx-bento-card:nth-child(5) { grid-column: 3; grid-row: 2; }

.mx-bento-veil {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(5, 6, 14, .85) 100%);
	pointer-events: none;
	opacity: .85;
	transition: opacity .4s ease;
}
.mx-bento-meta {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 18px 18px 16px;
	z-index: 2;
}
.mx-bento-prompt {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 12.5px; color: var(--text-2);
	font-family: var(--font-mono, var(--font-body));
	letter-spacing: .01em;
}
.mx-bento-prompt i {
	color: var(--cyan); font-style: normal; font-weight: 700;
}
.mx-bento-card::after {
	content: ""; position: absolute; inset: 0;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
	border-radius: inherit; pointer-events: none;
}
.mx-bento-card:hover {
	transform: translateY(-6px);
	border-color: rgba(255, 78, 205, .4);
	box-shadow: 0 30px 60px -22px rgba(124, 92, 255, .5);
}
.mx-bento-card:hover img { transform: scale(1.07); }
.mx-bento-card:hover .mx-bento-veil { opacity: 1; }

.mx-bento-spark {
	position: absolute; top: 14px; right: 14px; z-index: 2;
	width: 28px; height: 28px; opacity: 0;
	transition: opacity .35s ease, transform .45s var(--ease-spring);
	transform: scale(.6) rotate(-20deg);
}
.mx-bento-spark svg { width: 100%; height: 100%; fill: url(#mxSparkG); filter: drop-shadow(0 0 8px rgba(124,92,255,.8)); }
.mx-bento-card:hover .mx-bento-spark { opacity: 1; transform: none; }

@media (max-width: 900px) {
	.mx-bento {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
		min-height: 0;
	}
	.mx-bento-card:nth-child(1) {
		grid-column: 1 / -1;
		grid-row: auto;
		min-height: 300px;
	}
	.mx-bento-card:nth-child(2),
	.mx-bento-card:nth-child(3),
	.mx-bento-card:nth-child(4),
	.mx-bento-card:nth-child(5) {
		grid-column: auto;
		grid-row: auto;
		min-height: 200px;
	}
}
@media (max-width: 560px) {
	.mx-bento { grid-template-columns: 1fr; }
	.mx-bento-card:nth-child(n) {
		grid-column: auto;
		grid-row: auto;
		min-height: 220px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sa-orbit-a, .sa-orbit-b, .sa-pulse, .sa-spark, .sa-mini, .sa-dot, .sa-dot-ring,
	.sa-wave, .sa-arc, .sa-pkt, .sa-wheel, .sa-blade, .sa-iris, .sa-focus, .sa-win,
	.sa-link, .sa-swatch, .sa-aperture, .sa-halo, .sa-board-back, .sa-board-mid, .sa-board-front,
	.sa-poster-spark, .sa-stroke, .sa-lens-outer, .sa-lens-mid, .sa-shutter, .sa-ray, .sa-blink, .sa-film {
		animation: none !important;
	}
	.sa-stroke { stroke-dashoffset: 0; }
	.sa-iso { stroke-dashoffset: 0; }
}
.mx-stats {
	position: relative;
	padding: clamp(40px, 6vw, 72px) 0;
	border-block: 1px solid var(--border);
	background:
		radial-gradient(55% 120% at 50% 0%, rgba(124, 92, 255, .08), transparent 70%),
		rgba(5, 6, 14, .4);
}
.mx-stats-intro {
	text-align: center; font-size: clamp(16px, 1.2vw + 12px, 19px);
	color: var(--text-1); max-width: 640px; margin: 0 auto 36px; line-height: 1.5;
}
.mx-stats-grid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.mx-stat {
	position: relative;
	text-align: center;
	padding: 28px 20px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	background: linear-gradient(180deg, rgba(18, 20, 40, .9), rgba(8, 9, 20, .92));
	overflow: hidden;
	transition: border-color .35s ease, transform .4s var(--ease-out);
}
.mx-stat::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(120px 80px at 50% 0%, rgba(124, 92, 255, .18), transparent 70%);
	pointer-events: none;
}
.mx-stat:hover { border-color: rgba(124, 92, 255, .45); transform: translateY(-4px); }
.mx-stat b {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(32px, 3vw + 12px, 48px);
	font-weight: 700; letter-spacing: -.02em;
	background: var(--grad);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	margin-bottom: 8px; position: relative;
}
.mx-stat span { font-size: 14.5px; color: var(--text-2); position: relative; }

/* ---- features ---- */
.mx-section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.mx-section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.mx-section-head .mx-eyebrow { margin-bottom: 16px; }
.mx-section-head h2 {
	font-family: var(--font-display);
	font-size: clamp(28px, 2.4vw + 14px, 42px);
	letter-spacing: -.025em; margin: 0 0 14px;
}
.mx-section-head h2 em {
	font-style: normal; background: var(--grad);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mx-section-head p { font-size: 16.5px; color: var(--text-2); line-height: 1.7; margin: 0; }

.mx-feats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}
.mx-feat {
	position: relative;
	padding: 28px 26px 30px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	background: rgb(5, 6, 14);
	overflow: hidden;
	transition: border-color .35s ease, transform .45s var(--ease-out), box-shadow .45s ease;
}
.mx-feat::before {
	content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
	background: var(--feat-hue, var(--grad));
	opacity: .85;
}
.mx-feat:hover {
	border-color: rgba(124, 92, 255, .4);
	transform: translateY(-6px);
	box-shadow: 0 28px 60px -24px rgba(124, 92, 255, .35);
}
.mx-feat-icon {
	width: 56px; height: 56px; margin-bottom: 18px;
	display: grid; place-items: center;
}
.mx-feat-icon svg { width: 100%; height: 100%; overflow: visible; }
.mx-feat h3 {
	font-family: var(--font-display); font-size: 19px;
	margin: 0 0 10px; letter-spacing: -.015em;
}
.mx-feat p { font-size: 14.5px; color: var(--text-2); line-height: 1.65; margin: 0; }

/* ---- flow / process ---- */
.mx-flow {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	position: relative;
}
.mx-flow-card {
	position: relative;
	padding: 26px 20px 28px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	background: linear-gradient(165deg, rgba(18, 20, 42, .95), rgba(5, 6, 14, .98));
	text-align: center;
	transition: transform .4s var(--ease-out), border-color .35s ease;
}
.mx-flow-card:hover { transform: translateY(-6px); border-color: rgba(255, 78, 205, .35); }
.mx-flow-num {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 28px; padding: 0 10px; margin-bottom: 16px;
	border-radius: 100px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
	background: rgba(124, 92, 255, .15); color: #c4b5ff;
	border: 1px solid rgba(124, 92, 255, .35);
}
.mx-flow-art {
	width: 80px; height: 80px; margin: 0 auto 16px;
}
/* ============================================================
   ICON SYSTEM (.si-*) — one vocabulary for both icon families:
   feature cards draw in a 56 box, flow steps in a 72 box. Every
   animation runs off transform-box: fill-box, so the same class
   behaves identically in either box. Reveal animations rely on
   pathLength="100" in the markup: that is what lets a single dash
   length uncover any path at the same rate.
   ============================================================ */
.mx-flow-art svg,
.si-ico { width: 100%; height: 100%; overflow: visible; }

/* --- backdrop --- */
.si-plate {
	transition: fill .4s ease, transform .5s var(--ease-out);
	transform-box: fill-box; transform-origin: center;
}
.si-plate-line { fill: none; stroke: url(#mxG); stroke-width: 1; opacity: .3; transition: opacity .35s ease; }
.si-plate-ring { fill: none; stroke: url(#mxG); stroke-width: 1; stroke-dasharray: 3 9; opacity: .32; }
.mx-feat:hover .si-plate,
.mx-flow-card:hover .si-plate { transform: scale(1.06); }
.mx-feat:hover .si-plate-line { opacity: .6; }

/* --- strokes & fills --- */
.si-line {
	fill: none; stroke: url(#mxG); stroke-width: 2.2;
	stroke-linecap: round; stroke-linejoin: round;
}
.si-thin { stroke-width: 1.6; }
.si-dim { opacity: .45; }
.si-fill { fill: url(#mxG); }
.si-fill-2 { fill: url(#mxG2); }
.si-glass { fill: url(#mxG); opacity: .13; }
.si-brush {
	fill: none; stroke: url(#mxG); stroke-width: 6;
	stroke-linecap: round; opacity: .85;
	filter: drop-shadow(0 0 8px rgba(124, 92, 255, .45));
}

/* --- drawn & marching lines --- */
.si-draw {
	stroke-dasharray: 100; stroke-dashoffset: 100;
	animation: siDraw 3.2s ease-in-out infinite;
}
@keyframes siDraw {
	0%, 8% { stroke-dashoffset: 100; }
	45%, 100% { stroke-dashoffset: 0; }
}
.si-dash { stroke-dasharray: 5 7; animation: siDash 2s linear infinite; }
@keyframes siDash { to { stroke-dashoffset: -24; } }

/* --- nodes, sparks, motes --- */
.si-node {
	fill: url(#mxG);
	filter: drop-shadow(0 0 5px rgba(124, 92, 255, .7));
	animation: siPulse 2.4s ease-in-out infinite;
	transform-box: fill-box; transform-origin: center;
}
@keyframes siPulse {
	0%, 100% { transform: scale(1); opacity: .8; }
	50% { transform: scale(1.15); opacity: 1; }
}
.si-hi { filter: drop-shadow(0 0 11px rgba(34, 211, 238, .85)); }

.si-spark {
	fill: url(#mxG);
	filter: drop-shadow(0 0 7px rgba(124, 92, 255, .55));
	animation: siSpark 2.8s ease-in-out infinite;
	transform-box: fill-box; transform-origin: center;
}
@keyframes siSpark {
	0%, 100% { transform: scale(.88) rotate(0deg); opacity: .72; }
	50% { transform: scale(1.08) rotate(10deg); opacity: 1; }
}
.si-spark-hot { filter: drop-shadow(0 0 12px rgba(255, 78, 205, .7)); }

.si-dot {
	fill: #ff4ecd;
	animation: siFloat 2.8s ease-in-out infinite;
	transform-box: fill-box; transform-origin: center;
}
@keyframes siFloat {
	0%, 100% { transform: translateY(0); opacity: .5; }
	50% { transform: translateY(-4px); opacity: 1; }
}
.si-blink { fill: #22d3ee; animation: siBlink 1.6s steps(1) infinite; }
@keyframes siBlink { 50% { opacity: .18; } }

/* --- swatches & materials --- */
.si-sw {
	animation: siPulse 2.6s ease-in-out infinite;
	transform-box: fill-box; transform-origin: center;
}
.si-sw-c { fill: #22d3ee; filter: drop-shadow(0 0 6px rgba(34, 211, 238, .6)); }
.si-sw-m { fill: #ff4ecd; filter: drop-shadow(0 0 6px rgba(255, 78, 205, .6)); }
.si-sw-a { fill: #ffb648; filter: drop-shadow(0 0 6px rgba(255, 182, 72, .6)); }
.si-mat { animation: siMat 3.4s ease-in-out infinite; }
.si-mat-c { fill: rgba(34, 211, 238, .2); }
.si-mat-a { fill: rgba(255, 182, 72, .2); animation-delay: .35s; }
.si-mat-m { fill: rgba(255, 78, 205, .2); animation-delay: .7s; }
@keyframes siMat { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* --- motion --- */
.si-spin { animation: siSpin 16s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes siSpin { to { transform: rotate(360deg); } }

.si-rise { animation: siRise 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes siRise {
	0%, 100% { transform: translateY(1.5px); }
	50% { transform: translateY(-2.5px); }
}
.si-sweep { animation: siSweep 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes siSweep {
	0%, 100% { transform: translateX(-3px); }
	50% { transform: translateX(3px); }
}
.si-grow { animation: siGrow 3s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
@keyframes siGrow {
	0%, 100% { transform: scaleY(.9); }
	50% { transform: scaleY(1); }
}
.si-zoom { animation: siZoom 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes siZoom {
	0%, 100% { transform: scale(.92); }
	50% { transform: scale(1.1); }
}
.si-iris { animation: siIris 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes siIris {
	0%, 100% { transform: scale(1); opacity: .5; }
	50% { transform: scale(.74); opacity: .95; }
}

/* stagger — declared last so it wins over the animation shorthands above */
.si-1 { animation-delay: .28s; }
.si-2 { animation-delay: .56s; }

.mx-feat:hover .si-spark,
.mx-flow-card:hover .si-spark { animation-duration: 1.5s; }

@media (prefers-reduced-motion: reduce) {
	.si-draw, .si-dash, .si-node, .si-spark, .si-dot, .si-blink, .si-sw, .si-mat,
	.si-spin, .si-rise, .si-sweep, .si-grow, .si-zoom, .si-iris {
		animation: none !important;
	}
	.si-draw { stroke-dashoffset: 0; }
}
.mx-flow-card h3 {
	font-family: var(--font-display); font-size: 16.5px;
	margin: 0 0 8px; letter-spacing: -.01em;
}
.mx-flow-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; margin: 0; }

/* connector sparks between flow cards (desktop) */
.mx-flow-card:not(:last-child)::after {
	content: "";
	position: absolute; top: 58px; right: -12px; z-index: 2;
	width: 24px; height: 2px;
	background: linear-gradient(90deg, rgba(124, 92, 255, .6), rgba(255, 78, 205, .6));
	box-shadow: 0 0 10px rgba(124, 92, 255, .5);
}
.mx-flow-card:not(:last-child)::before {
	content: "";
	position: absolute; top: 54px; right: -4px; z-index: 3;
	width: 8px; height: 8px; border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 12px #7c5cff;
	animation: mxNodeBlink 1.8s ease-in-out infinite;
}

/* ---- gallery ---- */
.mx-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.mx-shot {
	position: relative;
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	background: #0a0b16;
	aspect-ratio: 1;
	transition: transform .55s var(--ease-out), border-color .35s ease, box-shadow .55s ease;
}
.mx-shot:nth-child(2), .mx-shot:nth-child(5) { aspect-ratio: 4/5; }
.mx-shot img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform 1s var(--ease-out), filter .6s ease;
}
.mx-shot-glow {
	position: absolute; inset: 0; pointer-events: none; opacity: 0;
	background: radial-gradient(60% 50% at 50% 100%, rgba(124, 92, 255, .35), transparent 70%);
	transition: opacity .45s ease;
}
.mx-shot-cap {
	position: absolute; left: 12px; right: 12px; bottom: 12px;
	padding: 8px 12px; border-radius: 10px;
	background: rgba(5, 6, 14, .72); backdrop-filter: blur(8px);
	font-size: 12px; color: var(--text-2);
	opacity: 0; transform: translateY(8px);
	transition: opacity .4s ease, transform .4s ease;
}
.mx-shot:hover {
	transform: translateY(-8px);
	border-color: rgba(255, 78, 205, .4);
	box-shadow: 0 28px 56px -20px rgba(124, 92, 255, .45);
}
.mx-shot:hover img { transform: scale(1.08); }
.mx-shot:hover .mx-shot-glow { opacity: 1; }
.mx-shot:hover .mx-shot-cap { opacity: 1; transform: none; }

/* ---- affiliate specifics ---- */
.mx-aff-hero .mx-stage { max-width: 480px; }
.mx-payout {
	display: inline-flex; align-items: baseline; gap: 6px;
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(42px, 5vw, 64px); letter-spacing: -.03em;
	background: var(--grad);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mx-payout small {
	font-size: .42em; -webkit-text-fill-color: var(--text-2);
	font-weight: 600; letter-spacing: 0;
}

.mx-faq {
	max-width: 760px; margin: 0 auto;
	display: flex; flex-direction: column; gap: 10px;
}
.mx-faq-item {
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: rgb(5, 6, 14);
	overflow: hidden;
	transition: border-color .3s ease;
}
.mx-faq-item[open] { border-color: rgba(124, 92, 255, .4); }
.mx-faq-item summary {
	list-style: none; cursor: pointer;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 20px;
	font-family: var(--font-display); font-size: 16px; font-weight: 600;
	color: var(--text-1);
}
.mx-faq-item summary::-webkit-details-marker { display: none; }
.mx-faq-item summary:hover { color: var(--magenta); }
.mx-faq-tog {
	flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
	display: grid; place-items: center;
	border: 1px solid var(--border-strong);
	color: var(--text-2); transition: transform .35s ease, color .3s ease, border-color .3s ease;
}
.mx-faq-tog svg { width: 14px; height: 14px; }
.mx-faq-item[open] .mx-faq-tog {
	transform: rotate(45deg); color: var(--violet);
	border-color: rgba(124, 92, 255, .5);
}
.mx-faq-body { padding: 0 20px 20px; }
.mx-faq-body p { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.7; }
.mx-faq-body a { color: var(--cyan); }

/* split media block */
.mx-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
}
.mx-split-media {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--border-strong);
	aspect-ratio: 4/3;
}
.mx-split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mx-split-media::after {
	content: ""; position: absolute; inset: 0;
	box-shadow: inset 0 0 80px rgba(124, 92, 255, .25);
	pointer-events: none;
}
.mx-split-media::before {
	content: ""; position: absolute; inset: -20%;
	background: conic-gradient(from 120deg, transparent, rgba(34,211,238,.2), transparent 40%, rgba(255,78,205,.2), transparent 70%);
	animation: saSpin 18s linear infinite;
	z-index: -1;
}

/* ---- responsive ---- */
@media (max-width: 980px) {
	.mx-hero-grid { grid-template-columns: 1fr; gap: 40px; }
	.mx-stage { max-width: 400px; }
	.mx-flow { grid-template-columns: 1fr 1fr; }
	.mx-flow-card:not(:last-child)::after,
	.mx-flow-card:not(:last-child)::before { display: none; }
	.mx-split { grid-template-columns: 1fr; }
	.mx-split-media { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (max-width: 720px) {
	.mx-feats { grid-template-columns: 1fr; }
	.mx-stats-grid { grid-template-columns: 1fr; }
	.mx-gallery { grid-template-columns: 1fr 1fr; }
	.mx-shot:nth-child(2), .mx-shot:nth-child(5) { aspect-ratio: 1; }
	.mx-tile { width: 64px; border-radius: 14px; }
}
@media (max-width: 560px) {
	.mx-flow { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
	.mx-gallery { grid-template-columns: 1fr; }
	.mx-actions { flex-direction: column; align-items: stretch; }
	.mx-actions .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.mx-ring-a, .mx-ring-b, .mx-ring-c, .mx-pulse, .mx-beam, .mx-blade,
	.mx-tile, .mx-stage-glow, .mx-core-spark, .mx-coin, .mx-node,
	.mx-split-media::before { animation: none !important; }
	.mx-iso { stroke-dashoffset: 0; }
}
