/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
	--mauve: #c8a2c8;
	--mauve-soft: #dbb8db;
	--mauve-dim: #9b7a9b;
	--mauve-glow: rgba(200, 162, 200, 0.12);
	--bg: #0c0a10;
	--bg-alt: #110e17;
	--bg-card: rgba(200, 162, 200, 0.035);
	--bg-card-hover: rgba(200, 162, 200, 0.07);
	--text: #e8e2ed;
	--text-dim: #847d8c;
	--border: rgba(200, 162, 200, 0.08);
	--green: #34d399;
	--discord: #5865F2;
}

html { scroll-behavior: smooth; }

body {
	font-family: 'Space Grotesk', sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}

/* === Scroll Animations === */
.fade-up {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
	opacity: 1;
	transform: translateY(0);
}

/* === Navbar === */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: rgba(12, 10, 16, 0.92);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
}

.nav-inner {
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-brand {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.nav-logo {
	height: 36px;
	width: auto;
}

.nav-links {
	display: flex;
	gap: 32px;
}

.nav-links a {
	color: var(--text-dim);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 500;
	transition: color 0.2s;
}

.nav-links a:hover {
	color: var(--mauve-soft);
}

/* === Buttons === */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 24px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
	cursor: pointer;
	border: none;
	font-family: inherit;
}

.btn-nav {
	background: var(--mauve-dim);
	color: #fff;
	padding: 8px 20px;
	font-size: 0.84rem;
}

.btn-nav:hover {
	background: var(--mauve);
}

.btn-primary {
	background: linear-gradient(135deg, #b47eb4, #9b6a9b);
	color: #fff;
	padding: 12px 28px;
	box-shadow: 0 4px 24px rgba(180, 126, 180, 0.2);
}

.btn-primary:hover {
	box-shadow: 0 6px 32px rgba(180, 126, 180, 0.35);
	transform: translateY(-1px);
}

.btn-outline {
	background: transparent;
	color: var(--text);
	border: 1px solid rgba(200, 162, 200, 0.15);
	padding: 12px 28px;
}

.btn-outline:hover {
	border-color: var(--mauve-dim);
	color: #fff;
}

.pill {
	font-size: 0.72rem;
	background: rgba(255, 255, 255, 0.15);
	padding: 2px 8px;
	border-radius: 6px;
}

/* === Hero === */
.hero {
	padding: 160px 0 100px;
	background:
		radial-gradient(ellipse at 15% 40%, rgba(200, 162, 200, 0.06) 0%, transparent 50%),
		radial-gradient(ellipse at 75% 60%, rgba(180, 140, 180, 0.04) 0%, transparent 40%),
		var(--bg);
}

.hero-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 60px;
}

.badge {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 100px;
	background: rgba(200, 162, 200, 0.08);
	border: 1px solid rgba(200, 162, 200, 0.15);
	color: var(--mauve);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.3px;
	margin-bottom: 28px;
}

.hero h1 {
	font-size: clamp(3.5rem, 7vw, 5.5rem);
	font-weight: 700;
	color: #fff;
	line-height: 1;
	margin-bottom: 20px;
	letter-spacing: -2px;
}

.hero h1 .accent {
	background: linear-gradient(135deg, var(--mauve), var(--mauve-soft));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-desc {
	font-size: 1.1rem;
	color: #a9a2b0;
	line-height: 1.7;
	max-width: 460px;
	margin-bottom: 36px;
}

.hero-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.hero-link {
	display: inline-block;
	color: var(--text-dim);
	font-size: 0.85rem;
	text-decoration: none;
	margin-top: 28px;
	transition: color 0.2s;
}

.hero-link:hover {
	color: var(--mauve);
}

.hero-visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 360px;
}

.glow-orb {
	position: absolute;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(200, 162, 200, 0.12) 0%, transparent 65%);
	filter: blur(60px);
	pointer-events: none;
	animation: glow-pulse 6s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
	from { opacity: 0.7; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1.05); }
}

.hero-screenshot {
	position: relative;
	width: 100%;
	max-width: 500px;
	height: auto;
	border-radius: 12px;
	border: 1px solid rgba(200, 162, 200, 0.1);
	box-shadow:
		0 24px 48px rgba(0, 0, 0, 0.35),
		0 0 0 1px rgba(200, 162, 200, 0.04);
	transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
	transition: transform 0.4s ease;
	user-select: none;
	-webkit-user-drag: none;
}

.hero-screenshot:hover {
	transform: perspective(1000px) rotateY(-1deg) rotateX(1deg);
}

/* === Section Shared === */
.features, .stats, .leaderboard {
	padding: 100px 0;
}

.features { background: var(--bg-alt); }
.stats { background: var(--bg); }
.leaderboard { background: var(--bg-alt); }

h2 {
	font-size: clamp(1.8rem, 3.5vw, 2.5rem);
	font-weight: 700;
	color: #fff;
	text-align: center;
	margin-bottom: 8px;
	letter-spacing: -1px;
}

.subtitle {
	text-align: center;
	color: var(--text-dim);
	font-size: 1rem;
	margin-bottom: 56px;
}

/* === Bento Features === */
.bento {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.bento-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 28px;
	transition: all 0.25s;
}

.bento-card:hover {
	background: var(--bg-card-hover);
	border-color: rgba(200, 162, 200, 0.18);
	transform: translateY(-2px);
}

.bento-card.wide {
	grid-column: span 2;
	border-left: 2px solid var(--mauve-dim);
}

.bento-icon {
	color: var(--mauve);
	margin-bottom: 16px;
}

.bento-card h3 {
	font-size: 1.05rem;
	font-weight: 600;
	color: #fff;
	margin-bottom: 8px;
}

