/**
 * Welcome / onboarding — Blockora Morph brand stage.
 */

.joc-blockora-morph-app .bm-welcome {
	position: relative;
	display: flex;
	min-height: 100vh;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 3rem 1.5rem;
	font-family: var(--bm-font-sans);
	color: #eef0ff;
	background: #1a1548;
}

.joc-blockora-morph-app .bm-welcome__atmosphere {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 90% 70% at 12% -10%, rgba(70, 72, 212, 0.55), transparent 58%),
		radial-gradient(ellipse 70% 55% at 92% 108%, rgba(53, 37, 205, 0.9), transparent 52%),
		linear-gradient(165deg, #2a2180 0%, #1a1548 42%, #0f0a2e 100%);
	animation: bm-welcome-atmosphere 14s var(--bm-ease) infinite alternate;
}

.joc-blockora-morph-app .bm-welcome__cursor-glow {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	opacity: 0;
	transition: opacity 0.45s var(--bm-ease);
	background: radial-gradient(
		circle 280px at var(--bm-glow-x, 50%) var(--bm-glow-y, 40%),
		rgba(195, 192, 255, 0.38) 0%,
		rgba(79, 70, 229, 0.22) 28%,
		rgba(53, 37, 205, 0.08) 52%,
		transparent 72%
	);
	mix-blend-mode: screen;
}

.joc-blockora-morph-app .bm-welcome__cursor-glow.is-active {
	opacity: 1;
}

.joc-blockora-morph-app .bm-welcome__grid {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.18;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

.joc-blockora-morph-app .bm-welcome__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(40px);
	pointer-events: none;
}

.joc-blockora-morph-app .bm-welcome__orb--a {
	top: 12%;
	right: 14%;
	width: min(28vw, 280px);
	height: min(28vw, 280px);
	background: rgba(195, 192, 255, 0.22);
	animation: bm-welcome-orb 10s ease-in-out infinite alternate;
}

.joc-blockora-morph-app .bm-welcome__orb--b {
	bottom: 8%;
	left: 8%;
	width: min(34vw, 340px);
	height: min(34vw, 340px);
	background: rgba(0, 88, 145, 0.35);
	animation: bm-welcome-orb 12s ease-in-out infinite alternate-reverse;
}

.joc-blockora-morph-app .bm-welcome__stage {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 40rem;
	text-align: center;
	animation: bm-welcome-rise 0.7s var(--bm-ease) both;
}

.joc-blockora-morph-app .bm-welcome__logo-wrap {
	--bm-welcome-logo-size: min(10.5rem, 40vw);
	position: relative;
	display: grid;
	place-items: center;
	width: var(--bm-welcome-logo-size);
	height: var(--bm-welcome-logo-size);
	margin: 0 auto 2rem;
	animation: bm-welcome-mark 0.8s var(--bm-ease) 0.1s both;
}

.joc-blockora-morph-app .bm-welcome__logo {
	position: relative;
	z-index: 2;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 14%;
	box-sizing: border-box;
	border-radius: 50%;
	object-fit: contain;
	background: #fff;
	box-shadow:
		0 14px 34px -12px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.joc-blockora-morph-app .bm-welcome__logo-ring {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.55);
	pointer-events: none;
	opacity: 0;
	transform: scale(1);
	animation: bm-welcome-ripple 2.8s var(--bm-ease) infinite;
}

.joc-blockora-morph-app .bm-welcome__logo-ring--1 {
	animation-delay: 0s;
}

.joc-blockora-morph-app .bm-welcome__logo-ring--2 {
	animation-delay: 0.9s;
}

.joc-blockora-morph-app .bm-welcome__logo-ring--3 {
	animation-delay: 1.8s;
}

.joc-blockora-morph-app .bm-welcome__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 1.25rem;
	border-radius: 0.85rem;
	color: #fff;
	background: linear-gradient(145deg, #c3c0ff 0%, #4f46e5 48%, #3525cd 100%);
	box-shadow:
		0 12px 28px -10px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.28);
	animation: bm-welcome-mark 0.8s var(--bm-ease) 0.1s both;
}

.joc-blockora-morph-app .bm-welcome__mark .dashicons {
	font-size: 1.5rem;
	width: 1.5rem;
	height: 1.5rem;
	line-height: 1;
}

