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

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	color: #333;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
}

.hero {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 4rem 2rem;
	text-align: center;
}

.hero-content {
	max-width: 800px;
	margin: 0 auto;
}

.app-icon {
	font-size: 4rem;
	margin-bottom: 1rem;
	display: inline-block;
}

.hero h1 {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 1rem;
	background: linear-gradient(45deg, #fff, #f0f9ff);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.tagline {
	font-size: 1.25rem;
	opacity: 0.9;
	max-width: 600px;
	margin: 0 auto;
}

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

.main-card {
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	margin-top: -2rem;
	overflow: hidden;
	margin-bottom: 3rem;
}

.app-preview {
	background: linear-gradient(135deg, #1e3a8a, #3b82f6);
	padding: 3rem;
	color: white;
	text-align: center;
	position: relative;
}

.preview-image {
	background: #000;
	border-radius: 15px;
	padding: 2rem;
	max-width: 500px;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
}

.camera-feed {
	font-size: 4rem;
	margin-bottom: 1rem;
	opacity: 0.7;
}

.detection-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
}

.bbox {
	background: rgba(34, 197, 94, 0.9);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	margin: 0.5rem;
	display: inline-block;
	border: 2px solid #22c55e;
}

.app-details {
	padding: 3rem;
}

.app-details h2 {
	font-size: 2rem;
	color: #1e293b;
	margin-bottom: 2rem;
	text-align: center;
}

.template-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}

.info-box {
	background: #f0f9ff;
	border: 2px solid #e0f2fe;
	border-radius: 12px;
	padding: 2rem;
}

.info-box h3 {
	color: #0c4a6e;
	margin-bottom: 1rem;
	font-size: 1.2rem;
}

.info-box p {
	color: #0369a1;
	line-height: 1.6;
}

.how-to-use {
	background: #fefce8;
	border: 2px solid #fde047;
	border-radius: 12px;
	padding: 2rem;
	margin-top: 3rem;
}

.how-to-use h3 {
	color: #a16207;
	margin-bottom: 1.5rem;
	font-size: 1.3rem;
	text-align: center;
}

.steps {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.step {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.step-number {
	background: #eab308;
	color: white;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	flex-shrink: 0;
}

.step h4 {
	color: #a16207;
	margin-bottom: 0.5rem;
	font-size: 1.1rem;
}

.step p {
	color: #ca8a04;
}

.download-card {
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	padding: 3rem;
	text-align: center;
}

.download-card h2 {
	font-size: 2rem;
	color: #1e293b;
	margin-bottom: 1rem;
}

.download-card>p {
	color: #64748b;
	font-size: 1.1rem;
	margin-bottom: 2rem;
}

.dashboard-config {
	margin-bottom: 2rem;
	text-align: left;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}

.dashboard-config label {
	display: block;
	color: #374151;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.dashboard-config input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 0.95rem;
	transition: border-color 0.2s;
}

.dashboard-config input:focus {
	outline: none;
	border-color: #667eea;
}

.install-btn {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
	border: none;
	padding: 1.25rem 3rem;
	border-radius: 16px;
	font-size: 1.2rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 2rem;
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.install-btn:hover:not(:disabled) {
	transform: translateY(-3px);
	box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.install-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.manual-option {
	background: #f8fafc;
	border-radius: 12px;
	padding: 2rem;
	margin-top: 2rem;
}

.manual-option h3 {
	color: #1e293b;
	margin-bottom: 1rem;
	font-size: 1.2rem;
}

.manual-option>p {
	color: #64748b;
	margin-bottom: 1rem;
}

.btn-icon {
	font-size: 1.1rem;
}

.install-status {
	padding: 1rem;
	border-radius: 8px;
	font-size: 0.9rem;
	text-align: center;
	display: none;
	margin-top: 1rem;
}

.install-status.success {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.install-status.error {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
}

.install-status.loading {
	background: #dbeafe;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
}

.install-status.info {
	background: #e0f2fe;
	color: #0369a1;
	border: 1px solid #7dd3fc;
}

.manual-install {
	background: #1f2937;
	border-radius: 8px;
	padding: 1rem;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.manual-install code {
	color: #10b981;
	font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
	font-size: 0.85rem;
	flex: 1;
	overflow-x: auto;
}

.copy-btn {
	background: #374151;
	color: white;
	border: none;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	font-size: 0.8rem;
	cursor: pointer;
	transition: background-color 0.2s;
}

.copy-btn:hover {
	background: #4b5563;
}

.manual-steps {
	color: #6b7280;
	font-size: 0.9rem;
	line-height: 1.8;
}

.footer {
	text-align: center;
	padding: 2rem;
	color: white;
	opacity: 0.8;
}

.footer a {
	color: white;
	text-decoration: none;
	font-weight: 600;
}

.footer a:hover {
	text-decoration: underline;
}

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

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

	.container {
		padding: 0 1rem;
	}

	.app-details,
	.download-card {
		padding: 2rem;
	}

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

	.download-options {
		grid-template-columns: 1fr;
	}
}