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

:root {
	--bg-darkest: #0d1117;
	--bg-dark: #161b22;
	--bg-card: #1c2333;
	--accent: #66c0f4;
	--accent-hover: #9edcff;
	--accent-dim: rgba(102, 192, 244, 0.3);
	--discord: #5865F2;
	--discord-hover: #6d78f5;
	--text: #c6d4df;
	--text-bright: #ffffff;
	--text-dim: #8f98a0;
}

html { scroll-behavior: smooth; }

body {
	font-family: 'Inter', -apple-system, sans-serif;
	background: var(--bg-darkest);
	color: var(--text);
	overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* === NOISE TEXTURE OVERLAY === */
body::before {
	content: ''; position: fixed; inset: 0;
	z-index: 9999; pointer-events: none;
	opacity: 0.025;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* === RIPPLE EFFECT === */
.ripple-parent { position: relative; overflow: hidden; }
.ripple {
	position: absolute;
	border-radius: 50%;
	background: rgba(255,255,255,0.5);
	transform: scale(0);
	animation: ripple-anim 0.6s linear;
	pointer-events: none;
}
@keyframes ripple-anim {
	to { transform: scale(4); opacity: 0; }
}

/* === IMAGE FADE-IN === */
img[loading="lazy"] {
	opacity: 0;
	transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"].no-fade { opacity: 1; }

/* Scroll animation base */
.fade-in {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Staggered fade-in for grid children */
.stagger > * {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.2,.8,.2,1);
}
.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.65s; }
.stagger.visible > *:nth-child(8) { transition-delay: 0.75s; }
.stagger.visible > * {
	opacity: 1;
	transform: translateY(0);
}

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
	position: fixed; top: 0; left: 0; z-index: 1100;
	height: 2px; width: 0%;
	background: linear-gradient(90deg, var(--accent), var(--accent-hover));
	box-shadow: 0 0 10px var(--accent-dim);
	transition: width 0.1s linear;
}

/* === NAVBAR === */
.navbar {
	position: fixed; top: 0; left: 0; right: 0;
	z-index: 1000;
	display: flex; align-items: center; justify-content: space-between;
	height: 60px; padding: 0 32px;
	background: transparent;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid transparent;
	transition: background 0.3s, border-color 0.3s;
}
.navbar.scrolled {
	background: rgba(28, 35, 51, 0.85);
	border-bottom-color: rgba(102,192,244,0.12);
	box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.navbar-brand {
	display: flex; align-items: center; gap: 10px;
	transition: transform 0.3s ease;
}
.navbar-brand:hover { transform: translateX(-1px); }
.navbar-logo {
	width: 36px; height: 36px; border-radius: 8px; object-fit: contain;
	transition: all 0.4s cubic-bezier(.2,.8,.2,1);
	position: relative;
}
.navbar-brand:hover .navbar-logo {
	transform: scale(1.08) rotate(-3deg);
	filter: drop-shadow(0 0 10px var(--accent-dim));
}
.navbar-name {
	font-size: 1rem; font-weight: 700; color: var(--text-bright);
	letter-spacing: 0.5px;
	transition: color 0.25s ease;
}
.navbar-brand:hover .navbar-name { color: var(--accent); }

/* Links - Animated Underline */
.navbar-links {
	display: flex; align-items: center; gap: 6px;
	list-style: none;
}
.navbar-links > li > a:not(.btn-discord):not(.nav-partners):not(.nav-order):not(.nav-login) {
	position: relative;
	display: inline-block;
	padding: 8px 14px;
	font-size: 0.8rem; font-weight: 500;
	color: var(--text-dim);
	letter-spacing: 0.3px;
	transition: color 0.25s ease;
}
.navbar-links > li > a:not(.btn-discord):not(.nav-partners):not(.nav-order):not(.nav-login)::after {
	content: '';
	position: absolute;
	left: 14px; right: 14px; bottom: 4px;
	height: 1.5px; border-radius: 1px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
	box-shadow: 0 0 10px var(--accent-dim);
}
.navbar-links > li > a:not(.btn-discord):not(.nav-partners):not(.nav-order):not(.nav-login):hover {
	color: var(--text-bright);
}
.navbar-links > li > a:not(.btn-discord):not(.nav-partners):not(.nav-order):not(.nav-login):hover::after,
.navbar-links > li > a.active::after {
	transform: scaleX(1);
}
.navbar-links > li > a.active { color: var(--text-bright); }

/* === Dropdown + Mega-Menu === */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
	position: relative;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 14px;
	font-size: 0.8rem; font-weight: 600;
	color: var(--accent);
	letter-spacing: 0.3px;
	background: linear-gradient(135deg, rgba(102,192,244,0.08), rgba(102,192,244,0.02));
	border: 1px solid rgba(102,192,244,0.35);
	border-radius: 20px;
	cursor: pointer;
	font-family: inherit;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(.2,.8,.2,1);
}
.nav-dropdown-trigger::before {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(102,192,244,0.25) 50%, transparent 70%);
	transform: translateX(-100%);
	transition: transform 0.7s ease;
	pointer-events: none;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
	color: var(--text-bright);
	background: linear-gradient(135deg, rgba(102,192,244,0.22), rgba(102,192,244,0.08));
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(102,192,244,0.15), 0 4px 18px rgba(102,192,244,0.3);
	transform: translateY(-1px);
}
.nav-dropdown-trigger:hover::before { transform: translateX(100%); }
.nav-dropdown-chevron {
	width: 11px; height: 11px;
	transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
	stroke: currentColor;
	fill: none;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	position: relative; z-index: 1;
}
.nav-dropdown.open .nav-dropdown-chevron { transform: rotate(180deg); }

