/* Car Zentics — Fleet Control landing (mockup recreation) */

:root {
	--cz-ink: #111114;
	--cz-ink-soft: #5c5c66;
	--cz-muted: #8a8a93;
	--cz-white: #ffffff;
	--cz-snow: #f3f3f5;
	--cz-card: #ececee;
	--cz-line: rgba(17, 17, 20, 0.1);
	--cz-hero-top: #2a2a2e;
	--cz-wide: min(1120px, calc(100% - 2.5rem));
	--cz-header: 4.75rem;
	--cz-radius: 1.75rem;
	--cz-radius-sm: 1.25rem;
	--cz-font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
	--cz-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	font-family: var(--cz-font);
	font-size: 1.02rem;
	line-height: 1.55;
	color: var(--cz-ink);
	background: var(--cz-white);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid #6b7cff;
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 1000;
	padding: 0.65rem 1rem;
	background: var(--cz-ink);
	color: #fff;
	font-weight: 600;
}

.skip-link:focus {
	top: 1rem;
}

/* Header — overlays the hero card */

.site-header {
	position: absolute;
	inset: 0 0 auto;
	z-index: 50;
	height: var(--cz-header);
	color: #fff;
	padding: 0.65rem 0.65rem 0;
	pointer-events: none;
}

.site-header__inner,
.site-header .mobile-menu {
	pointer-events: auto;
}

.site-header.is-scrolled {
	position: fixed;
	padding: 0;
	background: rgba(20, 20, 24, 0.92);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
	width: min(1200px, calc(100% - 2.5rem));
	margin-inline: auto;
	height: 100%;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.5rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.brand__logo {
	width: clamp(130px, 16vw, 170px);
	height: auto;
}

.brand__logo--footer {
	width: 140px;
}

.site-nav {
	justify-self: center;
}

.nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.75rem;
}

.nav-list a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 500;
}

.nav-list a:hover {
	color: #fff;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.85rem 1.3rem;
	border-radius: 999px;
	border: 1px solid transparent;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s var(--cz-ease), background 0.25s var(--cz-ease), color 0.25s var(--cz-ease), border-color 0.25s var(--cz-ease);
}

.btn:hover {
	transform: translateY(-1px);
}

.btn--demo {
	padding: 0.65rem 1.1rem;
	background: #fff;
	color: var(--cz-ink);
	border-color: #fff;
	font-size: 0.85rem;
}

.btn--light {
	background: #fff;
	color: var(--cz-ink);
}

.btn--dark {
	background: var(--cz-ink);
	color: #fff;
}

.btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
	border-color: #fff;
}

.btn--ghost-dark {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(6px);
	background: rgba(0, 0, 0, 0.18);
}

.btn__icon {
	font-size: 0.95em;
	line-height: 1;
}

.btn__play {
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	border: 1.5px solid currentColor;
	display: inline-grid;
	place-items: center;
	position: relative;
}

.btn__play::after {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 4px 0 4px 7px;
	border-color: transparent transparent transparent currentColor;
	margin-left: 1px;
}

.nav-toggle {
	display: none;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff;
	border-radius: 999px;
	padding: 0.45rem 0.85rem;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.mobile-menu {
	display: none;
	padding: 1rem 1.25rem 1.5rem;
	background: #141418;
}

.mobile-menu[hidden] {
	display: none !important;
}

.mobile-menu.is-open {
	display: block;
}

.mobile-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.85rem;
}

.mobile-menu__list a {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

/* Hero — coded to match reference (rounded card + bottom notch) */

.hero {
	--hero-radius: clamp(1.35rem, 2.8vw, 2rem);
	--hero-notch: 3.35rem;
	position: relative;
	background: #ffffff;
	padding: 0.65rem 0.65rem 0;
	color: #fff;
}

.hero__frame {
	position: relative;
	display: grid;
	align-items: center;
	justify-items: center;
	min-height: calc(100vh - 0.65rem);
	min-height: calc(100dvh - 0.65rem);
	border-radius: var(--hero-radius);
	overflow: hidden;
	background: #05070d;
	isolation: isolate;
	/* bottom-center notch like the reference */
	-webkit-mask-image: radial-gradient(
		circle var(--hero-notch) at 50% 100%,
		transparent calc(var(--hero-notch) - 0.5px),
		#000 var(--hero-notch)
	);
	mask-image: radial-gradient(
		circle var(--hero-notch) at 50% 100%,
		transparent calc(var(--hero-notch) - 0.5px),
		#000 var(--hero-notch)
	);
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero__bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.hero__shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(5, 7, 13, 0.55) 0%, rgba(5, 7, 13, 0.2) 32%, rgba(5, 7, 13, 0.08) 55%, rgba(5, 7, 13, 0.45) 100%);
}

