:root {
	--rx-brand: #0f766e;
	--rx-brand-deep: #0b4f4a;
	--rx-blue: #0f3b82;
	--rx-orange: #f59e0b;
	--rx-ink: #0f172a;
	--rx-line: #d5dde8;
	--rx-soft: #f7fafc;
}

body {
	font-family: 'Space Grotesk', sans-serif;
	color: var(--rx-ink);
}

a {
	color: inherit;
}

.rexius-shell {
	max-width: 980px;
	margin: 0 auto;
	padding: 0 18px 20px;
}

.rexius-panel {
	background: #ffffff;
	border: 1px solid var(--rx-line);
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.rexius-btn {
	display: inline-block;
	border: 1px solid var(--rx-brand);
	color: var(--rx-brand-deep);
	background: rgba(20, 184, 166, 0.1);
	border-radius: 10px;
	padding: 10px 12px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rexius-btn:hover {
	background: rgba(20, 184, 166, 0.16);
	border-color: var(--rx-brand-deep);
}

.rexius-muted {
	color: #52607a;
}

.rexius-nav {
	font-family: 'Space Grotesk', sans-serif;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(246, 252, 250, 0.92));
	border: 1px solid rgba(148, 163, 184, 0.28);
	box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.4);
}

.rexius-main-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--rx-ink);
	min-width: 0;
}

.rexius-main-logo-wrap {
	position: relative;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
}

.rexius-main-logo-glow {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: rgba(245, 158, 11, 0.22);
	filter: blur(8px);
	transition: background 0.3s ease;
}

.rexius-main-logo {
	position: relative;
	height: 44px;
	width: 44px;
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.rexius-main-brand:hover .rexius-main-logo-glow {
	background: rgba(245, 158, 11, 0.34);
}

.rexius-main-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.rexius-main-title {
	font-family: 'Sora', 'Space Grotesk', sans-serif;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 0.03em;
	white-space: nowrap;
	color: var(--rx-ink);
}

.rexius-main-kicker {
	margin-top: 4px;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-weight: 700;
	color: var(--rx-orange);
}

.rexius-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.rexius-link-btn {
	display: inline-block;
	text-decoration: none;
	font-size: 12px;
	letter-spacing: 0.02em;
	border: 1px solid var(--rx-line);
	color: #1f2937;
	background: #ffffff;
	border-radius: 10px;
	padding: 8px 11px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.rexius-link-btn:hover {
	border-color: var(--rx-brand);
	color: var(--rx-brand-deep);
	background: #ffffff;
}

.rexius-link-btn:focus-visible {
	outline: 2px solid rgba(37, 99, 235, 0.25);
	outline-offset: 2px;
}

@media (min-width: 1024px) {
	.rexius-links {
		gap: 10px;
	}
}

/* Offset by 1px to prevent conflict with the max-width rule below */
@media (min-width: 641px) {
	.rexius-nav {
		padding: 12px 16px;
	}
}

@media (max-width: 640px) {
	.rexius-nav {
		padding: 10px;
		align-items: flex-start;
		flex-direction: column;
	}

	.rexius-links {
		width: 100%;
	}

	.rexius-main-title {
		font-size: 18px;
	}

	.rexius-main-logo,
	.rexius-main-logo-wrap {
		height: 36px;
		width: 36px;
	}

	.rexius-link-btn {
		flex: 1;
		text-align: center;
	}
}