:root {
	--bg: #f8fafc;
	--surface: #ffffff;
	--ink: #0b1220;
	--muted: #5b6474;
	--navy: #0f1f3d;
	--navy-2: #162b52;
	--line: #e5e7eb;
	--accent: #0ea5e9;
	--shadow: 0 18px 42px rgba(15, 31, 61, 0.12);
	--radius: 16px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Manrope', 'Segoe UI', sans-serif;
	background: var(--bg);
	color: var(--ink);
	line-height: 1.6;
}

a {
	color: inherit;
	text-decoration: none;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1rem 3.5vw;
	background: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid var(--line);
}

.brand {
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--navy);
}

nav {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

nav a {
	color: var(--muted);
	font-weight: 600;
	font-size: 0.95rem;
}

nav a:hover {
	color: var(--navy);
}

.btn {
	border: none;
	border-radius: 999px;
	padding: 0.65rem 1.5rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
	background: var(--navy);
	color: #ffffff;
	box-shadow: 0 10px 24px rgba(15, 31, 61, 0.2);
}

.btn-primary:hover {
	background: var(--navy-2);
	transform: translateY(-1px);
}

.btn-ghost {
	background: transparent;
	color: var(--navy);
	border: 1px solid var(--line);
}

.btn-ghost:hover {
	border-color: var(--navy);
	color: var(--navy-2);
	transform: translateY(-1px);
}

.hero {
	padding: 5.5rem 8vw 2.5rem;
	background: #ffffff;
	border-bottom: 1px solid var(--line);
}

.pill-row {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.pill {
	background: #f0f4ff;
	color: var(--navy);
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
}

.hero h1 {
	font-size: clamp(2.4rem, 4vw, 3.6rem);
	margin: 0 0 1rem;
	color: var(--navy);
}

.hero p {
	max-width: 780px;
	color: var(--muted);
	margin-bottom: 2rem;
}

.hero-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
	margin-top: 2.5rem;
}

.stat-card {
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 1rem 1.25rem;
}

.stat-card .label {
	color: var(--muted);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.stat-card .value {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--navy);
}

.page {
	padding: 2.5rem 8vw 4rem;
}

.section {
	margin: 3rem 0;
}

.section h2 {
	margin: 0 0 1rem;
	color: var(--navy);
	font-size: clamp(1.6rem, 2.2vw, 2.2rem);
}

.section h3 {
	margin-top: 0;
	color: var(--navy);
}

.logo-section {
	padding: 1.5rem 0 0;
}

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.75rem;
	color: var(--muted);
	margin-bottom: 1rem;
	font-weight: 700;
}

.logo-strip {
	overflow: hidden;
	position: relative;
	width: 100%;
}

.logo-track {
	display: flex;
	gap: 1.25rem;
	align-items: center;
	width: max-content;
	animation: logo-scroll 28s linear infinite;
}

.logo-item {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 86px;
	min-width: 140px;
	flex: 0 0 auto;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-item img {
	max-height: 48px;
	max-width: 140px;
	width: auto;
	height: auto;
	display: block;
	object-fit: contain;
	filter: grayscale(100%) contrast(0.95);
	opacity: 0.85;
}

.logo-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(15, 31, 61, 0.12);
}

.logo-item:hover img {
	filter: none;
	opacity: 1;
}

.logo-strip:hover .logo-track {
	animation-play-state: paused;
}

@keyframes logo-scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
}

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.6rem;
	box-shadow: var(--shadow);
}

.card-spaced {
	margin-bottom: 1.5rem;
}

.oauth-buttons-container {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.oauth-btn {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 0.85rem 1.5rem;
	font-weight: 700;
	background: #ffffff;
	color: var(--navy);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

.oauth-icon {
	width: 18px;
	height: 18px;
	display: inline-block;
}

.oauth-btn:hover {
	border-color: var(--navy);
}

form {
	display: grid;
	gap: 1rem;
	max-width: 720px;
}

label {
	display: grid;
	gap: 0.5rem;
	color: var(--navy);
	font-weight: 600;
}

input,
select {
	padding: 0.85rem 1rem;
	border: 1px solid var(--line);
	border-radius: 12px;
	font-size: 1rem;
}

input:focus,
select:focus {
	outline: none;
	border-color: var(--navy);
	box-shadow: 0 0 0 3px rgba(15, 31, 61, 0.12);
}

.gdpr-section {
	background: #f5f7fb;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 1.25rem;
}

.gdpr-notice a {
	color: var(--navy);
	text-decoration: underline;
}

.portal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
}

.portal-grid-vertical .card {
	box-shadow: none;
}

.user-greeting {
	font-weight: 600;
	color: var(--navy);
}

.text-sm {
	font-size: 0.9rem;
	color: var(--muted);
}

.mt-08 { margin-top: 0.8rem; }
.mt-06 { margin-top: 0.6rem; }
.mt-1 { margin-top: 1rem; }
.align-start { align-self: start; }

.cta-note {
	color: var(--muted);
}

.admin-note {
	color: var(--muted);
	font-size: 0.9rem;
}

footer {
	padding: 2rem 8vw;
	color: var(--muted);
	border-top: 1px solid var(--line);
	background: #ffffff;
}

.is-hidden {
	display: none !important;
}

#dashboardSection,
#clientPortal {
	display: none;
}

@media (max-width: 900px) {
	.topbar {
		flex-direction: column;
		align-items: flex-start;
	}
	nav {
		justify-content: flex-start;
	}
	.hero {
		padding: 4rem 6vw 2.5rem;
	}
}
