/**
 * Leobit-style dark hero (matches leobit.com reference).
 */

:root {
	--leobit-orange: #f26522;
	--leobit-orange-bright: #ff8c2a;
	--leobit-dark: #1a1d21;
	--leobit-dark-2: #121418;
	--font-display: "Montserrat", "Plus Jakarta Sans", system-ui, sans-serif;
}

/* Dark header on hero */
.site-header--dark {
	background: transparent;
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header--dark.is-scrolled {
	background: rgba(18, 20, 24, 0.96);
	backdrop-filter: blur(12px);
}

.site-header--dark .site-logo,
.site-header--dark .site-logo:hover {
	color: #fff;
}

.site-header--dark .site-logo__text {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
}

.site-header--dark .site-logo__text strong {
	font-weight: 800;
	color: var(--leobit-orange-bright);
}

.site-header--dark .site-nav__list a {
	color: rgba(255, 255, 255, 0.88);
}

.site-header--dark .site-nav__list a:hover {
	color: var(--leobit-orange-bright);
}

.site-header--dark .site-nav__list .sub-menu {
	background: #1e2329;
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.site-header--dark .site-nav__list .sub-menu a {
	color: rgba(255, 255, 255, 0.88);
}

.site-header--dark .site-nav__list .sub-menu a:hover {
	color: var(--leobit-orange-bright);
	background: rgba(242, 101, 34, 0.12);
}

.site-header--dark .nav-toggle {
	border-color: rgba(255, 255, 255, 0.2);
	background: transparent;
}

.site-header--dark .nav-toggle__lines {
	background: #fff;
	box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
}

.site-header--dark .btn--header {
	background: var(--leobit-orange);
	color: #fff;
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	border-radius: 4px;
	box-shadow: none;
}

/* Dark hero — full viewport feel like Leobit */
.hero.hero--dark {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: calc(var(--header-h) + clamp(3rem, 8vh, 6rem));
	padding-bottom: clamp(4rem, 10vh, 8rem);
	padding-left: 0;
	padding-right: 0;
	background: linear-gradient(105deg, var(--leobit-dark) 0%, #252a30 45%, var(--leobit-dark-2) 100%);
	overflow: hidden;
}

.hero.hero--dark > .container {
	width: min(100% - clamp(2.5rem, 6vw, 5rem), var(--container, 1200px));
	margin-inline: auto;
}

.hero.hero--dark .hero__inner {
	grid-template-columns: 1.2fr 0.8fr;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: center;
	width: 100%;
	padding-top: clamp(1.5rem, 4vh, 3rem);
}

.hero.hero--dark .hero__content {
	padding: clamp(1rem, 2vh, 2rem) clamp(0.25rem, 2vw, 1.5rem) clamp(1rem, 2vh, 2rem) clamp(1rem, 4vw, 3rem);
	max-width: none;
}

.hero--dark h1,
.hero.hero--dark h1 {
	display: flex;
	flex-direction: column;
	gap: 0;
	font-size: clamp(2.35rem, 4.8vw, 4.15rem);
	line-height: 0.92;
	font-weight: 900;
	margin: 0 0 2rem;
	color: transparent;
	max-width: 100%;
}

.hero__title-accent {
	color: var(--leobit-orange-bright);
	display: block;
}

.hero__title-main {
	color: #ffffff;
	display: block;
}

@media (min-width: 900px) {
	.hero__title-accent,
	.hero__title-main {
		white-space: nowrap;
	}
}

.hero--dark .hero__lead {
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.78);
	max-width: 28rem;
	line-height: 1.55;
	margin: 0 0 1.75rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

/* Leobit CTA — solid orange block */
.btn--cta {
	display: inline-block;
	padding: 1rem 2rem;
	background: var(--leobit-orange);
	color: #fff !important;
	font-family: var(--font-display);
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: 4px;
	border: none;
	box-shadow: none;
	transition: background 0.25s, transform 0.25s;
}

.btn--cta:hover {
	background: var(--leobit-orange-bright);
	color: #fff !important;
	transform: translateY(-2px);
}

/* Premium AI hero visual */
.hero__visual {
	min-height: 480px;
	justify-content: center;
	align-items: center;
	perspective: 1000px;
}

.hero-ai {
	position: relative;
	width: min(100%, 480px);
	aspect-ratio: 1;
}

.hero-ai__ambient {
	position: absolute;
	inset: 5%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(242, 101, 34, 0.35) 0%, rgba(242, 101, 34, 0.08) 45%, transparent 70%);
	filter: blur(20px);
	animation: ai-pulse 4s ease-in-out infinite;
}

.hero-ai__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 75%);
}

.hero-ai__network {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.7;
}

.hero-ai__lines {
	transition: opacity 0.5s ease;
}

.hero-ai__node {
	transition: transform 0.4s ease;
}

.hero-ai__core {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 120px;
	height: 120px;
	z-index: 2;
}

