:root {
	--rl-bg: #0e120e;
	--rl-bg-elevated: #161c16;
	--rl-border: #2a3528;
	--rl-text: #e4e8df;
	--rl-muted: #8a9680;
	--rl-accent: #9aab6a;
	--rl-accent-dim: #6a7a4a;
	--rl-sand: #c4b896;
	--safe-area-inset-top: env(safe-area-inset-top);
	--safe-area-inset-bottom: env(safe-area-inset-bottom);
}

html {
	scroll-behavior: smooth;
	/* Keep in-page anchors (#tdg, etc.) clear of sticky nav */
	scroll-padding-top: calc(4.25rem + var(--safe-area-inset-top));
}

body {
	background: var(--rl-bg);
	color: var(--rl-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-tap-highlight-color: transparent;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	opacity: 0.35;
	background:
		radial-gradient(ellipse 80% 50% at 50% -10%, rgba(106, 122, 74, 0.25), transparent 55%),
		radial-gradient(ellipse 60% 40% at 100% 100%, rgba(58, 52, 40, 0.2), transparent 50%);
}

.rl-wrap {
	position: relative;
	z-index: 1;
	flex: 1;
}

.rl-nav {
	position: sticky;
	top: 0;
	z-index: 1030;
	border-bottom: 1px solid var(--rl-border);
	background: rgba(14, 18, 14, 0.94);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	/* Notch / status bar on mobile */
	padding-top: var(--safe-area-inset-top);
}

.rl-nav .navbar-brand,
.rl-nav .rl-brand {
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--rl-text) !important;
	padding-top: 0.35rem;
	padding-bottom: 0.35rem;
	margin-right: 1rem;
	line-height: 0;
}

.rl-brand-logo {
	display: block;
	height: 40px;
	width: auto;
	max-width: min(200px, 58vw);
	object-fit: contain;
	object-position: left center;
}

@media (min-width: 768px) {
	.rl-brand-logo {
		height: 44px;
		max-width: 220px;
	}
}

.rl-nav .nav-link {
	color: var(--rl-muted) !important;
	font-size: 0.95rem;
}

.rl-nav .nav-link:hover,
.rl-nav .nav-link:focus {
	color: var(--rl-accent) !important;
}

.rl-hero {
	padding: 3rem 0 2.5rem;
	text-align: center;
}

.rl-logo {
	max-width: min(420px, 92vw);
	height: auto;
	filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.rl-studio {
	margin-top: 1.25rem;
	font-size: 0.8rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--rl-accent);
	font-weight: 600;
}

.rl-tagline {
	margin: 0.75rem auto 0;
	max-width: 34rem;
	color: var(--rl-muted);
	font-size: 1.15rem;
	line-height: 1.5;
}

.rl-badge {
	display: inline-block;
	margin-top: 1.25rem;
	padding: 0.35rem 0.85rem;
	border: 1px solid var(--rl-border);
	border-radius: 999px;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rl-sand);
	background: var(--rl-bg-elevated);
}

.rl-actions {
	margin-top: 1.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.btn-rl-primary {
	--bs-btn-bg: var(--rl-accent-dim);
	--bs-btn-border-color: var(--rl-accent);
	--bs-btn-hover-bg: var(--rl-accent);
	--bs-btn-hover-border-color: var(--rl-sand);
	--bs-btn-color: #0e120e;
	--bs-btn-hover-color: #0e120e;
	--bs-btn-active-bg: var(--rl-accent);
	--bs-btn-active-border-color: var(--rl-sand);
	--bs-btn-active-color: #0e120e;
	font-weight: 600;
	letter-spacing: 0.03em;
}

.btn-rl-outline {
	--bs-btn-color: var(--rl-text);
	--bs-btn-border-color: var(--rl-border);
	--bs-btn-hover-bg: var(--rl-bg-elevated);
	--bs-btn-hover-border-color: var(--rl-accent);
	--bs-btn-hover-color: var(--rl-text);
}

.rl-section {
	padding: 2.5rem 0;
}

.rl-section-title {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin-bottom: 1.25rem;
	color: var(--rl-text);
}

.rl-card {
	background: var(--rl-bg-elevated);
	border: 1px solid var(--rl-border);
	border-radius: 0.75rem;
	padding: 1.25rem 1.35rem;
	height: 100%;
}

.rl-card h3 {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--rl-sand);
	margin-bottom: 0.5rem;
}

.rl-card p {
	margin: 0;
	color: var(--rl-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.rl-list {
	list-style: none;
	/* Keep card padding when combined with .rl-card (avoids padding:0 wiping it) */
	margin: 0;
	padding-left: 0;
	padding-right: 0;
	padding-top: 0.15rem;
	padding-bottom: 0.15rem;
}

.rl-list.rl-card {
	padding: 1.15rem 1.5rem 1.15rem 1.5rem;
}

.rl-list li {
	position: relative;
	/* Room for marker + gap so text isn’t glued to the card edge */
	padding: 0.55rem 0.25rem 0.55rem 1.65rem;
	color: var(--rl-muted);
	border-bottom: 1px solid rgba(42, 53, 40, 0.6);
}

.rl-list li:last-child {
	border-bottom: 0;
}

.rl-list li::before {
	content: "";
	position: absolute;
	left: 0.15rem;
	top: 50%;
	transform: translateY(-50%);
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 1px;
	background: var(--rl-accent-dim);
	border: 1px solid var(--rl-accent);
}

.rl-footer {
	margin-top: auto;
	border-top: 1px solid var(--rl-border);
	padding: 1.5rem 0 calc(1.5rem + var(--safe-area-inset-bottom));
	background: rgba(10, 12, 10, 0.95);
	position: relative;
	z-index: 1;
}

.rl-footer a {
	color: var(--rl-muted);
	text-decoration: none;
}

.rl-footer a:hover {
	color: var(--rl-accent);
}

.rl-footer .small {
	color: var(--rl-muted);
}

/* Quiet tool credit — readable but not a feature callout */
.rl-footer-fine {
	font-size: 0.72rem;
	line-height: 1.45;
	opacity: 0.72;
	max-width: 40rem;
}

.rl-legal h1 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.rl-legal p,
.rl-legal li {
	color: var(--rl-muted);
	line-height: 1.6;
}