/* Landing Page Styles (Hero, Features, etc.) */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 520px;
    margin-bottom: 0;
    /* Align directly with overlapping container */
    background-image: url('../../img/hero_background.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Ensure maximum sharpness */
    image-rendering: -webkit-optimize-contrast;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Deep dark overlay + Strong fade to black at the bottom */
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.65) 40%,
            rgba(0, 0, 0, 0.85) 75%,
            var(--bg-primary) 100%);
    z-index: 1;
}

.app-catchphrase {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--space-xl);
}

.app-catchphrase h2 {
    font-size: 3.8rem;
    font-weight: 300;
    margin-bottom: var(--text-base);
    background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.15;
    filter: drop-shadow(0 var(--radius-sm) 20px rgba(0, 0, 0, 0.8));
}

.app-catchphrase p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-shadow: 0 2px var(--radius-md) rgba(0, 0, 0, 0.6);
    margin-bottom: var(--space-xl);
    /* Add space for overlapping upload section below */
}

/* Overlap the upload section onto the hero background */
.upload-section-wrapper {
    margin-top: -120px !important;
    position: relative;
    z-index: 10;
}

.upload-section-wrapper .drop-zone {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: none;
    border: 5px dashed var(--accent-glow);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
    margin-bottom: var(--space-xl);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#processing-status {
    width: 100%;
}

/* Features Section Header */
.features-section {
    padding: 0 var(--space-xl) 6rem;
    margin-top: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.features-section.hidden {
    display: none;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-header h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: var(--space-xs);
    background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    filter: drop-shadow(0 var(--radius-sm) 20px rgba(0, 0, 0, 0.4));
}

.features-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

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

.feature-card {
    padding: var(--text-base);
    display: flex;
    flex-direction: column;
    gap: var(--text-xl);
    position: relative;
}

.feature-top {
    display: flex;
    align-items: center;
    gap: var(--text-2xl);
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    /* Standard green */
    opacity: 0.9;
}

.feature-title-group h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.feature-title-group .jp-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
    margin-bottom: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    padding-left: var(--text-xl);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: var(--radius-sm);
    height: var(--radius-sm);
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.6;
}

.feature-list strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.2rem;
}

@media (max-width: 640px) {
    .features-section {
        padding: 4rem var(--text-2xl);
    }

    .feature-card {
        padding: var(--space-xl);
    }

    .features-header h2 {
        font-size: var(--space-xl);
    }
}