/* QDizer homepage rhythm pass: break the long pale canvas without losing the clean premium system. */

/* A restrained cool-teal pause around the workflow story. */
#how-it-works,
.how-conversation-v5,
.how-section-v5 {
    position: relative;
    background:
        radial-gradient(circle at 88% 12%, rgba(58, 132, 116, .08), transparent 30%),
        linear-gradient(180deg, #f2f7f5 0%, #edf4f1 100%) !important;
}

#how-it-works::before,
.how-conversation-v5::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(12, 61, 77, .18), transparent);
    pointer-events: none;
}

/* Main visual break. Documents remain bright while the section itself takes on the QDizer identity. */
#templates.template-showcase,
.template-showcase {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 4%, rgba(206, 137, 20, .16), transparent 28%),
        radial-gradient(circle at 92% 78%, rgba(68, 145, 126, .16), transparent 30%),
        linear-gradient(145deg, #071f2a 0%, #0a3542 52%, #0b4650 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(8, 31, 42, .18);
}

#templates.template-showcase::after,
.template-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.template-showcase .section-label,
.template-showcase .template-brand-line {
    color: #f0b43d !important;
}

.template-showcase h2,
.template-showcase h2 em {
    color: #ffffff !important;
}

.template-showcase .template-intro,
.template-showcase .template-heading-grid > div > p:not(.template-brand-line) {
    color: #c5d5d8 !important;
}

.template-showcase .customize-list {
    background: rgba(255, 255, 255, .055) !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    box-shadow: none !important;
    backdrop-filter: blur(8px);
}

.template-showcase .customize-list strong {
    color: #ffffff !important;
}

.template-showcase .customize-list small {
    color: #b9cdd1 !important;
}

.template-showcase .customize-list b {
    color: #f0b43d !important;
}

.template-showcase .template-card {
    background: #ffffff !important;
    border-color: rgba(255,255,255,.16) !important;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .22) !important;
}

.template-showcase .template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 64px rgba(0, 0, 0, .28) !important;
}

.template-showcase .template-meta,
.template-showcase .template-preview {
    background-color: #ffffff;
}

.template-showcase .template-meta strong {
    color: #102f3b !important;
}

.template-showcase .template-meta small {
    color: #75858a !important;
}

.template-showcase .template-feature-strip,
.template-showcase .template-bottom-strip {
    color: #d4e0e2 !important;
    border-color: rgba(255,255,255,.12) !important;
}

/* Keep the next section light so the dark templates area feels intentional, not like a new permanent theme. */
.template-showcase + section,
#templates + section {
    position: relative;
}

@media (max-width: 760px) {
    #templates.template-showcase,
    .template-showcase {
        background: linear-gradient(155deg, #071f2a, #0b414b) !important;
    }
}
