/**
 * _partials/hero.css — home-page hero section styles.
 *
 * Loaded by src/index.njk via its `styles:` frontmatter array.
 *
 * Migrated from src/_includes/partials/hero.njk's inline <style> block
 * as part of #147 PR 3 — CSS file split: complex pages. Same migration
 * rationale as nav.css + footer.css in PR 1 (per Decision 1B from the
 * slicing strategy): browser caching + smaller HTML payload + file-size
 * cap compliance + tooling-friendly. Content byte-for-byte preserved.
 */

/* ─────────────────────────────────────────────────────────────────────
	   HERO SECTION
	   ───────────────────────────────────────────────────────────────────── */

.innov8-hero {
	position: relative;
	padding-top: 168px;
	padding-bottom: 112px;
	overflow: hidden;
}

.innov8-hero-container {
	position: relative;
	z-index: 1;
}

.innov8-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 56px;
	align-items: center;
}

@media (max-width: 980px) {
	.innov8-hero-grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}
	.innov8-hero-right {
		order: 2;
	}
}

@media (max-width: 760px) {
	.innov8-hero {
		padding-top: 140px;
		padding-bottom: 80px;
	}
}

/* ─────────────────────────────────────────────────────────────────────
	   LEFT — eyebrow, headline, subhead, CTAs, stats
	   ───────────────────────────────────────────────────────────────────── */

.innov8-hero-eyebrow {
	margin-bottom: 24px;
}

.innov8-hero-headline {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 800;
	/* Shrunk from clamp(44px, 5.6vw, 88px) to keep "FOR SERIOUS PRODUCTS"
		   inside the left column at common breakpoints (the terminal pane
		   was overlapping at most widths). */
	font-size: clamp(36px, 4.8vw, 72px);
	line-height: 1.02;
	letter-spacing: 0.005em;
	color: var(--fg-primary);
	text-wrap: balance;
	text-transform: uppercase;
}

.innov8-hero-gradient {
	background: linear-gradient(110deg, var(--color-cyan-300) 0%, var(--color-blue-400) 55%, var(--color-cyan-300) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.innov8-hero-accent {
	color: var(--color-amber-400);
	font-variant-numeric: tabular-nums;
}

.innov8-hero-sub {
	font-family: var(--font-sans);
	font-size: 18px;
	line-height: 1.55;
	color: var(--color-ink-200);
	max-width: 540px;
	margin: 26px 0 0;
	text-wrap: pretty;
}

.innov8-hero-sub strong {
	color: var(--color-cyan-300);
	font-weight: 600;
}

.innov8-hero-ctas {
	display: flex;
	gap: 12px;
	margin-top: 32px;
	flex-wrap: wrap;
}

/* Larger CTA variant — pairs with .btn-chip-cta from app.css. */
.btn.btn-lg {
	padding: 14px 26px;
	font-size: 13px;
}

.btn-chip-cta.btn-lg {
	padding: 11px 10px 11px 24px;
}

.btn-chip-cta.btn-lg .btn-chip {
	height: 30px;
	padding: 0 14px;
	font-size: 12px;
}

/* "See the work" — glass secondary variant referenced by the kit but
	   not yet in app.css's @layer components. Local inline definition
	   until Sprint 3 / WS3 promotes it. */
.btn-secondary {
	background: rgba(255, 255, 255, 0.06);
	color: var(--fg-primary);
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.22);
}

.innov8-hero-stats {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	max-width: 560px;
}

.innov8-hero-stat-divider {
	width: 1px;
	height: 38px;
	background: rgba(255, 255, 255, 0.1);
}

.innov8-hero-stat-num {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 32px;
	line-height: 1;
	letter-spacing: -0.01em;
}

.innov8-hero-stat-num span {
	font-size: 0.7em;
	opacity: 0.85;
	margin-left: 1px;
}

.innov8-hero-stat-num-cyan {
	color: var(--color-cyan-300);
}

.innov8-hero-stat-num-blue {
	color: var(--color-blue-300);
}

.innov8-hero-stat-num-amber {
	color: var(--color-amber-400);
}

.innov8-hero-stat-label {
	font-family: var(--font-mono);
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fg-tertiary);
	margin-top: 8px;
}

@media (max-width: 520px) {
	.innov8-hero-stats {
		gap: 14px;
	}
	.innov8-hero-stat-num {
		font-size: 26px;
	}
	.innov8-hero-stat-label {
		font-size: 9.5px;
		letter-spacing: 0.12em;
	}
}

/* ─────────────────────────────────────────────────────────────────────
	   RIGHT — animated evolution.js terminal pane
	   ───────────────────────────────────────────────────────────────────── */

