.app-download-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 24px;
    font-family: "Inter", "Oswald", sans-serif;
}

/* HERO */
.app-hero {
    padding: 70px 0 46px 0;
    text-align: center;

    .app-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        border-radius: 999px;
        background: var(--bg-base-grey);
        border: 1px solid var(--bg-base-grey-dark);
        color: var(--text-dark);
        font-size: 0.88rem;
        font-weight: 700;
        margin-bottom: 22px;

        i {
            color: #f7b42c;
        }
    }

    h1 {
        font-size: clamp(2.2rem, 5vw, 4rem);
        font-weight: 800;
        line-height: 1.08;
        letter-spacing: -0.04em;
        margin: 0 0 18px 0;
        color: var(--text-dark);

        span {
            color: #f7b42c;
            font-weight: 800;
        }
    }

    p {
        font-size: 1.05rem;
        line-height: 1.6;
        color: var(--text-grey);
        max-width: 720px;
        margin: 0 auto;
    }
}

/* TÍTULOS */
.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 50px 0 10px 0;
    text-transform: uppercase;
    color: var(--text-dark);

    span {
        display: inline-block;
        position: relative;
    }

    span::after {
        content: "";
        display: block;
        width: 70px;
        height: 3px;
        background: #f7b42c;
        margin: 12px auto 0;
        border-radius: 999px;
    }
}

.section-sub {
    text-align: center;
    color: var(--text-grey);
    margin: 0 auto 42px auto;
    font-size: 1rem;
    max-width: 760px;
    line-height: 1.6;
}

/* DOWNLOAD SECTION */
.download-section {
    margin-top: 10px;
}

/* GRID DOS CARDS */
.arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 310px));
    justify-content: center;
    gap: 24px;
    margin: 40px auto 70px auto;
    max-width: 1100px;
}

/* CARD */
.arch-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-base);
    border: 1px solid var(--bg-base-grey-dark);
    border-radius: 16px;
    padding: 28px 20px 20px;
    text-align: left;
    transition: var(--transition-all);
    min-height: 420px;

    &:hover {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow);
        border-color: #f7b42c;
    }

    h3 {
        font-size: 1.6rem;
        font-weight: 700;
        margin: 0 0 10px 0;
        color: var(--text-dark);
        text-align: left;
    }
}

.arch-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: var(--bg-base-grey);
    border: 1px solid var(--bg-base-grey-dark);
    transition: var(--transition-all);

    i {
        font-size: 2rem;
        color: var(--text-dark);
        transition: var(--transition-all);
    }
}

.arch-card:hover .arch-icon {
    background: #f7b42c;
    border-color: #f7b42c;

    i {
        color: var(--text-dark);
    }
}

.arch-badge {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 18px 0;
    background: var(--bg-base-grey);
    border: 1px solid var(--bg-base-grey-dark);
    color: var(--text-grey);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

/* LISTA */
.version-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px 0;
    flex: 1;

    li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px dashed var(--bg-base-grey-dark);
        font-size: 0.94rem;
        color: var(--text-dark);
        line-height: 1.4;

        i {
            color: #f7b42c;
            width: 18px;
            min-width: 18px;
            text-align: center;
        }
    }
}

/* BOTÕES */
.btn-win {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 10px;
    background-color: var(--bg-base-dark);
    color: var(--text-light);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-all);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    margin-top: 10px;

    i {
        color: var(--text-light);
        transition: var(--transition-all);
    }

    &:hover {
        background-color: #f7b42c;
        color: var(--text-dark);
        transform: translateY(-1px);
    }

    &:hover i {
        color: var(--text-dark);
    }

    &:active {
        transform: scale(0.98);
    }
}

.btn-win.btn-outline {
    background: transparent;
    border: 1px solid #f7b42c;
    color: #f7b42c;

    i {
        color: #f7b42c;
    }

    &:hover {
        background: #f7b42c;
        color: var(--text-dark);
    }

    &:hover i {
        color: var(--text-dark);
    }
}

/* RECURSOS */
.resources-section {
    margin-top: 20px;
}

.features-win {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    justify-content: center;
    gap: 24px;
    margin: 40px auto 60px auto;
    max-width: 900px;
}

.feature {
    text-align: center;
    padding: 26px 22px;
    border: 1px solid var(--bg-base-grey-dark);
    border-radius: 16px;
    background: var(--bg-base);
    transition: var(--transition-all);

    &:hover {
        transform: translateY(-4px);
        box-shadow: var(--box-shadow);
        border-color: #f7b42c;
    }

    > i {
        width: 70px;
        height: 70px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 18px;
        background: var(--bg-base-grey);
        border: 1px solid var(--bg-base-grey-dark);
        color: var(--text-dark);
        font-size: 2rem;
        margin-bottom: 16px;
        transition: var(--transition-all);
    }

    &:hover > i {
        background: #f7b42c;
        border-color: #f7b42c;
        color: var(--text-dark);
    }

    h4 {
        font-size: 1.15rem;
        margin: 0 0 8px 0;
        font-weight: 700;
        color: var(--text-dark);
    }

    p {
        color: var(--text-grey);
        margin: 0;
        line-height: 1.55;
        font-size: 0.95rem;
    }
}

