.system-logic-page {
	background: var(--white);
}

.logic-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 82% 18%, rgba(33, 211, 139, 0.24), transparent 28%),
		linear-gradient(135deg, var(--forest-deep), var(--forest));
	color: var(--white);
}

.logic-hero::after {
	position: absolute;
	inset: auto -8% -50% auto;
	width: 520px;
	aspect-ratio: 1;
	border: 1px solid rgba(33, 211, 139, 0.24);
	border-radius: 50%;
	box-shadow: 0 0 0 80px rgba(33, 211, 139, 0.04), 0 0 0 160px rgba(33, 211, 139, 0.025);
	content: "";
}

.logic-hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	align-items: center;
	min-height: 610px;
	padding-block: 150px 90px;
}

.logic-hero-copy h1 {
	max-width: 800px;
	font-family: var(--display);
	font-size: clamp(46px, 5.8vw, 76px);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 0.98;
}

.logic-hero-copy > p {
	max-width: 690px;
	margin-top: 26px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 17px;
	line-height: 1.7;
}

/* Interactive heating day */
.heating-day {
	background: var(--white);
}

.heating-day-head,
.protection-head {
	display: grid;
	grid-template-columns: 1fr 0.8fr;
	gap: 70px;
	align-items: end;
}

.heating-timeline {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
	margin-top: 58px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 28px;
	background: var(--paper);
	box-shadow: var(--shadow-soft);
}

.heating-chart {
	min-width: 0;
	padding: 28px 28px 20px;
	background: var(--white);
}

.heating-chart-head {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: center;
}

.chart-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	font-size: 11px;
	font-weight: 700;
}

.chart-legend span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.chart-legend i {
	width: 24px;
	height: 3px;
	border-radius: 99px;
}

.legend-conventional {
	background: #e5484d;
}

.legend-smart {
	background: var(--mint-dark);
}

.chart-hint {
	color: var(--ink-2);
	font-size: 10px;
	font-weight: 650;
}

.heating-chart-canvas {
	width: 100%;
	height: 420px;
	min-width: 0;
	margin-top: 18px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #f7f8f8;
}

.chart-fallback {
	display: grid;
	height: 100%;
	place-items: center;
	padding: 28px;
	color: var(--ink-2);
	font-size: 13px;
	text-align: center;
}

.chart-note {
	border-top: 1px solid var(--line);
	padding-top: 12px;
	color: var(--ink-2);
	font-size: 10px;
	line-height: 1.55;
}

.timeline-detail,
.safety-detail {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
	border-left: 1px solid var(--line);
	padding: 32px;
	color: var(--ink);
	background: var(--white);
}

.timeline-detail > small,
.safety-detail-content > small {
	color: var(--mint-dark);
	font-size: 12px;
	font-weight: 700;
}