.nav-megamenu {
	position: absolute;
	top: calc(100% + 6px); left: 50%;
	transform: translateX(-50%) translateY(-8px);
	width: 480px; max-width: calc(100vw - 40px);
	padding: 14px;
	background: rgba(22, 27, 34, 0.92);
	backdrop-filter: blur(20px) saturate(140%);
	-webkit-backdrop-filter: blur(20px) saturate(140%);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 14px;
	box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(102,192,244,0.04);
	opacity: 0; visibility: hidden;
	transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.2,.8,.2,1), visibility 0s linear 0.3s;
}
.nav-dropdown.open .nav-megamenu {
	opacity: 1; visibility: visible;
	transform: translateX(-50%) translateY(0);
	transition: opacity 0.3s ease, transform 0.3s cubic-bezier(.2,.8,.2,1), visibility 0s linear 0s;
}
.nav-megamenu::before {
	content: '';
	position: absolute;
	top: -6px; left: 50%;
	width: 12px; height: 12px;
	transform: translateX(-50%) rotate(45deg);
	background: rgba(22, 27, 34, 0.92);
	border-left: 1px solid rgba(255,255,255,0.08);
	border-top: 1px solid rgba(255,255,255,0.08);
}
.mega-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}
.mega-item {
	position: relative;
	display: flex; align-items: center; gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	transition: background 0.25s ease, transform 0.25s ease;
	color: inherit;
	cursor: pointer;
	overflow: hidden;
}
.mega-item::after {
	content: '';
	position: absolute; right: 14px; top: 50%;
	width: 14px; height: 14px;
	transform: translateY(-50%) translateX(-6px);
	opacity: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366c0f4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	transition: all 0.25s cubic-bezier(.2,.8,.2,1);
}
.mega-item:hover {
	background: linear-gradient(135deg, rgba(102,192,244,0.1), rgba(102,192,244,0.02));
	transform: translateX(2px);
	padding-right: 30px;
}
.mega-item:hover::after {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}
.mega-icon {
	flex-shrink: 0;
	width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 9px;
	background: rgba(102,192,244,0.08);
	border: 1px solid rgba(102,192,244,0.15);
	color: var(--accent);
	transition: all 0.25s ease;
}
.mega-item:hover .mega-icon {
	background: rgba(102,192,244,0.18);
	border-color: rgba(102,192,244,0.4);
	transform: scale(1.05);
	box-shadow: 0 0 18px var(--accent-dim);
}
.mega-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mega-title {
	font-size: 0.88rem; font-weight: 700;
	color: var(--text-bright);
	letter-spacing: 0.1px;
	transition: color 0.2s;
}
.mega-item:hover .mega-title { color: var(--accent); }
.mega-footer {
	margin-top: 14px; padding-top: 14px;
	border-top: 1px solid rgba(255,255,255,0.06);
	display: flex; align-items: center; justify-content: space-between;
	font-size: 0.7rem; color: var(--text-dim);
}
.mega-footer-link {
	color: var(--accent); font-weight: 600;
	transition: color 0.2s;
	display: inline-flex; align-items: center; gap: 4px;
}
.mega-footer-link:hover { color: var(--accent-hover); }
.mega-footer-link .arrow { transition: transform 0.2s; }
.mega-footer-link:hover .arrow { transform: translateX(2px); }

@media (max-width: 768px) {
	.nav-megamenu {
		position: static;
		transform: none !important;
		width: 100%; max-width: none;
		background: transparent;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		border: none; border-radius: 0;
		box-shadow: none; padding: 0;
		display: none;
	}
	.nav-megamenu::before { display: none; }
	.nav-dropdown.open .nav-megamenu { display: block; }
	.mega-grid { grid-template-columns: 1fr; gap: 0; }
	.mega-item { border-radius: 0; padding: 12px 20px; }
	.nav-dropdown-trigger { width: 100%; text-align: left; padding: 14px 20px; justify-content: flex-start; }
	.nav-dropdown-trigger::after { display: none; }
	.mega-footer { padding: 14px 20px; margin: 0; }
}

