/* Clean Player — landing pública */
:root {
	--cp-home-accent: #0d9488;
	--cp-home-accent-hover: #0f766e;
	--cp-home-accent-light: #14b8a6;
	--cp-home-accent-muted: rgba(13, 148, 136, 0.12);
	--cp-home-accent-glow: rgba(13, 148, 136, 0.28);
	--cp-home-page: #eef2f6;
	--cp-home-box: #ffffff;
	--cp-home-border: #e2e8f0;
	--cp-home-text: #475569;
	--cp-home-heading: #0f172a;
	--cp-home-muted: #64748b;
	--cp-home-radius: 14px;
	--cp-home-radius-lg: 18px;
	--cp-home-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
	--cp-home-shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.12);
	--cp-home-font: 'Sora', system-ui, sans-serif;
	--cp-home-ease: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	min-height: 100vh;
	font-family: var(--cp-home-font);
	color: var(--cp-home-text);
	-webkit-font-smoothing: antialiased;
	background:
		radial-gradient(ellipse 85% 50% at 78% -8%, rgba(13, 148, 136, 0.2), transparent),
		radial-gradient(ellipse 45% 35% at 8% 28%, rgba(14, 165, 233, 0.08), transparent),
		linear-gradient(180deg, #e7eef4 0%, var(--cp-home-page) 42%, #e2e8f0 100%);
}

a {
	color: inherit;
	text-decoration: none;
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.86em;
	padding: 0.1em 0.35em;
	border-radius: 6px;
	background: rgba(15, 23, 42, 0.05);
	color: var(--cp-home-heading);
}

.cp-home {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 28px 20px 48px;
}

/* Nav */
.cp-home-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
	animation: cp-home-fade-up 0.55s ease both;
}

.cp-home-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.cp-home-brand__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	border-radius: var(--cp-home-radius);
	background: var(--cp-home-accent-muted);
	color: var(--cp-home-accent);
	border: 1px solid rgba(13, 148, 136, 0.28);
}

.cp-home-brand__mark svg {
	width: 20px;
	height: 20px;
}

.cp-home-brand__text strong {
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--cp-home-heading);
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.cp-home-brand__text span {
	display: block;
	font-size: 0.8rem;
	color: var(--cp-home-muted);
	margin-top: 2px;
}

.cp-home-nav__link {
	flex-shrink: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--cp-home-accent-hover);
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid rgba(13, 148, 136, 0.25);
	background: rgba(255, 255, 255, 0.82);
	transition: background var(--cp-home-ease), border-color var(--cp-home-ease), transform var(--cp-home-ease);
}

.cp-home-nav__link:hover {
	background: var(--cp-home-accent-muted);
	border-color: rgba(13, 148, 136, 0.45);
	transform: translateY(-1px);
}

/* Hero */
.cp-home-hero {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 36px 48px;
	align-items: center;
	min-height: min(68vh, 560px);
	padding: 12px 0 40px;
}

.cp-home-hero__copy {
	animation: cp-home-fade-up 0.6s ease 0.08s both;
}

.cp-home-eyebrow {
	margin: 0 0 12px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--cp-home-accent-hover);
}

.cp-home-hero__copy h1 {
	margin: 0 0 14px;
	font-size: clamp(2.35rem, 5vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.05;
	color: var(--cp-home-heading);
}

.cp-home-lead {
	margin: 0 0 28px;
	max-width: 38ch;
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--cp-home-muted);
}

.cp-home-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cp-home-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 20px;
	border-radius: var(--cp-home-radius);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	border: 1px solid transparent;
	transition: background var(--cp-home-ease), border-color var(--cp-home-ease), box-shadow var(--cp-home-ease), transform var(--cp-home-ease);
}

.cp-home-btn svg {
	width: 18px;
	height: 18px;
}

.cp-home-btn--primary {
	background: linear-gradient(180deg, var(--cp-home-accent-light), var(--cp-home-accent));
	color: #fff;
	box-shadow: 0 8px 20px var(--cp-home-accent-glow);
}

.cp-home-btn--primary:hover {
	background: linear-gradient(180deg, var(--cp-home-accent), var(--cp-home-accent-hover));
	transform: translateY(-1px);
}

.cp-home-btn--ghost {
	background: var(--cp-home-box);
	color: var(--cp-home-heading);
	border-color: var(--cp-home-border);
	box-shadow: var(--cp-home-shadow);
}

.cp-home-btn--ghost:hover {
	border-color: rgba(13, 148, 136, 0.35);
	transform: translateY(-1px);
}

/* Player mock */
.cp-home-hero__visual {
	position: relative;
	animation: cp-home-fade-up 0.7s ease 0.16s both;
}

.cp-home-player {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	background: #0b1220;
	border: 1px solid #1e293b;
	box-shadow: var(--cp-home-shadow-lg);
	aspect-ratio: 16 / 10;
	transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
	transition: transform 0.45s ease;
}

.cp-home-hero__visual:hover .cp-home-player {
	transform: perspective(900px) rotateY(-1deg) rotateX(0deg);
}

.cp-home-player__bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 28% 38%, rgba(13, 148, 136, 0.38), transparent 45%),
		radial-gradient(circle at 78% 62%, rgba(14, 165, 233, 0.18), transparent 40%),
		linear-gradient(145deg, #0f172a 0%, #1e293b 55%, #0b1220 100%);
}

