/* ================================================================
   FLARE INTERNATIONAL - HERO SECTIONS
   Homepage hero and inner page headers
   ================================================================ */

/* ── HOMEPAGE HERO ── */

.hero {
	min-height: 100vh;
	background: var(--teal-deep);
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
	padding-top: 70px;
}

.hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.hero-bg-gradient {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 65% 70% at 75% 50%, rgba(19, 161, 200, 0.12) 0%, transparent 65%),
		radial-gradient(ellipse 45% 50% at 10% 90%, rgba(254, 187, 138, 0.08) 0%, transparent 60%),
		linear-gradient(180deg, var(--teal-deep) 0%, #0A2430 100%);
}

.hero-dots {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(108, 171, 182, 0.12) 1px, transparent 1px);
	background-size: 48px 48px;
}

.hero-globe-ring {
	position: absolute;
	right: -120px;
	top: 50%;
	transform: translateY(-50%);
	width: 700px;
	height: 700px;
	border-radius: 50%;
	border: 1px solid rgba(108, 171, 182, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-globe-ring::before {
	content: '';
	position: absolute;
	width: 500px;
	height: 500px;
	border-radius: 50%;
	border: 1px solid rgba(254, 187, 138, 0.06);
}

.hero-globe-ring::after {
	content: '';
	position: absolute;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	border: 1px solid rgba(19, 161, 200, 0.1);
}

.hero-content {
	position: relative;
	z-index: 2;
	padding: 80px 0;
	max-width: 1160px;
	margin: 0 auto;
	padding-left: 40px;
	padding-right: 40px;
	width: 100%;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 460px;
	gap: 60px;
	align-items: center;
}

.hero-eyebrow {
	font-family: var(--font-primary);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--teal-blue);
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 24px;
}

.hero-eyebrow::before {
	content: '';
	width: 28px;
	height: 2px;
	background: linear-gradient(90deg, var(--peach-warm), var(--peach-deep));
	display: block;
	border-radius: 2px;
}

.hero h1 {
	font-family: var(--font-primary);
	font-size: clamp(24px, 2.8vw, 38px);
	font-weight: 300;
	line-height: 1.1;
	color: #ffffff;
	margin-bottom: 24px;
}

.hero h1 strong {
	font-weight: 600;
	color: var(--peach-warm);
}

.hero-sub {
	font-size: 17px;
	color: #ffffff;
	line-height: 1.8;
	font-weight: 300;
	margin-bottom: 40px;
	max-width: 520px;
}

.hero-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

/* ── HERO STAT CARDS ── */

.hero-stats {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.stat-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(108, 171, 182, 0.18);
	border-radius: 6px;
	padding: 30px 32px;
	backdrop-filter: blur(8px);
	transition: border-color var(--transition);
}

.stat-card:hover {
	border-color: rgba(254, 187, 138, 0.3);
}

.stat-card .num {
	font-family: var(--font-primary);
	font-size: 40px;
	font-weight: 300;
	color: var(--peach-warm);
	line-height: 1;
	margin-bottom: 8px;
}

.stat-card .label {
	font-size: 14px;
	color: #ffffff;
	letter-spacing: 0.06em;
	font-weight: 300;
}

/* Stat card layout with icon */
.stat-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.stat-card .stat-text {
	flex: 1;
}

.stat-card .stat-icon {
	width: 56px;
	height: 56px;
	background: rgba(108, 171, 182, 0.1);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-left: 20px;
}

/* ── VIDEO HERO ── */

.hero-video-container {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 0;
}

.hero-video-container video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-video-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(10, 36, 48, 0.85) 0%,
		rgba(15, 58, 74, 0.75) 50%,
		rgba(10, 36, 48, 0.9) 100%
	);
	z-index: 1;
}

.hero.hero-has-video .hero-content {
	z-index: 3;
}

.hero-video-controls {
	position: absolute;
	bottom: 36px;
	right: 40px;
	z-index: 4;
}

.hero-video-toggle {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(108, 171, 182, 0.3);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all var(--transition);
	color: rgba(245, 245, 245, 0.8);
	font-size: 14px;
}

.hero-video-toggle:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: var(--peach-warm);
}

/* ── INNER PAGE HERO ── */

.page-hero {
	background: var(--teal-deep);
	padding: 140px 0 80px;
	position: relative;
	overflow: hidden;
}

.page-hero .hero-dots {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(108, 171, 182, 0.08) 1px, transparent 1px);
	background-size: 48px 48px;
}

.page-hero-content {
	position: relative;
	z-index: 2;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 40px;
}

.page-hero .breadcrumb {
	font-family: var(--font-primary);
	font-size: 11px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(245, 245, 245, 0.5);
	margin-bottom: 20px;
}

.page-hero .breadcrumb a {
	color: var(--teal-blue);
	text-decoration: none;
	transition: color var(--transition);
}

.page-hero .breadcrumb a:hover {
	color: var(--peach-warm);
}

.page-hero h1 {
	font-family: var(--font-primary);
	font-size: clamp(36px, 5vw, 64px);
	font-weight: 300;
	line-height: 1.08;
	color: #ffffff;
	margin-bottom: 20px;
}

.page-hero h1 strong {
	font-weight: 600;
	color: var(--peach-warm);
}

.page-hero-desc {
	font-size: 17px;
	color: rgba(245, 245, 245, 0.85);
	line-height: 1.8;
	font-weight: 300;
	max-width: 600px;
}

/* ── FLARE LABS HERO (animated grid + 3D globe) ── */

.labs-hero {
	background: #020d12;
	min-height: 90vh;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
	padding-top: 70px;
}

.labs-hero-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(108, 171, 182, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(108, 171, 182, 0.05) 1px, transparent 1px);
	background-size: 60px 60px;
}

.labs-hero-glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 50% 60% at 30% 50%, rgba(19, 161, 200, 0.15) 0%, transparent 70%);
}

.labs-hero-content {
	position: relative;
	z-index: 10;
	max-width: 1160px;
	margin: 0 auto;
	padding: 80px 40px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: stretch;
}

.labs-hero-content > div:first-child p {
	color: #ffffff !important;
}

/* 3D Globe background */
.labs-globe-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.labs-globe-bg canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
}

.labs-hero h1 {
	font-family: var(--font-primary);
	font-size: clamp(38px, 5vw, 64px);
	font-weight: 300;
	line-height: 1.08;
	color: #ffffff;
}

.labs-hero h1 strong {
	font-weight: 600;
	background: linear-gradient(135deg, var(--peach-warm), var(--teal-mid));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.labs-hero .btn {
	padding: 18px 40px;
	font-size: 15px;
}

/* Terminal code block */
.terminal-block {
	background: rgba(0, 0, 0, 0.85);
	border: 1px solid rgba(108, 171, 182, 0.15);
	border-radius: 8px;
	padding: 28px;
	font-family: 'Courier New', monospace;
	font-size: 15px;
	line-height: 2;
	color: rgba(245, 245, 245, 0.7);
}

.terminal-block .terminal-header {
	display: flex;
	gap: 6px;
	margin-bottom: 20px;
}

.terminal-block .dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.terminal-block .dot-red { background: #ff5f56; }
.terminal-block .dot-yellow { background: #ffbd2e; }
.terminal-block .dot-green { background: #27c93f; }

.terminal-block .cmd { color: var(--teal-blue); }
.terminal-block .string { color: var(--teal-mid); }
.terminal-block .cursor {
	display: inline-block;
	width: 8px;
	height: 16px;
	background: var(--teal-blue);
	animation: pulse 1s ease-in-out infinite;
	vertical-align: middle;
}
