/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
	--primary-color: #0d0d12;
	--secondary-color: #00e5ff;
	--accent-color: #7c4dff;
	--text-primary: #ffffff;
	--text-secondary: #b0b0b0;
	--bg-color: #08080c;
	--glass-bg: rgba(255, 255, 255, 0.03);
	--glass-border: rgba(255, 255, 255, 0.08);
	--glass-blur: 16px;
	--grad-primary: linear-gradient(135deg, #7c4dff 0%, #00e5ff 100%);
	--font-title: "Outfit", sans-serif;
	--font-body: "Inter", sans-serif;
	--font-medieval: "MedievalSharp", serif;
}

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

html,
body {
	max-width: 100vw;
	overflow-x: hidden;
	background-color: var(--bg-color);
	color: var(--text-primary);
	font-family: var(--font-body);
}

body {
	background: radial-gradient(circle at top center, #1a1a2e 0%, #08080c 100%);
	min-height: 100dvh;
}

body.no-scroll {
	overflow: hidden;
}

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

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
	width: 10px;
}
::-webkit-scrollbar-track {
	background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
	background: linear-gradient(
		to bottom,
		var(--accent-color),
		var(--secondary-color)
	);
	border-radius: 5px;
	border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
	background: var(--secondary-color);
}
* {
	scrollbar-width: thin;
	scrollbar-color: var(--secondary-color) var(--bg-color);
}

/* ============================================
   MARKETING LAYOUT
   ============================================ */
.marketing-layout {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
}

.marketing-layout main {
	flex: 1;
}

/* ============================================
   GAME LAYOUT
   ============================================ */
.game-layout-base {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.game-main-content {
	flex: 1;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.container-centered {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.centered-content {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

@media (max-width: 768px) {
	.container {
		padding: 0 1rem;
	}
}

/* ============================================
   SECTION
   ============================================ */
.section {
	padding: 6rem 0;
	position: relative;
	z-index: 10;
}

.section-title {
	font-family: var(--font-title);
	font-size: 2.8rem;
	font-weight: 800;
	margin-bottom: 3.5rem;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	background: var(--grad-primary);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.section-centered {
	padding: 6rem 0;
	position: relative;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 9999;
	padding: 0.8rem 0;
	background: rgba(10, 10, 15, 0.75);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-left {
	flex: 1;
	display: flex;
	align-items: center;
}

.nav-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}

.logo-full {
	height: 44px;
	width: auto;
	display: block;
	filter: drop-shadow(0 0 8px rgba(124, 77, 255, 0.4));
}

.nav-center {
	flex: 2;
	display: flex;
	justify-content: center;
	align-items: center;
}

.nav-links {
	display: flex;
	gap: 2.5rem;
}

.nav-link {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	transition: all 0.3s ease;
	position: relative;
	padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
	color: var(--text-primary);
}

.nav-link.active::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--grad-primary);
	box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.nav-right {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.5rem;
}

.lang-toggle {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--glass-border);
	color: var(--text-secondary);
	padding: 0.4rem 0.8rem;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 800;
	cursor: pointer;
	transition: all 0.3s ease;
}

.lang-toggle:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--text-primary);
	border-color: var(--accent-color);
}

.divertirme-btn {
	box-shadow: 0 0 15px rgba(124, 77, 255, 0.2);
}

.burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: transparent;
	border: none;
	cursor: pointer;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.25s ease, border-color 0.25s ease;
	z-index: 1001;
}

.burger span {
	width: 25px;
	height: 2px;
	background: white;
	transition: all 0.3s ease;
	display: block;
}

.burger.burger-active {
	background: rgba(124, 77, 255, 0.18);
	box-shadow: 0 0 0 1px rgba(124, 77, 255, 0.4);
}

.mobile-actions {
	display: none;
}

.menu-close {
	display: none;
}