.timeline-detail h3,
.safety-detail h3 {
	margin-top: 8px;
	font-family: var(--display);
	font-size: 24px;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.timeline-detail > p,
.safety-detail-content > p {
	margin-top: 12px;
	color: var(--ink-2);
	font-size: 13px;
	line-height: 1.65;
}

.timeline-effect,
.safety-result {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	margin-top: 22px;
	border-top: 1px solid var(--line);
	padding-top: 16px;
}

.timeline-effect > .material-symbols-outlined,
.safety-result > .material-symbols-outlined {
	color: var(--mint-dark);
	font-size: 18px;
}

.timeline-effect div,
.safety-result div {
	display: grid;
	gap: 2px;
}

.timeline-effect small,
.safety-result small {
	color: var(--mint-dark);
	font-size: 9px;
	font-weight: 750;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.timeline-effect span,
.safety-result span {
	color: var(--ink-2);
	font-size: 12px;
	line-height: 1.5;
}

.timeline-controls {display: grid;grid-column: 1 / -1;grid-template-columns: repeat(5, minmax(0, 1fr));border-bottom: 1px solid var(--line);background: #f8faf8;}

.timeline-control {
	position: relative;
	display: grid;
	gap: 2px;
	align-content: center;
	min-height: 76px;
	border: 1px solid transparent;
	padding: 12px;
	color: var(--ink-2);
	text-align: left;
	background: transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.timeline-control:first-child {
	border-top-left-radius: 27px;
}

.timeline-control:last-child {
	border-top-right-radius: 27px;
}

.timeline-control:focus-visible {
	outline: 3px solid rgba(33, 211, 139, 0.35);
	outline-offset: -3px;
}

.timeline-control strong {
	font-family: var(--display);
	font-size: 14px;
}

.timeline-control span {
	font-size: 10px;
}

.timeline-control:hover,
.timeline-control.is-active {
	border-color: rgba(33, 211, 139, 0.3);
	color: var(--forest-deep);
	background: var(--mint-soft);
}

.timeline-control.is-active::before,
.timeline-control.is-active::after {
	position: absolute;
	inset: auto 0 0;
	height: 3px;
	background: rgba(33, 211, 139, 0.22);
	transform-origin: left;
	content: "";
}

.timeline-control.is-active::after {
	background: var(--mint);
}

.heating-timeline.is-autoplaying .timeline-control.is-active::after {
	animation: timeline-control-charge var(--timeline-duration, 6500ms) linear both;
}

@keyframes timeline-control-charge {
	from {
		transform: scaleX(0);
	}

	to {
		transform: scaleX(1);
	}
}

.heating-chart-canvas canvas {
	cursor: default !important;
}

/* Humidity and leakage workflow */
.protection {
	background:
		radial-gradient(circle at 84% 8%, rgba(33, 211, 139, 0.22), transparent 27%),
		var(--forest);
	color: var(--white);
}

.protection .section-lead {
	color: rgba(255, 255, 255, 0.64);
}

.safety-workflow {
	margin-top: 58px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.055);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.safety-story {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
	align-content: start;
	min-height: 470px;
}

.leak-example-head {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: 0.8fr 1fr;
	gap: 28px;
	align-items: end;
	border-bottom: 1px solid rgba(255, 255, 255, 0.13);
	padding: 26px 30px;
	background: rgba(255, 255, 255, 0.045);
}

.leak-example-head small, .detected-problems-head small{
	color: var(--mint);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.leak-example-head h3 {
	margin-top: 5px;
	font-family: var(--display);
	font-size: 24px;
	letter-spacing: -0.015em;
	line-height: 1.12;
}

.leak-example-head p {
	color: rgba(255, 255, 255, 0.62);
	font-size: 12px;
	line-height: 1.6;
}

.safety-scene {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 28px;
	border-right: 1px solid rgba(255, 255, 255, 0.13);
	padding: 30px 30px;
	background:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		radial-gradient(circle at 50% 45%, rgba(33, 211, 139, 0.17), transparent 52%);
	background-size: 36px 36px, 36px 36px, auto;
}

.safety-story .safety-detail {
	border-left: 1px solid var(--line);
	padding: 28px 30px 32px;
	background: var(--white);
}

.safety-route {
	display: grid;
	grid-template-columns: 62px minmax(12px, 1fr) 62px minmax(12px, 1fr) 62px minmax(12px, 1fr) 62px minmax(12px, 1fr) 62px minmax(12px, 1fr) 62px;
	align-items: start;
	padding-top: 8px;
}

.safety-route-step {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 9px;
	justify-items: center;
	border: 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.46);
	font: inherit;
	text-align: center;
	background: transparent;
	cursor: pointer;
	transition: color 0.35s ease, transform 0.35s ease;
}

.safety-route-step > span {
	display: grid;
	width: 54px;
	height: 54px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.17);
	border-radius: 17px;
	background: rgba(4, 45, 44, 0.72);
	transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.safety-route-step .material-symbols-outlined {
	font-size: 24px;
}

.safety-route-step small {
	font-size: 9px;
	font-weight: 750;
	white-space: nowrap;
}

.safety-route-step.is-complete {
	color: rgba(255, 255, 255, 0.72);
}

.safety-route-step.is-complete > span {
	border-color: rgba(33, 211, 139, 0.5);
	background: rgba(33, 211, 139, 0.12);
}

.safety-route-step.is-active {
	color: var(--white);
	transform: translateY(-5px);
}

.safety-route-step.is-active > span {
	border-color: var(--mint);
	background: rgba(33, 211, 139, 0.17);
	box-shadow: 0 0 0 6px rgba(33, 211, 139, 0.08), 0 12px 28px rgba(0, 0, 0, 0.16);
}

.safety-route-line {
	position: relative;
	overflow: hidden;
	height: 2px;
	margin-top: 27px;
	background: rgba(255, 255, 255, 0.22);
}

.safety-route-line::after {
	position: absolute;
	inset: 0;
	background: var(--mint);
	transform: scaleX(0);
	transform-origin: left;
	content: "";
}

.safety-route-line.is-complete::after {
	transform: scaleX(1);
}

.safety-workflow.is-autoplaying .safety-route-line.is-active::after {
	animation: safety-route-charge var(--safety-duration, 6000ms) linear both;
}

@keyframes safety-route-charge {
	from {
		transform: scaleX(0);
	}

	to {
		transform: scaleX(1);
	}
}

.safety-image {
	display: block;
	width: 100%;
	height: 330px;
	border-radius: 15px;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.05);
	transition: opacity 0.28s ease, transform 0.28s ease;
	align-self: center;
}

.safety-image.is-changing {
	opacity: 0;
	transform: translateY(10px);
}

.safety-detail-content.is-changing {
	animation: safety-story-slide 0.42s ease both;
}

@keyframes safety-story-slide {
	from {
		opacity: 0;
		transform: translateX(18px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Additional detected problems */
.detected-problems {
	border-left: 1px solid rgba(255, 255, 255, 0.13);
	padding: 30px 24px;
	background:
		radial-gradient(circle at 100% 0, rgba(33, 211, 139, 0.16), transparent 34%),
		rgba(2, 31, 31, 0.34);
}

.detected-problems-head .eyebrow {
	color: #7de6ba;
}

.detected-problems-head h3 {
	margin-top: 8px;
	font-family: var(--display);
	font-size: 25px;
	letter-spacing: -0.015em;
	line-height: 1.08;
}

.detected-problem-list {
	display: grid;
	gap: 12px;
	margin-top: 24px;
}

.detected-problem {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 13px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 17px;
	padding: 16px;
	background: rgba(255, 255, 255, 0.055);
}

.detected-problem > span {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border: 1px solid rgba(33, 211, 139, 0.32);
	border-radius: 13px;
	background: rgba(33, 211, 139, 0.1);
	color: var(--mint);
}

.detected-problem .material-symbols-outlined {
	font-size: 20px;
}

.detected-problem h4 {
	font-family: var(--display);
	font-size: 16px;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.detected-problem p {
	margin-top: 6px;
	color: rgba(255, 255, 255, 0.62);
	font-size: 11px;
	line-height: 1.55;
}

/* Additional connected capabilities */
.capabilities {
	background:
		radial-gradient(circle at 8% 12%, rgba(33, 211, 139, 0.08), transparent 28%),
		var(--paper);
}

.capabilities-head {
	display: grid;
	grid-template-columns: 1fr 0.8fr;
	gap: 70px;
	align-items: end;
}

.capability-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	margin-top: 58px;
}

.capability-card {
	display: grid;
	min-width: 0;
	height: 100%;
	grid-template-columns: minmax(210px, 0.78fr) minmax(0, 1fr);
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 26px;
	background: var(--white);
	box-shadow: var(--shadow-soft);
}

.capability-visual {
	display: flex;
	min-height: 300px;
	align-items: center;
	justify-content: center;
	gap: 14px;
	overflow: hidden;
	border-right: 1px solid var(--line);
	background-size: 24px 24px;
	color: var(--forest-deep);
}

.capability-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 34px 30px;
}

.capability-icon {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 14px;
	background: var(--mint-soft);
	color: var(--mint-dark);
}

.capability-icon .material-symbols-outlined {
	font-size: 23px;
}

.capability-copy h3 {
	margin-top: 20px;
	font-family: var(--display);
	font-size: 25px;
	letter-spacing: -0.015em;
	line-height: 1.08;
	text-wrap: balance;
}

.capability-copy p {
	margin-top: 14px;
	color: var(--ink-2);
	font-size: 13px;
	line-height: 1.72;
}

.capability-overview span {
	display: grid;
	gap: 9px;
	justify-items: center;
	border: 1px solid rgba(33, 211, 139, 0.22);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.82);
	padding: 17px;
	font-size: 10px;
	font-weight: 750;
}

.capability-overview span .material-symbols-outlined {
	color: var(--mint-dark);
	font-size: 29px;
}

.capability-arrow {
	color: var(--mint-dark);
}

.capability-ai,
.capability-reporting {
	flex-direction: column;
}

.ai-orbit {
	position: relative;
	display: grid;
	width: 112px;
	height: 112px;
	place-items: center;
	border: 1px solid rgba(33, 211, 139, 0.28);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.72);
	box-shadow: 0 0 0 18px rgba(33, 211, 139, 0.06);
}

.ai-orbit > .material-symbols-outlined {
	color: var(--mint-dark);
	font-size: 44px;
}

.ai-orbit span {
	position: absolute;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--mint);
}

.ai-orbit span:nth-child(2) {
	top: 7px;
	right: 18px;
}

.ai-orbit span:nth-child(3) {
	right: 4px;
	bottom: 25px;
}

.ai-orbit span:nth-child(4) {
	bottom: 5px;
	left: 24px;
}

.capability-ai small {
	color: var(--mint-dark);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.report-chart {
	width: 156px;
	height: 108px;
}

.report-chart svg {
	display: block;
	width: 100%;
	height: 100%;
}

.report-grid-line,
.report-axis {
	fill: none;
	stroke: rgba(33, 211, 139, 0.14);
	stroke-width: 1;
}

.report-axis {
	stroke: rgba(33, 211, 139, 0.3);
}

.report-bar-primary {
	fill: #0d9f67;
}

.report-bar-mint {
	fill: #21d38b;
}

.report-caption {
	display: grid;
	gap: 2px;
	text-align: center;
}

.report-caption strong {
	font-family: var(--display);
	font-size: 19px;
}

.report-caption span {
	color: var(--ink-2);
	font-size: 9px;
	font-weight: 700;
}

.capability-integrations {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, 58px);
	grid-template-rows: repeat(2, 58px);
	gap: 30px;
	place-content: center;
}

.capability-integrations::before,
.capability-integrations::after {
	position: absolute;
	background: rgba(33, 211, 139, 0.3);
	content: "";
}

.capability-integrations::before {
	top: 50%;
	left: 50%;
	width: 118px;
	height: 1px;
	transform: translate(-50%, -50%);
}

.capability-integrations::after {
	top: 50%;
	left: 50%;
	width: 1px;
	height: 118px;
	transform: translate(-50%, -50%);
}

.capability-integrations span {
	position: relative;
	z-index: 1;
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	border: 1px solid rgba(33, 211, 139, 0.24);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.88);
	color: var(--mint-dark);
}

.capability-integrations svg {
	width: 27px;
	height: 27px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.capabilities-cta {
	position: relative;
	display: flex;
	justify-content: space-between;
	gap: 32px;
	align-items: center;
	margin-top: 24px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	background:
		radial-gradient(circle at 88% 20%, rgba(33, 211, 139, 0.18), transparent 34%),
		var(--forest-deep);
	padding: 28px 30px;
	color: var(--white);
}

.capabilities-cta div {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 5px;
}

.capabilities-cta strong {
	font-family: var(--display);
	font-size: 20px;
}

.capabilities-cta span {
	max-width: 680px;
	color: rgba(255, 255, 255, 0.62);
	font-size: 12px;
	line-height: 1.55;
}

.capabilities-cta .button {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
}

@media (max-width: 1020px) {
	.logic-hero-inner {
		padding-block: 138px 80px;
	}

	.heating-day-head,
	.protection-head,
	.capabilities-head {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.safety-workflow {
		grid-template-columns: minmax(0, 1fr);
	}

	.detected-problems {
		border-top: 1px solid rgba(255, 255, 255, 0.13);
		border-left: 0;
	}

	.detected-problem-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.capability-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 780px) {
	.logic-hero-inner {
		padding-block: 120px 68px;
	}

	.logic-hero-copy h1 {
		font-size: clamp(40px, 11vw, 58px);
	}

	.heating-timeline,
	.safety-story {
		grid-template-columns: minmax(0, 1fr);
	}

	.capability-card {
		grid-template-columns: minmax(200px, 0.62fr) minmax(0, 1fr);
	}

	.safety-scene {
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.13);
	}

	.timeline-controls {
		overflow-x: auto;
		grid-template-columns: repeat(6, minmax(120px, 1fr));
	}

	.timeline-detail,
	.safety-story .safety-detail {
		border-left: 0;
		padding: 28px;
	}

	.timeline-detail {
		border-top: 1px solid var(--line);
	}

	.leak-example-head {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.detected-problem-list {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 520px) {
	.logic-hero-inner {
		padding-block: 108px 58px;
	}

	.logic-hero-copy > p {
		font-size: 14px;
	}

	.heating-chart {
		padding: 22px 16px 16px;
	}

	.heating-chart-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.heating-chart-canvas {
		height: 360px;
	}

	.timeline-detail,
	.safety-story .safety-detail {
		padding: 24px 22px;
	}

	.timeline-detail h3,
	.safety-detail h3 {
		font-size: 22px;
	}

	.safety-scene {
		gap: 28px;
		padding: 24px 20px;
	}

	.safety-route {
		grid-template-columns: 56px 30px 56px 30px 56px 30px 56px 30px 56px 30px 66px;
		margin-inline: -20px;
		overflow-x: auto;
		padding: 8px 20px 18px;
	}

	.safety-route-step > span {
		width: 50px;
		height: 50px;
	}

	.safety-route-line {
		margin-top: 25px;
	}

	.safety-image {
		width: calc(100% + 40px);
		height: 280px;
		margin-inline: -20px;
	}

	.leak-example-head {
		padding: 22px 20px;
	}

	.leak-example-head h3 {
		font-size: 22px;
	}

	.detected-problems {
		padding: 26px 20px 20px;
	}

	.capability-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.capability-visual {
		min-height: 200px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.capability-copy {
		padding: 30px 24px 32px;
	}

	.capability-copy h3 {
		font-size: 23px;
	}

	.capabilities-cta {
		align-items: stretch;
		flex-direction: column;
	}

	.capabilities-cta .button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.safety-workflow.is-autoplaying .safety-route-line.is-active::after,
	.safety-detail-content.is-changing,
	.safety-image {
		animation: none;
		transition: none;
	}

	.safety-route-line.is-active::after {
		transform: scaleX(1);
	}
}
