/* ============================================
   LANDING.CSS - Premium Landing Page Styles
   ============================================ */

:root {
	--transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--transition-fast: all 0.15s ease-out;
	--glow-cyan: 0 0 20px rgba(0, 212, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.2);
	--glow-red: 0 0 20px rgba(232, 25, 60, 0.4), 0 0 40px rgba(232, 25, 60, 0.2);
	--shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ============================================ HERO SECTION ============================================ */

.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 40px 20px;
}

.hero-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
	opacity: 0.4;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	z-index: 2;
	opacity: 0.3;
}

.hero-gradient-top {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 50%;
	background: linear-gradient(
		180deg,
		rgba(5, 8, 13, 0.9) 0%,
		rgba(5, 8, 13, 0.5) 50%,
		rgba(5, 8, 13, 0) 100%
	);
	z-index: 3;
	pointer-events: none;
}

.hero-gradient-bottom {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 50%;
	background: linear-gradient(
		0deg,
		rgba(5, 8, 13, 1) 0%,
		rgba(5, 8, 13, 0.5) 50%,
		rgba(5, 8, 13, 0) 100%
	);
	z-index: 3;
	pointer-events: none;
}

.hero-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 4;
}

.hero-content {
	position: relative;
	z-index: 5;
	text-align: center;
	max-width: 800px;
	animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-badge {
	display: inline-block;
	padding: 8px 16px;
	background: rgba(0, 212, 255, 0.1);
	border: 1px solid rgba(0, 212, 255, 0.3);
	border-radius: 20px;
	color: var(--cyan);
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 20px;
	backdrop-filter: blur(10px);
	animation: pulse 2s ease-in-out infinite;
}

.hero-title {
	font-family: var(--ff-display);
	font-size: clamp(48px, 8vw, 120px);
	font-weight: 700;
	color: var(--text);
	margin: 0 0 10px 0;
	line-height: 1.1;
	text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
	letter-spacing: 2px;
}

.hero-subtitle {
	font-size: clamp(18px, 4vw, 32px);
	color: var(--cyan);
	margin: 0 0 20px 0;
	font-weight: 300;
	text-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.hero-description {
	font-size: 16px;
	color: var(--dim);
	margin: 0 0 30px 0;
	line-height: 1.6;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.hero-buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.btn-lg {
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	transition: var(--transition);
	position: relative;
	overflow: hidden;
}

.btn-primary {
	background: var(--red);
	color: white;
}

.btn-primary:hover {
	background: var(--red2);
	box-shadow: var(--glow-red);
	transform: translateY(-2px);
}

.btn-secondary {
	background: transparent;
	color: var(--cyan);
	border: 2px solid var(--cyan);
}

.btn-secondary:hover {
	background: rgba(0, 212, 255, 0.1);
	box-shadow: var(--glow-cyan);
	transform: translateY(-2px);
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
	margin-top: 40px;
}

.stat-box {
	padding: 20px;
	background: rgba(11, 16, 24, 0.6);
	border: 1px solid var(--edge);
	border-radius: 12px;
	backdrop-filter: blur(10px);
	text-align: center;
	transition: var(--transition);
}

.stat-box:hover {
	border-color: var(--cyan);
	box-shadow: var(--glow-cyan), inset 0 0 20px rgba(0, 212, 255, 0.05);
	transform: translateY(-5px);
}

.stat-number {
	font-family: var(--ff-mono);
	font-size: 32px;
	color: var(--cyan);
	font-weight: 700;
	margin-bottom: 8px;
	text-shadow: var(--glow-cyan);
}

.stat-label {
	color: var(--dim);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.scroll-indicator {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 6;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: var(--dim);
	font-size: 12px;
	animation: bounce 2s ease-in-out infinite;
}

.scroll-icon {
	width: 24px;
	height: 24px;
	color: var(--cyan);
	animation: float 2s ease-in-out infinite;
}

/* ============================================ SECTIONS STYLING ============================================ */

.section-header {
	text-align: center;
	margin-bottom: 60px;
	animation: fadeInUp 0.8s ease-out;
}

.section-title {
	font-family: var(--ff-display);
	font-size: clamp(36px, 6vw, 56px);
	color: var(--text);
	margin: 0 0 12px 0;
	letter-spacing: 1px;
}

.section-subtitle {
	font-size: 16px;
	color: var(--dim);
	margin: 0;
}

/* ============================================ FEATURES SECTION ============================================ */

.features {
	padding: 80px 20px;
	background: linear-gradient(
		135deg,
		transparent 0%,
		rgba(0, 212, 255, 0.03) 50%,
		transparent 100%
	);
	position: relative;
	overflow: hidden;
}

.features::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(
		circle at 20% 50%,
		rgba(0, 212, 255, 0.05) 0%,
		transparent 50%
	);
	pointer-events: none;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	max-width: 1400px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

.feature-card {
	padding: 30px;
	background: rgba(15, 22, 32, 0.6);
	border: 1px solid var(--edge);
	border-radius: 16px;
	transition: var(--transition);
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(10px);
	cursor: pointer;
	animation: fadeInUp 0.8s ease-out;
	animation-fill-mode: both;
}

.feature-card[data-index="0"] { animation-delay: 0.1s; }
.feature-card[data-index="1"] { animation-delay: 0.2s; }
.feature-card[data-index="2"] { animation-delay: 0.3s; }
.feature-card[data-index="3"] { animation-delay: 0.4s; }
.feature-card[data-index="4"] { animation-delay: 0.5s; }
.feature-card[data-index="5"] { animation-delay: 0.6s; }

.feature-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(0, 212, 255, 0.1),
		transparent
	);
	transition: left 0.5s ease;
}

.feature-card:hover::before {
	left: 100%;
}

.feature-card:hover {
	border-color: var(--cyan);
	box-shadow: var(--glow-cyan), inset 0 0 20px rgba(0, 212, 255, 0.05);
	transform: translateY(-10px) perspective(1000px) rotateX(5deg);
}

.feature-icon {
	width: 56px;
	height: 56px;
	margin-bottom: 16px;
	color: var(--cyan);
	stroke-width: 2;
	animation: rotate 20s linear infinite;
}

.feature-card:hover .feature-icon {
	animation: pulse 0.6s ease-out;
}

.feature-title {
	font-size: 18px;
	color: var(--text);
	margin: 0 0 12px 0;
	font-weight: 600;
}

.feature-description {
	color: var(--dim);
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 12px 0;
}

.feature-badge {
	display: inline-block;
	padding: 4px 12px;
	background: rgba(0, 212, 255, 0.15);
	color: var(--cyan);
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

/* ============================================ SHOWCASE SECTION ============================================ */

.showcase {
	padding: 80px 20px;
	background: rgba(5, 8, 13, 0.5);
}

.showcase-carousel {
	max-width: 1200px;
	margin: 0 auto;
}

.carousel-container {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--shadow-deep), var(--glow-cyan);
	aspect-ratio: 16 / 9;
}

.carousel-slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.carousel-slide {
	position: absolute;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide.active {
	opacity: 1;
	z-index: 10;
}

.carousel-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.slide-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 30px;
	background: linear-gradient(
		180deg,
		transparent,
		rgba(5, 8, 13, 0.9)
	);
	color: white;
	z-index: 11;
}

.slide-caption h4 {
	margin: 0 0 8px 0;
	font-size: 24px;
	color: var(--cyan);
}

.slide-caption p {
	margin: 0;
	color: var(--dim);
	font-size: 14px;
}

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 12;
	width: 50px;
	height: 50px;
	border: none;
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
	backdrop-filter: blur(10px);
}

.carousel-prev {
	left: 20px;
}

.carousel-next {
	right: 20px;
}

.carousel-btn:hover {
	background: var(--red);
	box-shadow: var(--glow-red);
}

.carousel-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 12;
	display: flex;
	gap: 10px;
}