/* SUPORTE */
.support-section {
    margin-top: 10px;
}

.support-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-base);
    border: 1px solid var(--bg-base-grey-dark);
    border-radius: 18px;
    padding: 34px 24px;
    box-shadow: var(--box-shadow);
}

.support-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px auto;
    border-radius: 20px;
    background: var(--bg-base-grey);
    border: 1px solid var(--bg-base-grey-dark);
    display: flex;
    align-items: center;
    justify-content: center;

    i {
        font-size: 2rem;
        color: #f7b42c;
    }
}

.support-card h3 {
    margin: 0 0 12px 0;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--text-dark);
}

.support-card > p {
    color: var(--text-grey);
    margin: 0 auto;
    max-width: 700px;
    line-height: 1.6;

    strong {
        color: var(--text-dark);
    }
}

.btn-help {
    background: #f7b42c;
    color: var(--text-dark);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    margin-top: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-all);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    i {
        color: var(--text-dark);
    }

    &:hover {
        background: var(--bg-base-dark);
        color: var(--text-light);
        transform: translateY(-1px);
    }

    &:hover i {
        color: var(--text-light);
    }

    &:active {
        transform: scale(0.98);
    }
}

.help-box {
    max-width: 760px;
    margin: 24px auto 0 auto;
    padding: 22px;
    border-radius: 16px;
    background: var(--bg-base-grey);
    border: 1px solid var(--bg-base-grey-dark);
    text-align: left;

    h4 {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--text-dark);
        margin: 0 0 14px 0;
    }

    ol {
        margin: 0 0 16px 0;
        padding-left: 20px;
        color: var(--text-dark);

        li {
            padding: 4px 0;
            line-height: 1.5;
        }
    }

    p {
        margin: 0;
        color: var(--text-grey);
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* MODAL DOWNLOAD */
body.modal-open {
    overflow: hidden;
}

.download-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
}

.download-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 430px;
    background: var(--bg-base);
    border: 1px solid var(--bg-base-grey-dark);
    border-radius: 22px;
    padding: 34px 26px 26px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transform: translateY(14px) scale(0.96);
    transition: 0.2s ease;
    overflow: hidden;
}

.download-modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(247, 180, 44, 0.14),
        transparent 42%
    );
    pointer-events: none;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--bg-base-grey);
    border: 1px solid var(--bg-base-grey-dark);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-all);

    i {
        color: var(--text-dark);
    }

    &:hover {
        background: #f7b42c;
        border-color: #f7b42c;
    }
}

.modal-icon {
    position: relative;
    z-index: 1;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: var(--bg-base-grey);
    border: 1px solid var(--bg-base-grey-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;

    i {
        font-size: 2rem;
        color: #f7b42c;
    }
}

.modal-content h3 {
    position: relative;
    z-index: 1;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    letter-spacing: -0.03em;
}

.modal-content p {
    position: relative;
    z-index: 1;
    color: var(--text-grey);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 auto 24px auto;
    max-width: 340px;

    strong {
        color: var(--text-dark);
    }
}

.modal-btn {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 46px;
    border: none;
    border-radius: 12px;
    background: var(--bg-base-dark);
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-all);

    &:hover {
        background: #f7b42c;
        color: var(--text-dark);
        transform: translateY(-1px);
    }

    &:active {
        transform: scale(0.98);
    }
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--bg-base-dark);
    color: var(--text-light);
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    transition: 0.2s;
    pointer-events: none;
    display: flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
    box-shadow: var(--box-shadow);

    i,
    span {
        color: var(--text-light);
    }

    &.show {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .arch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
    }

    .features-win {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
    }
}

@media (max-width: 680px) {
    .app-download-container {
        padding: 0 16px;
        margin-bottom: 56px;
    }

    .app-hero {
        padding: 50px 0 35px 0;

        h1 {
            font-size: clamp(2rem, 9vw, 3rem);
        }

        p {
            font-size: 1rem;
        }
    }

    .section-title {
        margin-top: 34px;
    }

    .section-sub {
        margin-bottom: 30px;
    }

    .arch-grid,
    .features-win {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .arch-card {
        min-height: auto;
        padding: 28px 18px 18px;
    }

    .arch-icon {
        width: 66px;
        height: 66px;
        border-radius: 18px;

        i {
            font-size: 1.9rem;
        }
    }

    .support-card {
        padding: 26px 18px;
    }

    .btn-help {
        width: 100%;
    }

    .modal-content {
        padding: 30px 20px 22px;
        border-radius: 18px;
    }

    .modal-icon {
        width: 68px;
        height: 68px;
        border-radius: 18px;

        i {
            font-size: 1.8rem;
        }
    }

    .modal-content h3 {
        font-size: 1.45rem;
    }

    .toast {
        white-space: normal;
        width: calc(100% - 32px);
        text-align: center;
        justify-content: center;
        bottom: 18px;
        border-radius: 16px;
    }
}

@media (max-width: 380px) {
    .app-download-container {
        padding: 0 12px;
    }

    .arch-card,
    .feature,
    .support-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .btn-win {
        font-size: 0.86rem;
    }
}