:root {
	/* Colors - As specified in design.md */
	--cloud-canvas: #fafafa;
	--storm-gray-wash: #f0fbff;
	--text-primary: #171717;
	--text-secondary: #4d4d4d;
	--graphite-accent: #000000;
	--border-light: #ebebeb;
	--border-neutral: #666666;
	--text-muted: #7d7d7d;
	--sky-blue: #52aeff;
	--vivid-crimson: #e5484d;
	--vivid-teal: #45dec5;
	--electric-blue: #0070f3;
	--conic-gradient: conic-gradient(
		from 180deg at 50% 70%,
		rgba(250, 250, 250, 0) 0deg,
		rgb(238, 195, 45) 72deg,
		rgb(236, 75, 75) 144deg,
		rgb(112, 154, 185) 216deg,
		rgb(77, 255, 191) 288deg,
		rgba(250, 250, 250, 0) 360deg
	);

	/* Elevation Shadows */
	--shadow-elevated: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px 0px, rgb(250, 250, 250) 0px 0px 0px 1px;
	--shadow-hover: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px 0px, rgba(0, 0, 0, 0.04) 0px 8px 8px -8px, rgb(250, 250, 250) 0px 0px 0px 1px;

	/* Border Radius */
	--radius-lg: 12px;
	--radius-pill: 100px;
	--radius-btn: 9999px;
	--radius-default: 6px;

	/* Spacing */
	--gap-section: 48px;
	--gap-element: 12px;
	--pad-card: 12px;
}

/* Base Styles */
html {
	scroll-behavior: smooth;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--cloud-canvas);
	color: var(--text-primary);
	font-family:
		"Geist",
		"Inter",
		-apple-system,
		sans-serif;
	font-feature-settings: "liga", "ss05";
	-webkit-font-smoothing: antialiased;
	line-height: 1.56;
}

a {
	color: inherit;
}

/* Typography Scale */
.caption {
	font-size: 12px;
	line-height: 1.5;
	letter-spacing: -0.32px;
}
.body-text {
	font-size: 14px;
	line-height: 1.56;
	letter-spacing: -0.32px;
}
.heading-sm {
	font-size: 18px;
	line-height: 1.43;
	letter-spacing: -0.32px;
	font-weight: 600;
}
.heading {
	font-size: 24px;
	line-height: 1.33;
	letter-spacing: -0.48px;
	font-weight: 600;
}
.heading-lg {
	font-size: 32px;
	line-height: 1.25;
	letter-spacing: -0.65px;
	font-weight: 700;
}
.display {
	font-size: 40px;
	line-height: 1.2;
	letter-spacing: -0.72px;
	font-weight: 700;
}
.display-title {
	font-size: 48px;
	line-height: 1.17;
	letter-spacing: -0.72px;
	font-weight: 700;
	margin-bottom: 24px;
}

.text-muted {
	color: var(--text-muted);
}

code,
pre {
	font-family: "Geist Mono", "SFMono-Regular", monospace;
	font-feature-settings: "liga";
}

/* Inline Terminal Code Badges (Clean style) */
p code,
.action-links code,
.body-text code {
	background: #f1f1f1;
	color: var(--text-primary);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9em;
	display: inline-flex;
	align-items: center;
	margin: 0 2px;
	border: 1px solid #e0e0e0;
}