/* === Partners Link - Eye-Catcher === */
.nav-partners,
.nav-order {
	position: relative;
	display: inline-flex !important; align-items: center; gap: 7px;
	padding: 7px 14px 7px 12px !important;
	font-size: 0.8rem !important; font-weight: 600 !important;
	color: var(--accent) !important;
	letter-spacing: 0.3px;
	border: 1px solid rgba(102,192,244,0.35);
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(102,192,244,0.08), rgba(102,192,244,0.02));
	overflow: hidden;
	transition: all 0.3s cubic-bezier(.2,.8,.2,1);
}
.nav-partners::after,
.nav-order::after { display: none !important; }
.nav-partners::before,
.nav-order::before {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(102,192,244,0.25) 50%, transparent 70%);
	transform: translateX(-100%);
	transition: transform 0.7s ease;
	pointer-events: none;
}
.nav-partners:hover, .nav-partners.active,
.nav-order:hover,    .nav-order.active {
	color: var(--text-bright) !important;
	background: linear-gradient(135deg, rgba(102,192,244,0.22), rgba(102,192,244,0.08));
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(102,192,244,0.15), 0 4px 18px rgba(102,192,244,0.3);
	transform: translateY(-1px);
}
.nav-partners:hover::before,
.nav-order:hover::before { transform: translateX(100%); }
.nav-partners-icon,
.nav-order-icon {
	width: 15px; height: 15px; stroke: currentColor; fill: none;
	stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
	transition: transform 0.25s ease;
}
.nav-partners:hover .nav-partners-icon, .nav-partners.active .nav-partners-icon,
.nav-order:hover    .nav-order-icon,    .nav-order.active    .nav-order-icon { transform: scale(1.1); }

/* API Docs pill - amber accent to distinguish */
.nav-api {
	position: relative;
	display: inline-flex !important; align-items: center; gap: 7px;
	padding: 7px 14px 7px 12px;
	font-size: 0.8rem; font-weight: 600;
	color: #ffb74d;
	letter-spacing: 0.3px;
	border: 1px solid rgba(255,183,77,0.4);
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(255,183,77,0.08), rgba(255,183,77,0.02));
	overflow: hidden;
	transition: all 0.3s cubic-bezier(.2,.8,.2,1);
}
.nav-api::after { display: none !important; }
.nav-api::before {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(255,183,77,0.3) 50%, transparent 70%);
	transform: translateX(-100%);
	transition: transform 0.7s ease;
	pointer-events: none;
}
.nav-api:hover {
	color: #fff;
	background: linear-gradient(135deg, rgba(255,183,77,0.25), rgba(255,183,77,0.1));
	border-color: #ffcc80;
	box-shadow: 0 0 0 3px rgba(255,183,77,0.18), 0 4px 18px rgba(255,183,77,0.35);
	transform: translateY(-1px);
}
.nav-api:hover::before { transform: translateX(100%); }
.nav-api-icon {
	width: 15px; height: 15px; stroke: currentColor; fill: none;
	stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
	transition: transform 0.25s ease;
}
.nav-api:hover .nav-api-icon { transform: scale(1.12) rotate(-4deg); }

/* Guides pill - teal/emerald accent */
.nav-guides {
	position: relative;
	display: inline-flex !important; align-items: center; gap: 7px;
	padding: 7px 14px 7px 12px;
	font-size: 0.8rem; font-weight: 600;
	color: #5eead4;
	letter-spacing: 0.3px;
	border: 1px solid rgba(94,234,212,0.4);
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(20,184,166,0.1), rgba(20,184,166,0.02));
	overflow: hidden;
	transition: all 0.3s cubic-bezier(.2,.8,.2,1);
}
.nav-guides::after { display: none !important; }
.nav-guides::before {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(94,234,212,0.3) 50%, transparent 70%);
	transform: translateX(-100%);
	transition: transform 0.7s ease;
	pointer-events: none;
}
.nav-guides:hover {
	color: #fff;
	background: linear-gradient(135deg, rgba(20,184,166,0.25), rgba(20,184,166,0.1));
	border-color: #5eead4;
	box-shadow: 0 0 0 3px rgba(94,234,212,0.18), 0 4px 18px rgba(20,184,166,0.35);
	transform: translateY(-1px);
}
.nav-guides:hover::before { transform: translateX(100%); }
.nav-guides-icon {
	width: 15px; height: 15px; stroke: currentColor; fill: none;
	stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
	transition: transform 0.25s ease;
}
.nav-guides:hover .nav-guides-icon { transform: scale(1.12) rotate(-3deg); }
.nav-partners-dot {
	position: absolute;
	top: 4px; right: 4px;
	width: 6px; height: 6px; border-radius: 50%;
	background: #4caf50;
	box-shadow: 0 0 8px #4caf50;
	animation: partners-pulse 2s ease-in-out infinite;
}
@keyframes partners-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.5; transform: scale(0.85); }
}

