/* Hero: المدار (orbit) ----------------------------------------------------- */
.hero--stacked .hero__grid { grid-template-columns: 1fr !important; }
.hero--stacked .hero__copy { justify-items: center; text-align: center; }
.hero--stacked .hero__actions, .hero--stacked .hero__assurances { justify-content: center; }

.orbit {
	--o-deep: #182B27;
	--o-line: var(--c-line-strong);
	position: relative;
	width: 100%;
	max-width: 1080px;
	margin-inline: auto;
	aspect-ratio: 1000 / 560;
}
.orbit__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit__ring { fill: none; stroke: var(--o-line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: .6 1.4; animation: ringFlow 40s linear infinite; }
.orbit__ring--inner { animation-direction: reverse; animation-duration: 28s; opacity: .7; }
.orbit__spoke { stroke: var(--o-line); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .6; }
.orbit__pulse {
	stroke: var(--borhan-mint);
	stroke-width: 3;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
	stroke-dasharray: 16 200;
	stroke-dashoffset: 16;
	opacity: 0;
}
.orbit__pulse.is-flow { opacity: 1; animation: pulseIn .9s cubic-bezier(.55, 0, .25, 1) forwards; }

/* Core */
.orbit__core {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	display: grid;
	justify-items: center;
	align-content: center;
	gap: 4px;
	width: clamp(150px, 19%, 210px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--o-deep);
	color: #F0ECE3;
	transform: translate(-50%, -50%);
	box-shadow: 0 30px 60px -24px rgba(24, 43, 39, .55), 0 0 0 10px rgba(158, 218, 208, .12);
}
.orbit__halo {
	position: absolute;
	inset: -10px;
	border-radius: 50%;
	border: 2px solid var(--borhan-mint);
	opacity: 0;
}
.orbit__core.is-hit .orbit__halo { animation: halo .9s var(--ease-out); }
.orbit__symbol { width: 44%; height: auto; animation: spin 60s linear infinite; }
.orbit__core-label { font-family: var(--f-display); font-weight: 700; font-size: clamp(.9rem, .7rem + .5vw, 1.15rem); margin-top: 6px; }
.orbit__count { font-size: 12px; color: #B9C4C0; }

/* Nodes */
.orbit__node {
	position: absolute;
	left: var(--x);
	top: var(--y);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 12px;
	width: max-content;
	max-width: 240px;
	white-space: nowrap;
	padding: 10px 14px 10px 18px;
	border-radius: 16px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	box-shadow: var(--shadow-md);
	transform: translate(-50%, -50%);
	transition: border-color .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .45s var(--ease-out);
}
.orbit__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--c-accent-soft); color: var(--c-ink); transition: background-color .35s, color .35s; }
.orbit__text strong { display: block; color: var(--c-ink); font-weight: 700; line-height: 1.3; }
.orbit__text small { display: block; color: var(--c-muted); font-size: 12px; line-height: 1.4; }
.orbit__check { display: grid; place-items: center; width: 20px; height: 20px; margin-inline-start: auto; border-radius: 50%; background: var(--borhan-mint); color: #182B27; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.orbit__node.is-active { border-color: var(--borhan-mint); box-shadow: 0 18px 40px -16px rgba(24, 43, 39, .4), 0 0 0 4px rgba(158, 218, 208, .25); transform: translate(-50%, -50%) scale(1.05); }
.orbit__node.is-active .orbit__icon { background: #182B27; color: var(--borhan-mint); }
.orbit__node.is-logged .orbit__check { opacity: 1; transform: none; }

.orbit__ticker {
	position: absolute;
	left: 50%;
	bottom: -8px;
	transform: translate(-50%, 100%);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	font-size: var(--fs-sm);
	color: var(--c-text);
	white-space: nowrap;
}
.orbit__ticker [data-orbit-ticker].is-in { animation: eventIn .5s var(--ease-out); display: inline-block; }
.demo-toggle--light { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line-strong); bottom: 0; inset-inline-end: 0; }
.hero--orbit { padding-bottom: clamp(5rem, 4rem + 4vw, 7rem); }

@keyframes ringFlow { to { stroke-dashoffset: -100; } }
@keyframes pulseIn { from { stroke-dashoffset: 16; } to { stroke-dashoffset: -100; } }
@keyframes halo { from { opacity: .9; transform: scale(.92); } to { opacity: 0; transform: scale(1.35); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 899.98px) {
	.orbit { aspect-ratio: auto; display: grid; gap: 16px; justify-items: center; }
	.orbit__svg { display: none; }
	.orbit__core { position: relative; left: auto; top: auto; transform: none; width: 168px; }
	.orbit__nodes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
	.orbit__node, .orbit__node.is-active { position: relative; left: auto; top: auto; transform: none; min-width: 0; padding: 10px; gap: 8px; }
	.orbit__icon { width: 34px; height: 34px; }
	.orbit__check { position: absolute; top: 6px; inset-inline-end: 6px; }
	.orbit__ticker { position: static; transform: none; white-space: normal; text-align: center; }
	.demo-toggle--light { position: static; }
}

.hero--stacked .hero__visual { display: block !important; }
@media (max-width: 899.98px) { .orbit__node, .orbit__node.is-active { width: auto; max-width: none; white-space: normal; } }
