/* Homepage — brand color + motion. Tokens from codemize.css. */

body.home .cm-wrap {
	width: min(1280px, calc(100% - 48px));
}

.cm-icon {
	display: block;
	flex-shrink: 0;
}

.cm-grad-text {
	background: var(--cm-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.cm-hero--home {
	min-height: min(92vh, 940px);
	padding: 56px 0 88px;
	display: grid;
	align-items: center;
	position: relative;
	background: #070712;
	color: var(--cm-text-deep);
	overflow: hidden;
}

.cm-hero--home .cm-hero__copy h1,
.cm-hero--home .cm-hero__copy .cm-lead,
.cm-hero--home .cm-hero__actions,
.cm-hero--home .cm-hero__meta,
.cm-hero--home .cm-hero__stage {
	animation: none;
}

.cm-hero__orbs {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.cm-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(40px);
	opacity: 0.55;
	animation: cm-orb 14s var(--cm-ease) infinite alternate;
}

.cm-orb--violet {
	width: 42vw;
	height: 42vw;
	max-width: 560px;
	max-height: 560px;
	right: -8%;
	top: -12%;
	background: #4b3cfa;
}

.cm-orb--orange {
	width: 32vw;
	height: 32vw;
	max-width: 420px;
	max-height: 420px;
	left: -6%;
	bottom: -10%;
	background: #ff7a18;
	animation-delay: -4s;
	animation-duration: 18s;
}

.cm-orb--teal {
	width: 24vw;
	height: 24vw;
	max-width: 280px;
	max-height: 280px;
	left: 42%;
	top: 18%;
	background: #14b8a6;
	animation-delay: -8s;
	animation-duration: 16s;
}

.cm-hero__gridbg {
	position: absolute;
	inset: 0;
	z-index: 2;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at 70% 40%, #000 18%, transparent 74%);
	pointer-events: none;
	animation: cm-grid-drift 22s linear infinite;
}

.cm-hero--home .cm-hero__photo {
	opacity: 0.42;
	z-index: 1;
}

.cm-hero--home .cm-hero__veil {
	z-index: 2;
	background:
		linear-gradient(90deg, rgba(7, 7, 18, 0.92) 0%, rgba(7, 7, 18, 0.62) 48%, rgba(7, 7, 18, 0.28) 100%),
		linear-gradient(180deg, rgba(7, 7, 18, 0.15) 0%, rgba(7, 7, 18, 0.55) 100%);
}

.cm-hero--home .cm-hero__grid {
	z-index: 3;
}

.cm-hero--home .cm-hero__copy h1 {
	max-width: 16ch;
}

.cm-btn--shine {
	position: relative;
	overflow: hidden;
}

.cm-btn--shine::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 62%);
	transform: translateX(-120%);
	animation: cm-shine 3.6s var(--cm-ease) infinite;
}