.hero__copy {
	position: relative;
	z-index: 2;
	width: min(760px, calc(100% - 2.5rem));
	margin: 0 auto;
	padding: 0;
	text-align: center;
	/* keep copy optically centered below the fixed header */
	transform: translateY(calc(var(--cz-header) * 0.15));
}

.hero__title {
	margin: 0 0 0.9rem;
	font-size: clamp(2.35rem, 5.6vw, 4rem);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.05;
	text-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

.hero__title span {
	display: block;
}

.hero__lede {
	margin: 0 auto 1.5rem;
	max-width: 34rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(0.98rem, 1.4vw, 1.08rem);
	line-height: 1.55;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.85rem;
}

.hero__scroll {
	position: absolute;
	left: 50%;
	/* geometric center of the white notch circle */
	bottom: 0;
	transform: translate(-50%, 50%);
	z-index: 8;
	width: 3.15rem;
	height: 3.15rem;
	border-radius: 50%;
	background: var(--cz-ink);
	border: 0;
	display: grid;
	place-items: center;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
	transition: transform 0.25s var(--cz-ease);
}

.hero__scroll:hover {
	transform: translate(-50%, calc(50% + 2px));
}

.hero__scroll-chevron {
	width: 0.65rem;
	height: 0.65rem;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg) translate(-1px, -2px);
}

/* Platform */

.section {
	padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section__inner {
	width: var(--cz-wide);
	margin-inline: auto;
}

.platform {
	background: var(--cz-white);
	padding-top: clamp(2rem, 5vw, 3.5rem);
}

.platform__intro {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) auto minmax(0, 0.95fr);
	gap: 1.5rem 2rem;
	align-items: center;
	margin-bottom: 2.5rem;
}

.platform__title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 2.85rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.1;
}

.platform__title span {
	display: block;
}

.platform__rule {
	width: 1px;
	height: 4.5rem;
	background: var(--cz-line);
	justify-self: center;
}

.platform__lede {
	margin: 0;
	color: var(--cz-ink-soft);
	font-size: 1.02rem;
}

.feature-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.15rem;
}

.feature-card {
	background: var(--cz-card);
	border-radius: var(--cz-radius);
	padding: 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 100%;
}

.feature-card__head {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.85rem;
	align-items: start;
}

.feature-card__icon {
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 0.85rem;
	background: #fff;
	display: grid;
	place-items: center;
	color: var(--cz-ink);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.feature-card__title {
	margin: 0 0 0.3rem;
	font-size: 1.05rem;
	font-weight: 750;
	letter-spacing: -0.02em;
}

.feature-card__text {
	margin: 0;
	color: var(--cz-ink-soft);
	font-size: 0.92rem;
}

.feature-card__media {
	margin: 0;
	border-radius: var(--cz-radius-sm);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #ddd;
}

.feature-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* AI panel */

.ai {
	padding-top: 1rem;
}

.ai-panel {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 1.5rem;
	align-items: center;
	background: var(--cz-snow);
	border-radius: calc(var(--cz-radius) + 0.35rem);
	padding: clamp(1.25rem, 3vw, 2rem);
	overflow: hidden;
}

.ai-panel__visual {
	border-radius: var(--cz-radius);
	overflow: hidden;
	background: #f0f2f7;
	min-height: 260px;
}

.ai-panel__visual img {
	width: 100%;
	height: 100%;
	min-height: 260px;
	object-fit: cover;
	object-position: center;
	display: block;
}

.ai-panel__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.7rem, 3vw, 2.35rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.ai-panel__lede {
	margin: 0 0 1.35rem;
	color: var(--cz-ink-soft);
	max-width: 28rem;
}

/* CTA banner */

.cta-banner {
	position: relative;
	margin: 0 auto clamp(2rem, 5vw, 3rem);
	width: var(--cz-wide);
	min-height: 320px;
	border-radius: calc(var(--cz-radius) + 0.5rem);
	overflow: hidden;
	display: grid;
	align-items: center;
	color: #fff;
	isolation: isolate;
	padding: 0;
}

.cta-banner__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.cta-banner__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
}