@media (max-width: 1024px) {
	.nav-center {
		display: none;
	}
	.desktop-action {
		display: none;
	}
	.lang-toggle {
		display: none;
	}
	.burger {
		display: flex;
	}

	.nav-center.menu-open {
		display: flex;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: rgba(5, 5, 8, 0.98);
		backdrop-filter: blur(25px);
		flex-direction: column;
		padding: 8rem 2rem;
		justify-content: flex-start;
		animation: fadeInNav 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
		z-index: 9998;
	}

	.nav-center.menu-open .menu-close {
		display: flex;
		position: absolute;
		top: 1.25rem;
		right: 1.25rem;
		width: 48px;
		height: 48px;
		align-items: center;
		justify-content: center;
		font-size: 2.25rem;
		line-height: 1;
		color: white;
		background: rgba(255, 255, 255, 0.08);
		border: 1px solid rgba(255, 255, 255, 0.15);
		border-radius: 50%;
		cursor: pointer;
		transition: background 0.25s ease, transform 0.25s ease;
	}

	.nav-center.menu-open .menu-close:active {
		transform: scale(0.92);
		background: rgba(124, 77, 255, 0.25);
	}

	.pixel-chaos-hero-bg {
		display: none;
	}

	.nav-center.menu-open .nav-links {
		flex-direction: column;
		align-items: center;
		gap: 3rem;
	}

	.nav-center.menu-open .nav-link {
		font-size: 1.5rem;
	}

	.mobile-actions {
		margin-top: 4rem;
		width: 100%;
		max-width: 320px;
		display: flex;
		flex-direction: column;
		gap: 1.5rem;
	}

	.burger.burger-active span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	.burger.burger-active span:nth-child(2) {
		opacity: 0;
	}
	.burger.burger-active span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}

@keyframes fadeInNav {
	from {
		opacity: 0;
		transform: scale(1.05);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
	padding: 2rem;
	text-align: center;
	border-top: 1px solid var(--glass-border);
	background: rgba(8, 8, 12, 0.8);
}

.footer-made-with-love {
	font-size: 1rem;
	margin-bottom: 0.5rem;
}

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

/* ============================================
   BUTTONS (Marketing)
   ============================================ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: var(--font-title);
	border: 1px solid transparent;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	position: relative;
	z-index: 10;
}

.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.btn-primary {
	background: var(--grad-primary);
	color: white;
	box-shadow: 0 4px 15px rgba(124, 77, 255, 0.3);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(124, 77, 255, 0.4);
}

.btn-secondary {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: white;
	backdrop-filter: blur(4px);
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.1);
}

.btn-ghost {
	background: transparent;
	color: var(--text-secondary);
}

.btn-ghost:hover {
	color: white;
	background: rgba(255, 255, 255, 0.05);
}

.btn-glass {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: white;
}

.btn-glass:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}

.btn-sm {
	padding: 0.5rem 1rem;
	font-size: 0.75rem;
}
.btn-md {
	padding: 0.75rem 1.5rem;
	font-size: 0.9rem;
}
.btn-lg {
	padding: 1rem 2rem;
	font-size: 1rem;
}
.btn-xl {
	padding: 1.25rem 2.5rem;
	font-size: 1.1rem;
	border-radius: 16px;
}
.btn-full-width {
	width: 100%;
}

/* ============================================
   CARDS (Marketing)
   ============================================ */
.card {
	border-radius: 20px;
	padding: 2rem;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	position: relative;
	overflow: hidden;
	background: rgba(13, 13, 18, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
	z-index: 10;
}

.card-glass {
	backdrop-filter: blur(60px) saturate(150%);
	-webkit-backdrop-filter: blur(60px) saturate(150%);
	background: rgba(13, 13, 18, 0.6);
}

.card-interactive:hover {
	transform: translateY(-8px) scale(1.02);
	border-color: rgba(0, 229, 255, 0.4);
	box-shadow: 0 15px 35px rgba(0, 229, 255, 0.15);
}

.card-glow::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 50%;
	height: 100%;
	background: linear-gradient(
		to right,
		transparent,
		rgba(0, 229, 255, 0.1),
		transparent
	);
	transform: skewX(-25deg);
	transition: 0.5s;
}

.card-glow:hover::after {
	left: 150%;
	transition: 0.7s;
}
.card-glow:hover {
	box-shadow: 0 0 25px rgba(0, 229, 255, 0.2);
}

/* ============================================
   HOME PAGE
   ============================================ */
.home-container {
	display: flex;
	flex-direction: column;
}

.hero-section {
	min-height: 85vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: 0;
}

.pixel-chaos-hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	opacity: 0.4;
	overflow: hidden;
	mask-image: linear-gradient(to bottom, black 0%, black 20%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, black 0%, black 20%, transparent 100%);
}