/* Discord Button - Glow + Shine */
/* Login: accent outline pill (same language as nav-partners/order) but full border + persistent soft glow = stands out, stays elegant */
.navbar-links a.nav-login,
.nav-login {
	position: relative;
	display: inline-flex !important; align-items: center; gap: 7px;
	padding: 7px 16px 7px 14px !important;
	font-size: 0.8rem !important; font-weight: 700 !important;
	color: var(--accent) !important; letter-spacing: 0.3px;
	border: 1px solid var(--accent);
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(102,192,244,0.18), rgba(102,192,244,0.04));
	overflow: hidden;
	box-shadow: 0 0 16px rgba(102,192,244,0.22);
	transition: all 0.3s cubic-bezier(.2,.8,.2,1);
}
.nav-login::after { display: none !important; }
.nav-login::before {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
	transform: translateX(-100%);
	transition: transform 0.7s ease;
	pointer-events: none;
}
.nav-login:hover {
	color: var(--text-bright) !important;
	background: linear-gradient(135deg, rgba(102,192,244,0.32), rgba(102,192,244,0.10));
	border-color: var(--accent-hover);
	box-shadow: 0 0 0 3px rgba(102,192,244,0.18), 0 6px 24px rgba(102,192,244,0.5);
	transform: translateY(-1px);
}
.nav-login:hover::before { transform: translateX(100%); }
.nav-login-icon {
	width: 15px; height: 15px; stroke: currentColor; fill: none;
	stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
	transition: transform 0.25s ease;
}
.nav-login:hover .nav-login-icon { transform: scale(1.1); }

/* Discord: icon-only square button */
.navbar-links a.btn-discord,
.btn-discord {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0;
	background: var(--discord);
	color: #fff !important; border-radius: 8px;
	transition: all 0.3s ease;
	border: none; cursor: pointer;
	overflow: hidden;
	box-shadow: 0 0 0 rgba(88,101,242,0);
}
.btn-discord::before {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
	transform: translateX(-100%);
	transition: transform 0.6s ease;
	pointer-events: none;
}
.btn-discord:hover {
	background: var(--discord-hover);
	box-shadow: 0 0 0 3px rgba(88,101,242,0.2), 0 4px 24px rgba(88,101,242,0.5);
	transform: translateY(-1px);
}
.btn-discord:hover::before { transform: translateX(100%); }
.btn-discord svg { width: 22px; height: 22px; fill: currentColor; position: relative; z-index: 1; }

/* Hamburger (mobile) */
.hamburger {
	display: none; background: none; border: none;
	cursor: pointer; padding: 4px;
}
.hamburger span {
	display: block; width: 22px; height: 2px;
	background: var(--text); margin: 5px 0;
	border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
	.navbar { padding: 0 16px; }
	.navbar-links {
		position: absolute; top: 60px; left: 0; right: 0;
		flex-direction: column; gap: 0;
		background: var(--bg-card);
		border-bottom: 1px solid rgba(255,255,255,0.06);
		max-height: 0; overflow: hidden;
		transition: max-height 0.3s ease;
	}
	.navbar-links.open { max-height: 300px; }
	.navbar-links li { width: 100%; }
	.navbar-links a, .navbar-links .btn-discord {
		display: block; padding: 14px 20px;
		font-size: 0.9rem; width: 100%; text-align: left;
	}
	.hamburger { display: block; }
}

