/**
 * Homepage hero — professional, single-viewport layout
 */

.hg-main {
	padding: 0;
}

.hg-hero {
	--hero-font-headline: "Plus Jakarta Sans", sans-serif;
	--hero-font-text: "DM Sans", sans-serif;
	--hero-surface: #f8fafc;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	min-height: calc(100dvh - var(--hg-chrome-height));
	max-height: calc(100dvh - var(--hg-chrome-height));
	padding: clamp(1rem, 2.5vh, 1.75rem) 0;
	background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
	font-family: var(--hero-font-text);
	overflow: hidden;
}

.hg-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	align-items: center;
	gap: clamp(2rem, 4vw, 3.5rem);
	width: 100%;
	max-width: var(--content-max);
	max-height: 100%;
	margin-inline: auto;
	padding-inline: var(--section-padding-x);
}

.hg-hero__content {
	min-width: 0;
}

/* Role badge */
.hg-hero__badge {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin-bottom: clamp(0.875rem, 2vh, 1.25rem);
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--border);
	border-radius: 9999px;
	background: #ffffff;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted-foreground);
}

.hg-hero__badge-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
}

/* Headline */
.hg-hero__title {
	margin: 0;
	font-family: var(--hero-font-headline);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.04em;
}

.hg-hero__title-line {
	display: block;
	font-size: clamp(1.875rem, 2.6vw + 0.85rem, 3.125rem);
	color: var(--foreground);
}

.hg-hero__title-line--accent {
	background: linear-gradient(90deg, var(--foreground) 0%, color-mix(in srgb, var(--foreground) 70%, var(--accent)) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@supports not (background-clip: text) {
	.hg-hero__title-line--accent {
		color: var(--foreground);
	}
}

.hg-hero__divider {
	width: 3rem;
	height: 2px;
	margin: clamp(0.875rem, 2vh, 1.25rem) 0;
	background: var(--accent);
	border-radius: 9999px;
}

/* Subtitle & body */
.hg-hero__subtitle {
	margin: 0 0 0.625rem;
	font-family: var(--hero-font-headline);
	font-size: clamp(0.9375rem, 1vw + 0.5rem, 1.0625rem);
	font-weight: 600;
	color: var(--foreground);
	line-height: 1.4;
	letter-spacing: -0.02em;
}

.hg-hero__desc {
	margin: 0 0 clamp(1rem, 2.5vh, 1.5rem);
	font-size: clamp(0.875rem, 0.4vw + 0.8rem, 0.96875rem);
	font-weight: 400;
	line-height: 1.75;
	color: var(--muted-foreground);
}

.hg-hero__desc strong {
	color: var(--foreground);
	font-weight: 600;
}

/* CTA */
.hg-hero__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	animation: hg-hero-btn-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

@keyframes hg-hero-btn-enter {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hg-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	min-height: 2.75rem;
	padding: 0 1.375rem;
	font-family: var(--hero-font-text);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 0.375rem;
	transition:
		background-color 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease,
		transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.25s ease;
}

.hg-hero__btn--primary {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--foreground);
	color: #ffffff;
	border: 1px solid var(--foreground);
	box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
}

.hg-hero__btn--primary::before {
	content: "";
	position: absolute;
	top: 0;
	left: -120%;
	width: 70%;
	height: 100%;
	background: linear-gradient(
		105deg,
		transparent 0%,
		rgb(255 255 255 / 22%) 45%,
		transparent 90%
	);
	transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}

.hg-hero__btn--primary::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 rgb(93 248 216 / 0);
	transition: box-shadow 0.35s ease;
	pointer-events: none;
}

.hg-hero__btn--primary:hover {
	color: #ffffff;
	background: #111111;
	border-color: #111111;
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgb(0 0 0 / 14%);
}

.hg-hero__btn--primary:hover::before {
	left: 130%;
}

.hg-hero__btn--primary:hover::after {
	box-shadow: 0 0 0 3px rgb(93 248 216 / 25%);
}

.hg-hero__btn--primary:active {
	transform: translateY(0);
	box-shadow: 0 4px 12px rgb(0 0 0 / 12%);
	transition-duration: 0.1s;
}

.hg-hero__btn--primary i {
	font-size: 0.75rem;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hg-hero__btn--primary:hover i {
	transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
	.hg-hero__actions {
		animation: none;
	}

	.hg-hero__btn--primary::before {
		display: none;
	}

	.hg-hero__btn,
	.hg-hero__btn--primary i {
		transition: none;
	}

	.hg-hero__btn--primary:hover {
		transform: none;
	}

	.hg-hero__btn--primary:hover i {
		transform: none;
	}
}

/* Portrait */
.hg-hero__visual {
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

.hg-hero__portrait {
	position: relative;
	width: 100%;
	max-width: min(360px, 34vw);
	height: min(56vh, 440px);
	max-height: calc(100dvh - var(--hg-chrome-height) - 2.5rem);
	padding: 0.375rem;
	border: 1px solid var(--border);
	border-radius: 0.75rem;
	background: #ffffff;
	box-shadow:
		0 1px 2px rgb(0 0 0 / 4%),
		0 12px 40px rgb(0 0 0 / 6%);
	overflow: hidden;
}

.hg-hero__portrait::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(145deg, rgb(93 248 216 / 8%) 0%, transparent 55%);
	pointer-events: none;
	z-index: 1;
}

.hg-hero__image,
.hg-hero__placeholder {
	position: relative;
	z-index: 0;
	width: 100%;
	height: 100%;
	border-radius: calc(0.75rem - 0.375rem);
}

.hg-hero__image {
	object-fit: cover;
	object-position: center top;
}

.hg-hero__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1.5rem;
	text-align: center;
	background: var(--hero-surface);
	font-size: 0.75rem;
	line-height: 1.6;
	color: var(--muted-foreground);
}

.hg-hero__placeholder i {
	font-size: 1.75rem;
	opacity: 0.35;
}

@media (max-width: 960px) {
	.hg-hero {
		min-height: calc(100dvh - var(--hg-chrome-height));
		max-height: none;
		align-items: flex-start;
		padding-top: 1rem;
		overflow: visible;
	}

	.hg-hero__inner {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.hg-hero__content {
		max-width: none;
	}

	.hg-hero__visual {
		order: -1;
	}

	.hg-hero__portrait {
		max-width: 260px;
		height: min(26vh, 210px);
		max-height: 210px;
		margin: 0;
	}

	.hg-hero__desc {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
		overflow: hidden;
	}

	.hg-hero__btn {
		width: 100%;
	}
}

@media (max-height: 760px) and (min-width: 961px) {
	.hg-hero__title-line {
		font-size: clamp(1.625rem, 2vw + 0.65rem, 2.375rem);
	}

	.hg-hero__portrait {
		height: min(48vh, 340px);
	}
}

@media (max-width: 480px) {
	.hg-hero {
		padding-block: clamp(1rem, 2.5vh, 1.75rem);
	}

	.hg-hero__badge {
		font-size: 0.625rem;
		padding: 0.4375rem 0.75rem;
	}
}

.hg-page-content {
	width: 100%;
	max-width: var(--content-max);
	margin-inline: auto;
	padding: 0 var(--section-padding-x) 3rem;
}
