:root {
    --primary-color: #FF9900;
    --primary-dark: #e68a00;
    --background-color: #f5f7fa;
    --card-color: #ffffff;
    --text-color: #333333;
    --secondary-text: #666666;
    --accent-color: #3498db;
}

* {
    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: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
}

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

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    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;
}

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

.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;
}

.features-section {
    margin: 48px 0;
    text-align: center;
}

.features-section h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 32px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.feature-card {
    background-color: var(--card-color);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.feature-card h3 {
    color: var(--text-color);
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--secondary-text);
    margin: 0;
}

.how-it-works {
    margin: 48px 0;
}

.how-it-works h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 32px;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.step {
    display: flex;
    gap: 16px;
    background-color: var(--card-color);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--text-color);
    font-size: 20px;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--secondary-text);
    margin: 0;
}

.download-section {
    margin: 48px 0;
}

.download-card {
    background-color: var(--card-color);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.download-card h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 24px;
    text-align: center;
}

.dashboard-config {
    margin-bottom: 24px;
}

.dashboard-config label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.dashboard-config input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.dashboard-config input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.install-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.install-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 153, 0, 0.4);
}

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

.btn-icon {
    font-size: 18px;
}

.install-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.install-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.install-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.install-status.loading {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    display: block;
}

.install-status.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

.footer {
    margin-top: 48px;
    padding: 24px;
    text-align: center;
    color: var(--secondary-text);
    border-top: 1px solid #e9ecef;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 8px;
}

.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;
    }

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

    .step {
        flex-direction: column;
        text-align: center;
    }
}