/* Release 2.5.4 homepage structural finish ----------------------------
 * Final cascade for the responsive 6→3→1 backplane and whole-system model. */

/* Desktop keeps the measured SVG topology; compact widths receive a
 * semantically equivalent route whose connectors are derived from one axis. */
.home .tc-backplane__compact-route { display: none; }

/* Whole-system model: three parallel responsibilities, one accountable core. */
.home .tc-system-model,
.home .tc-system-model *,
.home .tc-system-model__layers,
.home .tc-system-model__layer,
.home .tc-system-model__core { min-width: 0; }

.home .tc-system-model {
	position: relative;
	margin-top: clamp(34px, 5vw, 70px);
	padding: clamp(18px, 2.5vw, 34px);
	background: rgba(11, 24, 41, 0.72);
	border: 1px solid #314158;
	border-radius: clamp(18px, 2vw, 26px);
}

.home .tc-system-model__layers {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(12px, 1.4vw, 22px);
	padding-bottom: 52px;
}

.home .tc-system-model__layers::after {
	position: absolute;
	right: calc(16.667% - 3px);
	bottom: 25px;
	left: calc(16.667% - 3px);
	border-top: 2px solid #58d8ee;
	content: "";
}

.home .tc-system-model__layer {
	position: relative;
	display: flex;
	min-height: 176px;
	padding: clamp(20px, 2.2vw, 30px);
	flex-direction: column;
	background: linear-gradient(145deg, rgba(21, 39, 63, 0.96), rgba(10, 23, 40, 0.96));
	border: 1px solid #3c4e68;
	border-radius: 16px;
}

.home .tc-system-model__layer::after {
	position: absolute;
	bottom: -28px;
	left: 50%;
	width: 2px;
	height: 28px;
	background: #58d8ee;
	content: "";
	translate: -50% 0;
}

.home .tc-system-model__layer::before {
	position: absolute;
	bottom: -34px;
	left: 50%;
	z-index: 2;
	width: 10px;
	height: 10px;
	background: #58d8ee;
	border: 2px solid #07101f;
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(88, 216, 238, 0.17);
	content: "";
	translate: -50% 0;
}