.cm-chips {
	position: absolute;
	left: 16px;
	top: 16px;
	z-index: 6;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cm-chips li {
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(11, 11, 15, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	animation: cm-float 4.4s ease-in-out infinite;
}

.cm-chips li:nth-child(2) { animation-delay: 0.5s; color: #c4b5fd; }
.cm-chips li:nth-child(3) { animation-delay: 1s; color: #5eead4; }
.cm-chips li:nth-child(4) { animation-delay: 1.5s; color: #fdba74; }

.cm-stage--home {
	min-height: 540px;
}

.cm-stage--home .cm-stage__photo--wide {
	border: 1px solid transparent;
	background:
		linear-gradient(#0b0b0f, #0b0b0f) padding-box,
		var(--cm-gradient) border-box;
	box-shadow: 0 30px 80px rgba(75, 60, 250, 0.28);
}

.cm-cap {
	background: #070712;
	color: var(--cm-text-deep);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	overflow: hidden;
	padding: 18px 0;
}

.cm-cap__track {
	display: flex;
	width: max-content;
	animation: cm-marquee 28s linear infinite;
}

.cm-cap__list {
	display: flex;
	gap: 36px;
	list-style: none;
	margin: 0;
	padding: 0 36px;
	font-family: var(--cm-font-display);
	font-size: 0.92rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #d6d3e8;
}

.cm-cap__list li {
	white-space: nowrap;
}

.cm-cap__list li::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 12px;
	border-radius: 50%;
	background: var(--cm-gradient);
	vertical-align: middle;
}

.cm-cap:hover .cm-cap__track {
	animation-play-state: paused;
}

.cm-build__grid {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 56px;
	align-items: center;
}

.cm-build__visual {
	margin: 0;
	overflow: hidden;
	border-radius: 28px;
	height: min(58vw, 520px);
	clip-path: inset(0 0 0 0 round 28px);
	box-shadow: 0 24px 60px rgba(75, 60, 250, 0.12);
}

.cm-build__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.04);
	transition: transform 800ms var(--cm-ease);
}

.cm-build.is-inview .cm-build__visual img,
.cm-build__visual:hover img {
	transform: scale(1.08);
}

.cm-svc {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 28px;
	align-items: stretch;
}

.cm-svc__list {
	display: grid;
	gap: 10px;
}

.cm-svc__row {
	display: grid;
	grid-template-columns: 48px 36px 1fr auto;
	gap: 14px;
	align-items: start;
	padding: 22px 20px;
	border: 1px solid var(--cm-border-deep);
	border-radius: 18px;
	background: rgba(20, 20, 26, 0.55);
	transition: transform 240ms var(--cm-ease), border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.cm-svc__row:hover,
.cm-svc__row.is-active {
	transform: translateX(6px);
	border-color: rgba(91, 76, 255, 0.55);
	background: rgba(20, 20, 26, 0.95);
	box-shadow: 0 16px 40px rgba(75, 60, 250, 0.22);
}

.cm-svc__index {
	font-family: var(--cm-font-display);
	background: var(--cm-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 1.15rem;
}

.cm-svc__icon {
	color: var(--cm-accent-2);
	margin-top: 2px;
}

.cm-svc__copy h3 {
	margin: 0 0 6px;
	font-size: 1.15rem;
}

.cm-svc__copy p {
	margin: 0;
	color: var(--cm-muted-deep);
}

.cm-svc__go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--cm-accent-2);
	margin-top: 4px;
	transition: transform 220ms var(--cm-ease);
}

.cm-svc__row:hover .cm-svc__go,
.cm-svc__row.is-active .cm-svc__go {
	transform: translateX(6px);
}

.cm-svc__preview {
	margin: 0;
	position: sticky;
	top: 96px;
	overflow: hidden;
	border-radius: 24px;
	min-height: 480px;
	background: var(--cm-surface-deep);
	border: 1px solid transparent;
	background-image:
		linear-gradient(#14141a, #14141a),
		var(--cm-gradient);
	background-origin: border-box;
	background-clip: padding-box, border-box;
}

.cm-svc__preview img {
	width: 100%;
	height: 100%;
	min-height: 480px;
	object-fit: cover;
	transition: opacity 280ms ease, transform 700ms var(--cm-ease);
}

.cm-svc__preview.is-swap img {
	opacity: 0.35;
	transform: scale(1.04);
}

.cm-svc__preview figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 16px 18px;
	background: linear-gradient(transparent, rgba(11, 11, 15, 0.82));
	color: #fff;
	font-weight: 600;
}

.cm-techboard {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 28px;
	align-items: start;
}

.cm-techboard__nav {
	display: grid;
	gap: 8px;
}

.cm-techboard__tab {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid var(--cm-border);
	border-radius: 14px;
	background: var(--cm-surface);
	color: var(--cm-text);
	font: inherit;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.cm-techboard__tab:hover,
.cm-techboard__tab.is-active {
	transform: translateX(4px);
	border-color: rgba(75, 60, 250, 0.35);
	background: #fff;
	box-shadow: 0 10px 28px rgba(75, 60, 250, 0.1);
}

.cm-techboard__tab.is-active {
	color: var(--cm-primary);
}

.cm-techboard__panel {
	display: none;
	padding: 36px;
	border-radius: 22px;
	background: #070712;
	color: var(--cm-text-deep);
	min-height: 280px;
	position: relative;
	overflow: hidden;
}

.cm-techboard__panel::before {
	content: "";
	position: absolute;
	right: -20%;
	top: -40%;
	width: 60%;
	height: 90%;
	background: var(--cm-gradient);
	filter: blur(70px);
	opacity: 0.22;
	pointer-events: none;
}

.cm-techboard__panel.is-active {
	display: block;
	animation: cm-rise 500ms var(--cm-ease) both;
}

.cm-techboard__panel h3,
.cm-techboard__panel p,
.cm-techboard__panel ul {
	position: relative;
	z-index: 1;
}

.cm-techboard__panel p {
	color: var(--cm-muted-deep);
	max-width: 36rem;
}

.cm-why--icons {
	grid-template-columns: repeat(3, 1fr);
}

.cm-why--icons article {
	transition: transform 240ms var(--cm-ease), box-shadow 240ms ease;
}

.cm-why--icons article:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(75, 60, 250, 0.12);
}

.cm-why__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 16px;
	border-radius: 12px;
	background: var(--cm-gradient);
	color: #fff;
	animation: cm-float 5s ease-in-out infinite;
}

.cm-cta--wide .cm-cta__glow {
	opacity: 0.42;
}

@keyframes cm-orb {
	from {
		transform: translate3d(0, 0, 0) scale(1);
	}
	to {
		transform: translate3d(-8%, 10%, 0) scale(1.18);
	}
}

@keyframes cm-grid-drift {
	from {
		background-position: 0 0;
	}
	to {
		background-position: 56px 56px;
	}
}

@keyframes cm-shine {
	0%,
	55% {
		transform: translateX(-120%);
	}
	100% {
		transform: translateX(120%);
	}
}

@keyframes cm-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-7px);
	}
}

@keyframes cm-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@media (max-width: 1024px) {
	.cm-build__grid,
	.cm-svc,
	.cm-techboard,
	.cm-why--icons {
		grid-template-columns: 1fr;
	}

	.cm-svc__preview {
		position: relative;
		top: 0;
		min-height: 320px;
		order: -1;
	}

	.cm-svc__preview img {
		min-height: 320px;
	}

	.cm-stage--home {
		min-height: 420px;
	}

	.cm-orb {
		opacity: 0.35;
	}
}

@media (max-width: 768px) {
	.cm-hero--home {
		min-height: 0;
		padding: 28px 0 48px;
	}

	.cm-hero--home .cm-hero__copy h1 {
		max-width: none;
	}

	.cm-svc__row {
		grid-template-columns: 40px 1fr;
	}

	.cm-svc__icon,
	.cm-svc__go {
		display: none;
	}

	.cm-build__visual,
	.cm-svc__preview {
		height: 260px;
		min-height: 260px;
	}

	.cm-cap__list {
		gap: 24px;
		font-size: 0.8rem;
	}

	.cm-hero__gridbg,
	.cm-orb--teal {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cm-cap__track,
	.cm-orb,
	.cm-chips li,
	.cm-why__icon,
	.cm-btn--shine::after,
	.cm-hero__gridbg {
		animation: none;
	}

	.cm-cap__track {
		width: auto;
		flex-wrap: wrap;
	}

	.cm-cap__list[aria-hidden="true"] {
		display: none;
	}
}
