@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap');

:root {
	--home-bg: #030712;
	--home-bg-alt: #051026;
	--home-card: #0d182f;
	--home-card-soft: #121f3b;
	--home-border: rgba(255, 255, 255, 0.08);
	--home-muted: #95a4c6;
	--accent: #7f5dff;
	--accent-secondary: #22d3ee;
}

.home {
	font-family: 'Sora', 'Space Grotesk', sans-serif;
	color: #f8fbff;
	background: radial-gradient(circle at top right, rgba(127, 93, 255, 0.35), transparent 55%),
		radial-gradient(circle at 10% 20%, rgba(34, 211, 238, 0.25), transparent 50%),
		var(--home-bg);
	margin-top: 40px;
	padding: 80px 0 120px;
	position: relative;
	overflow: hidden;
}

.home::before,
.home::after {
	content: '';
	position: absolute;
	border-radius: 999px;
	filter: blur(80px);
	opacity: 0.4;
	z-index: 0;
}

.home::before {
	width: 400px;
	height: 400px;
	background: rgba(127, 93, 255, 0.35);
	top: -120px;
	right: -60px;
}

.home::after {
	width: 320px;
	height: 320px;
	background: rgba(34, 211, 238, 0.3);
	bottom: -80px;
	left: -40px;
}

.home .container {
	position: relative;
	z-index: 2;
}

.home__hero {
	display: flex;
	align-items: center;
	gap: 60px;
	padding: 0 15px 90px;
}

.home__hero-copy {
	flex: 1;
}

.eyebrow {
	font-size: 0.8rem;
	letter-spacing: 0.16rem;
	text-transform: uppercase;
	color: var(--home-muted);
	margin-bottom: 12px;
}

.home__hero h1 {
	font-size: 3rem;
	line-height: 1.15;
	margin-bottom: 20px;
}

.lead {
	font-size: 1.15rem;
	color: #d5e0ff;
	margin-bottom: 30px;
}

.home__hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 30px;
}

.home .btn {
	border-radius: 999px;
	padding: 12px 26px;
	font-weight: 600;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.home .btn:hover {
	transform: translateY(-2px);
}

.home .btn-primary {
	background: linear-gradient(120deg, var(--accent), var(--accent-secondary));
	border: none;
	color: #fff; /* ensure label stays readable on gradient */
}

.home .btn-outline {
	background: transparent;
	border: 1px solid var(--home-border);
	color: #f8fbff;
}

.home .btn-secondary {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--home-border);
	color: #f8fbff;
}

.home__hero-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
}

.metric {
	border: 1px solid var(--home-border);
	border-radius: 18px;
	padding: 14px 18px;
	background: rgba(13, 24, 47, 0.7);
}

.metric-label {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.08rem;
	text-transform: uppercase;
	color: var(--home-muted);
	margin-bottom: 6px;
}

.metric-value {
	font-size: 1.35rem;
	font-weight: 600;
}

.home__hero-panel {
	flex: 0.9;
	background: linear-gradient(150deg, rgba(10, 21, 43, 0.95), rgba(5, 10, 22, 0.95));
	border-radius: 26px;
	border: 1px solid var(--home-border);
	padding: 26px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.panel-header,
.panel-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.badge {
	font-size: 0.75rem;
	letter-spacing: 0.08rem;
	text-transform: uppercase;
	color: var(--accent-secondary);
}

.panel-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--home-border);
	border-bottom: 1px solid var(--home-border);
}

.panel-list li {
	display: flex;
	justify-content: space-between;
	padding: 18px 0;
	font-weight: 500;
}

.panel-list li + li {
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-list span {
	color: var(--home-muted);
}

.panel-footer a {
	color: var(--accent-secondary);
	font-weight: 600;
}

.section-header {
	max-width: 720px;
	margin-bottom: 32px;
}

.section-header h2 {
	font-size: 2.4rem;
	margin-bottom: 12px;
}

.muted {
	color: var(--home-muted);
}

.home__stats,
.home__features,
.home__community,
.home__cta {
	padding: 0 15px 90px;
}

.data-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

.data-card {
	background: var(--home-card);
	border: 1px solid var(--home-border);
	border-radius: 22px;
	padding: 24px;
	box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s ease, border 0.2s ease;
}

.data-card:hover {
	transform: translateY(-6px);
	border-color: rgba(127, 93, 255, 0.5);
}

.data-label {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.12rem;
	color: var(--home-muted);
}

.data-value {
	display: block;
	font-size: 2rem;
	font-weight: 600;
	margin: 8px 0;
}

.data-footnote {
	font-size: 0.9rem;
	color: var(--home-muted);
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}

.feature-card {
	background: var(--home-card-soft);
	border: 1px solid var(--home-border);
	border-radius: 24px;
	padding: 26px;
	min-height: 220px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.feature-icon {
	font-size: 1.8rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 16px;
	background: rgba(127, 93, 255, 0.15);
	margin-bottom: 16px;
	color: #f8fbff;
}

.feature-card h3 {
	font-size: 1.3rem;
	margin-bottom: 12px;
}

.home__community {
	display: flex;
	gap: 40px;
	align-items: stretch;
}

.community-copy {
	flex: 1;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--home-border);
	border-radius: 26px;
	padding: 32px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.community-list {
	margin: 20px 0;
	padding-left: 20px;
	color: #e1e9ff;
}

.community-list li + li {
	margin-top: 8px;
}

.community-widget {
	flex: 0.9;
	background: rgba(5, 7, 12, 0.55);
	border-radius: 26px;
	border: 1px solid var(--home-border);
	padding: 20px;
}

.community-widget iframe {
	width: 100%;
	min-height: 420px;
	border: none;
	border-radius: 18px;
	background: #0b0f1c;
}

.home__cta .cta-card {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	background: linear-gradient(135deg, rgba(127, 93, 255, 0.15), rgba(34, 211, 238, 0.15));
	border: 1px solid var(--home-border);
	border-radius: 28px;
	padding: 36px;
}

.cta-actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

@media (max-width: 992px) {
	.home__hero,
	.home__community {
		flex-direction: column;
	}

	.home__hero-panel,
	.community-widget {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.home {
		padding-top: 50px;
	}

	.home__hero h1 {
		font-size: 2.3rem;
	}

	.home__hero,
	.home__stats,
	.home__features,
	.home__community,
	.home__cta {
		padding-left: 0;
		padding-right: 0;
	}

	.feature-grid,
	.data-grid {
		grid-template-columns: 1fr;
	}

	.community-widget iframe {
		min-height: 360px;
	}
}