.hero-ai__core-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 140, 42, 0.35);
}

.hero-ai__core-ring--1 {
	animation: ai-ring-spin 12s linear infinite;
}

.hero-ai__core-ring--2 {
	inset: 12%;
	border-color: rgba(255, 140, 42, 0.2);
	animation: ai-ring-spin 18s linear infinite reverse;
}

.hero-ai__core-ring--3 {
	inset: 24%;
	border-style: dashed;
	animation: ai-ring-spin 8s linear infinite;
}

.hero-ai__core-inner {
	position: absolute;
	inset: 28%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(145deg, #ff9a3c 0%, #f26522 50%, #d94e0f 100%);
	box-shadow:
		0 0 40px rgba(242, 101, 34, 0.55),
		0 0 80px rgba(242, 101, 34, 0.25),
		inset 0 1px 0 rgba(255, 255, 255, 0.35);
	color: #fff;
	transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

/* Glass cards */
.hero-ai__card {
	position: absolute;
	padding: 0.85rem 1rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	backdrop-filter: blur(16px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
	transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease, border-color 0.4s;
}

.hero-ai__card--chat {
	top: 8%;
	right: 0;
	width: 200px;
}

.hero-ai__card--growth {
	bottom: 12%;
	left: 0;
	width: 160px;
}

.hero-ai__card--metric {
	top: 42%;
	left: -4%;
	padding: 0.65rem 0.9rem;
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.hero-ai__card-head {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.7rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 0.5rem;
}

.hero-ai__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #4ade80;
	box-shadow: 0 0 8px #4ade80;
	animation: ai-blink 2s ease infinite;
}

.hero-ai__badge {
	margin-left: auto;
	padding: 0.15rem 0.4rem;
	font-size: 0.6rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: rgba(242, 101, 34, 0.25);
	color: #ffb366;
	border-radius: 4px;
}

.hero-ai__bubble {
	font-size: 0.68rem;
	line-height: 1.4;
	padding: 0.45rem 0.6rem;
	border-radius: 10px;
	margin-bottom: 0.35rem;
}

.hero-ai__bubble--bot {
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.85);
}

.hero-ai__bubble--user {
	background: linear-gradient(135deg, #f26522, #ff8c2a);
	color: #fff;
	margin-left: 1rem;
	margin-bottom: 0;
}

.hero-ai__card-label {
	display: block;
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.5);
}

.hero-ai__stat {
	display: block;
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 800;
	color: #ff9a3c;
	line-height: 1.1;
}

.hero-ai__card-sub {
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.55);
}

.hero-ai__chart {
	width: 100%;
	height: 36px;
	margin-top: 0.35rem;
}

.hero-ai__chart-line {
	stroke: #ff8c2a;
}

.hero-ai__chart-fill {
	opacity: 1;
}

.hero-ai__chart-line {
	stroke-dasharray: 200;
	stroke-dashoffset: 200;
}

.hero-ai__metric-icon {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: linear-gradient(135deg, #f26522, #ff9a3c);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
}

.hero-ai__card--metric strong {
	display: block;
	font-size: 1rem;
	color: #fff;
}

.hero-ai__card--metric span {
	font-size: 0.65rem;
	color: rgba(255, 255, 255, 0.55);
}

/* Hover — premium lift & glow */
.hero__visual:hover .hero-ai__ambient,
.hero__visual.is-active .hero-ai__ambient {
	animation-duration: 2s;
	opacity: 1;
}

.hero__visual:hover .hero-ai__core-inner,
.hero__visual.is-active .hero-ai__core-inner {
	transform: scale(1.1);
	box-shadow:
		0 0 60px rgba(242, 101, 34, 0.7),
		0 0 100px rgba(242, 101, 34, 0.35);
}

.hero__visual:hover .hero-ai__lines,
.hero__visual.is-active .hero-ai__lines {
	opacity: 1;
}

.hero__visual:hover .hero-ai__node,
.hero__visual.is-active .hero-ai__node {
	animation: ai-node-pulse 1.5s ease infinite alternate;
}

.hero__visual:hover .hero-ai__card--chat,
.hero__visual.is-active .hero-ai__card--chat {
	transform: translate(-8px, -12px) scale(1.03);
	border-color: rgba(255, 140, 42, 0.35);
	box-shadow: 0 24px 50px rgba(242, 101, 34, 0.2);
}

.hero__visual:hover .hero-ai__card--growth,
.hero__visual.is-active .hero-ai__card--growth {
	transform: translate(10px, 8px) scale(1.04);
}

.hero__visual:hover .hero-ai__card--metric,
.hero__visual.is-active .hero-ai__card--metric {
	transform: translate(-12px, -6px) scale(1.05);
}

.hero__visual:hover .hero-ai__chart-line,
.hero__visual.is-active .hero-ai__chart-line {
	stroke-dasharray: 200;
	stroke-dashoffset: 0;
	animation: ai-chart-draw 1.2s ease forwards;
}

@keyframes ai-pulse {
	0%, 100% { transform: scale(1); opacity: 0.7; }
	50% { transform: scale(1.08); opacity: 1; }
}

@keyframes ai-ring-spin {
	to { transform: rotate(360deg); }
}

@keyframes ai-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

@keyframes ai-node-pulse {
	from { opacity: 0.6; }
	to { opacity: 1; }
}

@keyframes ai-chart-draw {
	from { stroke-dashoffset: 200; }
	to { stroke-dashoffset: 0; }
}

/* Smooth transition to stats section */
.hero--dark + .stats-premium {
	background: #f7f8fa;
}

@media (max-width: 1024px) {
	.hero.hero--dark {
		min-height: auto;
		padding-top: calc(var(--header-h) + 3rem);
		padding-bottom: 4rem;
	}

	.hero.hero--dark .hero__inner {
		grid-template-columns: 1fr;
		text-align: left;
		padding-top: 1.5rem;
	}

	.hero.hero--dark .hero__content {
		padding-left: clamp(1.25rem, 5vw, 2rem);
		padding-right: clamp(1.25rem, 5vw, 2rem);
	}

	.hero__visual {
		min-height: auto;
		justify-content: center;
	}
}

@media (max-width: 900px) {
	.site-header--dark .site-nav {
		background: var(--leobit-dark);
		border-top-color: rgba(255, 255, 255, 0.08);
	}

	body.nav-open .site-header--dark {
		background: var(--leobit-dark);
	}

	.site-header--dark .site-nav__list a {
		border-bottom-color: rgba(255, 255, 255, 0.1);
	}

	.site-header--dark .site-nav__list .sub-menu {
		background: transparent;
		border: none;
		box-shadow: none;
	}

	.hero--dark h1 {
		font-size: clamp(1.85rem, 8vw, 2.5rem);
	}

	.hero__title-accent,
	.hero__title-main {
		white-space: normal;
	}

	.hero__visual {
		min-height: auto;
		padding: 0.5rem 0 1.5rem;
		perspective: none;
		overflow: hidden;
	}

	.hero-ai {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"core core"
			"chat chat"
			"metric growth";
		gap: 0.75rem;
		width: 100%;
		max-width: 100%;
		aspect-ratio: auto;
		padding: 0;
	}

	.hero-ai__ambient {
		inset: 10% 5%;
		filter: blur(28px);
	}

	.hero-ai__grid,
	.hero-ai__network {
		display: none;
	}

	.hero-ai__core {
		position: relative;
		grid-area: core;
		top: auto;
		left: auto;
		transform: none;
		justify-self: center;
		width: 96px;
		height: 96px;
		margin: 0.25rem auto 0.5rem;
	}

	.hero-ai__core-inner svg {
		width: 28px;
		height: 28px;
	}

	.hero-ai__card {
		position: relative;
		top: auto !important;
		right: auto !important;
		bottom: auto !important;
		left: auto !important;
		width: auto !important;
		padding: 0.85rem 1rem;
		border-radius: 14px;
		background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
		border: 1px solid rgba(255, 255, 255, 0.1);
		backdrop-filter: blur(8px);
	}

	.hero-ai__bubble {
		font-size: 0.78rem;
		padding: 0.55rem 0.75rem;
	}

	.hero-ai__card-head {
		font-size: 0.72rem;
	}

	.hero-ai__card--chat {
		grid-area: chat;
	}

	.hero-ai__card--metric {
		grid-area: metric;
	}

	.hero-ai__card--growth {
		grid-area: growth;
	}

	.hero-ai__bubble--user {
		margin-left: 0;
	}

	.hero-ai__stat {
		font-size: 1.35rem;
	}

	.hero-ai__chart {
		height: 28px;
	}
}

@media (max-width: 420px) {
	.hero-ai {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"chat chat"
			"growth metric";
		gap: 0.6rem;
	}

	/* Core circle eats vertical space on tiny screens — ambient glow stays */
	.hero-ai__core {
		display: none;
	}

	.hero-ai__ambient {
		inset: 0;
		filter: blur(36px);
		opacity: 0.8;
	}

	.hero-ai__card--chat {
		width: 100% !important;
	}

	.hero-ai__card--growth {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.hero-ai__stat {
		font-size: 1.25rem;
	}

	.hero-ai__chart {
		height: 24px;
	}

	.hero-ai__card--metric {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 0.5rem;
	}

	.hero-ai__metric-icon {
		width: 28px;
		height: 28px;
	}

	.hero-ai__card--metric strong {
		font-size: 1.25rem;
	}

	.hero-ai__card--metric span {
		font-size: 0.7rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-ai__ambient,
	.hero-ai__core-ring,
	.hero-ai__dot,
	.hero-ai__node {
		animation: none !important;
	}
}