/* === HERO === */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	text-align: center;
	padding: 100px 24px 60px;
	overflow: hidden;
	background: linear-gradient(180deg, var(--bg-darkest) 0%, #0f1923 50%, var(--bg-dark) 100%);
}
/* Grid pattern background */
.hero::before {
	content: ''; position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(102,192,244,0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(102,192,244,0.05) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
	mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
	pointer-events: none;
}
/* Aurora blob 1 */
.hero::after {
	content: ''; position: absolute;
	width: 500px; height: 500px;
	top: -100px; left: -100px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(102,192,244,0.12) 0%, transparent 70%);
	filter: blur(80px); pointer-events: none;
	animation: drift 12s ease-in-out infinite alternate;
}
/* Aurora blob 2 + floating particles container */
.hero-aurora {
	position: absolute; inset: 0; pointer-events: none;
}
.hero-aurora::before {
	content: ''; position: absolute;
	width: 400px; height: 400px;
	bottom: -50px; right: -50px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(88,101,242,0.1) 0%, transparent 70%);
	filter: blur(80px);
	animation: drift 14s ease-in-out infinite alternate;
	animation-delay: -6s;
}
/* Floating particles (CSS-only) */
.hero-particle {
	position: absolute;
	width: 3px; height: 3px;
	background: var(--accent);
	border-radius: 50%;
	box-shadow: 0 0 8px var(--accent);
	opacity: 0;
	animation: particle-float 10s linear infinite;
}
.hero-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.hero-particle:nth-child(2) { left: 22%; animation-delay: -2s; animation-duration: 14s; }
.hero-particle:nth-child(3) { left: 38%; animation-delay: -5s; animation-duration: 11s; }
.hero-particle:nth-child(4) { left: 55%; animation-delay: -7s; animation-duration: 15s; }
.hero-particle:nth-child(5) { left: 72%; animation-delay: -3s; animation-duration: 13s; }
.hero-particle:nth-child(6) { left: 88%; animation-delay: -9s; animation-duration: 10s; }
.hero-particle:nth-child(7) { left: 30%; animation-delay: -11s; animation-duration: 16s; width: 2px; height: 2px; }
.hero-particle:nth-child(8) { left: 65%; animation-delay: -6s; animation-duration: 12s; width: 2px; height: 2px; }
@keyframes particle-float {
	0% { transform: translateY(100vh) scale(0); opacity: 0; }
	10% { opacity: 1; transform: translateY(85vh) scale(1); }
	90% { opacity: 1; transform: translateY(10vh) scale(1); }
	100% { transform: translateY(-5vh) scale(0); opacity: 0; }
}
@keyframes drift {
	0% { transform: translate(0, 0) scale(1); }
	100% { transform: translate(40px, 30px) scale(1.1); }
}

.hero > * { position: relative; z-index: 1; }