.cta-banner__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.72) 100%);
}

.cta-banner__content {
	padding: clamp(2.5rem, 5vw, 4rem);
	text-align: center;
}

.cta-banner__title {
	margin: 0 0 1.35rem;
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.cta-banner__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.85rem;
}

/* Footer */

.site-footer {
	padding: clamp(2.5rem, 4vw, 3.25rem) 0 1.75rem;
	border-top: 1px solid var(--cz-line);
}

.site-footer__inner {
	width: var(--cz-wide);
	margin-inline: auto;
}

.site-footer__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 2rem 3rem;
	align-items: end;
	padding-bottom: 1.75rem;
}

.site-footer__brand {
	display: grid;
	gap: 0.7rem;
	max-width: 20rem;
}

.site-footer__tagline {
	margin: 0;
	color: var(--cz-ink-soft);
	font-size: 0.92rem;
	line-height: 1.5;
}

.site-footer__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.35rem 1.5rem;
}

.site-footer__nav a,
.site-footer__bottom a {
	text-decoration: none;
	color: var(--cz-ink-soft);
	font-size: 0.92rem;
	font-weight: 500;
}

.site-footer__nav a:hover,
.site-footer__bottom a:hover {
	color: var(--cz-ink);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem 1.5rem;
	padding-top: 1.15rem;
	border-top: 1px solid var(--cz-line);
	color: var(--cz-muted);
	font-size: 0.85rem;
}

.site-footer__bottom p {
	margin: 0;
}

/* Reveal */

[data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.7s var(--cz-ease), transform 0.7s var(--cz-ease);
}

[data-reveal].is-in {
	opacity: 1;
	transform: none;
}

[data-reveal-delay="1"] {
	transition-delay: 0.08s;
}

[data-reveal-delay="2"] {
	transition-delay: 0.16s;
}

/* Inner pages */

.content-wrap {
	width: var(--cz-wide);
	margin: 0 auto;
	padding: calc(var(--cz-header) + 2rem) 0 4rem;
}

body:not(.home) .site-header {
	position: sticky;
	top: 0;
	background: #141418;
}

.page-header__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 4vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.entry-content {
	max-width: none;
	width: 100%;
	color: var(--cz-ink-soft);
}

.entry-content h2 {
	margin: 2rem 0 0.75rem;
	color: var(--cz-ink);
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.entry-content h3 {
	margin: 1.5rem 0 0.55rem;
	color: var(--cz-ink);
	font-size: 1.08rem;
	font-weight: 700;
}

.entry-content p,
.entry-content li {
	line-height: 1.65;
}

.entry-content ul {
	padding-left: 1.2rem;
	margin: 0.5rem 0 1rem;
}

.entry-content a {
	color: var(--cz-ink);
	font-weight: 600;
}

body.page .site-header {
	position: sticky;
	top: 0;
	padding: 0;
	background: #141418;
	pointer-events: auto;
}

/* Responsive */

@media (max-width: 960px) {
	.site-nav,
	.btn--demo {
		display: none;
	}

	.site-header__inner {
		grid-template-columns: 1fr auto;
	}

	.nav-toggle {
		display: inline-flex;
		justify-self: end;
	}

	.platform__intro,
	.feature-cards,
	.ai-panel,
	.site-footer__main {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.platform__rule {
		display: none;
	}

	.hero {
		padding: 0.4rem 0.4rem 0;
	}

	.hero__frame {
		min-height: calc(100vh - 0.4rem);
		min-height: calc(100dvh - 0.4rem);
	}

	.hero__copy {
		padding: 0 0.25rem;
		transform: translateY(calc(var(--cz-header) * 0.1));
	}

	.hero__title {
		font-size: clamp(2rem, 8vw, 2.85rem);
	}

	.hero__scroll {
		bottom: 0;
		transform: translate(-50%, 50%);
	}

	.ai-panel__visual {
		min-height: 220px;
	}

	.site-footer__brand {
		max-width: none;
	}

	.site-footer__nav {
		justify-content: flex-start;
	}
}
