/* Perflight Landing Page Styles */
/* MSFS-inspired dark theme with cyan accents */

:root {
	/* Color palette matching the app */
	--bg: #0f1115;
	--bg-secondary: #1a1d24;
	--bg-card: rgba(26, 29, 36, 0.7);
	--brand: #009dd5;
	--brand-hover: #00b8f5;
	--sets: #f59e0b;
	--text: #ffffff;
	--text-secondary: #b4b8c5;
	--border: rgba(0, 157, 213, 0.2);
	--shadow: rgba(0, 157, 213, 0.1);

	/* Premium/Pro color palette (orange/yellow) */
	--premium: #ff9500;
	--premium-hover: #ffb340;
	--premium-border: rgba(255, 149, 0, 0.3);
	--premium-shadow: rgba(255, 149, 0, 0.15);
	--premium-bg: rgba(255, 149, 0, 0.08);
}

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

body {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	min-height: 100vh;
	background-image:
		radial-gradient(circle at 20% 50%, rgba(0, 157, 213, 0.05) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(0, 157, 213, 0.03) 0%, transparent 50%);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
}

/* Header */
.header {
	text-align: center;
	padding-top: 1rem;
}

.logo-image {
	max-width: 400px;
	width: 100%;
	height: auto;
	margin-bottom: 0;
}

.logo h1 {
	font-size: 3rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--brand);
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

.tagline {
	font-size: 1.1rem;
	color: var(--text-secondary);
	font-weight: 300;
	letter-spacing: 0.05em;
}

/* Hero Section */
.hero {
	text-align: center;
	padding: 2rem 0;
	max-width: 800px;
	margin: 0 auto;
}

.hero h2 {
	font-size: 2.2rem;
	margin-bottom: 0.5rem;
	background: linear-gradient(135deg, var(--text) 0%, var(--brand) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-description {
	font-size: 1.1rem;
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
	line-height: 1.8;
}

.cta-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.btn {
	padding: 1.25rem 2.5rem;
	font-size: 1.2rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.3s ease;
	display: inline-block;
	border: 2px solid transparent;
}

.btn-primary {
	background: var(--brand);
	color: var(--text);
	box-shadow: 0 4px 20px var(--shadow);
}

.btn-primary:hover {
	background: var(--brand-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 30px var(--shadow);
}

.btn-secondary {
	background: transparent;
	color: var(--brand);
	border: 2px solid var(--brand);
}

.btn-secondary:hover {
	background: rgba(0, 157, 213, 0.1);
	transform: translateY(-2px);
}

/* Features Section */
.features {
	padding: 4rem 0;
}

.features h3 {
	text-align: center;
	font-size: 2rem;
	margin-bottom: 3rem;
	color: var(--brand);
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-top: 2rem;
}

.feature-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 2rem;
	text-align: center;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.feature-card:hover {
	transform: translateY(-5px);
	border-color: var(--brand);
	box-shadow: 0 8px 30px var(--shadow);
}

.feature-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
}

.feature-card h4 {
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
	color: var(--brand);
}

.feature-card p {
	color: var(--text-secondary);
	font-size: 0.95rem;
	line-height: 1.6;
}

/* App Preview / Carousel Section */
.app-preview {
	padding: 1rem 0;
	text-align: center;
}

.app-preview h3 {
	font-size: 2rem;
	margin-bottom: 3rem;
	color: var(--brand);
}

.carousel {
	max-width: 900px;
	margin: 0 auto;
}

.carousel-container {
	position: relative;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1.5rem;
	backdrop-filter: blur(10px);
	overflow: hidden;
	box-shadow: 0 8px 32px var(--shadow);
}

.carousel-image-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 1144 / 1066;
	overflow: hidden;
	border-radius: 8px;
}

.carousel-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	transition: opacity 0.6s ease-in-out;
	pointer-events: none;
}

.carousel-image.active {
	opacity: 1;
	pointer-events: auto;
}

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 157, 213, 0.2);
	border: 1px solid var(--brand);
	color: var(--brand);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 1.5rem;
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	z-index: 10;
}

.carousel-btn:hover {
	background: var(--brand);
	color: var(--text);
	transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
	left: 1rem;
}

.carousel-btn-next {
	right: 1rem;
}

