/* SparkAI Main - Features, Code Cards, Footer, Responsive */
/* Features */
.features {
	padding: 24px 0 50px;
}
.features h2 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 24px;
	text-align: center;
}
.features-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}
.feature {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 10px;
	row-gap: 2px;
	background: var(--color-bg-elevated);
	border: 1px solid var(--color-bg-subtle);
	border-radius: 10px;
	padding: 12px 14px;
	transition: border-color 0.2s, transform 0.2s ease, background 0.2s ease;
}
.feature:hover {
	border-color: rgba(255, 255, 255, 0.12);
	transform: translateY(-2px);
	background: rgba(24, 24, 27, 0.85);
}
.feature.feature-code {
	padding: 0;
	background: transparent;
	border: none;
	display: block;
	min-width: 0;
	overflow: hidden;
}
.feature.feature-code:hover {
	transform: none;
	background: transparent;
	border-color: transparent;
}
.feature-icon {
	width: 28px;
	height: 28px;
	min-width: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.feature-icon svg,
.feature-icon i {
	width: 22px;
	height: 22px;
	color: var(--accent, #818cf8);
	filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--accent, #818cf8) 26%, transparent));
	transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), filter 0.25s ease;
}
.feature:not(.feature-code):hover .feature-icon svg,
.feature:not(.feature-code):hover .feature-icon i {
	transform: scale(1.18) rotate(-6deg);
	filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--accent, #818cf8) 40%, transparent));
}
.feature-content {
	flex: 1;
	min-width: 0;
}
.feature:not(.feature-code) .feature-content {
	display: contents;
}
.feature:not(.feature-code) h3 {
	flex: 1;
	font-size: 14px;
	font-weight: 600;
}
.feature:not(.feature-code) p {
	width: 100%;
	color: #a1a1aa;
	font-size: 12.5px;
	line-height: 1.45;
	margin: 0;
}
.feature.feature-code h3 {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 4px;
}
.feature.feature-code p {
	color: #a1a1aa;
	font-size: 13px;
	line-height: 1.5;
}

/* Code Card - Matches feature card styling */
.code-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--color-bg-elevated);
	border: 1px solid var(--color-bg-subtle);
	border-radius: 10px;
	padding: 12px 14px;
	transition: border-color 0.2s, transform 0.2s ease, background 0.2s ease;
	overflow: hidden;
	min-width: 0;
}
.code-card:hover {
	border-color: rgba(255, 255, 255, 0.12);
	transform: translateY(-2px);
	background: rgba(24, 24, 27, 0.85);
}
.code-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
}
.code-card-content {
	flex: 1;
	min-width: 0;
}
.code-card-content h3 {
	font-size: 14px;
	font-weight: 600;
}
.code-card-tabs {
	display: flex;
	align-items: center;
	gap: 2px;
}
.code-card-tab {
	padding: 3px 8px;
	font-size: 11px;
	font-weight: 500;
	color: #71717a;
	background: transparent;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.15s;
	white-space: nowrap;
}
.code-card-tab:hover {
	color: #a1a1aa;
}
.code-card-tab.active {
	color: #e4e4e7;
	background: rgba(255, 255, 255, 0.08);
}
.code-card-body {
	position: relative;
	background: var(--color-bg-inset);
	border: 1px solid var(--color-bg-hover);
	border-radius: 6px;
	padding: 10px 12px;
	height: 82px;
	overflow: auto;
}
.code-card-copy {
	position: absolute;
	top: 4px;
	right: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	background: transparent;
	border: none;
	border-radius: 3px;
	color: #3f3f46;
	cursor: pointer;
	transition: color 0.15s;
	z-index: 1;
	opacity: 0;
}
.code-card-body:hover .code-card-copy {
	opacity: 1;
}
.code-card-copy:hover {
	color: #a1a1aa;
}
.code-card-copy.copied {
	opacity: 1;
	color: #22c55e;
}
/* CSS-only copy icon */
.icon-copy {
	width: 11px;
	height: 11px;
	position: relative;
}
.icon-copy::before,
.icon-copy::after {
	content: "";
	position: absolute;
	border: 1.5px solid currentColor;
	border-radius: 1px;
}
.icon-copy::before {
	width: 7px;
	height: 7px;
	top: 0;
	left: 0;
}
.icon-copy::after {
	width: 7px;
	height: 7px;
	bottom: 0;
	right: 0;
	background: var(--color-bg-inset);
}
.icon-check {
	width: 11px;
	height: 11px;
	position: relative;
}
.icon-check::before {
	content: "";
	position: absolute;
	width: 7px;
	height: 4px;
	border-left: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg);
	top: 2px;
	left: 1px;
}
.code-card-body::-webkit-scrollbar {
	width: 4px;
	height: 4px;
}
.code-card-body::-webkit-scrollbar-track {
	background: transparent;
}
.code-card-body::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
}
.code-card-body::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.2);
}
.code-card-body::-webkit-scrollbar-corner {
	background: transparent;
}
.code-card-body pre {
	margin: 0;
	-webkit-user-select: text;
	user-select: text;
	cursor: text;
	font-family: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
	font-size: 12px;
	line-height: 1.5;
	color: #e4e4e7;
	white-space: pre;
	font-feature-settings: "liga" 1, "calt" 1;
	letter-spacing: -0.01em;
}
.code-comment {
	color: #6b7280;
}
.code-string {
	color: #a5f3fc;
}
.code-attr {
	color: #a5b4fc;
}
.code-keyword {
	color: #f472b6;
}

/* Prism.js syntax highlighting */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: #6b7280;
	font-style: italic;
}
.token.punctuation {
	color: #9ca3af;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol {
	color: #f472b6;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin {
	color: #34d399;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
	color: #fbbf24;
}
.token.atrule,
.token.attr-value,
.token.keyword {
	color: #818cf8;
}
.token.function,
.token.class-name {
	color: #60a5fa;
}
.token.regex,
.token.important {
	color: #fb923c;
}

/* Footer */
footer {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 24px;
	padding: 12px 32px;
	border-top: 1px solid var(--color-bg-subtle);
}
footer a {
	color: #52525b;
	text-decoration: none;
	font-size: 13px;
	transition: color 0.2s, transform 0.2s;
}
footer a:hover {
	color: #a1a1aa;
	transform: translateY(-1px);
}

@media (max-width: 900px) {
	.features-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 700px) {
	.features-grid {
		grid-template-columns: 1fr;
	}
	.feature-code {
		grid-column: 1;
	}
}
@media (max-width: 500px) {
	.container {
		padding: 0 16px;
	}
	nav {
		padding: 14px 0;
	}
	.nav-links {
		gap: 12px;
	}
	.nav-links a {
		font-size: 13px;
	}
	.nav-separator {
		display: none;
	}
	.hero {
		padding: 40px 0 32px;
	}
	.subtitle {
		font-size: 17px;
		padding: 0 8px;
	}
	.hero-badges {
		gap: 8px;
		padding: 0 4px;
	}
	.badge {
		font-size: 12px;
		padding: 6px 10px;
		gap: 6px;
	}
	.btn {
		font-size: 14px;
		padding: 12px 20px;
	}
	.features {
		padding: 16px 0 40px;
	}
	.feature {
		padding: 14px;
		gap: 12px;
	}
	.code-card-tab {
		padding: 2px 6px;
		font-size: 10px;
	}
}
@media (max-width: 360px) {
	.logo-title {
		font-size: 18px;
	}
	.logo img {
		height: 30px;
	}
	.hero-badges {
		flex-direction: column;
		align-items: center;
	}
}