.carousel-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	cursor: pointer;
	transition: var(--transition);
	border: 2px solid transparent;
}

.carousel-dot.active {
	background: var(--cyan);
	border-color: var(--cyan);
	box-shadow: var(--glow-cyan);
}

.carousel-dot:hover {
	background: var(--cyan);
	transform: scale(1.2);
}

/* ============================================ STATS SECTION ============================================ */

.stats-section {
	padding: 80px 20px;
	background: linear-gradient(
		-45deg,
		transparent 0%,
		rgba(232, 25, 60, 0.03) 50%,
		transparent 100%
	);
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.stat-card {
	padding: 30px;
	background: rgba(11, 16, 24, 0.7);
	border: 1px solid var(--edge);
	border-radius: 14px;
	text-align: center;
	transition: var(--transition);
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(10px);
}

.stat-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--cyan), var(--red), var(--purple));
	transform: scaleX(0);
	transition: transform 0.6s ease;
	transform-origin: left;
}

.stat-card:hover::before {
	transform: scaleX(1);
}

.stat-card:hover {
	border-color: var(--cyan);
	box-shadow: var(--glow-cyan);
	transform: translateY(-8px);
}

.stat-value {
	font-family: var(--ff-mono);
	font-size: clamp(32px, 5vw, 48px);
	color: var(--cyan);
	font-weight: 700;
	margin-bottom: 12px;
	text-shadow: var(--glow-cyan);
}

