﻿.codex-home {
	background: #f4f6f8;
	color: #0f172a;
	font-family: inherit;
}

.codex-home .__os-container__ {
	width: min(1180px, calc(100% - 32px));
	margin-inline: auto;
}

.codex-home-hero {
	padding: 34px 0 28px;
	background: #f4f6f8;
}

.codex-home-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 44%);
	gap: 34px;
	align-items: center;
}

.codex-home-hero-media-left .codex-home-hero-copy {
	order: 2;
}

.codex-home-hero-media-left .codex-home-hero-media {
	order: 1;
}

.codex-home-eyebrow {
	margin: 0 0 10px;
	color: #e30613;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.codex-home-hero h1 {
	max-width: 720px;
	margin: 0 0 14px;
	font-size: clamp(34px, 4vw, 58px);
	line-height: 1.02;
	letter-spacing: 0;
}

.codex-home-hero p {
	max-width: 640px;
	margin: 0;
	color: #475569;
	font-size: 17px;
	line-height: 1.65;
}

.codex-home-actions,
.codex-home-product-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.codex-home-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 6px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.codex-home-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.codex-home-button-primary {
	background: #e30613;
	color: #fff !important;
}

.codex-home-button-secondary {
	border-color: #cbd5e1;
	background: #fff;
	color: #0f172a !important;
}

.codex-home-hero-media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 390px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
	overflow: hidden;
}

.codex-home-hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 430px;
	object-fit: contain;
	padding: 22px;
}

.codex-home-product-visual {
	position: relative;
	width: 162px;
	height: 330px;
	border-radius: 58px 58px 50px 50px;
	background: #111827;
}

.codex-home-product-visual::before {
	content: "";
	position: absolute;
	right: 0;
	top: 16px;
	width: 118px;
	height: 102px;
	border-radius: 16px;
	background: #202631;
}

.codex-home-device-screen {
	position: absolute;
	left: 22px;
	top: 36px;
	display: grid;
	place-items: center;
	width: 50px;
	height: 70px;
	border-radius: 5px;
	background: #dbeafe;
	color: #174a7c;
	font-size: 20px;
	font-weight: 800;
}

.codex-home-device-dot {
	position: absolute;
	top: 128px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e30613;
}

.codex-home-device-dot-one {
	left: 50px;
}

.codex-home-device-dot-two {
	left: 80px;
}

.codex-home-trust {
	padding: 10px 0 28px;
}

.codex-home-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.codex-home-trust-item {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 78px;
	padding: 16px 20px;
	border-right: 1px solid #e2e8f0;
}

.codex-home-trust-item:last-child {
	border-right: 0;
}

.codex-home-trust-icon {
	display: inline-flex;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	color: #111827;
}

.codex-home-trust-icon svg {
	width: 38px;
	height: 38px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.codex-home-trust-item strong,
.codex-home-trust-item small {
	display: block;
}

.codex-home-trust-item strong {
	font-size: 13px;
	line-height: 1.25;
}

.codex-home-trust-item small {
	margin-top: 4px;
	color: #64748b;
	font-size: 11px;
	line-height: 1.35;
}

.codex-home-section {
	padding: 34px 0;
}

.codex-home-section-intro {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
}

.codex-home-section-intro h2 {
	margin: 0;
	font-size: 28px;
	line-height: 1.2;
}

.codex-home-section-intro p {
	max-width: 520px;
	margin: 0;
	color: #64748b;
	line-height: 1.55;
}

.codex-home-category-grid,
.codex-home-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.codex-home-category-card,
.codex-home-product-card {
	display: grid;
	gap: 10px;
	min-width: 0;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	text-decoration: none !important;
	box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
	overflow: hidden;
}

.codex-home-category-card {
	padding: 14px;
	color: #0f172a !important;
}

.codex-home-category-card:hover,
.codex-home-product-card:hover {
	border-color: #e30613;
}

.codex-home-category-media,
.codex-home-product-image {
	display: grid;
	place-items: center;
	min-height: 150px;
	border-radius: 6px;
	background: #f8fafc;
	overflow: hidden;
}

.codex-home-category-media img,
.codex-home-product-image img {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: contain;
	padding: 12px;
}

.codex-home-category-media span,
.codex-home-product-placeholder .codex-home-product-image {
	width: 78px;
	height: 112px;
	border-radius: 28px 28px 24px 24px;
	background: #111827;
}

.codex-home-category-card strong {
	font-size: 17px;
}

.codex-home-category-card small {
	color: #64748b;
	font-size: 13px;
}

.codex-home-product-card {
	padding: 14px;
}

.codex-home-product-card h3 {
	margin: 0;
	font-size: 16px;
	line-height: 1.35;
}

.codex-home-product-card h3 a {
	color: inherit;
	text-decoration: none;
}

.codex-home-product-price {
	min-height: 24px;
	color: #e30613;
	font-weight: 800;
}

.codex-home-product-card .codex-home-button {
	flex: 1 1 110px;
	min-height: 38px;
	padding: 0 12px;
	font-size: 13px;
}

@media (max-width: 1024px) {
	.codex-home-hero-grid {
		grid-template-columns: 1fr;
	}

	.codex-home-hero-media-left .codex-home-hero-copy,
	.codex-home-hero-media-left .codex-home-hero-media {
		order: initial;
	}

	.codex-home-trust-grid,
	.codex-home-category-grid,
	.codex-home-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.codex-home .__os-container__ {
		width: min(100% - 22px, 1180px);
	}

	.codex-home-hero {
		padding-top: 24px;
	}

	.codex-home-hero h1 {
		font-size: 34px;
	}

	.codex-home-actions,
	.codex-home-actions .codex-home-button {
		width: 100%;
	}

	.codex-home-hero-media {
		min-height: 300px;
	}

	.codex-home-section-intro {
		display: block;
	}

	.codex-home-section-intro p {
		margin-top: 8px;
	}

	.codex-home-trust-grid,
	.codex-home-category-grid,
	.codex-home-product-grid {
		grid-template-columns: 1fr;
	}

	.codex-home-trust-item {
		border-right: 0;
		border-bottom: 1px solid #e2e8f0;
	}

	.codex-home-trust-item:last-child {
		border-bottom: 0;
	}
}