.home .tc-system-model__layer small,
.home .tc-system-model__core small {
	color: #65e3f5;
	font-family: var(--wp--preset--font-family--geist-mono, "Geist Mono", ui-monospace, monospace);
	font-size: clamp(0.64rem, 0.59rem + 0.13vw, 0.72rem);
	font-weight: 720;
	line-height: 1.35;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.home .tc-system-model__layer h3 {
	margin: auto 0 0;
	padding-top: 34px;
	font-size: clamp(1.25rem, 1.12rem + 0.4vw, 1.55rem);
	font-weight: 590;
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.home .tc-system-model__layer p {
	margin: 12px 0 0;
	color: #afbdd0;
	font-size: clamp(0.78rem, 0.73rem + 0.16vw, 0.9rem);
	line-height: 1.5;
}

.home .tc-system-model__core {
	position: relative;
	display: grid;
	grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.2fr);
	gap: 10px clamp(24px, 4vw, 58px);
	align-items: center;
	width: min(720px, calc(100% - 40px));
	min-height: 0;
	margin: 18px auto 0;
	padding: clamp(22px, 2.6vw, 32px);
	color: #fff;
	background: linear-gradient(110deg, #235fff, #2149cf);
	border: 1px solid #5d86ff;
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(15, 61, 190, 0.22);
}

.home .tc-system-model__core::before {
	position: absolute;
	top: -45px;
	left: 50%;
	width: 2px;
	height: 45px;
	background: #58d8ee;
	content: "";
	translate: -50% 0;
}

.home .tc-system-model__core::after {
	position: absolute;
	top: -6px;
	left: 50%;
	width: 10px;
	height: 10px;
	background: #c9ff51;
	border: 2px solid #2149cf;
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(201, 255, 81, 0.2);
	content: "";
	translate: -50% 0;
}

.home .tc-system-model__core small { grid-column: 1; color: #dff6ff; }

.home .tc-system-model__core strong {
	grid-column: 1;
	font-size: clamp(1.35rem, 1.12rem + 0.8vw, 1.9rem);
	font-weight: 610;
	line-height: 1.03;
	letter-spacing: -0.035em;
}

.home .tc-system-model__core span {
	grid-row: 1 / span 2;
	grid-column: 2;
	color: #e4ebff;
	font-size: clamp(0.88rem, 0.81rem + 0.22vw, 1rem);
	line-height: 1.5;
}

.home .tc-system-notes article > span {
	display: block;
	margin-bottom: 18px;
	color: #65e3f5;
	font-family: var(--wp--preset--font-family--geist-mono, "Geist Mono", ui-monospace, monospace);
	font-size: 0.7rem;
	font-weight: 720;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

@media (max-width: 1100px) {
	.home .tc-backplane {
		--tc-compact-spine: 50%;
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		min-height: 0 !important;
		padding: 16px !important;
		gap: 0 !important;
		background: rgba(243, 245, 248, 0.96);
	}

	.home .tc-backplane::before,
	.home .tc-backplane::after { content: none !important; }

	.home .tc-backplane__meta {
		position: static !important;
		display: flex;
		width: 100%;
		margin: 0 0 14px;
		padding: 0;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
	}

	.home .tc-backplane__routes,
	.home .tc-backplane__cluster--inputs,
	.home .tc-backplane__cluster--decisions { display: none !important; }

	.home .tc-backplane__compact-route {
		position: relative;
		display: block;
		overflow: hidden;
		padding: 0;
		background: #fff;
		border: 1px solid rgba(7, 16, 31, 0.13);
		border-bottom: 0;
		border-radius: 16px 16px 0 0;
	}

	.home .tc-backplane__compact-summary {
		margin: 0;
		padding: 18px clamp(20px, 3vw, 30px);
		color: #435168;
		background: #fff;
		border-bottom: 1px solid #d7dee8;
		font-family: var(--wp--preset--font-family--geist-mono, "Geist Mono", ui-monospace, monospace);
		font-size: clamp(0.65rem, 0.62rem + 0.16vw, 0.74rem);
		font-weight: 720;
		line-height: 1.4;
		letter-spacing: 0.07em;
		text-transform: uppercase;
	}

	.home .tc-backplane__compact-stage {
		position: relative;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		min-height: 116px;
		padding: 0;
		background: #fff;
		border-bottom: 1px solid #d7dee8;
	}

	.home .tc-backplane__compact-stage::after {
		position: absolute;
		top: 0;
		bottom: -1px;
		left: var(--tc-compact-spine);
		z-index: 2;
		width: 2px;
		background: linear-gradient(#58d8ee, #2862ff);
		content: "";
		translate: -50% 0;
	}

	.home .tc-backplane__compact-stage::before {
		position: absolute;
		top: 50%;
		left: var(--tc-compact-spine);
		z-index: 4;
		width: 10px;
		height: 10px;
		background: #fff;
		border: 3px solid #2862ff;
		border-radius: 50%;
		box-shadow: 0 0 0 4px rgba(40, 98, 255, 0.12);
		content: "";
		translate: -50% -50%;
	}

	.home .tc-backplane__compact-stage ul {
		position: relative;
		z-index: 3;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0;
		margin: 0;
		padding: 0;
		list-style: none;
		background: #f3f5f8;
		border-right: 1px solid #d7dee8;
	}

	.home .tc-backplane__compact-stage ul::after { content: none; }

	.home .tc-backplane__compact-stage li {
		display: flex;
		min-width: 0;
		min-height: 116px;
		padding: 16px clamp(12px, 2vw, 22px);
		align-items: center;
		justify-content: center;
		color: #07101f;
		background: transparent;
		border: 0;
		border-right: 1px solid #d7dee8;
		border-radius: 0;
		font-size: clamp(0.74rem, 0.69rem + 0.2vw, 0.88rem);
		font-weight: 650;
		line-height: 1.3;
		text-align: center;
	}

	.home .tc-backplane__compact-stage li:last-child { border-right: 0; }
	.home .tc-backplane__compact-stage li::before,
	.home .tc-backplane__compact-stage li::after { content: none; }

	.home .tc-backplane__compact-decision {
		position: relative;
		z-index: 3;
		display: grid;
		width: auto;
		min-height: 116px;
		margin: 0;
		padding: 18px clamp(20px, 3vw, 34px);
		align-content: center;
		gap: 8px;
		background: #fff;
		border: 0;
		border-radius: 0;
	}

	.home .tc-backplane__compact-decision::before,
	.home .tc-backplane__compact-decision::after { content: none; }

	.home .tc-backplane__compact-decision small {
		color: #63738a;
		font-family: var(--wp--preset--font-family--geist-mono, "Geist Mono", ui-monospace, monospace);
		font-size: 0.63rem;
		font-weight: 720;
		letter-spacing: 0.07em;
		text-transform: uppercase;
	}

	.home .tc-backplane__compact-decision strong {
		font-size: clamp(0.92rem, 0.84rem + 0.3vw, 1.08rem);
		font-weight: 670;
		line-height: 1.2;
		text-align: left;
	}

	.home .tc-backplane__cluster--output {
		position: relative !important;
		z-index: 5;
		top: auto !important;
		right: auto !important;
		bottom: auto !important;
		left: auto !important;
		display: block !important;
		width: 100% !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: clamp(28px, 4vw, 42px) !important;
		color: #fff;
		background: #07101f !important;
		border: 1px solid #07101f !important;
		border-radius: 0 0 16px 16px !important;
	}

	.home .tc-backplane__cluster--output::before {
		position: absolute !important;
		top: -7px !important;
		left: var(--tc-compact-spine) !important;
		width: 14px !important;
		height: 14px !important;
		background: #c9ff51 !important;
		border: 3px solid #07101f !important;
		border-radius: 50% !important;
		box-shadow: 0 0 0 5px rgba(201, 255, 81, 0.18) !important;
		z-index: 6;
		content: "" !important;
		translate: -50% 0;
	}

	.home .tc-backplane__cluster--output::after { content: none !important; }

	.home .tc-backplane__cluster--output h2 { margin: 0; color: #c9ff51; }
	.home .tc-backplane__cluster--output .tc-backplane__output-title {
		max-width: 18ch;
		margin: 18px 0 0 !important;
		font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem) !important;
		line-height: 0.98;
	}
	.home .tc-backplane__cluster--output p:last-child { margin: 20px 0 0; color: #aebbd0; }
}

@media (max-width: 820px) {
	.home .tc-system-model { padding: 18px; }

	.home .tc-system-model__layers {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding: 0 0 14px 40px;
	}

	.home .tc-system-model__layers::after {
		top: 22px;
		right: auto;
		bottom: -20px;
		left: 17px;
		border-top: 0;
		border-left: 2px solid #58d8ee;
	}

	.home .tc-system-model__layer { min-height: 0; padding: 20px; }

	.home .tc-system-model__layer::after {
		top: 50%;
		bottom: auto;
		left: -24px;
		width: 24px;
		height: 2px;
		translate: 0 -50%;
	}

	.home .tc-system-model__layer::before {
		top: 50%;
		bottom: auto;
		left: -29px;
		translate: 0 -50%;
	}

	.home .tc-system-model__layer h3 { margin-top: 24px; padding: 0; }

	.home .tc-system-model__core {
		grid-template-columns: 1fr;
		width: calc(100% - 40px);
		margin: 14px 0 0 40px;
		padding: 20px;
	}

	.home .tc-system-model__core::before {
		top: -20px;
		left: -24px;
		width: 24px;
		height: calc(50% + 20px);
		background: transparent;
		border-bottom: 2px solid #58d8ee;
		border-left: 2px solid #58d8ee;
		translate: none;
	}

	.home .tc-system-model__core::after {
		top: 50%;
		left: -6px;
		translate: 0 -50%;
	}

	.home .tc-system-model__core small,
	.home .tc-system-model__core strong,
	.home .tc-system-model__core span { grid-column: 1; }
	.home .tc-system-model__core span { grid-row: auto; margin-top: 8px; }
}

@media (max-width: 700px) {
	.home .tc-backplane__compact-stage {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.home .tc-backplane__compact-stage::before { content: none; }

	.home .tc-backplane__compact-stage::after {
		top: 64px;
		bottom: -1px;
	}

	.home .tc-backplane__compact-stage ul {
		border-right: 0;
		border-bottom: 1px solid #d7dee8;
	}

	.home .tc-backplane__compact-stage li {
		min-height: 64px;
		padding: 12px 10px;
	}

	.home .tc-backplane__compact-decision {
		grid-template-columns: minmax(100px, 0.75fr) minmax(0, 1.25fr);
		min-height: 76px;
		padding: 13px clamp(16px, 5vw, 24px);
		align-items: center;
		gap: 14px;
	}

	.home .tc-backplane__compact-decision::before {
		position: absolute;
		top: -6px;
		left: var(--tc-compact-spine);
		z-index: 5;
		width: 10px;
		height: 10px;
		background: #fff;
		border: 3px solid #2862ff;
		border-radius: 50%;
		box-shadow: 0 0 0 4px rgba(40, 98, 255, 0.12);
		content: "";
		translate: -50% 0;
	}

	.home .tc-backplane__compact-decision strong { text-align: right; }
}

@media (max-width: 540px) {
	.home .tc-backplane { padding: 12px !important; }
	.home .tc-backplane__meta { align-items: flex-start; }
	.home .tc-backplane__verified {
		max-width: none;
		flex: 0 0 auto;
		white-space: nowrap;
	}
	.home .tc-backplane__compact-summary { padding-inline: 16px; }
	.home .tc-system-model { padding: 14px; }
	.home .tc-system-model__layers { padding-left: 32px; }
	.home .tc-system-model__layers::after { left: 13px; }
	.home .tc-system-model__layer::after { left: -20px; width: 20px; }
	.home .tc-system-model__layer::before { left: -25px; }
	.home .tc-system-model__core { width: calc(100% - 32px); margin-left: 32px; }
	.home .tc-system-model__core::before { left: -20px; width: 20px; }
}

@media (min-width: 701px) and (max-width: 900px) {
	.home .tc-final-cta {
		min-height: 560px;
		padding-block: 80px;
		justify-items: start;
	}

	.home .tc-final-cta::before {
		top: 50%;
		right: var(--tc-home-edge-right);
		bottom: auto;
		width: clamp(150px, 22vw, 180px);
		transform: translateY(-50%);
	}

	.home .tc-final-cta > :is(
		h2,
		p:not(.tc-eyebrow),
		.wp-block-buttons
	) {
		max-width: calc(100% - clamp(210px, 30vw, 250px));
		margin-inline: 0 !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}
}

@media (min-width: 901px) and (max-width: 1100px) {
	.home .tc-final-cta > :is(
		h2,
		p:not(.tc-eyebrow),
		.wp-block-buttons
	) {
		max-width: calc(100% - clamp(330px, 34vw, 390px));
	}
}

@media (max-width: 370px) {
	.home .tc-backplane__compact-stage li { font-size: 0.7rem; }
	.home .tc-backplane__compact-summary { max-width: none; }
	.home .tc-backplane__compact-decision {
		grid-template-columns: minmax(0, 1fr);
		gap: 5px;
	}
	.home .tc-backplane__compact-decision strong { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	.home .tc-system-model__layer,
	.home .tc-system-model__core,
	.home .tc-backplane__compact-stage,
	.home .tc-backplane__cluster--output { transform: none !important; opacity: 1 !important; }
}
