:root {
    --primary: #6366f1;
    --secondary: #a855f7;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    clip-path: ellipse(150% 100% at 50% 0%);
}

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

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

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

/* Container */
.container {
    max-width: 1000px;
    margin: -3rem auto 4rem;
    padding: 0 1.5rem;
}

/* Main Card & Preview */
.main-card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 3rem;
}

.card-header {
    padding: 1rem 1.5rem;
    background: #f1f5f9;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.app-preview {
    padding: 1.5rem;
}

.preview-image {
    background: #0f172a;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

.camera-feed {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Keeps the image inside the rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.feed-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the image fills the space without distortion */
    opacity: 0.8; /* Slight dimming to make the "Low Light" overlay pop */
}

.overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.05rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.2s;
    border: 1px solid #e2e8f0;
}

.feature-item:hover {
    transform: translateY(-5px);
}

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

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

/* Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

@media (max-width: 600px) {
    h1 { font-size: 1.8rem; }
    .container { margin-top: -2rem; }
}