:root {
	/* Colors */
	--color-bg: #ffffff;
	--color-bg-alt: #f8fafc;
	--color-text: #0f172a;
	--color-text-muted: #64748b;
	--color-primary: #4f46e5;
	/* Indigo 600 */
	--color-primary-hover: #4338ca;
	--color-secondary: #0ea5e9;
	/* Sky 500 */
	--color-accent: #8b5cf6;
	/* Violet 500 */
	--color-border: #e2e8f0;

	/* Node Colors */
	--node-human-bg: #eff6ff;
	--node-human-border: #3b82f6;
	--node-system-bg: #f1f5f9;
	--node-system-border: #64748b;
	--node-ai-bg: #faf5ff;
	--node-ai-border: #a855f7;
	--node-auto-bg: #fff7ed;
	--node-auto-border: #f97316;

	/* Spacing */
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 1.5rem;
	--spacing-lg: 2rem;
	--spacing-xl: 4rem;

	/* Typography */
	--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
	--font-serif: 'DM Serif Text', serif;
	--font-mono: 'JetBrains Mono', monospace;
}

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

body {
	font-family: var(--font-sans);
	color: var(--color-text);
	background-color: var(--color-bg);
	line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-serif);
	line-height: 1;
	font-weight: 400;
	color: var(--color-text);
	margin-bottom: var(--spacing-sm);
}

h1 {
	font-size: 3.25rem;
}

h2 {
	font-size: 2.5rem;
}

h3 {
	font-size: 2rem;
}

h4 {
	font-size: 1.5rem;
}

h5 {
	font-size: 1.25rem;
}

h6 {
	font-size: 1rem;
}

a {
	color: var(--color-primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Utilities */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--spacing-md);
}

.section {
	padding: var(--spacing-xl) 0;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border-radius: 0.375rem;
	font-weight: 600;
	transition: all 0.2s;
	cursor: pointer;
	border: none;
}

.btn-primary {
	background-color: var(--color-primary);
	color: white;
}

.btn-primary:hover {
	background-color: var(--color-primary-hover);
	text-decoration: none;
}

.btn-secondary {
	background-color: white;
	border: 1px solid var(--color-border);
	color: var(--color-text);
}

.btn-secondary:hover {
	background-color: var(--color-bg-alt);
	text-decoration: none;
}

.badge {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	background-color: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	color: var(--color-text-muted);
}

/* Layouts */
.grid {
	display: grid;
	gap: var(--spacing-lg);
}

.grid-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {

	.grid-cols-2,
	.grid-cols-3 {
		grid-template-columns: 1fr;
	}
}

.flex {
	display: flex;
}

.flex-wrap {
	flex-wrap: wrap;
}

.items-center {
	align-items: center;
}

.justify-between {
	justify-content: space-between;
}

.justify-center {
	justify-content: center;
}

.gap-sm {
	gap: var(--spacing-sm);
}

.gap-md {
	gap: var(--spacing-md);
}

/* Components */
.card {
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	padding: var(--spacing-md);
	background: white;
	transition: box-shadow 0.2s;
}

.card:hover {
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	text-decoration: none;
}

/* Specific Sections */
.hero {
	text-align: center;
	padding: 6rem 0;
	background: linear-gradient(to bottom, var(--color-bg-alt), white);
}

.hero h1 {
	font-size: 4.5rem;
	margin-bottom: var(--spacing-md);
	letter-spacing: -0.025em;
	line-height: 1;
}

.hero p {
	font-size: 1.25rem;
	color: var(--color-text-muted);
	max-width: 600px;
	margin: 0 auto var(--spacing-lg);
}

.filters {
	background: white;
	padding: 0 0 var(--spacing-md);
	position: sticky;
	top: 0;
	z-index: 10;
}

.filter-group select,
.filter-group input {
	padding: 0.5rem;
	border: 1px solid var(--color-border);
	border-radius: 0.25rem;
	font-family: inherit;
}

/* Diagram Styles */
.diagram-container {
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	padding: var(--spacing-lg);
	overflow-x: auto;
	display: flex;
	justify-content: center;
}

.diagram-node {
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	border: 2px solid;
	font-weight: 600;
	font-size: 0.875rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.node-human {
	background: var(--node-human-bg);
	border-color: var(--node-human-border);
	color: #1e40af;
}

.node-system {
	background: var(--node-system-bg);
	border-color: var(--node-system-border);
	color: #334155;
}

.node-ai {
	background: var(--node-ai-bg);
	border-color: var(--node-ai-border);
	color: #7e22ce;
}

.node-auto {
	background: var(--node-auto-bg);
	border-color: var(--node-auto-border);
	color: #c2410c;
}

/* Footer */
footer {
	background: var(--color-bg-alt);
	padding: var(--spacing-xl) 0;
	margin-top: var(--spacing-xl);
	border-top: 1px solid var(--color-border);
	text-align: center;
	color: var(--color-text-muted);
}

footer p {
	font-family: var(--font-serif);
	font-weight: 400;
}

/* Logo Slider */
.logo-slider {
	background: white;
	padding: 2rem 0;
	border-bottom: 1px solid var(--color-border);
	overflow: hidden;
	position: relative;
}

.logo-slider::before,
.logo-slider::after {
	content: "";
	position: absolute;
	top: 0;
	width: 100px;
	height: 100%;
	z-index: 2;
	pointer-events: none;
}

.logo-slider::before {
	left: 0;
	background: linear-gradient(to right, white, transparent);
}

.logo-slider::after {
	right: 0;
	background: linear-gradient(to left, white, transparent);
}

.logo-track {
	display: flex;
	gap: 4rem;
	width: max-content;
	animation: scroll 30s linear infinite;
}

.logo-track img {
	height: 55px;
	width: auto;
	object-fit: contain;
	filter: grayscale(100%) opacity(0.6);
	transition: filter 0.3s;
}

.logo-track img:hover {
	filter: grayscale(0%) opacity(1);
}

@keyframes scroll {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}