/* --- App Landing Page Specific Styles --- */

/* --- App Hero Section with Full-Cover Background Image --- */
.app-hero {
    position: relative;
    background-image: url('images/hero-cover.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    margin-top: -100px;
    padding-top: 140px;
    padding-bottom: 80px;

    min-height: calc(100vh + 40px);
    min-height: calc(100dvh + 40px);
    

    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Gradient overlay for perfect background blending */
.app-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.app-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;

    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

/* Frosted Glassmorphism Card for Text Contrast over Wood Background */
.app-hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.app-badge-premium {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.35);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.app-badge-premium i {
    font-size: 1.2rem;
}

.app-hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.app-hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.app-hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
    text-align: justify;
}

.app-hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-pulse {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.btn-large {
    font-size: 1.15rem;
    padding: 14px 32px;
    border-radius: 12px;
}


/* --- STICKY SHOWCASE FEATURES SECTION --- */
.sticky-features-section {
    padding: 100px 0 20px 0;
    background-color: var(--bg-color);
    position: relative;
}

.sticky-showcase-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
    position: relative;
    margin-top: 30px;
}

.scrolling-content-col {
    display: flex;
    flex-direction: column;
    padding-inline-start: 10px;
    padding-inline-end: 20px;
    padding-top: 5vh;
    padding-bottom: 35vh;
}

.sticky-visual-col {
    position: sticky;
    top: 110px;
    height: calc(100vh - 150px);
    max-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.phone-display-container {
    position: relative;
    width: 100%;
    max-width: 225px;
    aspect-ratio: 9 / 19;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-glow {
    position: absolute;
    inset: -15px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(19, 121, 79, 0.12) 50%, transparent 75%);
    filter: blur(25px);
    z-index: 1;
    border-radius: 50%;
}

.phone-screen-stack {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.2));
}

.screen-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.95) translateY(12px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.screen-img.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.feature-step {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
    opacity: 0.25;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.feature-step.active {
    opacity: 1;
    transform: translateY(0);
}

.mobile-step-img {
    display: none;
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(19, 121, 79, 0.1) 100%);
    color: var(--primary-color);
    font-size: 1.6rem;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.feature-headline {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-step p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 520px;
}

.feature-bullet-list {
    list-style: none;
    padding: 0;
    max-width: 520px;
}

.feature-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.feature-bullet-list li i {
    color: var(--gradient-end);
    margin-top: 4px;
}


/* --- DOWNLOAD SECTION --- */
.download-section {
    padding: 80px 0 110px;
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--bg-light) 100%);
    position: relative;
}

.download-card.spotlight-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-md);
    box-shadow: 0 25px 50px -12px rgba(30, 41, 59, 0.12);
    border: 1px solid var(--border-color);
    padding: 50px 40px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.spotlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle 250px at var(--x, 50%) var(--y, 50%), rgba(59, 130, 246, 0.08), transparent 80%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.download-card-header {
    text-align: center;
    margin-bottom: 40px;
}

.trust-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gradient-end);
    background-color: rgba(19, 121, 79, 0.08);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.download-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.download-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.direct-download-box {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.dl-badge-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.dl-info h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.file-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.dl-main-btn {
    margin-top: 10px;
    width: 100%;
    max-width: 380px;
    justify-content: center;
}

.divider {
    position: relative;
    text-align: center;
    margin: 30px 0 25px 0;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px dashed var(--border-color);
    z-index: 1;
}

.divider span {
    background-color: var(--bg-color);
    padding: 0 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.market-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.market-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 28px;
    border-radius: 14px;
    text-decoration: none;
    background-color: #f8fafc;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
    min-width: 210px;
}

.market-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px var(--shadow-color);
    border-color: var(--primary-color);
    background-color: #ffffff;
}

.market-btn img {
    height: 32px;
    width: auto;
}

.market-text {
    text-align: left;
    direction: ltr;
    line-height: 1.25;
}

.market-text strong {
    font-family: inherit;
    font-size: 1.1rem;
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .app-hero {
        margin-top: 0;
        padding: 20px;

        min-height: calc(100vh - 70px);
        min-height: calc(100dvh - 70px);

        background-position: left center;
    }

    .anim-slide-up {
        transition: opacity 2s ease-out, transform 1s ease-out;
    }

    .app-hero-container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .app-hero-spacer {
        display: none;
    }

    .app-badge-premium {
        margin-bottom: 15px;
    }

    .app-hero-text {
        align-items: center;
        text-align: center;
        padding: 30px 24px;

        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.8);
    }

    .app-hero-description {
        margin-bottom: 15px;
    }

    .app-hero-subtitle {
        margin-bottom: 10px;
    }

    .app-hero-actions {
        align-items: center;
        justify-content: center;
    }

    .sticky-showcase-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .scrolling-content-col {
        padding-inline-start: 0;
        padding-inline-end: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .sticky-visual-col {
        display: none;
    }

    .feature-step {
        align-items: center;
        text-align: center;
        min-height: auto;
        opacity: 1;
        transform: none;
        padding: 35px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .feature-step:last-child {
        border-bottom: none;
    }

    .feature-step p {
        max-width: 100%;
    }
    
    .feature-bullet-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 440px;
        /* Constrains card container width cleanly on phones */
        margin: 0 auto;
        padding: 0;
    }

    .feature-bullet-list li {
        background-color: #f8fafc;
        border: 1px solid var(--border-color);
        border-radius: 14px;
        padding: 12px 16px;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: right;
        margin-bottom: 0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    }

    .feature-bullet-list li i {
        color: var(--gradient-end);
        font-size: 1rem;
        margin-top: 0;
        flex-shrink: 0;
    }

    .mobile-step-img {
        display: flex;
        justify-content: center;
        margin-top: 25px;
    }

    .mobile-step-img img {
        max-width: 210px;
        height: auto;
        filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.18));
    }
}

@media (max-width: 768px) {
    .app-hero-title {
        font-size: 2.4rem;
    }

    .app-hero-subtitle {
        font-size: 1.2rem;
    }

    .download-card.spotlight-card {
        padding: 30px 20px;
    }

    .market-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .market-btn {
        width: 100%;
        justify-content: center;
    }
}