/* Layout Container */
.container {
	max-width: 1024px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Navigation */
.navbar {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: rgba(250, 250, 250, 0.8);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border-light);
	height: 64px;
	display: flex;
	align-items: center;
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.logo {
	display: flex;
	align-items: center;
	font-weight: 600;
	font-size: 28px;
	letter-spacing: -0.32px;
}

.logo-link {
	text-decoration: none;
}

.nav-links {
	display: flex;
	gap: 8px;
}

/* Buttons */
button,
.btn,
a.primary-btn,
a.ghost-btn {
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: -0.32px;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	white-space: nowrap;
	flex-shrink: 0;
}

.primary-btn {
	background-color: var(--text-primary);
	color: #ffffff;
	border: none;
	border-radius: var(--radius-pill);
	padding: 0px 14px;
	height: 40px;
}
.primary-btn:hover {
	background-color: #333;
}
.primary-btn.sm {
	height: 32px;
	font-size: 13px;
}

.ghost-btn {
	background-color: transparent;
	color: var(--text-primary);
	border: none;
	border-radius: var(--radius-pill);
	padding: 0px 14px;
	height: 40px;
}
.ghost-btn:hover {
	background-color: var(--border-light);
}
.ghost-btn.sm {
	height: 32px;
	font-size: 13px;
}

/* Hero Section */
.hero {
	position: relative;
	padding: 5% 0 5%;
	overflow: hidden;
}

/* Gradient Mask to fade the bottom of the hero smoothly into the page */
.hero::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 180px;
	background: linear-gradient(to bottom, rgba(250, 250, 250, 0), var(--cloud-canvas));
	pointer-events: none;
	z-index: 0;
}

.hero-bg {
	position: absolute;
	top: -20%;
	left: 20%;
	width: 60vw;
	height: 60vw;
	background: var(--conic-gradient);
	opacity: 0.15;
	filter: blur(100px);
	border-radius: 50%;
	z-index: -1;
	animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.hero-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
	position: relative;
	z-index: 1;
}

.hero-subtitle {
	font-size: 18px;
	line-height: 1.43;
	letter-spacing: -0.32px;
	color: var(--text-secondary);
	margin-bottom: 32px;
	max-width: 90%;
}

.eyebrow,
.section-kicker {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--electric-blue);
}

.hero-proof {
	margin-top: 16px;
	font-size: 13px;
}

.hero-actions {
	display: flex;
	gap: 16px;
	align-items: center;
}

.install-box {
	display: flex;
	align-items: center;
	background-color: #ffffff;
	border: 1px solid var(--border-light);
	border-radius: var(--radius-default);
	height: 40px;
	padding-left: 12px;
	box-shadow: var(--shadow-elevated);
	max-width: 100%;
}

