/*
 * CottonCloud technology proof — current corporate blue studio system.
 * Route-scoped to the virtual /technologia/ index and study detail pages.
 */

body.cottoncloud-site.cc-technology-design {
	--cc-tech-navy: #061832;
	--cc-tech-navy-soft: #0b2d5d;
	--cc-tech-blue: #1769e0;
	--cc-tech-blue-strong: #0d55c5;
	--cc-tech-sky: #79ceff;
	--cc-tech-ink: #0b2141;
	--cc-tech-muted: #566d8d;
	--cc-tech-line: #cfdded;
	--cc-tech-surface: #ffffff;
	--cc-tech-wash: #f3f7fc;
	--cc-tech-radius: 18px;
	--cc-tech-shadow: 0 18px 48px rgba(7, 26, 58, 0.1);
	background: var(--cc-tech-wash);
	color: var(--cc-tech-ink);
}

body.cottoncloud-site.cc-technology-design .cc-main {
	background: var(--cc-tech-wash);
	overflow: clip;
}

/* Match the current corporate header and mobile drawer instead of inheriting
 * the older black / mint chrome used by unclassified routes. */
body.cottoncloud-site.cc-technology-design .cc-header {
	background: rgba(6, 24, 50, 0.96);
	border-bottom-color: rgba(121, 206, 255, 0.24);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

body.cottoncloud-site.cc-technology-design .cc-brand__mark {
	background: linear-gradient(145deg, rgba(23, 105, 224, 0.34), rgba(121, 206, 255, 0.14));
	border-color: rgba(121, 206, 255, 0.5);
}

html body.cottoncloud-site.cc-technology-design .cc-menu-toggle,
html body.cottoncloud-site.cc-technology-design .cc-header .cc-lang-switcher__toggle {
	color: #ffffff;
	background: linear-gradient(145deg, rgba(23, 105, 224, 0.5), rgba(121, 206, 255, 0.2));
	border-color: rgba(121, 206, 255, 0.56);
	box-shadow: 0 8px 24px rgba(4, 27, 66, 0.32);
}

html body.cottoncloud-site.cc-technology-design .cc-menu-toggle:hover,
html body.cottoncloud-site.cc-technology-design .cc-menu-toggle:focus-visible,
html body.cottoncloud-site.cc-technology-design .cc-header .cc-lang-switcher__toggle:hover,
html body.cottoncloud-site.cc-technology-design .cc-header .cc-lang-switcher__toggle:focus-visible {
	background: linear-gradient(145deg, rgba(23, 105, 224, 0.76), rgba(121, 206, 255, 0.3));
	border-color: var(--cc-tech-sky);
}

html body.cottoncloud-site.cc-technology-design .cc-menu-toggle[aria-expanded="true"] {
	color: var(--cc-tech-navy);
	background: #eaf5ff;
	border-color: var(--cc-tech-sky);
}

html body.cottoncloud-site.cc-technology-design .cc-menu-toggle[aria-expanded="true"] .cc-menu-toggle__bars {
	background: transparent;
}

html body.cottoncloud-site.cc-technology-design .cc-menu-toggle[aria-expanded="true"] .cc-menu-toggle__bars::before,
html body.cottoncloud-site.cc-technology-design .cc-menu-toggle[aria-expanded="true"] .cc-menu-toggle__bars::after {
	background: var(--cc-tech-navy);
}

html body.cottoncloud-site.cc-technology-design .cc-nav.is-open {
	background: linear-gradient(155deg, rgba(6, 24, 50, 0.995), rgba(11, 45, 93, 0.985));
	border-color: rgba(121, 206, 255, 0.3);
	box-shadow: 0 30px 80px rgba(4, 21, 51, 0.52);
}

html body.cottoncloud-site.cc-technology-design .cc-nav.is-open .cc-nav__list {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
}

body.cottoncloud-site.cc-technology-design .cc-nav.is-open .cc-nav__list a:hover,
body.cottoncloud-site.cc-technology-design .cc-nav.is-open .cc-nav__list a:focus-visible {
	color: #ffffff;
	background: rgba(121, 206, 255, 0.12);
}

body.cottoncloud-site.cc-technology-design .cc-nav.is-open .cc-mm-sub {
	color: rgba(220, 236, 255, 0.7);
}

body.cottoncloud-site.cc-technology-design .cc-nav.is-open .cc-mm-packs a {
	background: rgba(121, 206, 255, 0.08);
	border-color: rgba(121, 206, 255, 0.22);
}

body.cottoncloud-site.cc-technology-design .cc-nav.is-open .cc-mm-packs a small {
	color: #9edcff;
}

html body.cottoncloud-site.cc-technology-design .cc-nav.is-open .cc-navcta__primary,
html body.cottoncloud-site.cc-technology-design .cc-header__offer {
	color: #ffffff;
	background: linear-gradient(135deg, var(--cc-tech-blue), #2d9cf0);
	border-color: rgba(174, 224, 255, 0.46);
	box-shadow: 0 12px 30px rgba(13, 85, 197, 0.3);
}

.cc-tech-page {
	background: var(--cc-tech-wash);
	color: var(--cc-tech-ink);
	min-height: 70vh;
	overflow: clip;
}

.cc-tech-page *,
.cc-tech-page *::before,
.cc-tech-page *::after {
	box-sizing: border-box;
}

.cc-tech-page :is(a, button):focus-visible {
	outline: 3px solid rgba(121, 206, 255, 0.9);
	outline-offset: 3px;
}

.cc-tech-shell {
	width: min(1160px, calc(100% - 48px));
	margin-inline: auto;
}

.cc-tech-hero {
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding-block: clamp(56px, 7vw, 82px) clamp(52px, 6vw, 72px);
	position: relative;
	isolation: isolate;
}

.cc-tech-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0 calc(50% - 50vw);
	background:
		radial-gradient(circle at 84% 18%, rgba(54, 141, 255, 0.32), transparent 34%),
		linear-gradient(145deg, #061832 0%, #0b2d5d 62%, #0b3b77 100%);
}

.cc-tech-hero::after {
	content: "EVIDENCE / SYSTEM / RESULT";
	position: absolute;
	right: 0;
	bottom: 22px;
	color: rgba(190, 221, 255, 0.62);
	font: 800 0.68rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: 0.1em;
}

.cc-tech-kicker {
	color: #8bd4ff;
	font-size: 0.76rem;
	font-weight: 900;
	line-height: 1.4;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	margin: 0 0 14px;
}

.cc-tech-hero h1 {
	max-width: 19ch;
	margin: 0;
	color: #ffffff;
	font-size: clamp(2.35rem, 4.7vw, 4.15rem);
	line-height: 1.02;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.cc-tech-lead {
	max-width: 740px;
	margin: 20px 0 0;
	color: #c1d4e8;
	font-size: clamp(1rem, 1.45vw, 1.13rem);
	line-height: 1.64;
}

.cc-tech-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 28px;
}

.cc-tech-button {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border: 1px solid rgba(174, 224, 255, 0.36);
	border-radius: 10px;
	color: #f7fbff;
	background: rgba(255, 255, 255, 0.075);
	font-weight: 850;
	text-decoration: none;
	transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.cc-tech-button:hover,
.cc-tech-button:focus-visible {
	color: #ffffff;
	border-color: var(--cc-tech-sky);
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.cc-tech-button-primary {
	background: linear-gradient(135deg, var(--cc-tech-blue), #2d9cf0);
	border-color: rgba(174, 224, 255, 0.46);
	box-shadow: 0 12px 30px rgba(13, 85, 197, 0.28);
}

.cc-tech-back {
	display: inline-flex;
	min-height: 45px;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	color: #9edcff;
	font-weight: 850;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.cc-tech-band,
.cc-tech-proof-band,
.cc-tech-next {
	padding-block: clamp(52px, 7vw, 76px);
}

.cc-tech-band {
	background: #f6f9fd;
	border-bottom: 1px solid var(--cc-tech-line);
}

.cc-tech-proof-band {
	background: var(--cc-tech-navy);
}

.cc-tech-section-head {
	max-width: 800px;
	margin-bottom: 28px;
}

.cc-tech-section-head .cc-tech-kicker {
	color: var(--cc-tech-blue);
}

.cc-tech-section-head h2,
.cc-tech-next h2 {
	max-width: 25ch;
	margin: 0;
	color: var(--cc-tech-ink);
	font-size: clamp(1.85rem, 3vw, 2.45rem);
	line-height: 1.1;
	letter-spacing: -0.032em;
	text-wrap: balance;
}

.cc-tech-proof-layout h2 {
	margin: 0;
	color: #ffffff;
	font-size: clamp(1.85rem, 3vw, 2.45rem);
	line-height: 1.1;
	letter-spacing: -0.032em;
	text-wrap: balance;
}

.cc-tech-study-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.cc-tech-study-card {
	min-height: 310px;
	display: flex;
	flex-direction: column;
	padding: 25px;
	background: var(--cc-tech-surface);
	border: 1px solid var(--cc-tech-line);
	border-radius: var(--cc-tech-radius);
	box-shadow: var(--cc-tech-shadow);
}

.cc-tech-index {
	color: var(--cc-tech-blue);
	font: 900 0.76rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.cc-tech-study-card h3 {
	margin: 28px 0 13px;
	color: var(--cc-tech-ink);
	font-size: 1.4rem;
	line-height: 1.22;
	letter-spacing: -0.02em;
}

.cc-tech-study-card p,
.cc-tech-flow p {
	margin: 0;
	color: var(--cc-tech-muted);
	line-height: 1.64;
}

.cc-tech-study-card a {
	min-height: 45px;
	display: inline-flex;
	align-items: center;
	margin-top: auto;
	padding-top: 20px;
	color: var(--cc-tech-blue-strong);
	font-weight: 850;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.cc-tech-proof-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
	gap: clamp(42px, 7vw, 72px);
	align-items: start;
}

.cc-tech-proof-layout ul {
	padding: 0;
	margin: 0;
	list-style: none;
	border-top: 1px solid rgba(121, 206, 255, 0.24);
}

.cc-tech-proof-layout li {
	padding: 17px 0 17px 28px;
	color: #c1d4e8;
	border-bottom: 1px solid rgba(121, 206, 255, 0.2);
	position: relative;
}

.cc-tech-proof-layout li::before {
	content: "";
	width: 8px;
	height: 8px;
	background: var(--cc-tech-sky);
	border-radius: 50%;
	position: absolute;
	left: 0;
	top: 24px;
}

.cc-tech-related {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	align-items: center;
	margin-top: 34px;
	padding-top: 24px;
	border-top: 1px solid rgba(121, 206, 255, 0.2);
}

.cc-tech-related span {
	color: #8da9c7;
	font-size: 0.76rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.cc-tech-related a {
	min-height: 45px;
	display: inline-flex;
	align-items: center;
	color: #9edcff;
	font-weight: 800;
	text-underline-offset: 4px;
}

.cc-tech-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 28px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--cc-tech-line);
	border-radius: var(--cc-tech-radius);
	box-shadow: var(--cc-tech-shadow);
}

.cc-tech-metric {
	min-height: 142px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 22px;
	background: #ffffff;
	border-right: 1px solid var(--cc-tech-line);
}

.cc-tech-metric:last-child {
	border-right: 0;
}

.cc-tech-metric strong {
	color: var(--cc-tech-blue-strong);
	font: 900 clamp(1.5rem, 2.4vw, 1.9rem)/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.cc-tech-metric span {
	color: var(--cc-tech-muted);
	font-size: 0.86rem;
	line-height: 1.4;
}

.cc-tech-flow {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.cc-tech-flow > div {
	padding: 24px;
	background: #ffffff;
	border: 1px solid var(--cc-tech-line);
	border-radius: 15px;
	position: relative;
}

.cc-tech-flow span {
	display: block;
	margin-bottom: 13px;
	color: var(--cc-tech-blue);
	font: 900 0.76rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.cc-tech-flow strong {
	display: block;
	margin-bottom: 10px;
	color: var(--cc-tech-ink);
	font-size: 1.25rem;
}

.cc-tech-evidence h3 {
	margin: 0 0 10px;
	color: #ffffff;
	font-size: 1.2rem;
}

.cc-tech-evidence-row {
	padding: 16px 0;
	border-top: 1px solid rgba(121, 206, 255, 0.22);
}

.cc-tech-evidence-row strong,
.cc-tech-evidence-row span,
.cc-tech-evidence-row code {
	display: block;
}

.cc-tech-evidence-row strong {
	color: #ffffff;
	overflow-wrap: anywhere;
}

.cc-tech-evidence-row span {
	margin-top: 5px;
	color: #b9cee3;
	font-size: 0.86rem;
	line-height: 1.5;
}

.cc-tech-evidence-row code {
	margin-top: 7px;
	color: #9edcff;
	font-size: 0.75rem;
	overflow-wrap: anywhere;
}

.cc-tech-next {
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}

.cc-tech-next .cc-tech-kicker {
	color: var(--cc-tech-blue);
}

.cc-tech-next .cc-tech-button {
	color: var(--cc-tech-ink);
	background: #ffffff;
	border-color: var(--cc-tech-line);
}

.cc-tech-next .cc-tech-button-primary {
	color: #ffffff;
	background: linear-gradient(135deg, var(--cc-tech-blue), #2d9cf0);
	border-color: transparent;
}

.cc-tech-text-link {
	min-height: 45px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--cc-tech-blue-strong);
	font-weight: 850;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

@media (max-width: 900px) {
	.cc-tech-study-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cc-tech-study-card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.cc-tech-proof-layout {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.cc-tech-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cc-tech-metric:nth-child(2n) {
		border-right: 0;
	}

	.cc-tech-metric:nth-child(-n + 2) {
		border-bottom: 1px solid var(--cc-tech-line);
	}

	.cc-tech-flow {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.cc-tech-shell {
		width: min(100% - 32px, 1160px);
	}

	.cc-tech-hero {
		padding-block: 46px 54px;
	}

	.cc-tech-hero h1 {
		font-size: clamp(2.15rem, 10vw, 2.7rem);
		line-height: 1.04;
	}

	.cc-tech-lead {
		margin-top: 17px;
		font-size: 1rem;
	}

	.cc-tech-hero::after {
		left: 0;
		right: auto;
		bottom: 16px;
		font-size: 0.6rem;
	}

	.cc-tech-band,
	.cc-tech-proof-band,
	.cc-tech-next {
		padding-block: 48px;
	}

	.cc-tech-study-grid,
	.cc-tech-metrics {
		grid-template-columns: 1fr;
	}

	.cc-tech-study-card:last-child:nth-child(odd) {
		grid-column: auto;
	}

	.cc-tech-study-card {
		min-height: 280px;
	}

	.cc-tech-metric,
	.cc-tech-metric:nth-child(2n),
	.cc-tech-metric:nth-child(-n + 2) {
		min-height: 112px;
		border-right: 0;
		border-bottom: 1px solid var(--cc-tech-line);
	}

	.cc-tech-metric:last-child {
		border-bottom: 0;
	}

	.cc-tech-actions,
	.cc-tech-button {
		width: 100%;
	}

	.cc-tech-text-link {
		width: auto;
	}

	.cc-tech-related {
		display: grid;
		gap: 2px;
	}

	.cc-tech-related a {
		border-bottom: 1px solid rgba(121, 206, 255, 0.16);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cc-tech-page *,
	.cc-tech-page *::before,
	.cc-tech-page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
