/* Redline site — first draft: header, hero, footer */

/* Font served from the theme, not from Google. SIL OFL 1.1 (licence in assets/fonts) */
@font-face {
	font-family: "Russo One";
	src: url("../fonts/russo-one-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--rl-bg: var(--wp--preset--color--bg, #0b0b0d);
	--rl-surface: var(--wp--preset--color--surface, #141418);
	--rl-line: var(--wp--preset--color--line, #26262c);
	--rl-text: var(--wp--preset--color--text, #f2f2f3);
	--rl-muted: var(--wp--preset--color--muted, #9a9aa3);
	--rl-red: var(--wp--preset--color--red, #e5232f);
	--rl-radius: 14px;
}

body {
	margin: 0;
	background: var(--rl-bg);
	color: var(--rl-text);
	-webkit-font-smoothing: antialiased;
}

/* Header
 * WordPress wraps the header part in its own <header class="wp-block-template-part">,
 * exactly as tall as the menu: the wrapper is what must stick, or the menu scrolls away.
 * Below the admin bar when logged in (--wp-admin--admin-bar--height). */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	margin: 0;
}

/* Fully transparent at the top of the page, glass once the page scrolls (site.js adds .is-scrolled) */
.rl-header {
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 16px clamp(16px, 4vw, 48px);
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease, padding 0.25s ease;
}

/* Red laser line on the bottom edge:
 * ::before is the line itself (dimmer towards the ends, with a glow),
 * ::after is a bright beam that sweeps across it. */
.rl-header {
	position: relative;
}

.rl-header::before,
.rl-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	pointer-events: none;
}

.rl-header::before {
	background: linear-gradient(90deg, transparent, rgba(229, 35, 47, 0.55) 15%, rgba(255, 60, 70, 0.9) 50%, rgba(229, 35, 47, 0.55) 85%, transparent);
	box-shadow: 0 0 6px rgba(229, 35, 47, 0.7), 0 0 18px rgba(229, 35, 47, 0.35);
	animation: rl-laser-pulse 3.2s ease-in-out infinite;
}

.rl-header::after {
	height: 2px;
	bottom: -1.5px;
	background: linear-gradient(90deg, transparent, #ff4d57 35%, #fff 50%, #ff4d57 65%, transparent);
	background-size: 30% 100%;
	background-repeat: no-repeat;
	filter: drop-shadow(0 0 4px #ff2a36) drop-shadow(0 0 10px rgba(229, 35, 47, 0.8));
	animation: rl-laser-sweep 3.2s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

@keyframes rl-laser-sweep {
	0% { background-position: -40% 0; opacity: 0; }
	10% { opacity: 1; }
	80% { opacity: 1; }
	100% { background-position: 140% 0; opacity: 0; }
}

@keyframes rl-laser-pulse {
	0%, 100% { opacity: 0.75; }
	50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.rl-header::before { animation: none; }
	.rl-header::after { display: none; }
}

.rl-header.is-scrolled {
	padding-top: 12px;
	padding-bottom: 12px;
	background: rgba(11, 11, 13, 0.55);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.rl-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--rl-text);
	text-decoration: none;
	font-weight: 700;
	font-size: 18px;
}

/* The logo is inline SVG: its white parts follow the text colour (currentColor), the red stays red */
.rl-logo-svg {
	display: block;
	height: 34px;
	width: auto;
	color: var(--rl-text);
}

.rl-nav {
	display: flex;
	gap: 24px;
	margin-left: auto;
}

.rl-nav a {
	color: #d4d4d9;
	text-decoration: none;
	font-size: 15.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
	transition: color 0.15s ease;
}

.rl-nav a:hover {
	color: var(--rl-text);
}

/* Cartoon scroll (site.js): comic speed lines while the page flies, clear in the middle,
 * streaming the way the page moves; the menu laser runs hot. html.rl-flying is set only
 * during the rocket beat. */
.rl-speedlines {
	position: fixed;
	inset: 0;
	z-index: 40;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.1s ease;
	/* Soft streaks, not hard lines: every line fades in and out across its width, three sets with
	 * different spacings so they never line up into a grid, and a blur over everything */
	background:
		repeating-linear-gradient(90deg, transparent 0 30px, rgba(255, 60, 70, 0.55) 42px, transparent 54px 97px),
		repeating-linear-gradient(90deg, transparent 0 70px, rgba(255, 235, 235, 0.35) 76px, transparent 82px 151px),
		repeating-linear-gradient(90deg, transparent 0 120px, rgba(229, 35, 47, 0.45) 140px, transparent 160px 233px);
	filter: blur(3px);
	/* Long dashes with soft ends, streaming past; a clear area in the middle of the screen */
	-webkit-mask-image:
		repeating-linear-gradient(180deg, transparent 0, #000 110px, #000 230px, transparent 340px, transparent 420px),
		radial-gradient(42% 38% at 50% 50%, transparent 20%, #000 65%);
	-webkit-mask-composite: source-in;
	mask-image:
		repeating-linear-gradient(180deg, transparent 0, #000 110px, #000 230px, transparent 340px, transparent 420px),
		radial-gradient(42% 38% at 50% 50%, transparent 20%, #000 65%);
	mask-composite: intersect;
	-webkit-mask-size: 100% 420px, 100% 100%;
	mask-size: 100% 420px, 100% 100%;
}

.rl-flying .rl-speedlines {
	opacity: 1;
	animation: rl-speed-down 0.09s linear infinite;
}

.rl-flying .rl-speedlines.is-up {
	animation-name: rl-speed-up;
}

/* The dashes stream past: content moves up when scrolling down, so the lines run up too */
@keyframes rl-speed-down {
	from { -webkit-mask-position: 0 0, 0 0; mask-position: 0 0, 0 0; }
	to { -webkit-mask-position: 0 -420px, 0 0; mask-position: 0 -420px, 0 0; }
}

@keyframes rl-speed-up {
	from { -webkit-mask-position: 0 0, 0 0; mask-position: 0 0, 0 0; }
	to { -webkit-mask-position: 0 420px, 0 0; mask-position: 0 420px, 0 0; }
}

/* Motion blur: site.js sets the vertical blur of #rl-motion from the scroll speed, frame by frame,
 * and puts .rl-mblur only on the sections on screen (blurring the off-screen ones too costs frames).
 * Per section, not on the page: the liquid light canvas is position: fixed and a filter on one of
 * its ancestors would pull it out of place. */
.rl-mblur {
	filter: url(#rl-motion);
}

.rl-flying .rl-header::before {
	opacity: 1;
	box-shadow: 0 0 10px rgba(255, 40, 55, 1), 0 0 30px rgba(229, 35, 47, 0.8);
	animation: none;
}

.rl-flying .rl-header::after {
	animation-duration: 0.45s;
}

/* The section on screen (site.js): white, with a short red line underneath */
.rl-nav a {
	position: relative;
}

.rl-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 2px;
	border-radius: 1px;
	background: var(--rl-red);
	box-shadow: 0 0 8px rgba(229, 35, 47, 0.8);
	transform: scaleX(0);
	transition: transform 0.25s ease;
}

.rl-nav a.is-current {
	color: #fff;
}

.rl-nav a.is-current::after {
	transform: scaleX(1);
}

/* Language menu (inc/languages.php): a small pill with the language codes, the current one lit red */
.rl-lang {
	display: flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(11, 11, 13, 0.35);
}

.rl-lang a {
	padding: 4px 9px;
	border-radius: 999px;
	color: #9a9aa3;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.rl-lang a:hover {
	color: #fff;
}

.rl-lang a.is-current {
	color: #fff;
	background: rgba(229, 35, 47, 0.2);
	box-shadow: inset 0 0 0 1px rgba(229, 35, 47, 0.6), 0 0 10px rgba(229, 35, 47, 0.25);
}

/* Buttons */
.rl-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 26px;
	border-radius: 999px;
	background: var(--rl-red);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rl-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 30px rgba(229, 35, 47, 0.35);
}

/* Magnetic button: within the zone (the button plus a margin around it) the button chases the pointer,
 * the label a bit further for depth; it springs back when the pointer leaves. */
.rl-magnet-zone {
	position: relative;
	display: inline-flex;
	padding: 36px;
	margin: -36px;
}

.rl-magnet {
	background: linear-gradient(135deg, #ff3b47, var(--rl-red) 45%, #b3121d);
	box-shadow: 0 10px 32px -12px rgba(229, 35, 47, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
	transition: transform 0.16s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.35s ease;
	will-change: transform;
}

.rl-magnet:hover {
	transform: none;
}

.rl-magnet-zone:hover .rl-magnet {
	box-shadow: 0 18px 55px -12px rgba(255, 40, 55, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.rl-magnet-label {
	display: block;
	transition: transform 0.16s cubic-bezier(0.2, 0.7, 0.3, 1);
	will-change: transform;
}

/* Download button in the hero: "Scarica" followed by the redline word of the logo, on one line */
.rl-button--download .rl-magnet-label {
	display: flex;
	align-items: baseline;
	gap: 0.35em;
	font-size: 21px;
}

/* "BETA" tag on the download buttons: a small white label on the top-right corner, moving with the button */
.rl-button--download {
	position: relative;
}

.rl-beta {
	position: absolute;
	top: -9px;
	right: -6px;
	padding: 3px 7px;
	border-radius: 6px;
	background: #fff;
	color: var(--rl-red);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
	transform: rotate(6deg);
	pointer-events: none;
}

.rl-dl-word {
	font-weight: 700;
	line-height: 1;
}

/* Same height as "Scarica": its lowercase letters match those of the text (in the logo the x-height
 * is about 71% of the word box), and the box is lowered by the part under the logo baseline
 * (7.3% of its height, so translateY = 0.073 x height): both words sit on the same lines */
.rl-dl-logo {
	display: block;
	height: 0.84em;
	width: auto;
	transform: translateY(0.061em);
}

/* Springy snap-back */
.rl-magnet.is-released,
.rl-magnet.is-released .rl-magnet-label {
	transition: transform 0.7s cubic-bezier(0.16, 1.6, 0.3, 1), box-shadow 0.35s ease;
}

.rl-button--ghost {
	background: transparent;
	border: 1px solid var(--rl-line);
	color: var(--rl-text);
}

.rl-button--ghost:hover {
	box-shadow: none;
	border-color: var(--rl-muted);
}

.rl-button--small {
	padding: 9px 18px;
	font-size: 14px;
}

.rl-button--disabled {
	background: var(--rl-surface);
	border: 1px solid var(--rl-line);
	color: var(--rl-muted);
	cursor: default;
}

.rl-button--disabled:hover {
	transform: none;
	box-shadow: none;
}

/* ---------- Background light blobs ----------
 * Soft red lights behind everything from the Funzioni section down (the hero has its own glow).
 * Each one is a radial gradient that fades out over its whole radius (so it reads as very blurred
 * without a costly blur filter), and it slowly stretches, squashes, turns and drifts: that is the
 * "liquid" look. Only transform and translate change, which the graphics card handles cheaply.
 * site.js sets --sy (how far the page has scrolled past the top of .rl-rest, in px); each blob
 * moves by --k of it, so they lag behind the page. */
.rl-rest {
	position: relative;
	isolation: isolate;
}

.rl-blobs {
	--sy: 0;
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	/* Fade in over the first 300px, so the lights do not start on a hard line under the hero */
	-webkit-mask-image: linear-gradient(transparent, #000 300px);
	mask-image: linear-gradient(transparent, #000 300px);
}

.rl-blob {
	--k: 0.1;
	position: absolute;
	width: var(--size);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--color) 0%, color-mix(in srgb, var(--color) 45%, transparent) 40%, transparent 100%);
	translate: 0 calc(var(--sy) * var(--k) * 1px);
	animation: rl-blob-a var(--time) ease-in-out infinite alternate;
	will-change: transform, translate;
}

/* The liquid light drawn by site.js (WebGL) replaces the spheres; they stay only as a fallback */
.rl-liquid {
	position: fixed;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	pointer-events: none;
	filter: blur(22px);
}

.rl-blobs.is-replaced {
	display: none;
}

/* Two different liquid motions, so neighbouring blobs never move in step */
@keyframes rl-blob-a {
	0% { transform: translate(0, 0) rotate(0deg) scale(1, 1); }
	33% { transform: translate(6%, -4%) rotate(25deg) scale(1.25, 0.8); }
	66% { transform: translate(-5%, 5%) rotate(-15deg) scale(0.85, 1.2); }
	100% { transform: translate(3%, 2%) rotate(40deg) scale(1.15, 0.9); }
}

@keyframes rl-blob-b {
	0% { transform: translate(0, 0) rotate(0deg) scale(1.1, 0.9); }
	40% { transform: translate(-7%, 3%) rotate(-30deg) scale(0.8, 1.25); }
	75% { transform: translate(4%, -6%) rotate(20deg) scale(1.3, 0.85); }
	100% { transform: translate(-2%, 4%) rotate(-45deg) scale(0.95, 1.1); }
}

.rl-blob--1 { --size: 720px; --color: rgba(229, 35, 47, 0.55); --time: 26s; --k: 0.18; top: 2%; right: -220px; }
.rl-blob--2 { --size: 560px; --color: rgba(190, 18, 32, 0.60); --time: 34s; --k: 0.08; top: 16%; left: -260px; animation-name: rl-blob-b; }
.rl-blob--3 { --size: 640px; --color: rgba(229, 35, 47, 0.45); --time: 30s; --k: 0.14; top: 32%; right: -160px; }
.rl-blob--4 { --size: 480px; --color: rgba(255, 60, 70, 0.38); --time: 22s; --k: 0.05; top: 48%; left: 8%; animation-name: rl-blob-b; }
.rl-blob--5 { --size: 700px; --color: rgba(190, 18, 32, 0.58); --time: 38s; --k: 0.12; top: 64%; right: 4%; }
.rl-blob--6 { --size: 600px; --color: rgba(229, 35, 47, 0.48); --time: 28s; --k: 0.06; top: 80%; left: -120px; animation-name: rl-blob-b; }

@media (max-width: 720px) {
	/* Comes after the per-blob sizes, so it wins on phones */
	.rl-blob { --size: 420px; }
	.rl-blob--4,
	.rl-blob--6 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.rl-blob { animation: none; translate: none; }
}

/* Hero */
.rl-hero {
	position: relative;
	/* Clip sideways only: the glow below must be free to fade out past the bottom edge */
	overflow-x: clip;
	overflow-y: visible;
	padding: clamp(72px, 12vh, 140px) 16px 100px;
	text-align: center;
}

.rl-hero-text {
	position: relative;
	z-index: 1;
	max-width: 980px;
	margin: 0 auto;
}

/* Red glow behind the preview, plus a faint grid that fades out.
 * The glow box reaches 40% below the hero: a gradient cannot paint outside its own box, and inside
 * the hero alone it was cut into a hard line before fading out. Same glow as before, its sizes
 * and centres rescaled to the taller box (hero height = 1 / 1.4 of it). */
.rl-hero-glow {
	position: absolute;
	inset: 0 0 -40% 0;
	pointer-events: none;
	background:
		radial-gradient(60% 32% at 50% 56%, rgba(229, 35, 47, 0.32), transparent 70%),
		radial-gradient(35% 21.5% at 50% 50%, rgba(229, 35, 47, 0.25), transparent 70%);
}

.rl-hero-glow::after {
	content: "";
	position: absolute;
	/* The grid stays on the hero itself */
	inset: 0 0 auto 0;
	height: calc(100% / 1.4);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 75%);
}

/* ---------- Hero preview (parallax) ----------
 * --px/--py: pointer position from -1 to 1; --scroll: 0 to 1 while the preview scrolls in.
 * Each .rl-layer has a --depth: 0 is the window, 1 is the nearest floating piece. */
.rl-stage {
	position: relative;
	z-index: 1;
	max-width: 1080px;
	margin: clamp(56px, 8vh, 88px) auto 0;
	perspective: 1600px;
}

.rl-scene {
	--px: 0;
	--py: 0;
	--scroll: 0;
	position: relative;
	transform-style: preserve-3d;
	transform:
		rotateX(calc((1 - var(--scroll)) * 16deg + var(--py) * -5deg))
		rotateY(calc(var(--px) * 7deg));
	transition: transform 0.05s linear;
}

.rl-layer {
	--depth: 0;
	transform:
		translate3d(
			calc(var(--px) * var(--depth) * 26px),
			calc(var(--py) * var(--depth) * 16px - var(--scroll) * var(--depth) * 60px),
			calc(var(--depth) * 90px)
		);
	opacity: 0;
	transition: opacity 0.7s ease, translate 1s cubic-bezier(0.2, 0.8, 0.2, 1), scale 1s cubic-bezier(0.2, 0.8, 0.2, 1);
	translate: 0 calc(40px + var(--depth) * 120px);
	scale: calc(1 - var(--depth) * 0.08);
}

.rl-stage.is-ready .rl-layer {
	opacity: 1;
	translate: 0 0;
	scale: 1;
}

.rl-stage.is-ready .rl-float--theme { transition-delay: 0.25s; }
.rl-stage.is-ready .rl-float--detail { transition-delay: 0.4s; }
.rl-stage.is-ready .rl-float--toast { transition-delay: 0.55s; }

/* Windows 11 style window */
.rl-window {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: #1b1b20;
	box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.6);
	text-align: left;
	font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

.rl-win-bar {
	display: flex;
	align-items: center;
	height: 32px;
	padding-left: 12px;
	background: #202026;
	font-size: 12px;
	color: #d6d6da;
}

.rl-win-title {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Full logo, inline so its white parts follow the text colour (an <img> would draw them black) */
.rl-win-logo {
	display: block;
	height: 16px;
	width: auto;
	color: #fff;
}

.rl-win-sep {
	color: #7d7d86;
}

.rl-win-buttons {
	display: flex;
	margin-left: auto;
	height: 100%;
}

.rl-win-buttons i {
	display: grid;
	place-items: center;
	width: 46px;
	height: 100%;
}

.rl-win-buttons svg {
	width: 10px;
	height: 10px;
	fill: none;
	stroke: #d6d6da;
	stroke-width: 1;
}

/* Red only when the pointer is on the close button, like on Windows */
.rl-win-buttons .is-close:hover {
	background: #c42b1c;
}

.rl-win-buttons .is-close:hover svg {
	stroke: #fff;
}

/* Clicking the close button "closes" the preview: every layer fades out, a message appears, and
 * after 5 seconds everything comes back (assets/js/site.js) */
.rl-stage.is-ready.is-closed .rl-layer {
	opacity: 0;
	scale: 0.96;
	transition-delay: 0s;
	transition-duration: 0.35s;
	pointer-events: none;
}

.rl-stage-note {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0 24px;
	font-family: "Russo One", system-ui, sans-serif;
	font-size: clamp(22px, 3.4vw, 40px);
	color: #fff;
	text-align: center;
	opacity: 0;
	translate: 0 12px;
	transition: opacity 0.4s ease, translate 0.4s ease;
	pointer-events: none;
}

.rl-stage.is-closed .rl-stage-note {
	opacity: 1;
	translate: 0 0;
	transition-delay: 0.3s;
}

.rl-win-body {
	display: grid;
	grid-template-columns: 190px 1fr;
	min-height: 440px;
}

.rl-win-side {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 8px;
	background: #17171b;
	border-right: 1px solid #26262c;
	font-size: 13px;
	color: #a8a8b0;
}

.rl-win-side span {
	padding: 8px 12px;
	border-radius: 6px;
}

.rl-win-side .is-active {
	position: relative;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.rl-win-side .is-active::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	bottom: 9px;
	width: 3px;
	border-radius: 2px;
	background: var(--rl-red);
}

.rl-win-main {
	padding: 18px 22px;
}

.rl-win-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: 20px;
}

.rl-win-search {
	width: 240px;
	padding: 7px 12px;
	border: 1px solid #2e2e35;
	border-bottom-color: #55555e;
	border-radius: 6px;
	background: #24242a;
	color: #7d7d86;
	font-size: 12px;
}

.rl-win-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 14px 0 16px;
}

.rl-win-chips span {
	padding: 4px 12px;
	border: 1px solid #2e2e35;
	border-radius: 999px;
	font-size: 12px;
	color: #a8a8b0;
}

.rl-win-chips .is-on {
	border-color: var(--rl-red);
	background: rgba(229, 35, 47, 0.15);
	color: #fff;
}

.rl-win-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.rl-mini-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 96px;
	padding: 12px 14px;
	border: 1px solid #2a2a31;
	border-radius: 8px;
	background: #222228;
	font-size: 13px;
}

.rl-mini-card small {
	padding-right: 40px;
	color: #8d8d96;
	font-size: 11.5px;
	line-height: 1.35;
}

.rl-mini-card .rl-switch {
	position: absolute;
	right: 12px;
	bottom: 12px;
}

/* Windows-style toggle switch */
.rl-switch {
	position: relative;
	flex: none;
	width: 36px;
	height: 18px;
	border: 1px solid #8a8a92;
	border-radius: 999px;
}

.rl-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 4px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #c8c8ce;
}

.rl-switch.is-on {
	border-color: var(--rl-red);
	background: var(--rl-red);
}

.rl-switch.is-on::after {
	left: auto;
	right: 4px;
	background: #fff;
}

/* Floating pieces in front of the window */
.rl-float {
	position: absolute;
	padding: 14px 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	background: rgba(32, 32, 38, 0.92);
	backdrop-filter: blur(12px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
	text-align: left;
	font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
	font-size: 13px;
}

.rl-float b {
	display: block;
}

.rl-float small {
	display: block;
	margin-top: 4px;
	color: #9a9aa3;
}

.rl-float-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
}

.rl-float--theme {
	left: -56px;
	top: 120px;
	width: 250px;
	padding: 10px;
}

.rl-float--theme .rl-float-row {
	margin-top: 10px;
	padding: 0 4px 2px;
}

.rl-float-img {
	height: 120px;
	border-radius: 6px;
	background:
		linear-gradient(90deg, #101014 0 26%, transparent 26%),
		linear-gradient(#0e0e12 0 14%, transparent 14%),
		repeating-linear-gradient(90deg, transparent 0 30%, #1d1d23 30% 32%),
		linear-gradient(135deg, #2a0f14, #121216 60%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.rl-float--detail {
	right: -48px;
	top: 60px;
	width: 260px;
}

.rl-float-kicker {
	display: block;
	margin-bottom: 6px;
	color: var(--rl-red);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.rl-float-meta {
	color: #9a9aa3;
	font-size: 11.5px;
}

.rl-float--toast {
	left: 50%;
	bottom: -26px;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: -190px;
	width: 380px;
	padding: 10px 12px 10px 14px;
	white-space: nowrap;
}

.rl-float--toast > span:nth-child(2) {
	flex: 1;
}

.rl-pill {
	padding: 4px 12px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	font-size: 12px;
	white-space: nowrap;
}

.rl-pill--red {
	background: var(--rl-red);
	color: #fff;
}

@media (max-width: 1240px) {
	.rl-float--theme { left: 12px; top: auto; bottom: 60px; }
	.rl-float--detail { right: 12px; }
}

@media (max-width: 820px) {
	.rl-win-body { grid-template-columns: 1fr; }
	.rl-win-side { display: none; }
	.rl-win-grid { grid-template-columns: repeat(2, 1fr); }
	.rl-win-search { display: none; }
	.rl-float--theme, .rl-float--detail { display: none; }
	/* Within the window width on phones and tablets: centred, at most 380px, 12px in from each side */
	.rl-float--toast { left: 12px; right: 12px; width: auto; max-width: 380px; margin: 0 auto; gap: 10px; }
	.rl-float--toast .rl-switch { display: none; }
	.rl-float--toast > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
	.rl-scene { transform: none; }
	.rl-layer { transition: none; translate: none; scale: none; opacity: 1; transform: translateZ(calc(var(--depth) * 90px)); }
}

/* ---------- Sections ---------- */

/* Giant section words (Funzioni, Plugin, Temi)
 * An outlined word that bleeds past the page edges and slides sideways while scrolling;
 * a red copy on top (::after) is uncovered left to right like a laser cutting through,
 * with a glowing edge (::before, the beam). site.js sets --p and --fill, both 0 to 1. */
html,
body {
	overflow-x: clip;
}

.rl-bigword {
	--p: 0.5;
	--fill: 0;
	position: relative;
	width: 100vw;
	margin: 0 0 clamp(20px, 3vw, 44px) calc(50% - 50vw);
	/* Clip only sideways: the glow may spill above and below */
	overflow-x: clip;
	overflow-y: visible;
	font-family: "Russo One", "Segoe UI Black", "Arial Black", sans-serif;
	/* 16vw keeps the longest word (FUNZIONI) inside the screen on phones too */
	font-size: clamp(48px, 16vw, 280px);
	font-weight: 400;
	line-height: 0.9;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	user-select: none;
}

.rl-bigword-text {
	position: relative;
	display: inline-block;
	padding: 0.06em 0.04em 0.1em;
	margin-left: clamp(8px, 4vw, 64px);
	/* Outline only. Some fonts build letters from overlapping shapes, so a plain stroke
	 * shows lines inside them; filling with the page colour on top of a double-width
	 * stroke hides those and leaves the outer half of the stroke */
	color: var(--rl-bg);
	-webkit-text-stroke: 3px rgba(255, 255, 255, 0.22);
	paint-order: stroke fill;
	transform: translateX(calc((0.5 - var(--p)) * 10vw));
	will-change: transform;
}

/* The red fill, uncovered by --fill */
.rl-bigword-text::after {
	content: attr(data-text);
	position: absolute;
	inset: 0;
	padding: inherit;
	background: linear-gradient(180deg, #ff5a63 0%, var(--rl-red) 45%, #7a0a12 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-stroke: 0;
	/* The cut reaches 60px past the letters on top, bottom and left, so the glow is not cut into a
	 * hard rectangle. While filling, the right edge of the cut sits exactly on the laser (fill x 100%). Only once the
	 * word is full (--full = 1, set by site.js) it opens 60px further so the glow is not cut either */
	clip-path: inset(-60px calc((1 - var(--fill)) * 100% - var(--full, 0) * 60px) -60px -60px);
	filter: drop-shadow(0 0 24px rgba(229, 35, 47, 0.35));
}

/* The beam on the edge of the fill: a white-hot core with a wide red bloom around it, taller than
 * the letters and fading out at both ends, added on top as light (screen). Centred on the cut:
 * 160px wide, starting 80px before fill x 100%. Bright for most of the sweep, fading only at the
 * very start and end. */
.rl-bigword-text::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: -0.18em;
	bottom: -0.18em;
	left: calc(var(--fill) * 100% - 80px);
	width: 160px;
	pointer-events: none;
	mix-blend-mode: screen;
	background:
		linear-gradient(90deg, transparent 49%, #fff 49.4%, #fff 50.6%, transparent 51%),
		linear-gradient(90deg, transparent 44%, rgba(255, 120, 128, 0.95) 49%, rgba(255, 120, 128, 0.95) 51%, transparent 56%),
		radial-gradient(50% 50% at 50% 50%, rgba(255, 45, 60, 0.55), rgba(229, 35, 47, 0.18) 45%, transparent 75%);
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
	filter: drop-shadow(0 0 10px rgba(255, 60, 70, 0.9)) drop-shadow(0 0 28px rgba(229, 35, 47, 0.7));
	opacity: min(1, calc(var(--fill) * (1 - var(--fill)) * 12));
}

@media (prefers-reduced-motion: reduce) {
	.rl-bigword { --fill: 1; }
	.rl-bigword-text { transform: none; }
	.rl-bigword-text::before { display: none; }
}
.rl-section {
	max-width: 1200px;
	margin: 0 auto;
	/* Space between sections: 140px on phones up to 240px on wide screens */
	padding: clamp(140px, 16vw, 240px) 16px 0;
	scroll-margin-top: 64px;
}

.rl-section-title {
	margin: 0 0 40px;
	font-size: clamp(32px, 5vw, 56px);
	letter-spacing: -0.02em;
	line-height: 1.05;
}

.rl-muted {
	color: var(--rl-muted);
}

.rl-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

/* ---------- Funzioni cards ----------
 * Closed: only the number (big, black with a grey outline) and the keyword (red), centred.
 * Open (hover, keyboard focus, or a tap that adds .is-open in site.js): a red laser sweeps
 * down the card; the number and keyword lift off and dissolve, and the text appears behind
 * the laser line, as if burnt in. Closing rolls the text back up. */
.rl-feature {
	--ease: cubic-bezier(0.65, 0, 0.35, 1);
	position: relative;
	min-height: 290px;
	overflow: hidden;
	border: 1px solid var(--rl-line);
	border-radius: var(--rl-radius);
	background: linear-gradient(180deg, var(--rl-surface), var(--rl-bg));
	outline: none;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rl-feature-front {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: transform 0.45s var(--ease) 0.15s, opacity 0.35s ease 0.2s, filter 0.35s ease 0.15s;
}

.rl-feature-num {
	font-family: "Russo One", system-ui, sans-serif;
	font-size: clamp(88px, 8vw, 120px);
	line-height: 0.9;
	letter-spacing: -0.03em;
	color: var(--rl-bg);
	-webkit-text-stroke: 3px rgba(255, 255, 255, 0.28);
	paint-order: stroke fill;
}

.rl-feature-key {
	font-family: "Russo One", system-ui, sans-serif;
	font-size: clamp(24px, 2.3vw, 30px);
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--rl-red);
	text-shadow: 0 0 22px rgba(229, 35, 47, 0.55);
}

/* The text, hidden above the laser line: clip-path uncovers it from the top down */
.rl-feature-back {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 28px;
	clip-path: inset(0 0 100% 0);
	transition: clip-path 0.6s var(--ease);
}

.rl-feature-back .rl-feature-tag {
	margin: 0;
	font-family: "Russo One", system-ui, sans-serif;
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--rl-red);
	text-shadow: 0 0 14px rgba(229, 35, 47, 0.6);
}

.rl-feature-back h3 {
	margin: 12px 0 10px;
	font-size: 21px;
	color: #fff;
}

.rl-feature-back p {
	margin: 0;
	color: #e6e6ea;
	line-height: 1.6;
	/* Justified, no hyphenation. site.js picks, for the four cards together, the font size between 13 and 16px
	 * that leaves the smallest gaps between words (fitFeatureText) */
	text-align: justify;
	hyphens: manual;
}

/* The laser line */
.rl-feature::after {
	content: "";
	position: absolute;
	left: -5%;
	right: -5%;
	top: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, #ff4d57 18%, #fff 50%, #ff4d57 82%, transparent);
	box-shadow: 0 0 12px #ff2a36, 0 0 30px rgba(229, 35, 47, 0.8);
	opacity: 0;
	pointer-events: none;
}

/* Open */
.rl-feature:hover,
.rl-feature:focus-visible,
.rl-feature.is-open {
	border-color: rgba(255, 60, 70, 0.8);
	box-shadow: 0 0 0 1px rgba(255, 60, 70, 0.3), 0 0 24px rgba(229, 35, 47, 0.4), inset 0 0 30px rgba(229, 35, 47, 0.1);
}

.rl-feature:hover .rl-feature-back,
.rl-feature:focus-visible .rl-feature-back,
.rl-feature.is-open .rl-feature-back {
	clip-path: inset(0 0 0 0);
}

.rl-feature:hover .rl-feature-front,
.rl-feature:focus-visible .rl-feature-front,
.rl-feature.is-open .rl-feature-front {
	transform: translateY(-28%) scale(0.82);
	opacity: 0;
	filter: blur(8px);
	transition: transform 0.45s var(--ease) 0.05s, opacity 0.3s ease 0.1s, filter 0.3s ease 0.05s;
}

.rl-feature:hover::after,
.rl-feature:focus-visible::after,
.rl-feature.is-open::after {
	animation: rl-feature-scan 0.6s var(--ease) forwards;
}

/* Same timing as the clip-path above, so the line is always the edge of the text */
@keyframes rl-feature-scan {
	0% { top: 0; opacity: 1; }
	85% { opacity: 1; }
	100% { top: calc(100% - 2px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.rl-feature-front,
	.rl-feature-back { transition-duration: 0.01s; transition-delay: 0s; }
	.rl-feature::after { display: none; }
}

/* Plugin list */
.rl-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.rl-chip {
	padding: 8px 16px;
	border: 1px solid var(--rl-line);
	border-radius: 999px;
	background: transparent;
	color: var(--rl-muted);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.rl-chip:hover {
	color: var(--rl-text);
	border-color: var(--rl-muted);
}

.rl-chip[aria-pressed="true"] {
	border-color: var(--rl-red);
	background: rgba(229, 35, 47, 0.15);
	color: var(--rl-text);
}

.rl-plugin-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
}

.rl-plugin {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px;
	border: 1px solid var(--rl-line);
	border-radius: var(--rl-radius);
	background: var(--rl-surface);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

/* Red glow on hover: a thin bright ring right on the border, a soft halo around it, a faint light inside */
.rl-plugin:hover {
	border-color: rgba(255, 60, 70, 0.9);
	transform: translateY(-2px);
	box-shadow:
		0 0 0 1px rgba(255, 60, 70, 0.35),
		0 0 18px rgba(229, 35, 47, 0.55),
		0 0 48px rgba(229, 35, 47, 0.3),
		inset 0 0 22px rgba(229, 35, 47, 0.12);
}

.rl-plugin-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.rl-plugin-name {
	margin: 0;
	font-size: 17px;
}

.rl-plugin-stars,
.rl-plugin-author {
	color: var(--rl-muted);
	font-size: 13px;
	white-space: nowrap;
}

.rl-plugin-desc {
	flex: 1;
	margin: 0;
	color: var(--rl-muted);
	font-size: 14px;
	line-height: 1.5;
}

.rl-plugin-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.rl-tag {
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	font-size: 12px;
	color: #c9c9cf;
}

/* Theme list */
.rl-theme-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}

.rl-theme {
	overflow: hidden;
	border: 1px solid var(--rl-line);
	border-radius: var(--rl-radius);
	background: var(--rl-surface);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

/* Red glow on hover: a thin bright ring right on the border, a soft halo around it, a faint light inside */
.rl-theme:hover {
	border-color: rgba(255, 60, 70, 0.9);
	transform: translateY(-2px);
	box-shadow:
		0 0 0 1px rgba(255, 60, 70, 0.35),
		0 0 18px rgba(229, 35, 47, 0.55),
		0 0 48px rgba(229, 35, 47, 0.3),
		inset 0 0 22px rgba(229, 35, 47, 0.12);
}

.rl-theme img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top center;
	background: #101014;
}

.rl-theme-info {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	font-size: 14px;
}

.rl-theme-info span {
	color: var(--rl-muted);
}

/* ---------- Closing section: the logo gauge revs up ----------
 * The needle (with its tail) turns around the hub (703.2, 671 in the logo coordinates),
 * from 10:30 (idle) clockwise to 1:30, where it sits in the logo, then shakes on the limiter.
 * A copy of the needle inside the mask, a bit thicker, cuts the ring under it, like the gap
 * in the original logo.
 * The readout counts the revs through a registered integer (--rl-rpm), no script needed for it.
 * site.js adds .is-on the first time the section comes into view and keeps it; pointing at the
 * ring or the needle drops it to idle, leaving revs it up again. */
@property --rl-rpm {
	syntax: "<integer>";
	inherits: true;
	initial-value: 0;
}

.rl-turbo {
	--rl-rpm: 0;
	position: relative;
	text-align: center;
	transition: --rl-rpm 1.1s cubic-bezier(0.5, 0, 0.75, 0);
}

/* Red glow behind the gauge, stronger when revving */
.rl-turbo::before {
	content: "";
	position: absolute;
	left: 50%;
	/* centred on the gauge, which sits under the question */
	top: clamp(200px, 22vw, 300px);
	width: min(720px, 100vw);
	height: 520px;
	transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(229, 35, 47, 0.18), transparent);
	opacity: 0.4;
	transition: opacity 0.8s ease;
	pointer-events: none;
}

.rl-tacho {
	position: relative;
	width: clamp(220px, 36vw, 340px);
	margin: 0 auto;
}

/* Only the drawn shapes (ring, needle) react to the pointer, not the empty square around them */
.rl-tacho-svg {
	display: block;
	width: 100%;
	height: auto;
	color: #f2f2f3;
	overflow: visible;
	pointer-events: none;
}

.rl-tacho-svg > g path {
	pointer-events: visiblePainted;
	cursor: pointer;
}

.rl-tacho-red {
	transition: filter 0.2s ease 0.5s;
}

.rl-tacho-needle,
.rl-tacho-shake {
	transform-box: view-box;
	transform-origin: 703.2px 671px;
}

.rl-tacho-needle {
	transform: rotate(-89.5deg);
	/* Back to rest: slow, like revs dropping */
	transition: transform 1.6s cubic-bezier(0.3, 0, 0.2, 1);
}

.rl-tacho-readout {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 18px;
	font-family: "Russo One", system-ui, sans-serif;
}

.rl-tacho-value {
	font-size: clamp(34px, 5vw, 48px);
	line-height: 1;
	color: #f2f2f3;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 0 14px rgba(255, 255, 255, 0.15);
	/* Back to white when the falling needle passes 12 o'clock (0.5s into the 1.6s fall) */
	transition: color 0.08s linear 0.5s, text-shadow 0.08s linear 0.5s;
	position: relative;
}

.rl-tacho-value::before {
	counter-reset: rlrpm var(--rl-rpm);
	content: counter(rlrpm);
}

/* "+" after 9000: appears once the count has arrived, goes as soon as the revs drop.
 * Placed outside the number's box, so the number stays centred. */
.rl-tacho-value::after {
	content: "+";
	position: absolute;
	left: 100%;
	opacity: 0;
	transition: opacity 0.1s linear;
}

.rl-turbo.is-on .rl-tacho-value::after {
	opacity: 1;
	transition-delay: 1.1s;
}


.rl-tacho-mode {
	position: relative;
	height: 20px;
	margin: 14px 0 0;
	font-family: "Russo One", system-ui, sans-serif;
	font-size: 13px;
	letter-spacing: 0.3em;
}

.rl-tacho-mode span {
	position: absolute;
	inset: 0;
	padding-left: 0.3em;
	transition: opacity 0.08s linear 0.5s;
}

.rl-tacho-eco {
	color: #fff;
	letter-spacing: 0.3em;
}

.rl-tacho-turbo {
	color: #ff3b47;
	text-shadow: 0 0 14px rgba(255, 69, 69, 0.75);
	opacity: 0;
}

.rl-turbo-title {
	max-width: 900px;
	/* Above the gauge now: no space on top, room before the gauge */
	margin: 0 auto 56px;
	font-family: "Russo One", system-ui, sans-serif;
	font-weight: 400;
	font-size: clamp(30px, 5vw, 60px);
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.rl-turbo-title em {
	font-style: normal;
	color: var(--rl-red);
	text-shadow: 0 0 24px rgba(229, 35, 47, 0.55);
}

/* Revving */
.rl-turbo.is-on {
	--rl-rpm: 9000;
}

.rl-turbo.is-on::before {
	opacity: 1;
}

.rl-turbo.is-on .rl-tacho-needle {
	transform: rotate(0deg);
	/* Up: fast, with a small overshoot past the target */
	transition: transform 1.1s cubic-bezier(0.55, 0, 0.35, 1.18);
}

.rl-turbo.is-on .rl-tacho-shake {
	/* On the limiter: starts once the needle has arrived */
	animation: rl-limiter 0.12s linear 1.15s infinite alternate;
}

.rl-turbo.is-on .rl-tacho-red {
	filter: drop-shadow(0 0 30px rgba(255, 40, 55, 0.9));
	transition-delay: 0.48s;
}

.rl-turbo.is-on .rl-tacho-value {
	color: #ff3b47;
	text-shadow: 0 0 18px rgba(255, 60, 70, 0.7);
	/* Red the moment the rising needle passes 12 o'clock (0.48s into the 1.1s rise) */
	transition-delay: 0.48s;
}

.rl-turbo.is-on .rl-tacho-eco {
	opacity: 0;
	transition-delay: 0.48s;
}

.rl-turbo.is-on .rl-tacho-turbo {
	opacity: 1;
	transition-delay: 0.48s;
	animation: rl-turbo-blink 0.5s steps(1) 0.98s infinite;
}

@keyframes rl-limiter {
	from { transform: rotate(-2.5deg); }
	to { transform: rotate(2.5deg); }
}

/* Blinks the colour, not the opacity: opacity is what fades TURBO in and out at 12 o'clock */
@keyframes rl-turbo-blink {
	50% { color: rgba(255, 69, 69, 0.45); text-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
	.rl-turbo,
	.rl-tacho-needle,
	.rl-turbo.is-on .rl-tacho-needle { transition: none; }
	.rl-turbo.is-on .rl-tacho-shake,
	.rl-turbo.is-on .rl-tacho-turbo { animation: none; }
}

.rl-eyebrow {
	margin: 0 0 18px;
	color: var(--rl-red);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rl-hero-title {
	margin: 0;
	/* Always on one line: the size follows the screen width (the line is about 10.4 times the font size wide) */
	font-size: clamp(22px, calc(9vw - 3px), 104px);
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.rl-hero-lead {
	max-width: 620px;
	margin: 24px auto 0;
	color: var(--rl-muted);
	font-size: clamp(17px, 2vw, 21px);
}

/* One line from tablet width up (the sentence is about 34 times the font size wide, 720px at most); phones wrap */
@media (min-width: 768px) {
	.rl-hero-text .rl-hero-lead {
		max-width: none;
		white-space: nowrap;
	}
}

.rl-hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 36px;
}

/* Footer */
.rl-footer {
	margin-top: clamp(140px, 14vw, 200px);
	border-top: 1px solid var(--rl-line);
}

.rl-footer-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 24px;
	color: var(--rl-muted);
	font-size: 14px;
	align-items: center;
}

/* GitHub stars and Discord: plain grey link, then a white pill (like many project sites) */
.rl-footer-links {
	display: flex;
	align-items: center;
	gap: 20px;
}

.rl-footer-links a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.rl-footer-links svg {
	width: 18px;
	height: 18px;
	flex: none;
}

.rl-footer-github {
	color: var(--rl-muted);
}

.rl-footer-github .rl-footer-star {
	width: 15px;
	height: 15px;
	margin-left: 3px;
	margin-right: -3px;
}

.rl-footer-github:hover {
	color: var(--rl-text);
}

.rl-footer-discord {
	padding: 9px 18px;
	border-radius: 999px;
	background: #fff;
	color: #0b0b0d;
}

.rl-footer-discord:hover {
	transform: translateY(-1px);
	background: #ececf0;
}

@media (max-width: 720px) {
	.rl-footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Copyright, on the left of the footer row */
.rl-footer-legal {
	margin: 0;
	color: #6c6c74;
	font-size: 13px;
}

@media (max-width: 720px) {
	.rl-nav {
		display: none;
	}
	.rl-header .rl-lang {
		margin-left: auto;
	}
}