.bento-card p {
	color: var(--text-dim);
	font-size: 0.88rem;
	line-height: 1.65;
}

/* Bento card with background image */
.bento-card.has-bg {
	position: relative;
	background-size: cover;
	background-position: center;
	min-height: 180px;
	overflow: hidden;
	border-color: rgba(200, 162, 200, 0.12);
}

.bento-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(12, 10, 16, 0.88) 0%, rgba(17, 14, 23, 0.75) 100%);
	border-radius: inherit;
	transition: background 0.3s;
}

.bento-card.has-bg:hover .bento-overlay {
	background: linear-gradient(135deg, rgba(12, 10, 16, 0.82) 0%, rgba(17, 14, 23, 0.68) 100%);
}

.bento-content {
	position: relative;
	z-index: 1;
}

/* === Stats === */
.stats-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	max-width: 820px;
	margin: 0 auto;
}

.stat {
	text-align: center;
	padding: 28px 16px;
	position: relative;
}

.stat::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 32px;
	height: 2px;
	background: var(--mauve-dim);
	border-radius: 1px;
}

.stat-number {
	font-size: 2.8rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;
	letter-spacing: -2px;
}

.stat-label {
	color: var(--text-dim);
	font-size: 0.75rem;
	margin-top: 10px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: 500;
}

/* === Leaderboard === */
.leaderboard-table {
	max-width: 800px;
	margin: 0 auto;
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
}

.leaderboard-row {
	display: grid;
	grid-template-columns: 48px 1fr 1fr 140px;
	align-items: center;
	padding: 14px 24px;
	border-bottom: 1px solid var(--border);
	transition: background 0.15s;
}

.leaderboard-row:last-child {
	border-bottom: none;
}

.leaderboard-row:hover {
	background: rgba(200, 162, 200, 0.03);
}

.leaderboard-row.header {
	background: rgba(200, 162, 200, 0.04);
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: 1.5px;
}

.leaderboard-row.header:hover {
	background: rgba(200, 162, 200, 0.04);
}

.leaderboard-rank {
	font-weight: 700;
	color: var(--text-dim);
	font-size: 0.9rem;
}

.leaderboard-rank.gold { color: #fbbf24; font-size: 1rem; }
.leaderboard-rank.silver { color: #9ca3af; font-size: 0.95rem; }
.leaderboard-rank.bronze { color: #d97706; font-size: 0.92rem; }

.leaderboard-name {
	font-weight: 600;
	color: #fff;
	font-size: 0.92rem;
}

.leaderboard-job {
	color: var(--text-dim);
	font-size: 0.85rem;
}

.leaderboard-money {
	text-align: right;
	font-weight: 700;
	color: var(--green);
	font-size: 0.92rem;
}

.leaderboard-loading {
	text-align: center;
	color: var(--text-dim);
	padding: 48px;
	font-size: 0.9rem;
}

/* === Footer === */
.footer {
	padding: 28px 0;
	border-top: 1px solid var(--border);
	background: var(--bg);
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.footer-brand {
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
}

.footer-brand span {
	background: linear-gradient(135deg, var(--mauve), var(--mauve-soft));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.footer-links {
	display: flex;
	gap: 24px;
}

.footer-links a {
	color: var(--text-dim);
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 500;
	transition: color 0.2s;
}

.footer-links a:hover {
	color: var(--mauve);
}

.footer-copy {
	color: var(--text-dim);
	font-size: 0.75rem;
}

/* === Responsive === */
@media (max-width: 900px) {
	.hero {
		padding: 130px 0 80px;
	}

	.hero-split {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero-visual {
		display: none;
	}

	.hero-desc {
		margin-left: auto;
		margin-right: auto;
	}

	.hero-actions {
		justify-content: center;
	}

	.hero-link {
		display: block;
		text-align: center;
	}

	.bento {
		grid-template-columns: 1fr;
	}

	.bento-card.wide {
		grid-column: span 1;
	}

	.features, .stats, .leaderboard {
		padding: 72px 0;
	}

	.stats-row {
		grid-template-columns: repeat(2, 1fr);
	}

	.stat:nth-child(-n+2) {
		border-bottom: 1px solid var(--border);
	}

	.leaderboard-row {
		grid-template-columns: 40px 1fr 100px;
	}

	.leaderboard-job {
		display: none;
	}

	.footer-inner {
		flex-direction: column;
		gap: 16px;
		text-align: center;
	}
}

@media (max-width: 600px) {
	.nav-links {
		display: none;
	}

	.hero {
		padding: 120px 0 60px;
	}

	.hero h1 {
		letter-spacing: -1px;
	}

	.hero-desc {
		font-size: 1rem;
	}

	.hero-actions {
		flex-direction: column;
		align-items: center;
	}

	.btn-primary, .btn-outline {
		width: 100%;
		max-width: 260px;
		justify-content: center;
	}

	.features, .stats, .leaderboard {
		padding: 56px 0;
	}

	.subtitle {
		margin-bottom: 36px;
		font-size: 0.92rem;
	}

	.bento-card {
		padding: 22px;
	}

	.stats-row {
		grid-template-columns: 1fr;
	}

	.stat {
		padding: 18px 12px;
		border-bottom: 1px solid var(--border);
	}

	.stat:last-child {
		border-bottom: none;
	}

	.stat:nth-child(-n+2) {
		border-bottom: 1px solid var(--border);
	}

	.stat-number {
		font-size: 2.2rem;
	}

	.leaderboard-row {
		padding: 12px 16px;
		grid-template-columns: 32px 1fr 90px;
		font-size: 0.88rem;
	}

	.footer {
		padding: 20px 0;
	}
}
