.pyr-ecosystem-section {
	padding: 92px 0 100px;
	background: #f4f8fc;
	scroll-margin-top: 118px;
}

.pyr-ecosystem-heading {
	max-width: 820px;
	margin: 0 auto 48px;
	text-align: center;
}

.pyr-ecosystem-heading > span {
	display: block;
	margin-bottom: 14px;
	color: #1768d9;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.3px;
	text-transform: uppercase;
}

.pyr-ecosystem-heading h2 {
	margin: 0;
	color: #071f3f;
	font-size: clamp(32px, 3.5vw, 46px);
	font-weight: 800;
	letter-spacing: -1px;
	line-height: 1.18;
}

.pyr-ecosystem-heading p {
	max-width: 740px;
	margin: 20px auto 0;
	color: #607387;
	font-size: 15px;
	line-height: 1.75;
}

.pyr-ecosystem-grid {
	display: grid;
	max-width: 1140px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin: 0 auto;
}

.pyr-ecosystem-card {
	position: relative;
	display: flex;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #d8e4ef;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 14px 36px rgba(7, 31, 63, 0.07);
	transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.pyr-ecosystem-card:hover,
.pyr-ecosystem-card:focus-within {
	border-color: #9fbad4;
	box-shadow: 0 22px 48px rgba(7, 31, 63, 0.13);
	transform: translateY(-5px);
}

.pyr-ecosystem-logo {
	display: flex;
	height: 142px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 30px 34px 22px;
	background: linear-gradient(145deg, #fbfdff, #eef5fb);
	border-bottom: 1px solid #e5edf5;
}

.pyr-ecosystem-logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 76px;
	object-fit: contain;
}

.pyr-ecosystem-card:nth-child(2) .pyr-ecosystem-logo img {
	width: 330px;
	max-width: none;
	max-height: none;
}

.pyr-ecosystem-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 28px 28px 30px;
}

.pyr-ecosystem-label {
	display: inline-flex;
	margin-bottom: 13px;
	padding: 6px 10px;
	border: 1px solid #c9dced;
	border-radius: 999px;
	background: #f1f7fc;
	color: #0b4c8d;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.55px;
	line-height: 1.2;
	text-transform: uppercase;
}

.pyr-ecosystem-content h3 {
	margin: 0 0 12px;
	color: #071f3f;
	font-size: 23px;
	font-weight: 800;
	line-height: 1.3;
}

.pyr-ecosystem-content p {
	margin: 0 0 24px;
	color: #607387;
	font-size: 13.5px;
	line-height: 1.72;
}

.pyr-ecosystem-content a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-bottom: 5px;
	color: #0b376d;
	font-size: 13px;
	font-weight: 800;
}

.pyr-ecosystem-content a::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: currentColor;
	content: "";
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.22s ease;
}

.pyr-ecosystem-content a span {
	display: inline-block;
	transition: transform 0.2s ease;
}

.pyr-ecosystem-card:hover .pyr-ecosystem-content a::after,
.pyr-ecosystem-card:focus-within .pyr-ecosystem-content a::after,
.pyr-ecosystem-content a:hover::after,
.pyr-ecosystem-content a:focus-visible::after {
	transform: scaleX(1);
}

.pyr-ecosystem-card:hover .pyr-ecosystem-content a span,
.pyr-ecosystem-card:focus-within .pyr-ecosystem-content a span,
.pyr-ecosystem-content a:hover span,
.pyr-ecosystem-content a:focus-visible span {
	transform: translate(3px, -2px);
}

.pyr-ecosystem-content a:focus-visible {
	outline: 3px solid rgba(23, 104, 217, 0.24);
	outline-offset: 4px;
}

@media (max-width: 991px) {
	.pyr-ecosystem-section {
		padding: 78px 0 84px;
	}

	.pyr-ecosystem-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pyr-ecosystem-card:last-child {
		grid-column: 1 / -1;
		max-width: calc(50% - 11px);
		justify-self: center;
	}
}

@media (max-width: 650px) {
	.pyr-ecosystem-section {
		padding: 64px 0 70px;
	}

	.pyr-ecosystem-heading {
		margin-bottom: 34px;
	}

	.pyr-ecosystem-heading h2 {
		font-size: 31px;
	}

	.pyr-ecosystem-heading p {
		font-size: 14px;
	}

	.pyr-ecosystem-grid {
		grid-template-columns: 1fr;
	}

	.pyr-ecosystem-card:last-child {
		grid-column: auto;
		max-width: none;
	}

	.pyr-ecosystem-logo {
		height: 128px;
	}

	.pyr-ecosystem-content {
		padding: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pyr-ecosystem-card,
	.pyr-ecosystem-content a::after,
	.pyr-ecosystem-content a span {
		transition: none;
	}
}
