/* General Styles */
:root {
    --primary-blue: #4a90e2;
    --accent-peach: #ffdbc5;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation & Logo */
nav {
    padding: 15px 0;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-svg {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
    letter-spacing: 1px;
}

/* Premium Nav Download Button */
.btn-nav-download {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #000000;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-nav-download:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.apple-logo-btn {
    fill: white;
    margin-top: -2px;
}


/* === HERO SECTION === */
.hero {
    background-color: var(--accent-peach);
    /* Increased padding bottom to let the image breathe */
    padding: 60px 0 80px; 
    overflow: hidden;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 450px; /* Slightly narrower text block for better balance */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.highlight {
    color: #394B77;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    opacity: 0.8;
}

/* === NEW HERO IMAGE STYLES === */
.hero-image-container {
    flex: 1.2; /* Give image slightly more space than text */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-product-shot {
    /* Allows image to be slightly wider than its container for dramatic effect */
    max-width: 115%; 
    height: auto;
    display: block;
    /* Optional: A very subtle shadow to make it pop off the peach background */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #394B77;
    color: var(--white);
}
.btn-primary:hover { background: #357abd; }

.btn-secondary {
    background: transparent;
    border: 2px solid #394B77;
    color: #394B77;
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 40px;
    background: #f9f9f9;
    border-radius: 24px;
    text-align: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: #f0f4f8;
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* CTA Section */
.cta {
    background: var(--text-dark);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.cta h2 { margin-bottom: 20px; font-size: 2.5rem; }
.cta p { margin-bottom: 30px; opacity: 0.8; font-size: 1.2rem; }

/* Footer */
footer {
    padding: 50px 0;
    background: #f4f4f4;
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

footer .logo-svg { height: 30px; }
footer .logo-text { font-size: 1.2rem; }
.project-info p { margin-bottom: 5px; }

.mlab-logo {
    font-weight: 800;
    color: var(--text-dark);
    border: 3px solid var(--text-dark);
    padding: 8px 12px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

hr { border: 0; border-top: 1px solid #ddd; }

.disclaimer {
    margin-top: 30px;
    text-align: center;
    font-style: italic;
    font-size: 0.8rem;
    opacity: 0.7;
}
/* === VIDEO SHOWCASE STYLES === */
.video-showcase {
    padding: 80px 0;
    background-color: #fcfcfc; /* Very light grey to separate from Hero */
    text-align: center;
}

.video-header {
    margin-bottom: 40px;
}

.video-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-radius: 24px;
    overflow: hidden; 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    background: #000;
    line-height: 0;
}

.app-video {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustment for the video section */
@media (max-width: 768px) {
    .video-showcase {
        padding: 60px 0;
    }
    
    .video-container {
        border-radius: 12px; /* Slightly smaller radius on mobile */
    }
}

/* Responsive Design */
@media (max-width: 960px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .hero-text { max-width: 100%; }
    
    /* Center the buttons on mobile */
    .hero-btns {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-bottom: 30px;
    }

    /* Ensure image fits snugly on mobile */
    .hero-product-shot {
        max-width: 100%;
        /* Pull the image up slightly on mobile to reduce gap */
        margin-top: -20px; 
    }
    
    .hero h1 { font-size: 2.8rem; }
    .footer-top { flex-direction: column; text-align: center; }
    .logo-wrapper { justify-content: center; }
}

@media (max-width: 480px) {
    .btn-nav-download span { display: none; }
    .btn-nav-download { padding: 10px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
}