/* ============================================
   QEM Mesh Simplifier — Landing Page Styles
   ============================================ */

/* Hero */
.qem-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 0 0 24px 24px;
}

.qem-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #e94560;
    margin-bottom: 16px;
    font-family: 'Inter', system-ui, sans-serif;
}

.qem-hero p {
    font-size: 1.05rem;
    color: #b0b0c8;
    max-width: 680px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.qem-download-btn {
    display: inline-block;
    padding: 16px 36px;
    background: linear-gradient(135deg, #e94560, #c23152);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
}

.qem-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.5);
    color: #fff;
    text-decoration: none;
}

/* Ad Zones */
.qem-ad-zone {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px auto;
    max-width: 320px;
    min-height: 260px;
    border-radius: 8px;
    overflow: hidden;
}

/* Features Grid */
.qem-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.qem-feature-card {
    background: var(--bg-secondary, #1e1e3a);
    border: 1px solid var(--border-primary, #2a2a5a);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s;
}

.qem-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    border-color: #e94560;
}

.qem-feature-card .icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.qem-feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #e0e0e0);
    margin-bottom: 8px;
}

.qem-feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary, #9999bb);
    line-height: 1.6;
}

/* Sections */
.qem-section {
    padding: 40px 0;
}

.qem-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.qem-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary, #e0e0e0);
    margin-bottom: 28px;
    text-align: center;
}

/* How it works steps */
.qem-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.qem-step {
    background: var(--bg-secondary, #1e1e3a);
    border: 1px solid var(--border-primary, #2a2a5a);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.qem-step .step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560, #c23152);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.qem-step p {
    font-size: 0.9rem;
    color: var(--text-secondary, #9999bb);
    line-height: 1.5;
}

/* FAQ */
.qem-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qem-faq-item {
    background: var(--bg-secondary, #1e1e3a);
    border: 1px solid var(--border-primary, #2a2a5a);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.qem-faq-item[open] {
    border-color: #e94560;
}

.qem-faq-summary {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: var(--text-primary, #e0e0e0);
    font-size: 0.95rem;
}

.qem-faq-summary::-webkit-details-marker {
    display: none;
}

.qem-faq-summary::before {
    content: '▸ ';
    color: #e94560;
}

.qem-faq-item[open] .qem-faq-summary::before {
    content: '▾ ';
}

.qem-faq-answer {
    padding: 0 20px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary, #9999bb);
    line-height: 1.6;
}

/* How it works article */
.qem-how-article {
    background: var(--bg-secondary, #1e1e3a);
    border: 1px solid var(--border-primary, #2a2a5a);
    border-radius: 16px;
    padding: 32px;
}

.qem-how-article h2 {
    text-align: center;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 640px) {
    .qem-hero h1 {
        font-size: 1.6rem;
    }

    .qem-hero p {
        font-size: 0.95rem;
    }

    .qem-features {
        grid-template-columns: 1fr;
        padding: 20px 16px;
    }

    .qem-steps {
        grid-template-columns: 1fr;
    }
}