.carousel-indicators {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.indicator {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid var(--border);
	background: transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.indicator:hover {
	border-color: var(--brand);
	transform: scale(1.2);
}

.indicator.active {
	background: var(--brand);
	border-color: var(--brand);
	box-shadow: 0 0 10px var(--shadow);
}

.carousel-caption {
	position: relative;
	margin-top: 1rem;
	height: 1.5rem;
	color: var(--text-secondary);
	font-size: 1rem;
}

.carousel-caption .caption {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	opacity: 0;
	transition: opacity 0.4s ease;
	white-space: nowrap;
}

.carousel-caption .caption.active {
	opacity: 1;
}

/* Pro/Premium Section */
.pro-section {
	padding: 0;
}

.feature-card.pro-card {
	background: linear-gradient(135deg, var(--premium-bg), var(--bg-card)) !important;
	border: 2px solid var(--premium-border) !important;
	border-radius: 12px;
	padding: 2rem;
	text-align: center;
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
	box-shadow: 0 4px 20px var(--premium-shadow) !important;
	max-width: 60%;
	margin: 0 auto;
}

.feature-card.pro-card:hover {
	transform: translateY(-5px);
	border-color: var(--premium) !important;
	box-shadow: 0 8px 40px var(--premium-shadow) !important;
}

.feature-card.pro-card h4 {
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
	color: var(--premium) !important;
	text-align: center;
}

.feature-card.pro-card p {
	color: var(--text-secondary);
	font-size: 0.95rem;
	line-height: 1.6;
	text-align: center;
}

/* Tutorial Button & Video */
.btn-tutorial {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: transparent;
	color: var(--text);
	border: 2px solid #FF0000;
	cursor: pointer;
	font-family: inherit;
}

.btn-tutorial:hover {
	background: rgba(255, 0, 0, 0.1);
	transform: translateY(-2px);
	box-shadow: 0 4px 20px rgba(255, 0, 0, 0.15);
}

.youtube-icon {
	width: 24px;
	height: 17px;
	flex-shrink: 0;
}

.tutorial-video {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s ease, padding 0.5s ease;
	padding: 0;
}

.tutorial-video.open {
	max-height: 800px;
	padding: 2rem 0;
}

.tutorial-video-wrapper {
	width: 100%;
	max-width: min(1024px, 80vw);
	margin: 0 auto;
	aspect-ratio: 16 / 9;
}

.tutorial-video-wrapper iframe {
	width: 100%;
	height: 100%;
	border-radius: 12px;
	border: 1px solid var(--border);
}

/* Community Hub Section */
.community-hub {
	text-align: center;
	padding: 3rem 0 2rem;
}

.community-hub h3 {
	font-size: 1.8rem;
	color: var(--brand);
	margin-bottom: 0.75rem;
}

.community-description {
	color: var(--text-secondary);
	font-size: 1rem;
	max-width: 540px;
	margin: 0 auto 2rem;
	line-height: 1.6;
}

.community-links {
	display: flex;
	justify-content: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.community-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 1.25rem 1rem;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	text-decoration: none;
	color: var(--text);
	transition: all 0.3s ease;
	flex: 1 1 0;
	min-width: 140px;
	max-width: 200px;
	backdrop-filter: blur(10px);
}

.community-link:hover {
	transform: translateY(-4px);
	border-color: var(--brand);
	box-shadow: 0 8px 30px var(--shadow);
}

.community-link-icon {
	font-size: 1.75rem;
}

.community-link-icon-img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.community-link-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-secondary);
	transition: color 0.3s ease;
}

.community-link-desc {
	font-size: 0.75rem;
	color: var(--text-secondary);
	opacity: 0.7;
	line-height: 1.3;
}

.community-link:hover .community-link-label {
	color: var(--brand);
}

/* Status Section */
.status {
	text-align: center;
	padding: 1rem 0;
}

.status-badge {
	display: inline-block;
	background: rgba(0, 157, 213, 0.2);
	color: var(--brand);
	padding: 0.5rem 1.5rem;
	border-radius: 20px;
	font-weight: 600;
	margin-bottom: 1rem;
	border: 1px solid var(--brand);
}

/* Footer */
.footer {
	text-align: center;
	padding: 2rem 0;
	margin-top: 4rem;
	border-top: 1px solid var(--border);
	color: var(--text-secondary);
	font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
	.container {
		padding: 1rem;
	}

	.logo h1 {
		font-size: 2rem;
	}

	.hero h2 {
		font-size: 1.8rem;
	}

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

	.feature-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cta-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.btn {
		width: 100%;
		text-align: center;
	}

	/* Carousel responsive */
	.carousel-container {
		padding: 1rem;
	}

	.carousel-btn {
		width: 40px;
		height: 40px;
		font-size: 1.2rem;
	}

	.carousel-btn-prev {
		left: 0.5rem;
	}

	.carousel-btn-next {
		right: 0.5rem;
	}

	.carousel-caption .caption {
		font-size: 0.85rem;
		white-space: normal;
		max-width: 90%;
	}
}

/* Smooth scrolling */
html {
	scroll-behavior: smooth;
}

/* Selection color */
::selection {
	background: var(--brand);
	color: var(--text);
}
