/* SparkAI Main - Nav, Hero, Features, Code Cards, Footer */
/* SparkAI - Main Page Styles */
@import "base/_variables.css";
@import "base/_scrollbar.css";

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: var(--color-bg);
	color: #fafafa;
	line-height: 1.6;
}

.container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Nav */
nav {
	padding: 20px 0;
	border-bottom: 1px solid var(--color-bg-subtle);
}
nav .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 22px;
	font-weight: 700;
	color: #fafafa;
	text-decoration: none;
}
.logo img {
	height: 38px;
	width: auto;
}
.logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.logo-title {
	font-size: 22px;
	font-weight: 700;
}
.logo-subtitle {
	font-size: 11px;
	font-weight: 500;
	background: #818cf8;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.nav-links {
	display: flex;
	align-items: center;
	gap: 24px;
}
.nav-links a {
	color: #a1a1aa;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s, transform 0.2s;
}
.nav-links a:hover {
	color: #fafafa;
	transform: translateY(-1px);
}
.nav-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	color: #818cf8;
	border: none;
	cursor: pointer;
	transition: color 0.2s, transform 0.2s;
}
.nav-share-btn:hover {
	color: #a5b4fc;
	transform: translateY(-1px);
}
.nav-share-btn i {
	width: 16px;
	height: 16px;
}
.nav-separator {
	color: var(--color-border);
	font-size: 14px;
	font-weight: 300;
	user-select: none;
}
.nav-google-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: transparent;
	border: 1px solid var(--color-bg-subtle);
	border-radius: 50%;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.nav-google-btn:hover {
	border-color: #52525b;
	background: rgba(255, 255, 255, 0.04);
	transform: translateY(-1px);
}
.nav-google-btn svg {
	flex-shrink: 0;
}
.nav-btn {
	padding: 6px 16px;
	background: rgba(255, 255, 255, 0.06);
	color: #a1a1aa;
	border: 1px solid var(--color-bg-subtle);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.nav-btn:hover {
	border-color: #52525b;
	color: #fafafa;
	transform: translateY(-1px);
}

/* Full-page particle background */
#bgContainer {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(
		ellipse at center,
		transparent 0%,
		rgba(9, 9, 11, 0.4) 70%,
		rgba(9, 9, 11, 0.8) 100%
	);
}

.page-content {
	position: relative;
	z-index: 1;
}

/* Hero */
.hero {
	position: relative;
	padding: 70px 0 50px;
	text-align: center;
	overflow: hidden;
}

.hero > * {
	position: relative;
	z-index: 1;
}

.hero .ss-auto-wrap {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 0;
}
.hero-logo {
	max-width: 200px;
	margin: 0 auto 28px;
}
.hero-logo img {
	width: 100%;
	height: auto;
}
h1 {
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 12px;
}
h1 span {
	background: linear-gradient(135deg, #818cf8, #a5b4fc);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.subtitle {
	font-size: 20px;
	max-width: 480px;
	margin: 0 auto 28px;
	min-height: 26px;
	background: #818cf8;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.hero-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 0 auto 26px;
	max-width: 680px;
}
.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #c9c9d1;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1px;
}
.badge .dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #818cf8;
	box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
	flex-shrink: 0;
}
.typewriter {
	border-right: 2px solid #818cf8;
	animation: blink 0.8s step-end infinite;
}
.typewriter em,
.typewriter strong {
	background: linear-gradient(135deg, #818cf8, #a5b4fc);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-style: normal;
	font-weight: 600;
}
@keyframes blink {
	50% {
		border-color: transparent;
	}
}
@keyframes btn-shimmer {
	0%,
	100% {
		left: -100%;
	}
	50% {
		left: 150%;
	}
}
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 24px;
	background: #818cf8;
	color: white;
	text-decoration: none;
	border: none;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 8px 24px rgba(129, 140, 248, 0.35);
	overflow: hidden;
}
.btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 50%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
	animation: btn-shimmer 6s ease-in-out infinite;
}
.btn:hover {
	background: linear-gradient(135deg, #818cf8, #a5b4fc);
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(129, 140, 248, 0.45);
}
.btn svg {
	transition: transform 0.2s;
}
.btn:hover svg {
	transform: translateX(3px);
}
