/*
 * Home — Intelligence Hero
 * All rules scoped under .orbiee-intelligence-hero per the brief (no bare
 * h1{}/.card{}/.container{} selectors). Uses this theme's existing design
 * tokens (tokens.css custom properties) where they line up with the spec,
 * with literal fallback values so this file works even if tokens.css isn't
 * loaded on a given page.
 */

.orbiee-intelligence-hero {
	position: relative;
	background: var(--orbiee-bg, #05070b);
	color: var(--orbiee-text, #f5f5f7);
	overflow: hidden;
	padding-block: clamp(3rem, 8vw, 6rem);
}

.orbiee-intelligence-hero__container {
	position: relative;
	z-index: 2;
	max-width: var(--container-max, 1440px);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, var(--space-md, 1.5rem));
}

.orbiee-intelligence-hero__eyebrow {
	margin: 0 0 1rem;
	font-family: 'JetBrains Mono', 'Courier New', monospace;
	font-size: 0.6875rem;
	font-weight: 400;
	letter-spacing: 0.095rem;
	text-transform: uppercase;
	color: var(--orbiee-text-muted, #8b939f);
}

.orbiee-intelligence-hero__title {
	margin: 0 0 1.25rem;
	max-width: 14ch;
	font-family: var(--font-serif, 'Playfair Display', Georgia, 'Times New Roman', serif);
	font-weight: 400;
	font-size: clamp(2.25rem, 5.5vw, 4.5rem); /* ~68–76px on desktop per spec */
	line-height: 1.02; /* spec asked 0.95–1.05; 1.02 keeps ascenders/descenders from clipping across 3 lines */
	letter-spacing: -0.02em;
	color: var(--orbiee-white, #ffffff);
}

.orbiee-intelligence-hero__title-highlight {
	background: linear-gradient(90deg, #c084fc 0%, #a855f7 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.orbiee-intelligence-hero__description {
	max-width: 46ch;
	color: var(--orbiee-text-muted, #8b939f);
	font-size: 1rem;
	line-height: 1.6;
}
.orbiee-intelligence-hero__description p {
	margin: 0 0 0.75rem;
}
.orbiee-intelligence-hero__description p:last-child {
	margin-bottom: 0;
}

/* ---- Orb ---- */
.orbiee-intelligence-hero__orb {
	position: absolute;
	top: 50%;
	right: clamp(-4%, 2vw, 8%);
	z-index: 1;
	width: clamp(240px, 34vw, 460px);
	aspect-ratio: 1;
	transform: translateY(-42%);
	pointer-events: none;
	animation: orbiee-intelligence-orb-float 10s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
	.orbiee-intelligence-hero__orb { animation: none; }
}
@keyframes orbiee-intelligence-orb-float {
	0%, 100% { transform: translateY(-42%) translateX(0); }
	50%      { transform: translateY(-46%) translateX(-2%); }
}

.orbiee-intelligence-hero__orb-glow {
	position: absolute;
	inset: -25%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(168, 85, 247, 0.32) 0%, rgba(168, 85, 247, 0.12) 45%, transparent 75%);
	filter: blur(24px);
}
.orbiee-intelligence-hero__orb-glow-img {
	position: absolute;
	inset: -20%;
	width: 140%;
	height: 140%;
	max-width: none;
	object-fit: contain;
	opacity: 0.8;
}

.orbiee-intelligence-hero__orb-img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 0 50px rgba(168, 85, 247, 0.35));
}

/* CSS-only fallback sphere, used only when no orb image is uploaded in ACF. */
.orbiee-intelligence-hero__orb-sphere {
	position: absolute;
	inset: 6%;
	border-radius: 50%;
	background:
		radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.5) 0%, transparent 8%),
		radial-gradient(circle at 60% 65%, rgba(255, 255, 255, 0.16) 0%, transparent 12%),
		radial-gradient(circle at 40% 40%, #d9a6f5 0%, #b06fe0 40%, #7c3aed 75%, #5b21b6 100%);
	box-shadow: inset 0 -14px 34px rgba(0, 0, 0, 0.32), 0 0 60px rgba(168, 85, 247, 0.4);
	opacity: 0.9;
}

@media (max-width: 900px) {
	.orbiee-intelligence-hero__orb {
		position: relative;
		inset: auto;
		top: auto;
		right: auto;
		transform: none;
		width: clamp(180px, 55vw, 300px);
		margin: 2rem auto 0;
	}
	@keyframes orbiee-intelligence-orb-float {
		0%, 100% { transform: translateY(0); }
		50%      { transform: translateY(-3%); }
	}
}

/* ---- Feature cards ---- */
.orbiee-intelligence-hero__features {
	position: relative;
	z-index: 2;
	margin-top: clamp(2rem, 6vw, 3.5rem);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.orbiee-intelligence-hero__card {
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.orbiee-intelligence-hero__card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: var(--orbiee-text-muted, #8b939f);
}
.orbiee-intelligence-hero__card-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.orbiee-intelligence-hero__card-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--orbiee-white, #ffffff);
}

.orbiee-intelligence-hero__card-description {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--orbiee-text-muted, #8b939f);
}

/* ---- Responsive: tablet ---- */
@media (max-width: 900px) {
	.orbiee-intelligence-hero__title { max-width: 100%; }
	.orbiee-intelligence-hero__features {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---- Responsive: mobile ---- */
@media (max-width: 560px) {
	.orbiee-intelligence-hero {
		padding-inline: 0; /* container itself controls horizontal padding; avoids double-padding + overflow */
	}
	.orbiee-intelligence-hero__features {
		grid-template-columns: 1fr;
	}
}
