/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d5a27;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #2d5a27;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 5rem 0 3rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%; /* shift video down to reveal more top area */
    filter: brightness(0.8);
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content > div:first-child {
    background: transparent;
    padding: 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.gradient-text {
    background: linear-gradient(135deg, #2d5a27 0%, #4ade80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #2d5a27 0%, #4ade80 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(45, 90, 39, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.4);
}

.btn-secondary {
    background: white;
    color: #2d5a27;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    border-color: #2d5a27;
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}


.app-showcase {
    width: 100%;
    max-width: 600px;
    height: 440px; /* more compact */
    position: relative;
}

/* Make everything inside the showcase static (no animations or transitions) */
.app-showcase, .app-showcase * {
    transition: none !important;
    animation: none !important;
}

.showcase-background {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 24px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.floating-screens {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.screen-card {
    position: absolute;
    background: transparent; /* real screenshots already include phone UI */
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: hidden;
    transition: none !important; /* disable all transform animations */
    pointer-events: none; /* block hover so nothing reacts to mouse */
}

/* Disable hover animation so center image doesn't wiggle */
.screen-card:hover { transform: none !important; }

.main-screen {
    width: 180px;
    height: 320px; /* compact */
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.secondary-screen {
    width: 180px; /* same as center */
    height: 320px; /* compact */
    z-index: 2;
}

.secondary-screen.left {
    top: 55%;
    left: 20%;
    transform: translateY(-50%); /* align vertically; no rotation */
}

.secondary-screen.right {
    top: 55%;
    right: 20%;
    transform: translateY(-50%); /* align vertically; no rotation */
}

/* Hide faux header bar so uploaded screenshots are not cropped or doubled */
.screen-header { display: none; }

.screen-dots {
    display: flex;
    gap: 4px;
}

.screen-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
}

.screen-dots span:nth-child(1) { background: #ff5f57; }
.screen-dots span:nth-child(2) { background: #ffbd2e; }
.screen-dots span:nth-child(3) { background: #28ca42; }

.screen-title { display: none; }

.screen-content {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fill card without letterboxing */
    background: transparent;
    border-radius: 16px; /* match card radius so edges look clean */
    transition: none !important;
}

.app-preview {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header-preview {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
    padding: 1rem;
    margin: -1rem -1rem 1rem;
    text-align: center;
    font-weight: 700;
}

.app-brand {
    font-size: 1.1rem;
}

.photo-grid-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.photo-slot-preview {
    aspect-ratio: 1;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.photo-slot-preview.active {
    border-color: #2d5a27;
    background: #f0f9ff;
}

.camera-icon {
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analyze-btn-preview {
    background: linear-gradient(135deg, #2d5a27 0%, #4ade80 100%);
    color: white;
    padding: 0.875rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-top: auto;
}

/* Features Section */
.features {
    padding: 3.5rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-description {
    font-size: 1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #2d5a27;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    padding: 8px;
    background: linear-gradient(135deg, #2d5a27 0%, #4ade80 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.feature-description {
    color: #6b7280;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.step {
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2d5a27 0%, #4ade80 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 auto 0.75rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.step-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Download Section */
.download {
    padding: 3.5rem 0;
    background: white;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.download-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.download-description {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.download-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.check-icon {
    color: #22c55e;
    flex-shrink: 0;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #2d5a27 0%, #4ade80 100%);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(45, 90, 39, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(45, 90, 39, 0.4);
}

.download-btn-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn-title {
    font-size: 0.875rem;
    opacity: 0.9;
}

.download-btn-platform {
    font-size: 1.1rem;
    font-weight: 700;
}

.download-note {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.api-note {
    color: #f59e0b;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* About Section */
.about {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.about-description {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #2d5a27;
    margin-bottom: 0.5rem;
}

.stat-number.logo {
    font-size: 2rem;
    font-weight: 800;
    color: #2d5a27;
    text-decoration: none;
}

.stat-label {
    color: #6b7280;
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: #1f2937;
    color: white;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-text {
    flex: 1;
}

.footer-disclaimer {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav {
        padding: 1rem;
    }
    
    .hero {
        padding: 6rem 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
}