.install-cmd {
	font-size: 13px;
	color: var(--text-secondary);
	margin-right: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.copy-btn {
	background: none;
	border: none;
	padding: 0 12px;
	height: 100%;
	color: var(--text-muted);
	border-left: 1px solid var(--border-light);
	border-radius: 0 var(--radius-default) var(--radius-default) 0;
}
.copy-btn:hover {
	color: var(--text-primary);
	background-color: var(--storm-gray-wash);
}

/* Hero Visual (Terminal Container) */
.hero-visual {
	height: 400px;
	position: relative;
	border-radius: var(--radius-lg);
}

/* Sections */
.section-block {
	padding: var(--gap-section) 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.section-stack {
	grid-template-columns: 1fr;
}

.full-width {
	width: 100%;
}

.section-intro {
	max-width: 760px;
}
.section-block.reverse-layout {
	direction: rtl;
}
.section-block.reverse-layout > * {
	direction: ltr;
}

.section-text {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Cards */
.card {
	padding: var(--pad-card);
}
.elevated-card {
	background-color: #ffffff;
	border-radius: var(--radius-default);
	box-shadow: var(--shadow-elevated);
	transition: box-shadow 0.2s ease;
}
.elevated-card:hover {
	box-shadow: var(--shadow-hover);
}
.transparent-card {
	background-color: transparent;
	border-radius: 0;
	padding: 16px 0;
}

.seo-card,
.faq-item {
	background: #ffffff;
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: 20px;
	box-shadow: var(--shadow-elevated);
}

.steps-grid,
.use-cases-grid,
.faq-list {
	display: grid;
	gap: 20px;
	margin-top: 24px;
}

.steps-grid,
.use-cases-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.faq-list {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.step-index {
	font-family: "Geist Mono", monospace;
	font-size: 12px;
	font-weight: 600;
	color: var(--electric-blue);
	margin-bottom: 10px;
}

/* Provider List */
.provider-list {
	list-style: none;
	margin-top: 12px;
	display: flex;
	flex-direction: row;
	gap: 8px;
}
.provider-list li {
	font-size: 14px;
	padding-left: 16px;
	position: relative;
	color: var(--text-secondary);
}
.provider-list li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: var(--text-muted);
}
.provider-list li strong {
	color: var(--text-primary);
	font-weight: 500;
}

/* Terminal Mockup */
.code-card {
	padding: 0;
	overflow: hidden;
	background-color: #0a0a0a;
	box-shadow:
		0 20px 40px -10px rgba(0, 0, 0, 0.3),
		0 0 20px rgba(82, 174, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.card-header {
	background-color: #1a1a1a;
	border-bottom: 1px solid #333333;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}
.dot.red {
	background-color: var(--vivid-crimson);
	opacity: 0.8;
}
.dot.yellow {
	background-color: #f5a623;
	opacity: 0.8;
}
.dot.green {
	background-color: var(--vivid-teal);
	opacity: 0.8;
}
.card-title {
	margin-left: auto;
	font-family: "Geist Mono", monospace;
	font-size: 12px;
	color: #888888;
}
.terminal-body {
	padding: 16px;
	background-color: #0a0a0a;
	color: #ededed;
	font-family: "Geist Mono", monospace;
	font-size: 13px;
	line-height: 1.6;
}
.prompt {
	color: var(--electric-blue);
}
.output {
	display: block;
}
.output.success {
	color: var(--vivid-teal);
}
.cursor {
	animation: blink 1s step-end infinite;
}
@keyframes blink {
	50% {
		opacity: 0;
	}
}

/* Commit Preview Component (Inside Terminal) */
.commit-preview {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 16px;
	font-family: "Geist", sans-serif;
}
.commit-item {
	border: 1px solid #333333;
	border-radius: var(--radius-default);
	padding: 12px;
	background-color: #141414;
	color: #ededed;
}
.commit-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}
.commit-type {
	font-family: "Geist Mono", monospace;
	font-size: 12px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
}
.commit-type.feat {
	background-color: rgba(0, 112, 243, 0.15);
	color: var(--electric-blue);
}
.commit-type.fix {
	background-color: rgba(229, 72, 77, 0.15);
	color: var(--vivid-crimson);
}
.commit-msg {
	font-size: 14px;
	font-weight: 500;
}
.commit-files {
	font-size: 12px;
	color: #888888;
}
.commit-actions-tui {
	display: flex;
	align-items: center;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px dashed #333333;
	font-family: "Geist Mono", monospace;
	font-size: 12px;
}
.tui-key {
	background-color: #333;
	color: #fff;
	padding: 2px 6px;
	border-radius: 3px;
	margin-right: 6px;
}
.tui-action {
	color: #888;
}

.bottom-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 80px 24px;
	background: linear-gradient(180deg, var(--cloud-canvas) 0%, #f7f9fa 100%);
	border-top: 1px solid var(--border-light);
}

.bottom-cta .cta-content {
	max-width: 600px;
}

.footer {
	padding: 48px 0;
	text-align: center;
}

.footer-links {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.footer-links a {
	text-decoration: none;
	color: var(--text-secondary);
}

.footer-links a:hover {
	color: var(--text-primary);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
	.hero-container,
	.section-block {
		grid-template-columns: 1fr;
	}
	.display-title {
		font-size: 32px;
	}
	.display {
		font-size: 30px;
	}
	.hero-visual {
		height: 300px;
	}
	.hero-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.hero-subtitle {
		max-width: 100%;
	}
	.nav-links {
		display: none;
	}
	.provider-list {
		flex-direction: column;
	}

	.hero {
		padding: 8% 0 15%;
	}
}

/* Media Queries for Responsiveness */
@media (min-width: 768px) {
	.nav-links-desktop {
		display: none !important;
	}
}
