:root {
	--rp-bg: #f3f5f8;
	--rp-ink: #101828;
	--rp-muted: #5b6b7c;
	--rp-red: #dc2626;
	--rp-red-deep: #b91c1c;
	--rp-line: rgba(16, 24, 40, 0.1);
	--rp-surface: rgba(255, 255, 255, 0.82);
	--rp-font-display: "Unbounded", sans-serif;
	--rp-font-body: "Onest", sans-serif;
	--rp-max: 1080px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--rp-ink);
	font-family: var(--rp-font-body);
	font-size: 16px;
	line-height: 1.5;
	background: var(--rp-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

.rp-atmosphere {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(780px 420px at 10% -8%, rgba(220, 38, 38, 0.15), transparent 58%),
		radial-gradient(640px 380px at 90% 6%, rgba(37, 99, 235, 0.07), transparent 55%),
		radial-gradient(520px 340px at 72% 95%, rgba(220, 38, 38, 0.06), transparent 60%),
		linear-gradient(180deg, #f7f8fb 0%, #eef2f6 48%, #f5f6f8 100%);
}

.rp-atmosphere::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.28;
	background-image:
		linear-gradient(rgba(16, 24, 40, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(16, 24, 40, 0.03) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
}

.rp-nav {
	max-width: var(--rp-max);
	margin: 0 auto;
	padding: 14px 20px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.rp-nav__brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.rp-mark {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--rp-red);
	color: #fff;
	font-family: var(--rp-font-display);
	font-weight: 700;
	font-size: 13px;
	line-height: 1;
}

.rp-mark--sm {
	width: 22px;
	height: 22px;
	font-size: 10px;
}

.rp-wordmark {
	font-family: var(--rp-font-display);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1;
}

.rp-wordmark__red {
	color: var(--rp-red);
}

.rp-wordmark__panel {
	color: var(--rp-ink);
}

.rp-nav__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rp-nav__cta {
	font-size: 13px;
	font-weight: 600;
	padding: 8px 12px;
	border: 1px solid var(--rp-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(8px);
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.rp-nav__cta--quiet {
	background: transparent;
	border-color: transparent;
	color: var(--rp-muted);
}

.rp-nav__cta--quiet:hover {
	color: var(--rp-ink);
	background: rgba(255, 255, 255, 0.55);
	border-color: var(--rp-line);
}

.rp-nav__cta:hover {
	border-color: rgba(220, 38, 38, 0.35);
	background: #fff;
}

.rp-hero {
	max-width: var(--rp-max);
	margin: 0 auto;
	padding: 18px 20px 12px;
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 16px 22px;
	align-items: start;
}

.rp-hero__brand {
	margin: 0 0 8px;
	font-family: var(--rp-font-display);
	font-size: clamp(36px, 5.4vw, 58px);
	font-weight: 800;
	letter-spacing: -0.055em;
	line-height: 0.92;
	color: var(--rp-red);
}

.rp-hero__title {
	margin: 0;
	font-family: var(--rp-font-display);
	font-size: clamp(34px, 4.6vw, 48px);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1;
	color: var(--rp-red);
}

.rp-hero__lead {
	margin: 10px 0 0;
	max-width: 46ch;
	color: var(--rp-muted);
	font-size: 15px;
	line-height: 1.5;
}

.rp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.rp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	font-family: var(--rp-font-body);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.rp-btn--primary {
	background: var(--rp-red);
	color: #fff;
}

.rp-btn--primary:hover {
	background: var(--rp-red-deep);
	transform: translateY(-1px);
}

.rp-btn--ghost {
	border: 1px solid var(--rp-line);
	background: rgba(255, 255, 255, 0.45);
	color: var(--rp-ink);
}

.rp-btn--ghost:hover {
	background: #fff;
	border-color: rgba(16, 24, 40, 0.2);
}

.rp-hero__stage {
	position: relative;
	min-width: 0;
}

.rp-product {
	border: 1px solid rgba(16, 24, 40, 0.1);
	border-radius: 14px;
	overflow: hidden;
	background: linear-gradient(180deg, #171d2b 0%, #0f1520 100%);
	color: #e2e8f0;
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
	transform: none;
	animation: rp-float-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rp-product__bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	background: rgba(255, 255, 255, 0.03);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
}

.rp-product__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
}

.rp-product__dot:nth-child(1) { background: #ef4444; }
.rp-product__dot:nth-child(2) { background: #f59e0b; }
.rp-product__dot:nth-child(3) { background: #22c55e; }

.rp-product__bar-brand {
	margin-left: 4px;
	margin-right: 6px;
	font-weight: 700;
	font-family: var(--rp-font-display);
	font-size: 11px;
	letter-spacing: -0.03em;
}

.rp-product__bar-brand b {
	color: #f87171;
}

.rp-product__bar-link {
	color: rgba(226, 232, 240, 0.62);
}

.rp-product__bar-link:nth-of-type(1) {
	color: #fff;
	background: #2563eb;
	padding: 3px 7px;
	border-radius: 5px;
}

.rp-product__body {
	padding: 12px;
}

.rp-product__kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.rp-kpi {
	padding: 10px 8px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-kpi span,
.rp-kpi em {
	display: block;
	font-size: 9px;
	color: rgba(226, 232, 240, 0.55);
}

.rp-kpi strong {
	display: block;
	margin-top: 6px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	font-family: var(--rp-font-display);
}

.rp-kpi em {
	margin-top: 3px;
}

.rp-kpi--warn strong {
	color: #f87171;
}

.up {
	color: #4ade80 !important;
}

.rp-product__chart {
	position: relative;
	margin-top: 8px;
	height: 132px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background:
		linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent 55%),
		rgba(255, 255, 255, 0.02);
	overflow: hidden;
}

.rp-product__chart svg {
	position: absolute;
	inset: 14px 8px 24px;
	width: calc(100% - 16px);
	height: calc(100% - 38px);
}

.rp-chart-line {
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
}

.rp-chart-line--a {
	stroke: #60a5fa;
	stroke-dasharray: 900;
	stroke-dashoffset: 900;
	animation: rp-draw 1.6s ease forwards 0.35s;
}

.rp-chart-line--b {
	stroke: #34d399;
	stroke-dasharray: 900;
	stroke-dashoffset: 900;
	animation: rp-draw 1.6s ease forwards 0.55s;
}

.rp-product__chart-label {
	position: absolute;
	left: 12px;
	bottom: 8px;
	font-size: 10px;
	color: rgba(226, 232, 240, 0.5);
}

.rp-board {
	max-width: var(--rp-max);
	margin: 0 auto;
	padding: 12px 20px 8px;
}

.rp-about {
	max-width: var(--rp-max);
	margin: 0 auto;
	padding: 4px 20px 8px;
}

.rp-about__card {
	border: 1px solid var(--rp-line);
	border-radius: 12px;
	background: #fff;
	padding: 16px 18px;
}

.rp-about__kicker {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rp-red);
}

.rp-about__card h2 {
	margin: 0;
	font-family: var(--rp-font-display);
	font-size: clamp(20px, 2.8vw, 26px);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.15;
}

.rp-about__card > p {
	margin: 8px 0 0;
	color: var(--rp-muted);
	font-size: 14px;
	line-height: 1.5;
	max-width: 72ch;
}

.rp-about__list {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px 18px;
}

.rp-about__list li {
	position: relative;
	padding-left: 14px;
	font-size: 13px;
	font-weight: 500;
	color: var(--rp-ink);
}

.rp-about__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--rp-red);
}

.rp-board__head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 16px;
	margin-bottom: 12px;
	padding: 12px 14px;
	border: 1px solid var(--rp-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.55);
}

.rp-board__kicker {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rp-red);
}

.rp-board__head h2,
.rp-closing h2,
.rp-buy__title,
.rp-block h3 {
	margin: 0;
	font-family: var(--rp-font-display);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.12;
}

.rp-board__head h2 {
	font-size: clamp(20px, 2.8vw, 26px);
}

.rp-board__lead {
	margin: 0;
	max-width: 28ch;
	color: var(--rp-muted);
	font-size: 14px;
	line-height: 1.45;
	text-align: right;
}

.rp-board__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.rp-block {
	border: 1px solid var(--rp-line);
	border-radius: 12px;
	background: #fff;
	padding: 14px;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.rp-block__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.rp-block__code {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rp-red);
}

.rp-block__tag {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 7px;
	border-radius: 6px;
	background: #f1f5f9;
	color: var(--rp-muted);
}

.rp-block h3 {
	font-size: 18px;
}

.rp-block > p {
	margin: 6px 0 0;
	color: var(--rp-muted);
	font-size: 13px;
	line-height: 1.45;
}

.rp-block__preview {
	margin-top: auto;
	padding-top: 12px;
}

.rp-block__preview--bars {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
	align-items: end;
	height: 56px;
}

.rp-block__preview--bars span {
	display: block;
	height: var(--h);
	border-radius: 5px 5px 2px 2px;
	background: linear-gradient(180deg, #f87171, #dc2626);
	opacity: 0.85;
	transform-origin: bottom;
	animation: rp-grow 700ms ease both;
}

.rp-block__preview--bars span:nth-child(2) { animation-delay: 60ms; }
.rp-block__preview--bars span:nth-child(3) { animation-delay: 120ms; }
.rp-block__preview--bars span:nth-child(4) { animation-delay: 180ms; }
.rp-block__preview--bars span:nth-child(5) { animation-delay: 240ms; }
.rp-block__preview--bars span:nth-child(6) { animation-delay: 300ms; }
.rp-block__preview--bars span:nth-child(7) { animation-delay: 360ms; }

.rp-block__preview--index {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.rp-block__preview--index div {
	padding: 10px;
	border-radius: 8px;
	background: #f8fafc;
	border: 1px solid var(--rp-line);
}

.rp-block__preview--index span {
	display: block;
	font-size: 10px;
	font-weight: 600;
	color: var(--rp-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rp-block__preview--index b {
	display: block;
	margin-top: 4px;
	font-family: var(--rp-font-display);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.rp-block__preview--index i {
	display: block;
	margin-top: 2px;
	font-style: normal;
	font-size: 11px;
	font-weight: 600;
}

.rp-block__preview--control {
	display: grid;
	gap: 5px;
}

.rp-block__preview--control div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 10px;
	border-radius: 7px;
	background: #f8fafc;
	border: 1px solid var(--rp-line);
	font-size: 12px;
}

.rp-block__preview--control b {
	font-family: var(--rp-font-display);
	font-size: 11px;
	font-weight: 600;
}

.rp-block__preview--control .is-ok b { color: #16a34a; }
.rp-block__preview--control .is-warn b { color: #d97706; }
.rp-block__preview--control .is-bad {
	background: #fff5f5;
	border-color: rgba(220, 38, 38, 0.18);
}
.rp-block__preview--control .is-bad b { color: #dc2626; }

.rp-block__preview--kpi {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
}

.rp-block__preview--kpi div {
	padding: 10px 8px;
	border-radius: 8px;
	background: #f1f5f9;
}

.rp-block__preview--kpi span {
	display: block;
	font-size: 10px;
	font-weight: 600;
	color: var(--rp-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rp-block__preview--kpi b {
	display: block;
	margin-top: 4px;
	font-family: var(--rp-font-display);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.rp-block__preview--kpi .bad {
	color: var(--rp-red);
}

.rp-block--live {
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.rp-closing {
	max-width: var(--rp-max);
	margin: 10px auto 0;
	padding: 0 20px 36px;
}

.rp-closing--block .rp-closing__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 18px;
	border: 1px solid var(--rp-line);
	border-radius: 12px;
	background: #fff;
}

.rp-closing__brand {
	margin: 0 0 6px;
	font-family: var(--rp-font-display);
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 800;
	letter-spacing: -0.05em;
	color: var(--rp-red);
}

.rp-closing h2 {
	font-size: clamp(18px, 2.4vw, 22px);
	max-width: 18ch;
}

.rp-closing__inner > div > p:last-child {
	margin: 6px 0 0;
	color: var(--rp-muted);
	font-size: 14px;
	max-width: 42ch;
}

.rp-footer {
	border-top: 1px solid var(--rp-line);
	padding: 16px 20px 24px;
	text-align: center;
	color: var(--rp-muted);
	font-size: 12px;
}

.rp-footer__brand {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 6px;
	color: var(--rp-ink);
}

.rp-footer__brand strong {
	font-family: var(--rp-font-display);
	font-size: 14px;
	letter-spacing: -0.03em;
}

.rp-footer p {
	margin: 0;
}

/* Buy page */
.rp-buy {
	max-width: 480px;
	margin: 0 auto;
	padding: 28px 20px 40px;
}

.rp-buy__card {
	border: 1px solid var(--rp-line);
	border-radius: 16px;
	background: var(--rp-surface);
	backdrop-filter: blur(10px);
	padding: 24px 22px 22px;
}

.rp-buy__eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rp-red);
}

.rp-buy__title {
	font-size: clamp(28px, 6vw, 36px);
	font-weight: 800;
	letter-spacing: -0.05em;
	color: var(--rp-ink);
}

.rp-buy__lead {
	margin: 8px 0 0;
	color: var(--rp-muted);
	font-size: 15px;
}

.rp-buy__price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-top: 18px;
	line-height: 1;
}

.rp-buy__amount {
	font-family: var(--rp-font-display);
	font-size: clamp(52px, 12vw, 64px);
	font-weight: 800;
	letter-spacing: -0.06em;
	color: var(--rp-ink);
}

.rp-buy__currency {
	font-family: var(--rp-font-display);
	font-size: 28px;
	font-weight: 700;
	color: var(--rp-red);
}

.rp-buy__price-note {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--rp-muted);
}

.rp-buy__list {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.rp-buy__list li {
	position: relative;
	padding-left: 18px;
	font-size: 14px;
	color: var(--rp-ink);
}

.rp-buy__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--rp-red);
}

.rp-buy__form {
	margin-top: 18px;
	display: grid;
	gap: 12px;
}

.rp-buy__field {
	display: grid;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--rp-muted);
}

.rp-buy__field input {
	width: 100%;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--rp-line);
	border-radius: 8px;
	background: #fff;
	color: var(--rp-ink);
	font-family: var(--rp-font-body);
	font-size: 15px;
	font-weight: 500;
}

.rp-buy__field input:focus {
	outline: none;
	border-color: #93c5fd;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.rp-buy__submit {
	width: 100%;
	min-height: 48px;
	font-size: 15px;
}

.rp-buy__hint {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--rp-muted);
	text-align: center;
}

.rp-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.rp-reveal.is-in {
	opacity: 1;
	transform: none;
}

@keyframes rp-draw {
	to { stroke-dashoffset: 0; }
}

@keyframes rp-grow {
	from { transform: scaleY(0.2); opacity: 0.3; }
	to { transform: scaleY(1); opacity: 0.85; }
}

@keyframes rp-float-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 960px) {
	.rp-hero {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.rp-product {
		transform: none;
	}

	.rp-product__kpis {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rp-product__bar-link:nth-child(n + 7) {
		display: none;
	}

	.rp-about__list {
		grid-template-columns: 1fr;
	}

	.rp-board__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.rp-board__lead {
		text-align: left;
		max-width: none;
	}

	.rp-board__grid {
		grid-template-columns: 1fr;
	}

	.rp-closing--block .rp-closing__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 560px) {
	.rp-nav {
		padding-top: 12px;
		padding-left: 16px;
		padding-right: 16px;
	}

	.rp-hero,
	.rp-about,
	.rp-board,
	.rp-closing,
	.rp-buy {
		padding-left: 16px;
		padding-right: 16px;
	}

	.rp-hero__actions {
		width: 100%;
	}

	.rp-btn {
		flex: 1 1 auto;
	}

	.rp-buy__submit {
		flex: none;
	}

	.rp-product__chart {
		height: 110px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.rp-reveal {
		opacity: 1;
		transform: none;
	}
}
