/**
 * MyRecruiter Motion — hero.css
 * Phase 1: C1 Hero Network + C6 Matchmaker background layer
 */

.mr-motion .hero-network {
	position: relative;
	min-height: 90vh;
	background: var(--mr-navy);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-network__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hero-network__node {
	will-change: transform, opacity;
	cursor: pointer;
}

.hero-network__node circle {
	transition: filter 0.3s ease;
}

.hero-network__line {
	will-change: stroke-dashoffset;
}

.hero-network__labels {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.hero-network__name {
	position: absolute;
	transform: translate(-50%, 140%);
	color: var(--mr-white);
	font-size: 0.8rem;
	font-weight: 600;
	opacity: 0;
	white-space: nowrap;
	letter-spacing: 0.02em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-network__content {
	position: relative;
	z-index: 2;
	max-width: 640px;
	text-align: center;
	padding: 2rem;
	background: rgba(15, 23, 42, 0.35);
	border-radius: 1rem;
	backdrop-filter: blur(6px);
}

.hero-network__title {
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 700;
	color: var(--mr-white);
	margin: 0 0 1rem;
	opacity: 0;
}

.hero-network__subtitle {
	font-size: clamp(1rem, 2vw, 1.25rem);
	color: var(--mr-grey);
	margin: 0 0 1.5rem;
	opacity: 0;
}

.hero-network__cta {
	display: inline-block;
	background: var(--mr-teal);
	color: var(--mr-navy);
	font-weight: 700;
	padding: 0.75rem 1.75rem;
	border-radius: 999px;
	text-decoration: none;
	opacity: 0;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-network__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px var(--mr-teal-glow);
}

/* Matchmaker background layer (C6) — sits behind content, non-blocking */
.mr-matchmaker {
	position: relative;
	width: 100%;
	height: 420px;
	background: var(--mr-navy-light);
	overflow: hidden;
}

.mr-matchmaker__canvas {
	display: block;
	width: 100%;
	height: 100%;
}

/* Reduced motion: show everything at final state, no animation */
.mr-reduced-motion .hero-network__node,
.mr-reduced-motion .hero-network__name,
.mr-reduced-motion .hero-network__title,
.mr-reduced-motion .hero-network__subtitle,
.mr-reduced-motion .hero-network__cta {
	opacity: 1 !important;
	transform: none !important;
}

.mr-reduced-motion .mr-matchmaker {
	display: none;
}

@media (max-width: 768px) {
	.hero-network__content {
		max-width: 90%;
		padding: 1.5rem;
	}
}
