/* Issue #42 — make the homepage Engineering Intelligence loop readable and product-specific. */
.home-vf-loop .home-vf-section-grid {
	grid-template-columns: minmax(330px, .68fr) minmax(0, 1.32fr);
	gap: clamp(52px, 5vw, 72px);
}

.home-vf-intelligence-panel {
	min-width: 0;
	color: #fff;
	border: 1px solid #29343b;
	background: #0a0e12;
	box-shadow: 0 30px 74px rgba(24, 35, 42, .18);
}

.home-vf-intelligence-header {
	min-height: 50px;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, .13);
	background: #12191e;
	font-family: var(--mono);
	letter-spacing: .08em;
}

.home-vf-intelligence-header span {
	color: var(--vf-cyan);
	font-size: 10px;
	font-weight: 750;
}

.home-vf-intelligence-header strong {
	color: rgba(255, 255, 255, .64);
	font-size: 10px;
	font-weight: 700;
	text-align: right;
}

.home-vf-intelligence-input {
	padding: 14px 16px;
	display: grid;
	grid-template-columns: 116px repeat(2, minmax(0, 1fr));
	gap: 10px;
	align-items: stretch;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
	background: rgba(255, 255, 255, .018);
}

.home-vf-intelligence-input > small {
	display: flex;
	align-items: center;
	color: rgba(255, 255, 255, .46);
	font: 750 10px/1.4 var(--mono);
	letter-spacing: .08em;
}

.home-vf-intelligence-input p {
	min-width: 0;
	margin: 0;
	padding: 11px 12px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border: 1px solid rgba(88, 205, 234, .22);
	background: rgba(88, 205, 234, .035);
}

.home-vf-intelligence-input strong {
	font-size: 13px;
	line-height: 1.3;
}

.home-vf-intelligence-input span {
	margin-top: 5px;
	color: rgba(255, 255, 255, .57);
	font: 11px/1.45 var(--mono);
}

.home-vf-intelligence-stages {
	position: relative;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	list-style: none;
}

.home-vf-intelligence-stages::before {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	top: 33px;
	height: 1px;
	background: rgba(88, 205, 234, .42);
	pointer-events: none;
}

.home-vf-intelligence-stages li {
	position: relative;
	z-index: 1;
	min-width: 0;
	min-height: 218px;
	padding: 17px 13px 20px;
	border-right: 1px solid rgba(255, 255, 255, .1);
	background: linear-gradient(180deg, rgba(88, 205, 234, .045), transparent 72%);
}

.home-vf-intelligence-stages li:last-child { border-right: 0; }

.home-vf-intelligence-stages li > b {
	width: 33px;
	height: 33px;
	display: grid;
	place-items: center;
	color: var(--vf-cyan);
	border: 1px solid rgba(88, 205, 234, .72);
	border-radius: 50%;
	background: #0a0e12;
	font: 750 12px/1 var(--mono);
}

.home-vf-intelligence-stages li > div { margin-top: 28px; }

.home-vf-intelligence-stages li strong {
	display: block;
	color: #fff;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.25;
	letter-spacing: .025em;
	writing-mode: horizontal-tb;
	transform: none;
}

.home-vf-intelligence-stages li span {
	display: block;
	margin-top: 10px;
	color: rgba(255, 255, 255, .63);
	font-size: 13px;
	line-height: 1.48;
}

.home-vf-intelligence-output {
	min-height: 82px;
	display: grid;
	grid-template-columns: minmax(145px, .8fr) minmax(220px, 1.4fr) minmax(145px, .8fr);
	align-items: stretch;
	border-top: 1px solid rgba(255, 255, 255, .13);
	background: #12191e;
}

.home-vf-intelligence-output > div,
.home-vf-intelligence-output > p {
	min-width: 0;
	margin: 0;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.home-vf-intelligence-output > * + * { border-left: 1px solid rgba(255, 255, 255, .11); }

.home-vf-intelligence-output small {
	color: rgba(255, 255, 255, .43);
	font: 750 9px/1.35 var(--mono);
	letter-spacing: .08em;
}

.home-vf-intelligence-output strong {
	margin-top: 7px;
	color: #fff;
	font-size: 13px;
	line-height: 1.3;
}

.home-vf-intelligence-output p {
	color: rgba(255, 255, 255, .68);
	font-size: 12px;
	line-height: 1.5;
}

.home-vf-intelligence-output p span {
	color: var(--signal);
	font-weight: 800;
}

@media (max-width: 1180px) {
	.home-vf-loop .home-vf-section-grid { grid-template-columns: 1fr; gap: 46px; }
	.home-vf-intelligence-panel { max-width: 960px; }
}

@media (max-width: 780px) {
	.home-vf-intelligence-header {
		padding: 12px;
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
	}

	.home-vf-intelligence-header strong { text-align: left; }
	.home-vf-intelligence-input { padding: 10px; grid-template-columns: 1fr; }
	.home-vf-intelligence-input > small { min-height: 24px; }
	.home-vf-intelligence-input strong { font-size: 14px; }
	.home-vf-intelligence-input span { font-size: 12px; }

	.home-vf-intelligence-stages { grid-template-columns: 1fr; }
	.home-vf-intelligence-stages::before {
		left: 26px;
		right: auto;
		top: 28px;
		bottom: 28px;
		width: 1px;
		height: auto;
	}

	.home-vf-intelligence-stages li {
		min-height: 100px;
		padding: 16px 14px 16px 10px;
		display: grid;
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 10px;
		align-items: start;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .1);
	}

	.home-vf-intelligence-stages li:last-child { border-bottom: 0; }
	.home-vf-intelligence-stages li > div { margin-top: 5px; }
	.home-vf-intelligence-stages li strong { font-size: 14px; }
	.home-vf-intelligence-stages li span { margin-top: 6px; font-size: 13px; }

	.home-vf-intelligence-output { grid-template-columns: 1fr; }
	.home-vf-intelligence-output > div,
	.home-vf-intelligence-output > p { padding: 14px; }
	.home-vf-intelligence-output > * + * { border-top: 1px solid rgba(255, 255, 255, .11); border-left: 0; }
	.home-vf-intelligence-output strong { font-size: 14px; }
	.home-vf-intelligence-output p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.home-vf-intelligence-panel,
	.home-vf-intelligence-panel * { animation: none !important; transition: none !important; }
}
