/* ClickTraces – Connector Hub (ct-connector-hub)
 * Everything scales with the widget width (container units). Animations use only
 * transform/opacity (GPU); the dashed lines are drawn once and never repainted. */

.elementor-widget-ct-connector-hub {
	min-width: 0;
}

.ct-ch {
	--ch-line: #ffffff;
	--ch-line-h: #8a6dff;
	--ch-dot: #ffffff;
	--ch-pulse: #ffffff;
	--ch-pulse-glow: #7b57ff;
	--ch-pulse-s: 14;
	--ch-circle: 68;
	--ch-circle-icon: 47;
	--ch-circle-bg: #ffffff;
	--ch-circle-fg: #0a0a0a;
	--ch-plain: 38;
	--ch-plain-c: #ffffff;
	--ch-center-w: 18.24%;
	--ch-glow: #5d32ff;
	--ch-glow-size: 150%;
	--ch-glow-blur: 9;
	--ch-glow-o: 0.8;
	--ch-float: 4px;
	--ch-hover-scale: 1.08;
	position: relative;
	width: 544px;
	max-width: 100%;
	margin-right: auto;
	margin-left: auto;
	container-type: inline-size;
}

.ct-ch .ct-ch__stage {
	--ch-u: 1px;
	position: relative;
	width: 100%;
	aspect-ratio: var(--ch-ar, 1000 / 926.5);
}

@supports (width: 1cqw) {
	.ct-ch .ct-ch__stage {
		--ch-u: calc(100cqw / 544);
	}
}

/* ---------- Lines ---------- */

