/* ==========================================================================
   Altomize Theme — "Home" page template
   Scope: body.template-home
   ========================================================================== */

.template-home .site-inner {
	width: 100%;
	max-width: none;
	padding: 0;
}
/* Hero
   -------------------------------------------------------------------------- */

.home-hero {
	position: relative;
	overflow: hidden;
	padding: 56px 0 40px;
	background:
		radial-gradient(circle at 85% 30%, rgba(5, 207, 168, 0.16), transparent 32%),
		linear-gradient(180deg, #f7fcfb, #ffffff);
}

.home-hero::before,
.home-hero::after {
	content: "";
	position: absolute;
	width: 320px;
	height: 320px;
	background-image: radial-gradient(#cfdbe2 1.3px, transparent 1.3px);
	background-size: 18px 18px;
	opacity: 0.55;
	pointer-events: none;
}

.home-hero::before { top: -120px; left: -120px; }
.home-hero::after { right: -120px; bottom: -140px; }

.home-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 40px;
	align-items: center;
}

.home-hero__title {
	max-width: 520px;
	margin: 0 0 22px;
	font-size: clamp(2.2rem, 3.6vw, 3rem);
	line-height: 1.12;
	letter-spacing: -0.04em;
}

.home-hero__lead {
	max-width: 440px;
	margin: 0 0 28px;
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--alt-muted);
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* Hub-and-spoke graphic */

.hub {
	position: relative;
	width: 100%;
	max-width: 600px;
	aspect-ratio: 600 / 520;
	margin: 0 auto;
}

.hub__lines {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.hub__center {
	position: absolute;
	left: 50%;
	top: 50.4%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 22%;
	aspect-ratio: 1;
	border-radius: 24px;
	background: linear-gradient(180deg, #ffffff, #f2fff9);
	border: 1px solid rgba(5, 207, 168, 0.4);
	box-shadow: 0 24px 44px rgba(5, 207, 168, 0.22);
	transform: translate(-50%, -50%);
}

.hub__mark {
	width: 62%;
	height: 62%;
}

.hub__node {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--alt-border);
	box-shadow: 0 14px 30px rgba(7, 21, 47, 0.08);
	color: var(--alt-navy);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.15;
	white-space: nowrap;
	transform: translate(-50%, -50%);
}

.hub__icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	color: var(--alt-teal-strong);
}
/* Features
   -------------------------------------------------------------------------- */

.home-features__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.feature-card {
	display: flex;
	gap: 18px;
	padding: 26px 24px;
	border-radius: var(--alt-radius-lg);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--alt-border);
}

.feature-card__icon,
.how-step__icon,
.stat__icon,
.industry-tile__icon,
.flywheel__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--alt-mint);
	color: var(--alt-teal-strong);
}

.feature-card__title,
.how-step__title {
	margin: 4px 0 8px;
	font-size: 1.12rem;
	letter-spacing: -0.02em;
}

.feature-card__text,
.how-step__text,
.panel__text,
.stat__text {
	margin: 0;
	font-size: 0.96rem;
	line-height: 1.6;
	color: var(--alt-muted);
}

/* How it works
   -------------------------------------------------------------------------- */

.home-how .wrap { border-top: 1px solid var(--alt-border); padding-top: 48px; }

.home-how__steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: how-step;
}

.how-step {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 28px 26px 26px;
	border-radius: var(--alt-radius-lg);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--alt-border);
}

.how-step__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.how-step__number {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--alt-teal-strong);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.how-step__title {
	margin: 0 0 10px;
	font-size: 1.3rem;
	letter-spacing: -0.025em;
}

.how-step__text { margin-bottom: 18px; }

.how-step__points {
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px dashed var(--alt-border);
}

.how-step__points li { align-items: flex-start; margin-bottom: 8px; font-size: 0.9rem; line-height: 1.45; }

.how-step__points .check-list__icon { margin-top: 1px; }

.how-step__points li:last-child { margin-bottom: 0; }

.how-step__arrow {
	position: absolute;
	top: 50%;
	right: -24px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	transform: translate(0, -50%);
	color: var(--alt-teal-strong);
}

.how-step__arrow svg { width: 20px; height: 20px; }

.home-how__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 18px;
	margin: 26px 0 0;
	text-align: center;
	font-size: 0.96rem;
	color: var(--alt-muted);
}

.home-how__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: var(--alt-teal-strong);
	text-decoration: none;
}

.home-how__link:hover { text-decoration: underline; }

/* Flywheel
   -------------------------------------------------------------------------- */

.home-flywheel .wrap { border-top: 1px solid var(--alt-border); padding-top: 48px; }

.flywheel {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.flywheel__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 112px;
	margin: 0;
	padding-right: 32px;
	text-align: center;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--alt-navy);
}

.flywheel__item:last-child { padding-right: 0; }

.flywheel__item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 26px;
	right: 2px;
	width: 22px;
	height: 2px;
	background: #b8c6cf;
}

.flywheel__item:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 22px;
	right: 2px;
	width: 8px;
	height: 8px;
	border-top: 2px solid #b8c6cf;
	border-right: 2px solid #b8c6cf;
	transform: rotate(45deg);
}