.pixel-chaos-hero-bg canvas {
	pointer-events: none;
	touch-action: pan-y;
}

.hero-content {
	position: relative;
	z-index: 10;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.studio-badge {
	background: rgba(124, 77, 255, 0.1);
	border: 1px solid rgba(124, 77, 255, 0.3);
	color: var(--accent-color);
	padding: 0.5rem 1.2rem;
	border-radius: 30px;
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	margin-bottom: 2rem;
	display: inline-block;
}

.home-title {
	font-size: clamp(2.8rem, 8vw, 5.5rem);
	margin-bottom: 2rem;
	line-height: 1.05;
	font-weight: 800;
	text-transform: uppercase;
	max-width: 1100px;
	text-align: center;
}

.highlight-primary {
	background: var(--grad-primary);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: 0 0 15px rgba(124, 77, 255, 0.3);
}

.highlight-secondary {
	color: var(--secondary-color);
	text-shadow:
		0 0 10px rgba(0, 229, 255, 0.5),
		0 0 20px rgba(0, 229, 255, 0.3),
		0 0 30px rgba(0, 229, 255, 0.2);
	animation: glowPulse 2.5s infinite ease-in-out;
	display: inline-block;
}

@keyframes glowPulse {
	0%,
	100% {
		filter: brightness(1) drop-shadow(0 0 5px rgba(0, 229, 255, 0.4));
		transform: scale(1);
	}
	50% {
		filter: brightness(1.3) drop-shadow(0 0 15px rgba(0, 229, 255, 0.8));
		transform: scale(1.02);
	}
}

.home-text {
	font-size: clamp(1.1rem, 2vw, 1.45rem);
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 4rem;
	max-width: 800px;
}

.hero-actions {
	display: flex;
	gap: 2rem;
	justify-content: center;
}

.philosophy-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	text-align: left;
}

.philosophy-content h3 {
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
	color: white;
}
.philosophy-content p {
	font-size: 1.2rem;
	color: var(--text-secondary);
	line-height: 1.7;
	margin-bottom: 2rem;
}

.philosophy-list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.philosophy-list li {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-weight: 600;
	color: var(--secondary-color);
}

.philosophy-list li::before {
	content: "→";
	color: var(--accent-color);
}