.stat-name {
	color: var(--dim);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* ============================================ FAQ SECTION ============================================ */

.faq {
	padding: 80px 20px;
}

.faq-container {
	max-width: 700px;
	margin: 0 auto;
}

.faq-item {
	margin-bottom: 16px;
	border: 1px solid var(--edge);
	border-radius: 12px;
	overflow: hidden;
	background: rgba(11, 16, 24, 0.4);
	transition: var(--transition);
	backdrop-filter: blur(10px);
	animation: fadeInUp 0.6s ease-out;
	animation-fill-mode: both;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }

.faq-item.open {
	border-color: var(--cyan);
	box-shadow: var(--glow-cyan);
}

.faq-trigger {
	width: 100%;
	padding: 20px;
	border: none;
	background: transparent;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	color: var(--text);
	font-size: 16px;
	font-weight: 600;
	transition: var(--transition);
	font-family: var(--ff-body);
}

.faq-trigger:hover {
	color: var(--cyan);
}

.faq-trigger svg {
	width: 20px;
	height: 20px;
	color: var(--cyan);
	transition: var(--transition);
	flex-shrink: 0;
}

.faq-item.open .faq-trigger svg {
	transform: rotate(180deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out;
	background: rgba(0, 212, 255, 0.02);
}

.faq-item.open .faq-answer {
	max-height: 400px;
}

.faq-answer p {
	margin: 0;
	padding: 20px;
	color: var(--dim);
	line-height: 1.6;
}

/* ============================================ AUTH SECTION ============================================ */

.auth-section {
	padding: 80px 20px;
	background: linear-gradient(
		135deg,
		transparent 0%,
		rgba(0, 212, 255, 0.02) 50%,
		transparent 100%
	);
}

.auth-container {
	max-width: 600px;
	margin: 0 auto;
	padding: 40px;
	background: rgba(11, 16, 24, 0.7);
	border: 1px solid var(--edge);
	border-radius: 16px;
	backdrop-filter: blur(10px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	animation: fadeInUp 0.8s ease-out;
}

.auth-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 30px;
	border-bottom: 2px solid var(--edge);
	padding-bottom: 0;
}

.auth-tab {
	flex: 1;
	padding: 14px 16px;
	border: none;
	background: transparent;
	color: var(--dim);
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: var(--transition);
	border-bottom: 3px solid transparent;
	position: relative;
}

.auth-tab:hover {
	color: var(--cyan);
}

.auth-tab.active {
	color: var(--cyan);
	border-bottom-color: var(--cyan);
}

.auth-panel {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: all 0.4s ease-out;
	pointer-events: none;
}

.auth-panel.active {
	max-height: 800px;
	opacity: 1;
	pointer-events: auto;
}

.form-group {
	margin-bottom: 20px;
	animation: fadeInUp 0.6s ease-out;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 12px 14px;
	background: rgba(9, 19, 31, 0.8);
	border: 1px solid var(--edge);
	border-radius: 8px;
	color: var(--text);
	font-family: var(--ff-body);
	font-size: 14px;
	transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--cyan);
	box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
	background: rgba(9, 19, 31, 0.95);
}

.form-group.checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}