.innov8-term {
	position: relative;
	background: linear-gradient(180deg, rgba(7, 11, 24, 0.92) 0%, rgba(12, 18, 36, 0.92) 100%);
	border: 1px solid rgba(95, 236, 253, 0.22);
	border-radius: 14px;
	box-shadow:
		0 0 0 1px rgba(31, 86, 245, 0.08),
		0 30px 80px -20px rgba(31, 86, 245, 0.35),
		0 10px 32px rgba(0, 0, 0, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(20px) saturate(140%);
	-webkit-backdrop-filter: blur(20px) saturate(140%);
	overflow: hidden;
}

.innov8-term-tick {
	position: absolute;
	width: 10px;
	height: 10px;
	border: 1px solid rgba(95, 236, 253, 0.55);
	pointer-events: none;
}
.innov8-term-tick-tl {
	top: -1px;
	left: -1px;
	border-right: none;
	border-bottom: none;
}
.innov8-term-tick-tr {
	top: -1px;
	right: -1px;
	border-left: none;
	border-bottom: none;
}
.innov8-term-tick-bl {
	bottom: -1px;
	left: -1px;
	border-right: none;
	border-top: none;
}
.innov8-term-tick-br {
	bottom: -1px;
	right: -1px;
	border-left: none;
	border-top: none;
}

.innov8-term-titlebar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.innov8-term-titlebar-left {
	display: flex;
	align-items: center;
	gap: 8px;
}

.innov8-term-led {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.innov8-term-led-cyan {
	background: var(--color-cyan-300);
	box-shadow:
		0 0 8px rgba(95, 236, 253, 0.6),
		inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.innov8-term-led-blue {
	background: var(--color-blue-400);
	box-shadow:
		0 0 8px rgba(56, 102, 255, 0.6),
		inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.innov8-term-led-amber {
	background: var(--color-amber-400);
	box-shadow:
		0 0 8px rgba(245, 158, 11, 0.6),
		inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.innov8-term-filename {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	color: var(--fg-tertiary);
	margin-left: 10px;
	letter-spacing: 0.02em;
}

.innov8-term-filename span {
	color: var(--color-ink-500);
	margin: 0 4px;
}

.innov8-term-titlebar-right {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	color: var(--color-success);
}

.innov8-term-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--color-success);
	box-shadow: 0 0 0 0 rgba(34, 201, 138, 0.6);
	animation: innov8-term-pulse 2.4s ease-out infinite;
}

@keyframes innov8-term-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(34, 201, 138, 0.55);
	}
	70% {
		box-shadow: 0 0 0 7px rgba(34, 201, 138, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(34, 201, 138, 0);
	}
}

.innov8-term-body {
	margin: 0;
	padding: 22px 22px 24px;
	font-family: var(--font-mono);
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--color-ink-100);
	/* NOTE: NO `white-space: pre-wrap` here — it would preserve every
		   literal newline between the source <div>s as a rendered blank
		   line, defeating the .innov8-term-line + .innov8-term-comment
		   sibling-margin pattern below. Block-display divs handle line
		   breaks natively; we control inter-entry spacing via CSS only. */
	word-break: break-word;
}

.innov8-term-line {
	display: block;
}

/* Comment lines — // ── 1994 · First hand-coded site ── */
.innov8-term-comment {
	display: block;
	color: var(--color-blue-300);
	opacity: 0.85;
	font-weight: 500;
	letter-spacing: 0.01em;
}

/* Spacing pattern: a comment that follows ANY previous line gets a
	   blank-line-equivalent of top margin — visually a "blank row between
	   entries". The first comment in the body has no preceding sibling
	   so the selector doesn't match → no top margin → no leading blank
	   above entry one. Within an entry, comment-then-code stacks tight
	   with zero gap. */
.innov8-term-line + .innov8-term-comment {
	margin-top: 2em;
}

.innov8-term-slash {
	color: var(--color-blue-400);
	margin-right: 6px;
}

/* Syntax tokens — brand palette as the color theme */
.innov8-term-tag {
	color: var(--color-ink-300);
}
.innov8-term-str {
	color: var(--color-amber-300);
}
.innov8-term-kw {
	color: var(--color-cyan-300);
}
.innov8-term-fn {
	color: var(--color-blue-300);
}
.innov8-term-key {
	color: var(--color-ink-200);
}
.innov8-term-pun {
	color: var(--color-ink-300);
}

.innov8-term-cursor {
	display: inline-block;
	width: 9px;
	height: 1em;
	background: var(--color-cyan-300);
	vertical-align: -3px;
	margin-left: 4px;
	/* Smooth ease-in-out fade between on + off, 1.1s period — replaces
		   the prior `steps(2, end)` discrete hard-flicker which read as
		   choppy on most monitors. The symmetric keyframes (0%/100% = on,
		   50% = off) give a steady "breathing" rhythm that fits the rest
		   of the brand's motion language (auroras, glows, hover lifts). */
	animation: innov8-term-blink 1.1s ease-in-out infinite;
	box-shadow: 0 0 8px rgba(95, 236, 253, 0.7);
}

@keyframes innov8-term-blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

@media (max-width: 520px) {
	.innov8-term-body {
		font-size: 12px;
		padding: 18px;
	}
}

/* Honor reduced-motion: kill the pulsing LIVE dot + blinking cursor */
@media (prefers-reduced-motion: reduce) {
	.innov8-term-live-dot,
	.innov8-term-cursor {
		animation: none;
	}
}