.joc-blockora-morph-app .bm-welcome__brand {
	margin: 0 0 1.5rem;
	font-size: clamp(2.15rem, 5.5vw, 3.35rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.05;
	color: #fff;
	text-shadow: 0 2px 24px rgba(15, 10, 46, 0.35);
	animation: bm-welcome-rise 0.75s var(--bm-ease) 0.12s both;
}

.joc-blockora-morph-app .bm-welcome__brand-accent {
	background: linear-gradient(105deg, #c3c0ff 0%, #dad7ff 45%, #fff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.joc-blockora-morph-app .bm-welcome__headline {
	margin: 0 0 0.85rem;
	font-size: clamp(1.35rem, 3.2vw, 1.85rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.25;
	color: rgba(244, 248, 252, 0.96);
	animation: bm-welcome-rise 0.75s var(--bm-ease) 0.2s both;
}

.joc-blockora-morph-app .bm-welcome__lede {
	margin: 0 auto 2rem;
	max-width: 32rem;
	font-size: 1.05rem;
	line-height: 1.55;
	color: rgba(208, 228, 255, 0.78);
	animation: bm-welcome-rise 0.75s var(--bm-ease) 0.28s both;
}

.joc-blockora-morph-app .bm-welcome__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.85rem 1.75rem;
	border: 0;
	border-radius: 0.65rem;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #1a1548 !important;
	background: linear-gradient(180deg, #eef0ff 0%, #d0e4ff 100%) !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.7) inset,
		0 14px 32px -12px rgba(0, 0, 0, 0.45);
	cursor: pointer;
	transition: transform 0.2s var(--bm-ease), box-shadow 0.2s var(--bm-ease), filter 0.2s ease;
	animation: bm-welcome-rise 0.75s var(--bm-ease) 0.36s both;
}

.joc-blockora-morph-app .bm-welcome__cta:hover:not(:disabled) {
	transform: translateY(-2px);
	filter: brightness(1.03);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.8) inset,
		0 18px 36px -12px rgba(0, 0, 0, 0.5);
}

.joc-blockora-morph-app .bm-welcome__cta:disabled {
	opacity: 0.7;
	cursor: wait;
}

.joc-blockora-morph-app .bm-welcome__cta .dashicons {
	font-size: 1.15rem;
	width: 1.15rem;
	height: 1.15rem;
}

.joc-blockora-morph-app .bm-welcome__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.65rem 1.25rem;
	margin: 2.25rem 0 0;
	padding: 0;
	list-style: none;
	animation: bm-welcome-rise 0.75s var(--bm-ease) 0.48s both;
}

.joc-blockora-morph-app .bm-welcome__meta li {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(208, 228, 255, 0.62);
}

.joc-blockora-morph-app .bm-welcome__meta .dashicons {
	font-size: 1rem;
	width: 1rem;
	height: 1rem;
	color: #c3c0ff;
}

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

@keyframes bm-welcome-mark {
	from {
		opacity: 0;
		transform: scale(0.86) translateY(10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@keyframes bm-welcome-atmosphere {
	from {
		filter: saturate(1);
	}
	to {
		filter: saturate(1.12);
	}
}

@keyframes bm-welcome-orb {
	from {
		transform: translate(0, 0) scale(1);
	}
	to {
		transform: translate(12px, -18px) scale(1.08);
	}
}

@keyframes bm-welcome-ripple {
	0% {
		opacity: 0.7;
		transform: scale(1);
		border-color: rgba(255, 255, 255, 0.55);
	}
	70% {
		opacity: 0.18;
		border-color: rgba(195, 192, 255, 0.35);
	}
	100% {
		opacity: 0;
		transform: scale(1.72);
		border-color: rgba(255, 255, 255, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.joc-blockora-morph-app .bm-welcome__atmosphere,
	.joc-blockora-morph-app .bm-welcome__orb,
	.joc-blockora-morph-app .bm-welcome__stage,
	.joc-blockora-morph-app .bm-welcome__logo-wrap,
	.joc-blockora-morph-app .bm-welcome__logo,
	.joc-blockora-morph-app .bm-welcome__logo-ring,
	.joc-blockora-morph-app .bm-welcome__mark,
	.joc-blockora-morph-app .bm-welcome__brand,
	.joc-blockora-morph-app .bm-welcome__headline,
	.joc-blockora-morph-app .bm-welcome__lede,
	.joc-blockora-morph-app .bm-welcome__cta,
	.joc-blockora-morph-app .bm-welcome__meta {
		animation: none;
	}

	.joc-blockora-morph-app .bm-welcome__logo-ring {
		display: none;
	}

	.joc-blockora-morph-app .bm-welcome__cursor-glow {
		display: none;
	}
}