.form-group.checkbox input {
	width: auto;
	margin: 0;
	cursor: pointer;
}

.form-group.checkbox label {
	margin: 0;
	font-weight: 400;
	cursor: pointer;
}

.form-group.checkbox a {
	color: var(--cyan);
	text-decoration: none;
	font-weight: 600;
}

.form-group.checkbox a:hover {
	text-decoration: underline;
}

.btn-block {
	width: 100%;
	margin-top: 10px;
}

.auth-hint {
	color: var(--dim);
	font-size: 12px;
	margin: 0 0 20px 0;
}

/* ============================================ FOOTER ============================================ */

.footer {
	padding: 60px 20px 20px;
	background: rgba(5, 8, 13, 0.8);
	border-top: 1px solid var(--edge);
	margin-top: 80px;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 40px;
	max-width: 1400px;
	margin: 0 auto 40px;
}

.footer-section h4 {
	color: var(--text);
	margin: 0 0 12px 0;
	font-size: 16px;
}

.footer-section p {
	color: var(--dim);
	font-size: 14px;
	margin: 0;
	line-height: 1.6;
}

.footer-section ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-section li {
	margin-bottom: 8px;
}

.footer-section a {
	color: var(--dim);
	text-decoration: none;
	font-size: 14px;
	transition: var(--transition);
}

.footer-section a:hover {
	color: var(--cyan);
}

.social-links {
	display: flex;
	gap: 16px;
}

.footer-bottom {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid var(--edge);
	color: var(--muted);
	font-size: 12px;
}

/* ============================================ ANIMATIONS ============================================ */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes bounce {
	0%, 100% {
		transform: translateX(-50%) translateY(0);
	}
	50% {
		transform: translateX(-50%) translateY(10px);
	}
}

@keyframes float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

@keyframes rotate {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* ============================================ SCROLL ANIMATIONS ============================================ */

.scroll-fade {
	animation: fadeInUp 0.8s ease-out forwards;
	opacity: 0;
}

.scroll-fade.in-view {
	opacity: 1;
}

/* ============================================ RESPONSIVE DESIGN ============================================ */

@media (max-width: 1024px) {
	.hero {
		min-height: 80vh;
		padding: 30px 20px;
	}

	.section-header {
		margin-bottom: 40px;
	}

	.features-grid {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		gap: 16px;
	}

	.carousel-container {
		aspect-ratio: auto;
		min-height: 400px;
	}

	.carousel-btn {
		width: 40px;
		height: 40px;
	}

	.auth-container {
		padding: 30px;
	}
}

@media (max-width: 768px) {
	.hero-title {
		font-size: clamp(32px, 8vw, 56px);
	}

	.hero-buttons {
		flex-direction: column;
		gap: 10px;
	}

	.btn-lg {
		width: 100%;
	}

	.hero-stats {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-top: 30px;
	}

	.section-title {
		font-size: clamp(28px, 6vw, 40px);
	}

	.features-grid {
		grid-template-columns: 1fr;
	}

	.carousel-btn {
		display: none;
	}

	.carousel-dots {
		bottom: 10px;
	}

	.carousel-dot {
		width: 10px;
		height: 10px;
	}

	.auth-tabs {
		flex-wrap: wrap;
	}

	.auth-tab {
		flex: 1;
		min-width: calc(33.333% - 6px);
	}

	.auth-container {
		padding: 20px;
	}

	.footer-content {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	@media (max-width: 480px) {
		.stats-grid {
			grid-template-columns: 1fr;
		}

		.hero-badge {
			font-size: 12px;
		}

		.slide-caption {
			padding: 20px;
		}

		.slide-caption h4 {
			font-size: 18px;
		}
	}
}

/* ============================================ ACCESSIBILITY ============================================ */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.hero-canvas {
		display: none;
	}
}

/* ============================================ DARK MODE ============================================ */

@media (prefers-color-scheme: dark) {
	.form-group input,
	.form-group textarea {
		color-scheme: dark;
	}
}

/* ============================================ UTILITY CLASSES ============================================ */

.hidden {
	display: none;
}

.visibility-hidden {
	visibility: hidden;
}