.hero-logo {
	width: 80px; height: 80px; border-radius: 16px; margin-bottom: 24px;
	animation: logo-breathe 4s ease-in-out infinite;
	filter: drop-shadow(0 0 20px rgba(102,192,244,0.15));
}
@keyframes logo-breathe {
	0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(102,192,244,0.15)); }
	50% { transform: scale(1.03); filter: drop-shadow(0 0 30px rgba(102,192,244,0.3)); }
}
.scroll-indicator {
	position: absolute; bottom: 28px; left: 50%;
	transform: translateX(-50%);
	width: 26px; height: 42px;
	border: 2px solid var(--text-dim);
	border-radius: 14px;
	opacity: 0.6;
	transition: all 0.3s ease;
	cursor: pointer;
}
.scroll-indicator::before {
	content: '';
	position: absolute;
	top: 6px; left: 50%;
	transform: translateX(-50%);
	width: 3px; height: 8px;
	background: var(--accent);
	border-radius: 2px;
	animation: scroll-wheel 2s ease-in-out infinite;
	box-shadow: 0 0 6px var(--accent-dim);
}
.scroll-indicator:hover {
	opacity: 1;
	border-color: var(--accent);
	box-shadow: 0 0 14px var(--accent-dim);
}
@keyframes scroll-wheel {
	0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
	60% { transform: translateX(-50%) translateY(12px); opacity: 0; }
	61% { transform: translateX(-50%) translateY(0); opacity: 0; }
	100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.hero-title {
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 800; color: var(--text-bright);
	margin-bottom: 12px; line-height: 1.2;
	opacity: 0;
	animation: hero-reveal 0.8s ease-out 0.2s forwards;
}
.hero-subtitle {
	font-size: clamp(0.9rem, 2vw, 1.1rem);
	color: var(--text-dim); margin-bottom: 40px;
	max-width: 600px;
	opacity: 0;
	animation: hero-reveal 0.8s ease-out 0.4s forwards;
}
@keyframes hero-reveal {
	from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
	to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.hero-video-wrap {
	width: 100%; max-width: 800px;
	margin-bottom: 24px;
	opacity: 0;
	animation: hero-reveal 0.8s ease-out 0.6s forwards;
}
.hero-video {
	position: relative; width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 12px; overflow: hidden;
	box-shadow: 0 0 40px rgba(102,192,244,0.2), 0 8px 32px rgba(0,0,0,0.5);
	isolation: isolate;
}
/* Rotating gradient border */
.hero-video::before {
	content: ''; position: absolute;
	inset: -2px; z-index: -1;
	background: conic-gradient(from 0deg, transparent, var(--accent), transparent 30%, transparent 60%, var(--discord), transparent 90%);
	border-radius: 13px;
	animation: border-rotate 6s linear infinite;
	opacity: 0.6;
}
@keyframes border-rotate {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
.hero-video iframe {
	width: 100%; height: 100%; border: none;
	position: relative; z-index: 0; background: #000;
	border-radius: 11px;
}
.hero-thumbs {
	display: flex; gap: 10px; justify-content: center;
	margin-top: 16px;
}
.hero-thumb {
	position: relative; width: 140px;
	aspect-ratio: 16 / 9;
	border-radius: 8px; overflow: hidden;
	cursor: pointer; border: 2px solid transparent;
	transition: all 0.3s; opacity: 0.6;
}
.hero-thumb.active {
	border-color: var(--accent);
	opacity: 1;
	box-shadow: 0 0 12px var(--accent-dim);
}
.hero-thumb:hover { opacity: 1; }
.hero-thumb img {
	width: 100%; height: 100%; object-fit: cover;
}
.hero-thumb-label {
	position: absolute; bottom: 0; left: 0; right: 0;
	padding: 3px 6px;
	background: linear-gradient(transparent, rgba(0,0,0,0.8));
	font-size: 0.6rem; font-weight: 600;
	color: var(--text-bright); text-align: center;
}
.hero-cta {
	position: relative;
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 32px; background: var(--discord);
	color: #fff !important; border-radius: 8px;
	font-weight: 700; font-size: 1rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 20px rgba(88,101,242,0.25);
	margin-top: 8px;
	overflow: hidden;
	opacity: 0;
	animation: hero-reveal 0.8s ease-out 1s forwards;
}
.hero-cta::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
	transform: translateX(-100%);
	transition: transform 0.6s ease;
	pointer-events: none;
}
.hero-cta:hover {
	background: var(--discord-hover);
	transform: translateY(-2px);
	box-shadow: 0 0 0 3px rgba(88,101,242,0.2), 0 8px 30px rgba(88,101,242,0.5);
}
.hero-cta:hover::before { transform: translateX(100%); }
.hero-cta svg { width: 20px; height: 20px; fill: currentColor; position: relative; z-index: 1; }
@media (max-width: 1024px) {
	.hero { padding: 90px 20px 40px; min-height: auto; }
	.hero-video-wrap { max-width: 100%; }
}
@media (max-width: 768px) {
	.hero { padding: 90px 16px 40px; }
	.hero-logo { width: 64px; height: 64px; margin-bottom: 18px; }
	.hero-title { font-size: clamp(1.6rem, 7vw, 2.3rem); }
	.hero-subtitle { font-size: 0.88rem; margin-bottom: 24px; }
	.hero-video-wrap { margin-bottom: 16px; }
	.hero-thumbs { flex-wrap: wrap; justify-content: center; }
	.hero-thumb { width: 100px; }
	.hero-thumb-label { font-size: 0.5rem; }
	.hero-cta { padding: 12px 24px; font-size: 0.9rem; }
	.scroll-indicator { display: none; }
}
@media (max-width: 420px) {
	.hero-thumb { width: 90px; }
}


/* === PRODUCT SECTIONS === */
.product-section {
	padding: 100px 32px;
	max-width: 1200px; margin: 0 auto;
}
.product-video {
	width: 100%; max-width: 800px;
	margin: 0 auto 48px;
	aspect-ratio: 16 / 9;
	border-radius: 12px; overflow: hidden;
	box-shadow: 0 0 30px rgba(102,192,244,0.15), 0 8px 32px rgba(0,0,0,0.4);
}
.product-video iframe {
	width: 100%; height: 100%; border: none;
}
.section-bg-alt {
	background: var(--bg-dark);
}
.product-grid {
	display: grid;
	grid-template-columns: 40% 1fr;
	gap: 48px;
	align-items: center;
}
.product-grid.reversed {
	grid-template-columns: 1fr 40%;
}
.product-grid.reversed .product-text { order: 2; }
.product-grid.reversed .product-carousel-wrap { order: 1; }
.product-label {
	position: relative;
	display: inline-block;
	font-size: 0.75rem; font-weight: 700;
	color: var(--accent); text-transform: uppercase;
	letter-spacing: 2px; margin-bottom: 12px;
	padding-left: 28px;
}
.product-label::before {
	content: '';
	position: absolute;
	left: 0; top: 50%;
	width: 20px; height: 1.5px;
	background: var(--accent);
	transform: translateY(-50%) scaleX(0);
	transform-origin: left;
	transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
	box-shadow: 0 0 6px var(--accent-dim);
}
.product-section.visible .product-label::before { transform: translateY(-50%) scaleX(1); }
.product-section .product-label {
	opacity: 0; filter: blur(4px); transform: translateY(8px);
	transition: all 0.55s ease;
}
.product-section.visible .product-label {
	opacity: 1; filter: blur(0); transform: translateY(0);
}
.product-title {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 800; color: var(--text-bright);
	margin-bottom: 16px;
}
.product-desc {
	font-size: 0.95rem; color: var(--text);
	line-height: 1.7; margin-bottom: 24px;
}
.product-features {
	list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.product-features li {
	position: relative;
	display: flex; align-items: center; gap: 12px;
	font-size: 0.88rem; color: var(--text);
	padding-left: 2px;
	opacity: 0; transform: translateX(-10px);
	transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.product-section.visible .product-features li { opacity: 1; transform: translateX(0); }
.product-section.visible .product-features li:nth-child(1) { transition-delay: 0.15s; }
.product-section.visible .product-features li:nth-child(2) { transition-delay: 0.25s; }
.product-section.visible .product-features li:nth-child(3) { transition-delay: 0.35s; }
.product-section.visible .product-features li:nth-child(4) { transition-delay: 0.45s; }
.product-section.visible .product-features li:nth-child(5) { transition-delay: 0.55s; }
.product-features li::before {
	content: '';
	flex-shrink: 0;
	width: 18px; height: 18px;
	border: 1.5px solid var(--accent-dim);
	border-radius: 50%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366c0f4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12' stroke-dasharray='24' stroke-dashoffset='24'%3E%3Canimate attributeName='stroke-dashoffset' to='0' dur='0.4s' fill='freeze' /%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px 12px;
	transition: all 0.3s ease;
}
.product-features li:hover::before {
	border-color: var(--accent);
	background-color: rgba(102,192,244,0.08);
	box-shadow: 0 0 8px var(--accent-dim);
}

/* === CAROUSEL === */
.carousel {
	position: relative; width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 12px; overflow: hidden;
	background: #0a0f15;
	box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.carousel-slide {
	position: absolute; inset: 0;
	opacity: 0; pointer-events: none;
	transition: opacity 0.4s ease;
}
.carousel-slide.active { opacity: 1; pointer-events: auto; }
.carousel-slide img {
	width: 100%; height: 100%;
	object-fit: cover; cursor: pointer;
}
.carousel-slide iframe {
	width: 100%; height: 100%; border: none;
}
.carousel-slide .video-thumb {
	position: relative; width: 100%; height: 100%; cursor: pointer;
}
.carousel-slide .video-thumb img {
	width: 100%; height: 100%; object-fit: cover;
}
.carousel-slide .video-play {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,0.35);
	transition: background 0.2s;
}
.carousel-slide .video-play:hover { background: rgba(0,0,0,0.2); }
.carousel-slide .video-play::after {
	content: ''; width: 56px; height: 56px;
	border-radius: 50%; background: rgba(255,0,0,0.85);
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 16px rgba(0,0,0,0.4);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 28px;
}
.carousel-btn {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 36px; height: 52px;
	background: rgba(0,0,0,0.5); border: none;
	color: var(--text); font-size: 1.3rem;
	cursor: pointer; z-index: 3;
	display: flex; align-items: center; justify-content: center;
	transition: all 0.25s cubic-bezier(.2,.8,.2,1);
	font-family: 'Inter', sans-serif;
	opacity: 0.8;
}
.carousel-btn:hover {
	background: var(--accent); color: #0a0f15;
	opacity: 1;
	transform: translateY(-50%) scale(1.08);
	box-shadow: 0 0 18px var(--accent-dim);
}
.carousel-btn.prev:hover { transform: translateY(-50%) scale(1.08) translateX(-2px); }
.carousel-btn.next:hover { transform: translateY(-50%) scale(1.08) translateX(2px); }
.carousel-btn.prev { left: 0; border-radius: 0 6px 6px 0; }
.carousel-btn.next { right: 0; border-radius: 6px 0 0 6px; }
.carousel-dots {
	position: absolute; bottom: 10px; left: 50%;
	transform: translateX(-50%);
	display: flex; gap: 6px; z-index: 3;
}
.carousel-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: rgba(255,255,255,0.3); border: none;
	cursor: pointer; padding: 0;
	transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
	background: var(--accent); transform: scale(1.3);
	box-shadow: 0 0 8px var(--accent-dim);
}
.carousel-dot.active::before {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 1.5px solid var(--accent);
	opacity: 0;
	animation: dot-pulse 1.8s ease-out infinite;
}
.carousel-dot { position: relative; }
@keyframes dot-pulse {
	0% { transform: scale(0.8); opacity: 0.9; }
	100% { transform: scale(2.2); opacity: 0; }
}

@media (max-width: 1024px) {
	.product-section { padding: 70px 20px; }
	.product-grid, .product-grid.reversed {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.product-grid.reversed .product-text { order: 1; }
	.product-grid.reversed .product-carousel-wrap { order: 2; }
	.product-video { margin-bottom: 32px; }
	.carousel-btn { width: 32px; height: 46px; }
}
@media (max-width: 768px) {
	.product-section { padding: 50px 14px; }
	.product-title { font-size: clamp(1.4rem, 6vw, 2rem); }
	.product-desc { font-size: 0.9rem; }
	.product-features li { font-size: 0.85rem; }
	.product-video { margin-bottom: 24px; }
	.carousel-dots { bottom: 8px; }
	.carousel-dot { width: 6px; height: 6px; }
}

/* === FEATURE GRID === */
.features-section {
	padding: 100px 32px;
	max-width: 1200px; margin: 0 auto;
	text-align: center;
}
.features-section-title {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-weight: 800; color: var(--text-bright);
	margin-bottom: 12px;
}
.features-section-subtitle {
	font-size: 1rem; color: var(--text-dim);
	margin-bottom: 48px;
}
.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px; text-align: left;
}
.feature-card {
	position: relative;
	background: var(--bg-card);
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.06);
	overflow: hidden;
	transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease, border-color 0.3s ease;
	cursor: pointer;
	isolation: isolate;
	transform-style: preserve-3d;
}
.feature-card::before {
	content: ''; position: absolute;
	inset: 0; z-index: 3;
	pointer-events: none;
	border-radius: 12px;
	background: radial-gradient(400px circle at var(--mx, -100%) var(--my, -100%), rgba(102,192,244,0.18), transparent 45%);
	opacity: 0; transition: opacity 0.3s ease;
}
.feature-card::after {
	content: ''; position: absolute;
	top: 0; left: -150%; width: 70%; height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255,255,255,0.1), transparent);
	transform: skewX(-20deg);
	transition: left 0.7s ease;
	pointer-events: none;
	z-index: 2;
}
.feature-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 0 30px rgba(102,192,244,0.2);
	border-color: var(--accent-dim);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after { left: 150%; }