.cp-home-player__grid {
	position: absolute;
	inset: 0;
	opacity: 0.22;
	background-image:
		linear-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
	background-size: 28px 28px;
	mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
}

.cp-home-player__ui {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 18px;
	z-index: 1;
}

.cp-home-player__top {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.cp-home-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	color: #e2e8f0;
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(148, 163, 184, 0.25);
	backdrop-filter: blur(8px);
}

.cp-home-chip__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
	animation: cp-home-pulse 1.8s ease-in-out infinite;
}

.cp-home-player__center {
	display: flex;
	justify-content: center;
	align-items: center;
}

.cp-home-play {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	background: color-mix(in srgb, var(--cp-home-accent) 88%, #0f766e);
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 12px 32px rgba(13, 148, 136, 0.45);
	animation: cp-home-breathe 2.8s ease-in-out infinite;
}

.cp-home-play svg {
	width: 26px;
	height: 26px;
	margin-left: 3px;
}

.cp-home-player__bottom {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cp-home-bar {
	height: 5px;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.25);
	overflow: hidden;
}

.cp-home-bar > span {
	display: block;
	height: 100%;
	width: 58%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--cp-home-accent), var(--cp-home-accent-light));
}

.cp-home-server-row {
	display: flex;
	gap: 8px;
}

.cp-home-server-pill {
	flex: 1;
	min-height: 34px;
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.65);
	border: 1px solid rgba(148, 163, 184, 0.2);
	color: #cbd5e1;
	font-size: 0.72rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(6px);
}

.cp-home-server-pill.is-active {
	color: #fff;
	border-color: rgba(13, 148, 136, 0.55);
	background: rgba(13, 148, 136, 0.28);
}

.cp-home-glow {
	position: absolute;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: var(--cp-home-accent-glow);
	filter: blur(40px);
	z-index: 0;
	pointer-events: none;
}

.cp-home-glow--a {
	top: -30px;
	right: -20px;
	animation: cp-home-float 5s ease-in-out infinite;
}

.cp-home-glow--b {
	bottom: -40px;
	left: -30px;
	width: 140px;
	height: 140px;
	background: rgba(14, 165, 233, 0.22);
	animation: cp-home-float 6.5s ease-in-out infinite reverse;
}

/* Features */
.cp-home-features {
	margin-top: 8px;
	padding-top: 36px;
	border-top: 1px solid rgba(226, 232, 240, 0.9);
	scroll-margin-top: 24px;
	animation: cp-home-fade-up 0.65s ease 0.28s both;
}

.cp-home-features__head {
	max-width: 42rem;
	margin-bottom: 22px;
}

.cp-home-features__head h2 {
	margin: 0 0 8px;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--cp-home-heading);
}

.cp-home-features__head p {
	margin: 0;
	color: var(--cp-home-muted);
	line-height: 1.55;
	font-size: 0.95rem;
}

.cp-home-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.cp-home-feature {
	padding: 18px 18px 16px;
	border-radius: var(--cp-home-radius-lg);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--cp-home-border);
	box-shadow: var(--cp-home-shadow);
	transition: transform var(--cp-home-ease), border-color var(--cp-home-ease);
}

.cp-home-feature:hover {
	transform: translateY(-2px);
	border-color: rgba(13, 148, 136, 0.3);
}

.cp-home-feature__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 12px;
	border-radius: 12px;
	color: var(--cp-home-accent);
	background: var(--cp-home-accent-muted);
	border: 1px solid rgba(13, 148, 136, 0.2);
}

.cp-home-feature__icon svg {
	width: 20px;
	height: 20px;
}

.cp-home-feature h3 {
	margin: 0 0 8px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--cp-home-heading);
}

.cp-home-feature p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--cp-home-muted);
}

/* Footer */
.cp-home-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid rgba(226, 232, 240, 0.9);
	font-size: 0.85rem;
	color: var(--cp-home-muted);
	animation: cp-home-fade-up 0.65s ease 0.35s both;
}

.cp-home-footer p {
	margin: 0;
}

.cp-home-footer a {
	font-weight: 600;
	color: var(--cp-home-accent-hover);
}

.cp-home-footer a:hover {
	text-decoration: underline;
}

/* Motion */
@keyframes cp-home-fade-up {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes cp-home-pulse {
	0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
	50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08); }
}

@keyframes cp-home-breathe {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

@keyframes cp-home-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

@media (max-width: 860px) {
	.cp-home-hero {
		grid-template-columns: 1fr;
		min-height: 0;
		gap: 28px;
		padding-bottom: 28px;
	}

	.cp-home-hero__visual {
		order: -1;
		max-width: 480px;
		margin: 0 auto;
		width: 100%;
	}

	.cp-home-player {
		transform: none;
	}

	.cp-home-hero__visual:hover .cp-home-player {
		transform: none;
	}

	.cp-home-feature-grid {
		grid-template-columns: 1fr;
	}

	.cp-home-lead {
		max-width: none;
	}

	.cp-home-hero__copy h1 {
		font-size: clamp(1.85rem, 8vw, 2.6rem);
	}
}

@media (max-width: 520px) {
	.cp-home {
		padding: 20px 16px 36px;
		overflow-x: hidden;
	}

	.cp-home-brand__text span {
		display: none;
	}

	.cp-home-server-row {
		flex-direction: column;
	}

	.cp-home-cta {
		flex-direction: column;
	}

	.cp-home-btn {
		width: 100%;
	}

	.cp-home-nav {
		gap: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