.flywheel__icon { border: 1px solid rgba(5, 207, 168, 0.3); background: #fff; }

.flywheel__return {
	width: min(100%, 760px);
	height: 34px;
	margin: 6px auto 0;
	border: 2px dashed #c7d3db;
	border-top: 0;
	border-radius: 0 0 30px 30px;
}

/* Product panels
   -------------------------------------------------------------------------- */

.home-panels__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.panel {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 18px;
	padding: 24px;
	border-radius: var(--alt-radius-lg);
	background: linear-gradient(135deg, #f4fcf9, #f8fbfd);
	border: 1px solid var(--alt-border);
	overflow: hidden;
}

.panel__title {
	margin: 4px 0 10px;
	font-size: 1.2rem;
	letter-spacing: -0.02em;
}

.panel__link-icon { width: 16px; height: 16px; }

/* Illustrative mock-ups */

.mock {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	min-height: 260px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--alt-border);
	box-shadow: 0 16px 34px rgba(7, 21, 47, 0.08);
	font-size: 0.62rem;
	color: var(--alt-navy);
	overflow: hidden;
}

.mock--queue {
	display: block;
	padding: 14px;
}

.mock__sidebar {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 8px;
	background: #f6f9fb;
	border-right: 1px solid var(--alt-border);
}

.mock__nav {
	padding: 5px 8px;
	border-radius: 6px;
	color: var(--alt-muted);
	white-space: nowrap;
}

.mock__nav.is-active {
	background: var(--alt-mint);
	color: var(--alt-teal-strong);
	font-weight: 700;
}

.mock__main { padding: 12px 14px; }

.mock__heading {
	margin-bottom: 10px;
	font-size: 0.72rem;
	font-weight: 800;
}

.mock__score {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.mock__ring {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: conic-gradient(var(--alt-teal) 0 var(--score-deg, 300deg), #e9eef2 var(--score-deg, 300deg) 360deg);
}

.mock__ring strong {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	font-size: 1rem;
	font-weight: 800;
}

.mock__label {
	display: block;
	margin: 6px 0 4px;
	font-size: 0.62rem;
	font-weight: 700;
}

.mock__sub {
	display: block;
	color: var(--alt-muted);
}

.mock__bar {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	margin-bottom: 5px;
	color: var(--alt-muted);
}

.mock__bar i {
	display: block;
	height: 5px;
	border-radius: 999px;
	background: #e9eef2;
}

.mock__bar b {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #13c18f, #0b8f69);
}

.mock__tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--alt-border);
	color: var(--alt-muted);
}

.mock__tabs .is-active {
	color: var(--alt-teal-strong);
	font-weight: 700;
	box-shadow: 0 2px 0 var(--alt-teal-strong);
}

.mock__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 0;
	border-bottom: 1px solid #eef2f5;
}

.mock__row-title {
	display: block;
	font-weight: 700;
}

.mock__row-meta {
	display: block;
	color: var(--alt-muted);
}

.mock__status {
	flex: 0 0 auto;
	padding: 3px 8px;
	border-radius: 999px;
	background: #eef2f5;
	font-weight: 700;
	white-space: nowrap;
}

.mock__status--ready { background: var(--alt-mint); color: var(--alt-teal-strong); }
.mock__status--in-review { background: #e6f0ff; color: #2457c5; }
.mock__status--assigned { background: #fff2dc; color: #a46200; }

.mock__footer {
	margin-top: 10px;
	padding: 6px;
	border-radius: 6px;
	background: #f6f9fb;
	text-align: center;
	color: var(--alt-muted);
}

/* Industries
   -------------------------------------------------------------------------- */

.industries {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.industry-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 24px 16px 22px;
	border-radius: var(--alt-radius-md);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--alt-border);
	text-align: center;
	color: var(--alt-navy);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.industry-tile:hover,
.industry-tile:focus {
	text-decoration: none;
	transform: translateY(-2px);
	border-color: rgba(5, 207, 168, 0.5);
	box-shadow: 0 16px 34px rgba(7, 21, 47, 0.08);
}

.industry-tile__title {
	font-size: 1.02rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.industry-tile__types {
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--alt-muted);
}

/* Proof points
   -------------------------------------------------------------------------- */

.stats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.stat {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px 20px;
	border-radius: var(--alt-radius-md);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--alt-border);
}

.stat__icon { width: 46px; height: 46px; }

.stat__headline {
	display: block;
	margin-bottom: 6px;
	font-size: 1.02rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--alt-navy);
}

.stat__value {
	font-size: 1.5rem;
	letter-spacing: -0.03em;
	color: var(--alt-teal-strong);
}

.stat__text { font-size: 0.86rem; line-height: 1.45; }

/* Closing CTA
   -------------------------------------------------------------------------- */
/* Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
	.industries,
	.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.home-panels__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
	.home-hero { padding: 40px 0 32px; }

	.home-hero__grid { grid-template-columns: 1fr; gap: 32px; }

	.home-hero__title { max-width: none; }

	.hub { max-width: 520px; }

	.hub__node { padding: 8px 11px; font-size: 0.64rem; }

	.home-features__grid,
	.home-how__steps { grid-template-columns: 1fr; }

	.how-step__arrow { display: none; }

	.panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.home-section { padding-top: 44px; }

	/* Phones: the ring becomes the mark with a grid of chips under it. */
	.hub {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 18px;
		aspect-ratio: auto;
	}

	.hub__lines { display: none; }

	.hub__center {
		position: static;
		width: 104px;
		border-radius: 20px;
		transform: none;
	}

	.hub__nodes {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px;
	}

	.hub__node {
		position: static !important;
		gap: 6px;
		padding: 7px 10px;
		font-size: 0.6rem;
		transform: none;
	}

	.hub__icon { width: 16px; height: 16px; }

	.flywheel__item { width: 96px; padding-right: 24px; }

	.industries,
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.cta-band { padding: 30px 22px; }

	.cta-band__actions .btn { width: 100%; }
}
