/* 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(2, minmax(0, 1fr));
	gap: 12px;
}
.feature {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: var(--color-bg-elevated);
	border: 1px solid var(--color-bg-subtle);
	border-radius: 10px;
	padding: 16px 18px;
	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: 38px;
	height: 38px;
	min-width: 38px;
	background: color-mix(in srgb, var(--accent, #818cf8) 18%, transparent);
	border: 1px solid color-mix(in srgb, var(--accent, #818cf8) 26%, transparent);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.feature-icon svg,
.feature-icon i {
	width: 18px;
	height: 18px;
	color: var(--accent, #818cf8);
	filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--accent, #818cf8) 26%, transparent));
}
.feature-content {
	flex: 1;
}
.feature h3 {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 4px;
}
.feature p {
	color: #a1a1aa;
	font-size: 13px;
	line-height: 1.5;
}

/* Code Card - Matches feature card styling */
.code-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: var(--color-bg-elevated);
	border: 1px solid var(--color-bg-subtle);
	border-radius: 10px;
	padding: 14px 16px;
	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: 12px;
}
.code-card-content {
	flex: 1;
	min-width: 0;
}
.code-card-content h3 {
	font-size: 14px;
	font-weight: 600;
}
.code-card-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	flex-wrap: wrap;
}
.code-card-copy {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: transparent;
	border: none;
	border-radius: 4px;
	color: #52525b;
	cursor: pointer;
	transition: all 0.15s;
	flex-shrink: 0;
}
.code-card-copy:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #a1a1aa;
}
.code-card-copy.copied {
	background: rgba(34, 197, 94, 0.15);
	color: #22c55e;
}
.code-card-copy.copied:hover {
	background: rgba(34, 197, 94, 0.2);
}
/* CSS-only copy icon */
.icon-copy {
	width: 13px;
	height: 13px;
	position: relative;
}
.icon-copy::before,
.icon-copy::after {
	content: "";
	position: absolute;
	border: 1.5px solid currentColor;
	border-radius: 1.5px;
}
.icon-copy::before {
	width: 8px;
	height: 8px;
	top: 0;
	left: 0;
}
.icon-copy::after {
	width: 8px;
	height: 8px;
	bottom: 0;
	right: 0;
	background: var(--color-bg-elevated);
}
.icon-check {
	width: 13px;
	height: 13px;
	position: relative;
}
.icon-check::before {
	content: "";
	position: absolute;
	width: 8px;
	height: 5px;
	border-left: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg);
	top: 3px;
	left: 2px;
}
.code-card-tab {
	padding: 4px 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 {
	background: var(--color-bg-inset);
	border: 1px solid var(--color-bg-hover);
	border-radius: 6px;
	padding: 12px 14px;
	height: 80px; /* Fixed 3 lines - keeps cards same height */
	overflow: hidden;
}
.code-card-body:hover {
	overflow-y: auto;
}
.code-card-body pre {
	margin: 0;
	font-family: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
	font-size: 12.5px;
	line-height: 1.5;
	color: #e4e4e7;
	white-space: pre-wrap;
	word-break: break-word;
	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;
}

/* Syntax highlighting */
.hl-string {
	color: #a5f3fc;
}
.hl-url {
	color: #86efac;
}
.hl-keyword {
	color: #f472b6;
}
.hl-prop {
	color: #a5b4fc;
}
.hl-tag {
	color: #fbbf24;
}

/* Footer */
footer {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 24px;
	padding: 24px 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: 700px) {
	.features-grid {
		grid-template-columns: 1fr;
	}
	.feature-code {
		grid-column: 1;
	}
}
@media (max-width: 500px) {
	.nav-links {
		gap: 16px;
	}
	.hero {
		padding: 50px 0 40px;
	}
}