.ct-ch .ct-ch__svg {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.ct-ch .ct-ch__line {
	stroke: var(--ch-line);
	stroke-dashoffset: var(--ch-doff, 0);
	transition: stroke 0.35s ease;
}

.ct-ch .ct-ch__dot {
	fill: var(--ch-dot);
}

/* Lines are drawn from the logo outwards: "reverse" makes the dashes flow into the logo. */
.ct-ch--link-hover .ct-ch__line.is-hot {
	stroke: var(--ch-line-h);
	animation: ct-ch-march 0.9s linear infinite reverse;
}

.ct-ch--link-hover[data-dir="out"] .ct-ch__line.is-hot {
	animation-direction: normal;
}

@keyframes ct-ch-march {
	from {
		stroke-dashoffset: var(--ch-doff, 0);
	}

	to {
		stroke-dashoffset: calc(var(--ch-doff, 0px) - var(--ch-dsum, 20px));
	}
}

/* ---------- Light pulses (moved by JS with GPU transforms) ---------- */

.ct-ch .ct-ch__pulses {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.ct-ch .ct-ch__pulse {
	position: absolute;
	top: 0;
	left: 0;
	width: calc(var(--ch-pulse-s) * var(--ch-u));
	height: calc(var(--ch-pulse-s) * var(--ch-u));
	margin: calc(var(--ch-pulse-s) * var(--ch-u) * -0.5) 0 0 calc(var(--ch-pulse-s) * var(--ch-u) * -0.5);
	border-radius: 50%;
	background: radial-gradient(circle closest-side, var(--ch-pulse) 0, var(--ch-pulse) 24%, var(--ch-pulse-glow) 40%, transparent 100%);
	opacity: 0;
	will-change: transform, opacity;
}

/* ---------- Center logo + glow ---------- */

.ct-ch .ct-ch__center {
	position: absolute;
	z-index: 3;
	width: var(--ch-center-w);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.ct-ch .ct-ch__center-in {
	position: relative;
}

.ct-ch .ct-ch__media {
	position: relative;
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.ct-ch .ct-ch__glow {
	position: absolute;
	pointer-events: none;
	opacity: var(--ch-glow-o);
}

/* Follows the logo shape: a blurred copy sits behind the logo. */
.ct-ch .ct-ch__glow--edge {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.ct-ch .ct-ch__glow-img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
	filter: drop-shadow(0 0 calc(var(--ch-glow-blur) * 0.35 * var(--ch-u)) var(--ch-glow)) drop-shadow(0 0 calc(var(--ch-glow-blur) * var(--ch-u)) var(--ch-glow));
}

/* Soft round halo. */
.ct-ch .ct-ch__glow--circle {
	top: 50%;
	left: 50%;
	width: var(--ch-glow-size);
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
}

.ct-ch .ct-ch__glow--circle::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--ch-glow) 0, var(--ch-glow) 38%, transparent 100%);
}

.ct-ch--breathe .ct-ch__glow-img,
.ct-ch--breathe .ct-ch__glow--circle::before {
	animation: ct-ch-breathe 4.2s ease-in-out infinite;
}

@keyframes ct-ch-breathe {
	0%,
	100% {
		opacity: 0.7;
		transform: scale(0.97);
	}

	50% {
		opacity: 1;
		transform: scale(1.03);
	}
}

/* ---------- Nodes ---------- */

.ct-ch .ct-ch__node {
	position: absolute;
	z-index: 4;
	display: block;
	color: inherit;
	text-decoration: none;
	outline: none;
	transform: translate(-50%, -50%);
	-webkit-tap-highlight-color: transparent;
}

.ct-ch .ct-ch__node-float {
	display: block;
}

.ct-ch .ct-ch__node-in {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.ct-ch .ct-ch__node--circle .ct-ch__node-in {
	width: calc(var(--ch-circle) * var(--ch-u));
	height: calc(var(--ch-circle) * var(--ch-u));
	border-radius: 50%;
	background-color: var(--ch-circle-bg);
	color: var(--ch-circle-fg);
	font-size: calc(var(--ch-circle) * var(--ch-circle-icon) / 100 * var(--ch-u));
}

.ct-ch .ct-ch__node--plain .ct-ch__node-in {
	width: calc(var(--ch-plain) * var(--ch-u));
	height: calc(var(--ch-plain) * var(--ch-u));
	color: var(--ch-plain-c);
	font-size: calc(var(--ch-plain) * var(--ch-u));
}

.ct-ch .ct-ch__node-in svg {
	display: block;
	flex: 0 0 auto;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ct-ch .ct-ch__node-in i {
	display: block;
	font-size: 1em;
	line-height: 1;
}

.ct-ch .ct-ch__img {
	display: block;
	flex: 0 0 auto;
	width: 1em;
	max-width: none;
	height: 1em;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
}

.ct-ch .ct-ch__node:hover .ct-ch__node-in,
.ct-ch .ct-ch__node:focus-visible .ct-ch__node-in,
.ct-ch .ct-ch__node.is-hot .ct-ch__node-in {
	transform: scale(var(--ch-hover-scale));
}

.ct-ch .ct-ch__node--circle:hover .ct-ch__node-in,
.ct-ch .ct-ch__node--circle:focus-visible .ct-ch__node-in,
.ct-ch .ct-ch__node--circle.is-hot .ct-ch__node-in {
	background-color: var(--ch-circle-bg-h, var(--ch-circle-bg));
	color: var(--ch-circle-fg-h, #5d32ff);
}

.ct-ch .ct-ch__node--plain:hover .ct-ch__node-in,
.ct-ch .ct-ch__node--plain:focus-visible .ct-ch__node-in,
.ct-ch .ct-ch__node--plain.is-hot .ct-ch__node-in {
	color: var(--ch-plain-h, #8a6dff);
}

.ct-ch .ct-ch__node:focus-visible .ct-ch__node-in {
	box-shadow: 0 0 0 3px rgba(138, 109, 255, 0.75);
}

.ct-ch .ct-ch__node--plain:focus-visible .ct-ch__node-in {
	border-radius: 8px;
}

/* ---------- Floating (distance in em = --ch-float, so the GPU gets plain px) ---------- */

.ct-ch--float .ct-ch__node-float,
.ct-ch--float .ct-ch__center-in {
	font-size: var(--ch-float);
	animation: ct-ch-float 5.6s ease-in-out infinite;
}

.ct-ch--float .ct-ch__node-float {
	animation-delay: calc(var(--i, 0) * -0.73s);
}

.ct-ch--float .ct-ch__center-in {
	animation-duration: 6.4s;
}

@keyframes ct-ch-float {
	0%,
	100% {
		transform: translate3d(0, -1em, 0);
	}

	50% {
		transform: translate3d(0, 1em, 0);
	}
}

.ct-ch.is-paused .ct-ch__node-float,
.ct-ch.is-paused .ct-ch__center-in,
.ct-ch.is-paused .ct-ch__glow-img,
.ct-ch.is-paused .ct-ch__glow--circle::before,
.ct-ch.is-paused .ct-ch__line {
	animation-play-state: paused;
}

/* ---------- Reveal (only when the widget starts below the fold; armed by JS) ---------- */

.ct-ch.is-armed .ct-ch__center {
	transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-ch.is-armed .ct-ch__svg {
	transition: opacity 0.8s ease 0.3s;
}

.ct-ch.is-armed .ct-ch__pulses {
	transition: opacity 0.6s ease 1.1s;
}

.ct-ch.is-armed .ct-ch__node {
	transition: opacity 0.5s ease calc(0.35s + var(--i, 0) * 70ms), transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.35s + var(--i, 0) * 70ms);
}

.ct-ch.is-armed:not(.is-in) .ct-ch__center {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.6);
}

.ct-ch.is-armed:not(.is-in) .ct-ch__svg,
.ct-ch.is-armed:not(.is-in) .ct-ch__pulses {
	opacity: 0;
}

.ct-ch.is-armed:not(.is-in) .ct-ch__node {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.4);
}

.ct-ch.is-instant .ct-ch__center,
.ct-ch.is-instant .ct-ch__svg,
.ct-ch.is-instant .ct-ch__pulses,
.ct-ch.is-instant .ct-ch__node {
	transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.ct-ch .ct-ch__node-float,
	.ct-ch .ct-ch__center-in,
	.ct-ch .ct-ch__glow-img,
	.ct-ch .ct-ch__glow--circle::before,
	.ct-ch .ct-ch__line {
		animation: none !important;
	}

	.ct-ch .ct-ch__pulses {
		display: none;
	}
}
