/* =====================================
   HORIZON DESK LANDING PAGE
===================================== */

.horizondesk-page {
    max-width: 1400px;
    margin: 0 auto;
}

/* =====================================
   HERO
===================================== */

.horizondesk-hero {

    text-align: center;

    max-width: 900px;

    margin: 0 auto;

    padding: 120px 0 80px;
}

.horizondesk-hero h1 {

    font-size: clamp(3rem, 6vw, 5rem);

    margin: 20px 0;

    color: var(--cor-roxo-escuro);
}

.horizondesk-subtitle {

    max-width: 700px;

    margin: 0 auto 40px;

    font-size: 1.2rem;

    line-height: 1.8;

    color: var(--cor-cinza);
}

/* =====================================
   LABEL
===================================== */

.horizondesk-label {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--cor-roxo-claro);

    text-transform: uppercase;

    font-size: .8rem;

    letter-spacing: 2px;

    font-weight: 600;
}

.horizondesk-pulse {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: var(--cor-roxo-claro);

    box-shadow:
        0 0 8px rgba(144,78,250,.4);
}

/* =====================================
   STACK
===================================== */

.horizondesk-stack {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}

.horizondesk-stack span {

    padding: 10px 18px;

    border-radius: 999px;

    background: rgba(144,78,250,.08);

    color: var(--cor-roxo-escuro);

    font-weight: 500;
}

/* =====================================
   BOTÕES HERO
===================================== */

.horizondesk-buttons {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 16px;

    margin-top: 40px;
}

/* =====================================
   SEÇÕES
===================================== */

.horizondesk-section {

    max-width: 1000px;

    margin: 0 auto;

    padding: 80px 0;
}

.horizondesk-section h2 {

    margin-bottom: 30px;
}

.horizondesk-section p {

    line-height: 1.9;

    margin-bottom: 20px;

    font-size: 1.05rem;
}

/* =====================================
   PREVIEW DO SOFTWARE
===================================== */

.horizondesk-preview {

    width: 100%;

    border-radius: 32px;

    overflow: hidden;

    background: white;

    box-shadow:
        0 20px 60px rgba(66,29,125,.08);

    margin-top: 40px;
}

.horizondesk-preview img {

    width: 100%;

    display: block;
}

/* =====================================
   GRID DE FUNCIONALIDADES
===================================== */

.horizondesk-features {

    display: grid;

    grid-template-columns:
        repeat(auto-fit,minmax(280px,1fr));

    gap: 24px;

    padding: 60px 0;
}

.horizondesk-card {

    background: white;

    padding: 32px;

    border-radius: 24px;

    box-shadow:
        0 10px 40px rgba(0,0,0,.05);

    transition: .3s;
}

.horizondesk-card:hover {

    transform: translateY(-6px);
}

.horizondesk-card-icon {

    width: 64px;

    height: 64px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 18px;

    background: rgba(144,78,250,.08);

    font-size: 2rem;

    margin-bottom: 20px;
}

/* =====================================
   TAGS
===================================== */

.horizondesk-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}

.horizondesk-tags span {

    background: rgba(144,78,250,.08);

    color: var(--cor-roxo-escuro);

    padding: 12px 18px;

    border-radius: 999px;

    font-weight: 500;
}

/* =====================================
   DOWNLOAD
===================================== */

.horizondesk-download {

    padding: 100px 0;

    text-align: center;
}

.horizondesk-download-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));

    gap: 24px;

    max-width: 900px;

    margin: 40px auto 0;
}

.horizondesk-download-card {

    background: white;

    border-radius: 24px;

    padding: 32px;

    box-shadow:
        0 10px 40px rgba(0,0,0,.05);
}

.horizondesk-version {

    color: var(--cor-roxo-claro);

    font-weight: 600;

    margin: 16px 0;
}

.horizondesk-hash {

    margin-top: 20px;

    text-align: left;
}

.horizondesk-hash code {

    display: block;

    margin-top: 10px;

    padding: 16px;

    border-radius: 12px;

    background: #f5f5f5;

    font-size: .8rem;

    word-break: break-all;
}

/* =====================================
   APOIO
===================================== */

.horizondesk-support {

    max-width: 900px;

    margin: 0 auto;

    text-align: center;

    padding: 100px 0;
}

.horizondesk-support-actions {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 16px;

    margin-top: 30px;
}

/* =====================================
   MODAL PIX
===================================== */

.horizondesk-modal {

    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,.5);

    align-items: center;

    justify-content: center;

    z-index: 9999;
}

.horizondesk-modal-content {

    width: 90%;

    max-width: 420px;

    background: white;

    border-radius: 24px;

    padding: 32px;

    text-align: center;
}

.horizondesk-modal-content img {

    max-width: 250px;

    margin: 20px auto;
}

.horizondesk-modal-close {

    border: none;

    background: none;

    font-size: 2rem;

    float: right;

    cursor: pointer;
}

/* =====================================
   SUPORTE
===================================== */

.horizondesk-contact {

    text-align: center;

    padding: 120px 0;
}

.horizondesk-contact p {

    max-width: 600px;

    margin: 30px auto;
}

.affiliate-modal-content {

    max-width: 1200px;

    width: 95%;
}

.affiliate-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit,minmax(300px,1fr));

    gap: 24px;

    margin-top: 30px;
}

.affiliate-card {

    background: white;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(0,0,0,.08);

    text-align: center;

    padding-bottom: 24px;
}

.affiliate-card img {

    width: 100%;

    height: 180px;

    object-fit: contain;

    background: #fff;
}

.affiliate-card h4 {

    margin: 24px 0;
}

.affiliate-card a {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    min-width: 220px;
}


/* =====================================
   RESPONSIVO
===================================== */

@media (max-width: 768px) {

    /* Layout Geral */

    .horizondesk-page {
        padding-left: 20px;
        padding-right: 20px;
    }

    .horizondesk-hero {
        padding: 80px 0;
    }

    .horizondesk-section,
    .horizondesk-download,
    .horizondesk-support,
    .horizondesk-contact {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    /* Botões */

    .horizondesk-buttons,
    .horizondesk-support-actions,
    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .horizondesk-buttons a,
    .horizondesk-support-actions a,
    .horizondesk-support-actions button,
    .download-buttons a,
    .button1,
    .button2 {
        width: 100%;
    }

    /* Recursos e Casos de Uso */

    .horizondesk-features {
        grid-template-columns: 1fr;
    }

    .feature-grid-3 {
        grid-template-columns: 1fr;
    }

    /* Download */

    .horizondesk-download-grid {
        grid-template-columns: 1fr;
    }

    .horizondesk-download-card,
    .download-card {
        padding: 2rem;
    }

    /* Modal PIX */

    .horizondesk-modal-content {
        width: 95vw;
        max-width: 400px;
        padding: 1.5rem;
    }

    .horizondesk-modal-content img {
        width: 220px;
        max-width: 100%;
    }

    /* Modal Afiliados */

    .affiliate-modal-content {
        width: 95vw;
        max-height: 90vh;
        padding: 1.5rem;
        overflow-y: auto;
    }

    .affiliate-grid {
        grid-template-columns: 1fr;
    }

    .affiliate-card img {
        height: 120px;
    }

    .affiliate-card a {
        width: 90%;
    }

    /* Hero */

    .horizondesk-hero h1 {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .horizondesk-subtitle {
        font-size: 1rem;
    }

    /* Tags */

    .horizondesk-stack,
    .horizondesk-tags {
        justify-content: center;
    }

    /* Preview */

    .horizondesk-preview {
        border-radius: 20px;
    }
}