nav {
	background-color: var(--surface-elevated, #fff);
	border-bottom: 1px solid var(--border, #e2e8f0);
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: box-shadow 0.2s;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.nav-container {
	height: 76px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1000px;
	padding: 0 2rem;
	margin: 0 auto;
}

nav .logo a {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--primary-color);
	font-family: var(--font-title);
	text-decoration: none;
	letter-spacing: 0.02em;
	transition: color 0.2s;
}

nav .logo a:hover {
	color: var(--primary-color-hover);
}

nav ul {
	list-style: none;
	display: flex;
	gap: 2rem;
	align-items: center;
	margin: 0;
	padding: 0;
}

nav ul li a {
	color: var(--text-secondary, #334155);
	font-weight: 500;
	font-size: 0.875rem;
	text-decoration: none;
	font-family: var(--font-text);
	letter-spacing: 0.02em;
	transition: color 0.2s;
}

nav ul li a:hover {
	color: var(--text-primary, #0f172a);
}

nav ul li a:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 3px;
	border-radius: 4px;
}

nav ul li a.button {
	padding: 0.5rem 1.25rem;
	border-radius: 9999px;
	font-weight: 600;
	font-size: 0.875rem;
	background: var(--primary-color);
	color: white;
	box-shadow: 0 2px 8px rgba(137, 82, 224, 0.22);
	transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

nav ul li a.button:hover {
	background: var(--primary-color-hover);
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(137, 82, 224, 0.32);
}

nav ul li a.button:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 3px;
}

@media (max-width: 768px) {
	.nav-container {
		padding: 0 1.5rem;
		height: 68px;
		max-width: none;
	}

	nav .logo a {
		font-size: 1.1rem;
	}

	nav ul {
		gap: 1.25rem;
	}

	nav ul li a {
		font-size: 0.875rem;
	}

	nav ul li a.button {
		padding: 0.6rem 1.25rem;
		font-size: 0.875rem;
	}
}

@media (max-width: 480px) {
	.nav-container {
		padding: 0 1rem;
		height: 56px;
	}

	nav ul {
		gap: 0.75rem;
	}

	nav ul li:not(:last-child) a:not(.button) {
		display: none;
	}

	nav ul li a.button {
		padding: 0.6rem 1rem;
		font-size: 0.8125rem;
	}
}