.philosophy-card {
	height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.stat-box {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.stat-number {
	font-size: 5rem;
	font-weight: 800;
	font-family: var(--font-title);
	background: var(--grad-primary);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.stat-label {
	font-size: 1.2rem;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.2em;
}

.features-section {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 3rem;
	padding-bottom: 5rem;
}

.feature-card {
	text-align: center;
	padding: 3rem;
	position: relative;
	height: 100%;
}

.project-status {
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--secondary-color);
	text-transform: uppercase;
	letter-spacing: 0.15em;
	margin-bottom: 1rem;
	opacity: 0.8;
}

.feature-title {
	margin-bottom: 1.25rem;
	color: var(--secondary-color);
	font-size: 1.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.feature-text {
	opacity: 0.8;
	font-size: 1.15rem;
	line-height: 1.6;
}

@media (max-width: 968px) {
	.philosophy-grid {
		grid-template-columns: 1fr;
		gap: 3rem;
		text-align: center;
	}
	.philosophy-list {
		align-items: center;
	}
}

@media (max-width: 768px) {
	.hero-section {
		min-height: auto;
		padding: 6rem 0 3rem;
	}
	.hero-actions {
		flex-direction: column;
		align-items: center;
		gap: 1.2rem;
	}
	.navbar {
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
		background: rgba(10, 10, 15, 0.92);
	}
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-page {
	display: flex;
	flex-direction: column;
}

.about-badge {
	background: rgba(0, 229, 255, 0.1);
	border: 1px solid rgba(0, 229, 255, 0.3);
	color: var(--secondary-color);
	padding: 0.5rem 1.2rem;
	border-radius: 30px;
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	margin-bottom: 2rem;
	display: inline-block;
}

.about-title {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	margin-bottom: 1.5rem;
	font-weight: 800;
	text-transform: uppercase;
}
.about-hero-text {
	font-size: 1.3rem;
	color: var(--text-secondary);
	max-width: 800px;
	line-height: 1.6;
}

.team-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 3rem;
	margin-top: 3rem;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.member-card {
	text-align: center;
	padding: 3rem 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
}

.image-placeholder {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.03);
	border: 2px solid var(--glass-border);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 2rem;
	position: relative;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
}

.member-card:hover .image-placeholder {
	border-color: var(--accent-color);
	transform: scale(1.05);
	box-shadow: 0 0 20px rgba(124, 77, 255, 0.3);
}

.member-icon {
	font-size: 3rem;
	filter: drop-shadow(0 0 10px rgba(124, 77, 255, 0.3));
}
.member-name {
	font-size: 1.6rem;
	margin-bottom: 0.5rem;
	color: white;
	font-family: var(--font-title);
}
.member-role {
	color: var(--secondary-color);
	font-weight: 700;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 1.5rem;
}
.member-desc {
	color: var(--text-secondary);
	font-size: 1rem;
	line-height: 1.6;
}

.mission-section {
	margin-top: 4rem;
	padding-bottom: 6rem;
}
.mission-card {
	max-width: 900px;
	padding: 4rem;
}
.mission-title {
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
	font-family: var(--font-title);
}
.mission-text {
	font-size: 1.2rem;
	line-height: 1.8;
	color: var(--text-secondary);
}

@media (max-width: 768px) {
	.team-grid {
		grid-template-columns: 1fr;
		max-width: 400px;
	}
}

/* ============================================
   NOT FOUND PAGE
   ============================================ */
.not-found-page {
	min-height: 80vh;
	display: flex;
	align-items: center;
}
.not-found-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.glitch-wrapper {
	margin-bottom: 1.5rem;
}

.error-code {
	font-size: clamp(5rem, 15vw, 10rem);
	font-weight: 800;
	font-family: var(--font-title);
	background: var(--grad-primary);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.error-title {
	font-size: 2rem;
	font-weight: 800;
	text-transform: uppercase;
	margin-bottom: 1rem;
}
.error-text {
	font-size: 1.1rem;
	color: var(--text-secondary);
	max-width: 600px;
	line-height: 1.6;
	margin-bottom: 2.5rem;
}
.error-actions {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 2rem;
	flex-wrap: wrap;
	justify-content: center;
}
.not-found-help {
	color: var(--text-secondary);
	font-size: 0.9rem;
}

/* ============================================
   CONSTRUCTION PAGE
   ============================================ */
.construction-page {
	min-height: 80vh;
	display: flex;
	align-items: center;
}
.construction-icon-wrapper {
	position: relative;
	margin-bottom: 2rem;
}
.construction-main-icon {
	font-size: 5rem;
}
.pulse-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100px;
	height: 100px;
	border-radius: 50%;
	border: 3px solid var(--accent-color);
	animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
	0% {
		transform: translate(-50%, -50%) scale(0.8);
		opacity: 1;
	}
	100% {
		transform: translate(-50%, -50%) scale(2);
		opacity: 0;
	}
}

.construction-title {
	font-size: 2.5rem;
	font-weight: 800;
	text-transform: uppercase;
	margin-bottom: 1rem;
}
.construction-subtitle {
	font-size: 1.1rem;
	color: var(--text-secondary);
	max-width: 600px;
	line-height: 1.6;
	margin-bottom: 2rem;
	text-align: center;
}
.construction-progress-container {
	margin-bottom: 2rem;
}
.construction-progress-bar {
	width: 300px;
	height: 8px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	margin-bottom: 0.75rem;
	overflow: hidden;
}
.construction-progress-fill {
	height: 100%;
	width: 65%;
	background: var(--grad-primary);
	border-radius: 4px;
	animation: progressShimmer 2s ease infinite;
}

@keyframes progressShimmer {
	0% {
		opacity: 0.8;
	}
	50% {
		opacity: 1;
	}
	100% {
		opacity: 0.8;
	}
}

.construction-progress-text {
	font-size: 0.9rem;
	color: var(--text-secondary);
	display: block;
}

/* ============================================
   PREMIUM REDESIGN STYLES
   ============================================ */

.relative-z {
    position: relative;
    z-index: 10;
}
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(124,77,255,0.15) 0%, rgba(0,229,255,0.05) 40%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 90%);
}
.ambient-glow-bottom {
    top: auto;
    bottom: -20%;
    background: radial-gradient(circle, rgba(0,229,255,0.15) 0%, rgba(124,77,255,0.05) 40%, transparent 70%);
}

.animate-gradient-text {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #00e5ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 4s linear infinite;
    text-shadow: none;
}
@keyframes shine {
    to { background-position: 200% center; }
}

.text-glow {
    text-shadow: 0 0 20px rgba(0,229,255,0.4);
}
.gradient-text-cyan {
    background: linear-gradient(135deg, #00e5ff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lead-text {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.premium-btn {
    border-radius: 50px;
    padding: 1.25rem 3rem;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(124,77,255,0.9), rgba(0,229,255,0.9));
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(124,77,255,0.4), inset 0 2px 0 rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}
.premium-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}
.premium-btn:hover::before {
    left: 100%;
}
.premium-btn-secondary {
    border-radius: 50px;
    padding: 1.25rem 3rem;
}
.btn-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}
.premium-btn:hover .btn-icon {
    transform: translateX(5px);
}