.feature-card-img {
	width: 100%; aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(.2,.8,.2,1), filter 0.3s;
	position: relative; z-index: 1;
}
.feature-card:hover .feature-card-img {
	filter: brightness(1.12);
	transform: scale(1.06);
}
.feature-card-body { padding: 16px; }
.feature-card-title {
	font-size: 0.95rem; font-weight: 700;
	color: var(--text-bright); margin-bottom: 6px;
}
.feature-card-desc {
	font-size: 0.82rem; color: var(--text-dim); line-height: 1.5;
}

@media (max-width: 1024px) {
	.features-section { padding: 70px 20px; }
	.features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
	.features-section { padding: 50px 14px; }
	.features-grid { grid-template-columns: 1fr; gap: 14px; }
	.features-section-subtitle { font-size: 0.92rem; margin-bottom: 36px; }
}

/* === LIGHTBOX === */
.lightbox-overlay {
	position: fixed; inset: 0; z-index: 2000;
	background: rgba(0,0,0,0.92);
	backdrop-filter: blur(8px);
	display: none; align-items: center; justify-content: center;
	opacity: 0; transition: opacity 0.3s;
}
.lightbox-overlay.open { display: flex; opacity: 1; }
.lightbox-content {
	position: relative;
	max-width: 90vw; max-height: 85vh;
}
.lightbox-content img {
	max-width: 90vw; max-height: 85vh;
	object-fit: contain; border-radius: 8px;
	box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.lightbox-close {
	position: fixed; top: 16px; right: 20px;
	width: 40px; height: 40px; border-radius: 8px;
	background: rgba(255,255,255,0.1); border: none;
	color: var(--text); font-size: 1.4rem;
	cursor: pointer; z-index: 2001;
	display: flex; align-items: center; justify-content: center;
	transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,70,70,0.3); color: #ff5555; }
.lightbox-nav {
	position: fixed; top: 50%; transform: translateY(-50%);
	width: 48px; height: 72px;
	background: rgba(255,255,255,0.08); border: none;
	color: var(--text); font-size: 1.6rem;
	cursor: pointer; z-index: 2001;
	display: flex; align-items: center; justify-content: center;
	transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(102,192,244,0.2); color: var(--text-bright); }
.lightbox-nav.prev { left: 12px; border-radius: 8px; }
.lightbox-nav.next { right: 12px; border-radius: 8px; }
.lightbox-counter {
	position: fixed; bottom: 20px; left: 50%;
	transform: translateX(-50%);
	font-size: 0.8rem; color: var(--text-dim); z-index: 2001;
}
@media (max-width: 768px) {
	.lightbox-nav { width: 36px; height: 56px; font-size: 1.3rem; }
	.lightbox-nav.prev { left: 4px; }
	.lightbox-nav.next { right: 4px; }
	.lightbox-close { top: 10px; right: 10px; width: 36px; height: 36px; }
	.lightbox-content img { max-width: 96vw; max-height: 80vh; }
}

/* === FOOTER === */
.footer {
	padding: 60px 32px;
	text-align: center;
	background: var(--bg-darkest);
	border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-logo { width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 16px; }
.footer-tagline {
	font-size: 1rem; color: var(--text-dim); margin-bottom: 24px;
}
.footer-cta { margin-bottom: 32px; }
.footer-links {
	display: flex; justify-content: center; gap: 24px;
	flex-wrap: wrap; margin-bottom: 24px;
}
.footer-links a {
	font-size: 0.78rem; color: var(--text-dim);
	transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
	font-size: 0.72rem; color: var(--text-dim);
}
@media (max-width: 768px) {
	.footer { padding: 40px 16px; }
	.footer-links { gap: 14px; font-size: 0.74rem; }
}
