/* ==========================================================================
   Hero — full-screen introduction
   ========================================================================== */

/*
 * The hero is pinned to the viewport (position: fixed) so it behaves like a
 * fixed poster: it stays put while the page scrolls, and the section right
 * after it (see .mct-about's rounded top edge in about.css) slides up and
 * covers it. `.mct-hero__spacer` reserves the scroll distance the fixed
 * hero would otherwise remove from the document flow. Disabled on tablet/
 * mobile in responsive.css, where fixed full-height backgrounds are janky.
 */
.mct-hero {
	position: fixed;
	inset-inline: 0;
	top: 0;
	height: 100vh;
	z-index: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	background: var(--mct-gradient-dark);
	overflow: hidden;
	padding-top: 140px;
}

.mct-hero__spacer {
	height: 100vh;
}

/*
 * Every section after the hero — plus the footer — must be an explicitly
 * stacked element, not a plain static one: in CSS paint order, positioned
 * z-index:0 elements (our fixed hero) paint ABOVE static in-flow siblings,
 * so without this every section past .mct-about would render underneath
 * the pinned hero instead of over it.
 */
#mct-main-content > section:not(.mct-hero),
.mct-footer {
	position: relative;
	z-index: 1;
}

.mct-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.mct-hero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.55;
}

.mct-hero__glow--1 {
	width: 520px;
	height: 520px;
	top: -160px;
	inset-inline-end: -120px;
	background: radial-gradient(circle, var(--mct-primary) 0%, transparent 70%);
}

.mct-hero__glow--2 {
	width: 420px;
	height: 420px;
	bottom: -140px;
	inset-inline-start: -100px;
	background: radial-gradient(circle, var(--mct-light-blue) 0%, transparent 70%);
	opacity: 0.25;
}

.mct-hero__dna {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.35;
	animation: mct-dna-drift 10s ease-in-out infinite;
}

.mct-hero__particles {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.5), transparent 60%),
		radial-gradient(2px 2px at 70% 20%, rgba(102, 224, 255, 0.6), transparent 60%),
		radial-gradient(1.5px 1.5px at 40% 70%, rgba(255, 255, 255, 0.4), transparent 60%),
		radial-gradient(2px 2px at 85% 65%, rgba(102, 224, 255, 0.5), transparent 60%),
		radial-gradient(1.5px 1.5px at 55% 45%, rgba(255, 255, 255, 0.35), transparent 60%),
		radial-gradient(2px 2px at 10% 80%, rgba(102, 224, 255, 0.4), transparent 60%);
	background-repeat: no-repeat;
	animation: mct-particles-drift 14s ease-in-out infinite alternate;
}

.mct-hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--mct-container);
	margin: 0 auto;
	width: 100%;
	padding: 40px 24px;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: 40px;
}

/*
 * Grid items default to min-width:auto, so text that can't find a break
 * point (long Latin words mixed into the RTL copy) was pushing this column
 * wider than the viewport; .mct-hero's overflow:hidden then silently
 * clipped the overflow instead of wrapping it. min-width:0 lets it shrink
 * and wrap properly at narrow widths.
 */
.mct-hero__content,
.mct-hero__visual {
	min-width: 0;
}

.mct-hero .mct-eyebrow {
	color: var(--mct-light-blue);
	margin-bottom: 40px;
}

.mct-hero .mct-eyebrow span {
	background: var(--mct-light-blue);
}

.mct-hero__title {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: clamp(34px, 4.6vw, 58px);
	line-height: 1.18;
	margin-bottom: 60px;
}

/*
 * Color is set directly on the line spans, not just inherited from the h1:
 * tokens.css's global ".mct-body h1{color:...}" reset (specificity 0-1-1)
 * out-ranks ".mct-hero__title{color:...}" (0-1-0), so relying on inheritance
 * left the plain title lines rendering in the dark body-text color — nearly
 * invisible on this dark background.
 */
.mct-hero__title-line {
	color: var(--mct-white);
}

.mct-hero__title-line--accent {
	color: var(--mct-light-blue);
	font-size: clamp(40px, 5.4vw, 68px);
}

.mct-accent {
	color: var(--mct-light-blue);
}

/*
 * ".mct-hero .mct-hero__desc" (0,2,0) — not just ".mct-hero__desc" (0,1,0) —
 * because tokens.css's global ".mct-body p{color:#3C4A5E}" reset is (0,1,1),
 * which otherwise wins and silently turns this back into dark, low-contrast
 * body text. Same class of bug as the title-line fix above.
 */
.mct-hero .mct-hero__desc {
	color: var(--mct-white);
	font-weight: 600;
	font-size: 17px;
	line-height: 1.9;
	max-width: 520px;
	margin-bottom: 40px;
	text-shadow: 0 2px 14px rgba(3, 10, 20, 0.55);
	text-align: justify;
}

.mct-hero__cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 16px;
	margin-bottom: 52px;
}

.mct-hero__badges-row {
	position: relative;
	z-index: 1;
	margin-top: -8px;
	padding-bottom: 44px;
}

.mct-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
}

.mct-hero__badges li {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	white-space: nowrap;
	color: var(--mct-text);
}

.mct-hero__badges svg {
	width: 19px;
	height: 19px;
	color: var(--mct-light-blue);
	flex-shrink: 0;
}

.mct-hero__visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	perspective: 1000px;
}

.mct-hero__device-wrap {
	position: relative;
	max-width: 640px;
	width: 100%;
	transition: transform 0.25s var(--mct-ease);
	transform-style: preserve-3d;
}

.mct-hero__device {
	position: relative;
	z-index: 2;
	filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45));
	animation: mct-float 6s ease-in-out infinite;
}

.mct-hero__ring {
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(102, 224, 255, 0.25);
	z-index: 1;
}

.mct-hero__ring--1 {
	inset: 6%;
	animation: mct-spin 40s linear infinite;
}

.mct-hero__ring--2 {
	inset: -6%;
	border-style: dashed;
	opacity: 0.5;
	animation: mct-spin 60s linear infinite reverse;
}

.mct-hero__scroll {
	position: absolute;
	z-index: 1;
	inset-inline: 0;
	bottom: 28px;
	margin: 0 auto;
	width: fit-content;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: var(--mct-text-muted);
}

.mct-hero__scroll-line {
	width: 1px;
	height: 34px;
	background: linear-gradient(var(--mct-light-blue), transparent);
	animation: mct-scroll-line 2s ease-in-out infinite;
}

.mct-hero__scroll-text {
	font-size: 12px;
	letter-spacing: 0.08em;
}

@keyframes mct-scroll-line {
	0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
	50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
	100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.4; }
}