.bento-section {
    padding: 8rem 0;
}
.bento-header {
    margin-bottom: 4rem;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
}
.bento-cell {
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(15,15,20,0.6);
}
.bento-interactive:hover {
    border-color: rgba(0,229,255,0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    padding: 3rem;
}
.bento-stat {
    grid-column: span 2;
    grid-row: span 1;
    align-items: center;
}
.bento-small {
    grid-column: span 1;
    grid-row: span 1;
    align-items: flex-start;
    justify-content: flex-end;
}
.bento-bg-gradient {
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}
.bento-interactive:hover .bento-bg-gradient {
    opacity: 0.8;
}
.bento-purple { background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%); }
.bento-cyan { background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%); }

.bento-content {
    position: relative;
    z-index: 10;
}
.bento-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
.glass-icon {
    display: inline-flex;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}
.bento-large h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-title);
}
.bento-large p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.premium-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}
.project-card {
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    background: rgba(15,15,20,0.8);
    display: flex;
    flex-direction: column;
}
.project-image-placeholder {
    height: 200px;
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}
.chibilization-bg { background-image: url('/static/img/projects/chibilization.png'); background-size: cover; background-position: center; }
.ascension-bg { background-image: url('/static/img/projects/ascension.png'); background-size: cover; background-position: center; }
.mini-bg { background-image: url('/static/img/projects/minigame.png'); background-size: cover; background-position: center; }

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(15,15,20,1));
}
.project-content {
    padding: 2rem;
    flex: 1;
    position: relative;
    z-index: 2;
}
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.glass-tag {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
}
.badge-active {
    color: #00e5ff;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .bento-stat {
        grid-column: span 2;
    }
    /* Decorative blur effects are GPU-expensive — turn them off on
       touch devices to keep scroll smooth. */
    .ambient-glow,
    .bento-bg-gradient {
        display: none;
    }
}
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-large, .bento-stat, .bento-small, .bento-wide-mobile {
        grid-column: span 1;
        min-height: 200px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .premium-btn, .premium-btn-secondary {
        width: 100%;
    }
}

