:root {
	--bg-color: #f4f5f7;
	--text-main: #111827;
	--text-muted: #6b7280;
	--brand-red: #e11d48;
	--card-bg: #ffffff;
}

/* Base Reset & Typography */
body, html {
	margin: 0;
	padding: 0;
	background-color: var(--bg-color);
	color: var(--text-main);
	font-family: 'Inter', -apple-system, sans-serif;
	-webkit-font-smoothing: antialiased;
	line-height: 1.6;
}

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

/* Preloader */
#preloader {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: var(--bg-color);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}



#preloader .wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
}

#preloader .preloader-svg {
	width: 80px;
	height: 80px;
	display: block;
}

@keyframes dash {
	to { stroke-dashoffset: -100; }
}

/* Global Animations */
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Header & Logo */
.header {
	margin-bottom: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.logo {
	font-size: 1.5rem;
	font-weight: 900;
	letter-spacing: -0.5px;
	margin: 0;
	color: var(--text-main);
	text-transform: uppercase;
	text-decoration: none;
}

/* Language Switcher */
.lang-switcher {
	display: flex;
	align-items: center;
	gap: 8px;
}

.lang-btn {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font-family: inherit;
	font-weight: 800;
	font-size: 0.85rem;
	color: var(--text-muted);
	transition: color 0.2s;
}

.lang-btn.active, .lang-btn:hover {
	color: var(--text-main);
}

.lang-sep {
	color: #d1d5db;
	font-size: 0.8rem;
}

/* =========================================================
   PAGE: INDEX (Landing / Linktree)
   ========================================================= */

.page-index {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 1;
}

.page-index::before {
	content: '';
	position: fixed;
	top: -5%; left: -5%;
	width: 110%; height: 110%;
	background-image: url('https://playlist.spivai.com/?thumb=1');
	background-size: cover;
	background-position: center;
	filter: blur(25px) brightness(0.6);
	z-index: -1;
}

.page-index .container,
.page-text .container {
	width: 100%;
	background: var(--card-bg);
	border-radius: 24px;
	padding: 32px 24px;
	margin: 6vh 20px;
	box-shadow: 0 15px 35px rgba(0,0,0,0.15);
	animation: fadeIn 0.8s ease-out forwards;
}

.page-index .container {
	max-width: 420px;
}



.page-index .header {
	margin-bottom: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.page-index .subtitle-top {
	font-size: 0.85rem;
	color: var(--text-muted);
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 12px;
	text-align: left;
	width: 100%;
}

.page-index .funnel-wrapper {
	width: 100%;
	margin-bottom: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.page-index .video-thumb {
	width: 100%;
	aspect-ratio: 16/9;
	border-radius: 16px;
	background-image: url('https://playlist.spivai.com/?thumb=1');
	background-size: cover;
	background-position: center;
	position: relative;
	overflow: hidden;
	display: block;
	text-decoration: none;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.page-index .video-thumb:hover {
	transform: scale(1.02);
	box-shadow: 0 15px 30px rgba(255, 0, 0, 0.15);
}

.page-index .video-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.2);
	transition: background 0.3s;
}

.page-index .video-thumb:hover::after {
	background: rgba(0,0,0,0.1);
}

.page-index .play-button-giant {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 70px; height: 70px;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 2px solid rgba(255,255,255,0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-index .video-thumb:hover .play-button-giant {
	transform: translate(-50%, -50%) scale(1.1);
	background: rgba(0, 0, 0, 0.6);
	border-color: rgba(255,255,255,0.4);
}

.page-index .play-button-giant svg {
	width: 36px; height: 36px;
	fill: white;
}

.page-index .release-info {
	text-align: center;
	margin-bottom: 32px;
}

.page-index .release-info h2 {
	margin: 0 0 4px 0;
	font-size: 1.5rem;
	font-weight: 900;
	color: var(--text-main);
	letter-spacing: -0.5px;
}

.page-index .release-info p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--text-muted);
}

.page-index .platforms-list {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.page-index .platform-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #ffffff;
	text-decoration: none;
	color: var(--text-main);
	transition: all 0.2s ease;
	box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.page-index .platform-btn:hover {
	background: #f9fafb;
	border-color: #d1d5db;
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(0,0,0,0.06);
}

.page-index .platform-left {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
	font-size: 0.95rem;
}

.page-index .platform-icon {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.page-index .platform-icon svg {
	width: 100%; height: 100%;
}

.page-index .platform-action {
	font-size: 0.75rem;
	font-weight: 800;
	padding: 8px 16px;
	background: rgba(0,0,0,0.04);
	color: var(--text-main);
	border-radius: 100px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.page-index .footer {
	margin-top: auto;
	padding-top: 48px;
	text-align: center;
	animation: fadeIn 0.8s ease-out forwards;
	animation-delay: 0.2s;
	opacity: 0;
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
}

.page-index .footer a {
	color: var(--text-muted);
	font-size: 0.85rem;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.page-index .footer a:hover {
	color: var(--text-main);
}

.page-index .footer-separator {
	color: #d1d5db;
	font-size: 0.8rem;
}

/* =========================================================
   PAGE: TEXT (Generic Article Pages)
   ========================================================= */

.page-text {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 1;
}

.page-text .container {
	max-width: 680px;
}

.page-text h1 {
	font-size: 1.8rem;
	font-weight: 800;
	margin-top: 0;
	margin-bottom: 8px;
	letter-spacing: -0.5px;
}

.page-text .last-updated {
	font-size: 0.9rem;
	color: var(--text-muted);
	margin-bottom: 32px;
}

.page-text h2 {
	font-size: 1.2rem;
	font-weight: 800;
	margin-top: 32px;
	margin-bottom: 16px;
	color: var(--text-main);
}

.page-text p {
	color: #374151;
	margin-bottom: 16px;
	font-size: 0.95rem;
}

.page-text ul {
	color: #374151;
	font-size: 0.95rem;
	margin-bottom: 16px;
	padding-left: 20px;
}

.page-text li {
	margin-bottom: 8px;
}

.page-text p a,
.page-text li a {
	color: var(--brand-red);
	text-decoration: none;
	font-weight: 600;
}

.page-text p a:hover,
.page-text li a:hover {
	text-decoration: underline;
}

.page-text .back-btn {
	display: inline-flex;
	align-items: center;
	margin-top: 32px;
	padding: 12px 24px;
	background-color: var(--bg-color);
	color: var(--text-main);
	border-radius: 100px;
	font-weight: 600;
	font-size: 0.9rem;
	transition: background 0.2s;
	text-decoration: none;
}

.page-text .back-btn:hover {
	background-color: #e5e7eb;
	text-decoration: none;
}

/* Mobile Shared Styles */
@media (max-width: 600px) {
	.page-index::before {
		display: none; /* Hide background image on mobile */
	}

	.page-index .container,
	.page-text .container {
		margin: 24px 16px;
		padding: 24px;
		width: 100%;
		max-width: calc(100% - 32px);
	}
}
